Skip to content

Commit 991dfb2

Browse files
committed
Rails engine scaffolding
0 parents  commit 991dfb2

76 files changed

Lines changed: 1127 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.bundle/
2+
log/*.log
3+
pkg/
4+
test/dummy/db/*.sqlite3
5+
test/dummy/db/*.sqlite3-journal
6+
test/dummy/db/*.sqlite3-*
7+
test/dummy/log/*.log
8+
test/dummy/storage/
9+
test/dummy/tmp/

Gemfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
# Declare your gem's dependencies in administrate-materialize-theme.gemspec.
5+
# Bundler will treat runtime dependencies like base dependencies, and
6+
# development dependencies will be added by default to the :development group.
7+
gemspec
8+
9+
# Declare any dependencies that are still in development here instead of in
10+
# your gemspec. These might include edge Rails or gems from your path or
11+
# Git. Remember to move these dependencies to your gemspec before releasing
12+
# your gem to rubygems.org.
13+
14+
# To use a debugger
15+
# gem 'byebug', group: [:development, :test]

MIT-LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 2020 Mattia Roccoberton
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions

Rakefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
begin
2+
require 'bundler/setup'
3+
rescue LoadError
4+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5+
end
6+
7+
require 'rdoc/task'
8+
9+
RDoc::Task.new(:rdoc) do |rdoc|
10+
rdoc.rdoc_dir = 'rdoc'
11+
rdoc.title = 'Administrate::Materialize::Theme'
12+
rdoc.options << '--line-numbers'
13+
rdoc.rdoc_files.include('README.md')
14+
rdoc.rdoc_files.include('lib/**/*.rb')
15+
end
16+
17+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
18+
load 'rails/tasks/engine.rake'
19+
20+
load 'rails/tasks/statistics.rake'
21+
22+
require 'bundler/gem_tasks'
23+
24+
require 'rake/testtask'
25+
26+
Rake::TestTask.new(:test) do |t|
27+
t.libs << 'test'
28+
t.pattern = 'test/**/*_test.rb'
29+
t.verbose = false
30+
end
31+
32+
task default: :test
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
$:.push File.expand_path("lib", __dir__)
2+
3+
# Maintain your gem's version:
4+
require "administrate/materialize/theme/version"
5+
6+
# Describe your gem and declare its dependencies:
7+
Gem::Specification.new do |spec|
8+
spec.name = "administrate-materialize-theme"
9+
spec.version = Administrate::Materialize::Theme::VERSION
10+
spec.authors = ["Mattia Roccoberton"]
11+
spec.email = ["mat@blocknot.es"]
12+
spec.homepage = "TODO"
13+
spec.summary = "TODO: Summary of Administrate::Materialize::Theme."
14+
spec.description = "TODO: Description of Administrate::Materialize::Theme."
15+
spec.license = "MIT"
16+
17+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18+
# to allow pushing to a single host or delete this section to allow pushing to any host.
19+
if spec.respond_to?(:metadata)
20+
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21+
else
22+
raise "RubyGems 2.0 or newer is required to protect against " \
23+
"public gem pushes."
24+
end
25+
26+
spec.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
27+
28+
spec.add_dependency "rails", "~> 6.0.3", ">= 6.0.3.2"
29+
30+
spec.add_development_dependency "sqlite3"
31+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//= link_directory ../stylesheets/administrate/materialize/theme .css

app/assets/images/administrate/materialize/theme/.keep

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10+
* files in this directory. Styles in this file should be added after the last require_* statement.
11+
* It is generally better to create a new file per style scope.
12+
*
13+
*= require_tree .
14+
*= require_self
15+
*/
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module Administrate
2+
module Materialize
3+
module Theme
4+
class ApplicationController < ActionController::Base
5+
protect_from_forgery with: :exception
6+
end
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)