admin-panel 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +117 -0
- data/LICENSE +21 -0
- data/README.md +55 -0
- data/Rakefile +10 -0
- data/admin-panel.gemspec +29 -0
- data/lib/admin-panel/version.rb +3 -0
- data/lib/generators/admin_panel/install/install_generator.rb +69 -0
- data/lib/generators/admin_panel/install/templates/README +10 -0
- data/lib/generators/admin_panel/install/templates/assets/javascripts/admin.js +1 -0
- data/lib/generators/admin_panel/install/templates/assets/stylesheets/admin.css.scss +1 -0
- data/lib/generators/admin_panel/install/templates/controllers/admin/dashboard_controller.rb +3 -0
- data/lib/generators/admin_panel/install/templates/controllers/admin/passwords_controller.rb +4 -0
- data/lib/generators/admin_panel/install/templates/controllers/admin/sessions_controller.rb +4 -0
- data/lib/generators/admin_panel/install/templates/controllers/concerns/administrable.rb +9 -0
- data/lib/generators/admin_panel/install/templates/helpers/admin_helper.rb +19 -0
- data/lib/generators/admin_panel/install/templates/layouts/admin/_messages.html.erb +8 -0
- data/lib/generators/admin_panel/install/templates/layouts/admin/_navigation.html.erb +20 -0
- data/lib/generators/admin_panel/install/templates/layouts/admin/application.html.erb +22 -0
- data/lib/generators/admin_panel/install/templates/views/admin/dashboard/index.html.erb +1 -0
- data/lib/generators/admin_panel/install/templates/views/admin/passwords/edit.html.erb +17 -0
- data/lib/generators/admin_panel/install/templates/views/admin/passwords/new.html.erb +15 -0
- data/lib/generators/admin_panel/install/templates/views/admin/sessions/new.html.erb +17 -0
- data/lib/generators/admin_panel/scaffold/scaffold_generator.rb +168 -0
- data/lib/generators/admin_panel/scaffold/templates/controllers/controller.rb.erb +69 -0
- data/lib/generators/admin_panel/scaffold/templates/tests/test_unit/functional_test.rb.erb +51 -0
- data/lib/generators/admin_panel/scaffold/templates/views/erb/_form.html.erb.erb +13 -0
- data/lib/generators/admin_panel/scaffold/templates/views/erb/edit.html.erb.erb +12 -0
- data/lib/generators/admin_panel/scaffold/templates/views/erb/index.html.erb.erb +37 -0
- data/lib/generators/admin_panel/scaffold/templates/views/erb/new.html.erb.erb +14 -0
- data/lib/generators/admin_panel/scaffold/templates/views/erb/show.html.erb.erb +22 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/bin/rails +11 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +68 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/seeds.rb +0 -0
- data/spec/generators/admin_panel/install/install_generator_spec.rb +79 -0
- data/spec/generators/admin_panel/scaffold/scaffold_generator_spec.rb +31 -0
- data/spec/spec_helper.rb +17 -0
- metadata +232 -0
data/spec/dummy/Rakefile
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
4
|
+
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
6
|
+
|
7
|
+
Dummy::Application.load_tasks
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,13 @@
|
|
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 vendor/assets/stylesheets of plugins, if any, 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 top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
# This code only makes sure that invoke method in scaffold generator has been run correctly
|
4
|
+
if ARGV[0] == "generate" && ARGV[1] == "model"
|
5
|
+
root_path = File.expand_path('../../', __FILE__)
|
6
|
+
models_path = File.join(root_path, 'app', 'models')
|
7
|
+
filename = ARGV[2]
|
8
|
+
|
9
|
+
FileUtils.mkdir_p models_path
|
10
|
+
FileUtils.touch File.join(models_path, "#{filename.downcase}.rb")
|
11
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
# require 'active_record/railtie'
|
5
|
+
require 'action_controller/railtie'
|
6
|
+
require 'action_mailer/railtie'
|
7
|
+
# require 'active_resource/railtie'
|
8
|
+
require 'sprockets/railtie'
|
9
|
+
# require 'rails/test_unit/railtie'
|
10
|
+
|
11
|
+
if defined?(Bundler)
|
12
|
+
# If you precompile assets before deploying to production, use this line
|
13
|
+
Bundler.require(*Rails.groups(assets: %w(development test)))
|
14
|
+
# If you want your assets lazily compiled in production, use this line
|
15
|
+
# Bundler.require(:default, :assets, Rails.env)
|
16
|
+
end
|
17
|
+
|
18
|
+
module Dummy
|
19
|
+
class Application < Rails::Application
|
20
|
+
# Settings in config/environments/* take precedence over those specified here.
|
21
|
+
# Application configuration should go into files in config/initializers
|
22
|
+
# -- all .rb files in that directory are automatically loaded.
|
23
|
+
|
24
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
25
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
26
|
+
|
27
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
28
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
29
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
30
|
+
|
31
|
+
# Activate observers that should always be running.
|
32
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
33
|
+
|
34
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
35
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
36
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
37
|
+
|
38
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
39
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
40
|
+
# config.i18n.default_locale = :de
|
41
|
+
|
42
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
43
|
+
config.encoding = 'utf-8'
|
44
|
+
|
45
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
46
|
+
config.filter_parameters += [:password]
|
47
|
+
|
48
|
+
# Enable escaping HTML in JSON.
|
49
|
+
config.active_support.escape_html_entities_in_json = true
|
50
|
+
|
51
|
+
# Use SQL instead of Active Record's schema dumper when creating the database.
|
52
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
53
|
+
# like if you have constraints or database-specific column types
|
54
|
+
# config.active_record.schema_format = :sql
|
55
|
+
|
56
|
+
# Enforce whitelist mode for mass assignment.
|
57
|
+
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
58
|
+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
59
|
+
# parameters by using an attr_accessible or attr_protected declaration.
|
60
|
+
# config.active_record.whitelist_attributes = true
|
61
|
+
|
62
|
+
# Enable the asset pipeline
|
63
|
+
config.assets.enabled = true
|
64
|
+
|
65
|
+
# Version of your assets, change this if you want to expire all your assets
|
66
|
+
config.assets.version = '1.0'
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Log error messages when you accidentally call methods on nil
|
20
|
+
config.whiny_nils = true
|
21
|
+
|
22
|
+
# Show full error reports and disable caching
|
23
|
+
config.consider_all_requests_local = true
|
24
|
+
config.action_controller.perform_caching = false
|
25
|
+
|
26
|
+
# Raise exceptions instead of rendering exception templates
|
27
|
+
config.action_dispatch.show_exceptions = false
|
28
|
+
|
29
|
+
# Disable request forgery protection in test environment
|
30
|
+
config.action_controller.allow_forgery_protection = false
|
31
|
+
|
32
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
33
|
+
# The :test delivery method accumulates sent emails in the
|
34
|
+
# ActionMailer::Base.deliveries array.
|
35
|
+
config.action_mailer.delivery_method = :test
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
end
|
File without changes
|
@@ -0,0 +1,79 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'generators/admin_panel/install/install_generator'
|
3
|
+
|
4
|
+
describe AdminPanel::Generators::InstallGenerator do
|
5
|
+
destination File.expand_path('../../../../../tmp', __FILE__)
|
6
|
+
|
7
|
+
before do
|
8
|
+
prepare_destination
|
9
|
+
prepare_rails_dummy
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'installer' do
|
13
|
+
before { run_generator }
|
14
|
+
describe 'devise:install' do
|
15
|
+
it_should_exist 'config/initializers/devise.rb'
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'simple_form:install' do
|
19
|
+
it_should_exist 'config/initializers/simple_form.rb'
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'copying layout' do
|
23
|
+
it_should_exist 'app/views/layouts/admin/application.html.erb'
|
24
|
+
it_should_exist 'app/views/layouts/admin/_messages.html.erb'
|
25
|
+
it_should_exist 'app/views/layouts/admin/_navigation.html.erb'
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'copying assets' do
|
29
|
+
it_should_exist 'app/assets/javascripts/admin.js'
|
30
|
+
it_should_exist 'app/assets/stylesheets/admin.css.scss'
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'copying helper' do
|
34
|
+
it_should_exist 'app/helpers/admin_helper.rb'
|
35
|
+
end
|
36
|
+
|
37
|
+
describe 'copying controllers' do
|
38
|
+
it_should_exist 'app/controllers/admin/dashboard_controller.rb'
|
39
|
+
it_should_exist 'app/controllers/admin/passwords_controller.rb'
|
40
|
+
it_should_exist 'app/controllers/admin/sessions_controller.rb'
|
41
|
+
end
|
42
|
+
|
43
|
+
describe 'copying views' do
|
44
|
+
it_should_exist 'app/views/admin/dashboard/index.html.erb'
|
45
|
+
it_should_exist 'app/views/admin/passwords/edit.html.erb'
|
46
|
+
it_should_exist 'app/views/admin/passwords/new.html.erb'
|
47
|
+
it_should_exist 'app/views/admin/sessions/new.html.erb'
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'active_record:devise' do
|
51
|
+
it_should_exist 'app/models/admin.rb'
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'seeding default admin user' do
|
55
|
+
describe 'seeds.rb' do
|
56
|
+
subject { file('db/seeds.rb')}
|
57
|
+
it { should exist }
|
58
|
+
it { should contain %Q(Admin.create!({ email: 'admin@example.com', password: 'administrator' })) }
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'routing generation' do
|
63
|
+
describe 'routes.rb' do
|
64
|
+
subject { file('config/routes.rb') }
|
65
|
+
it { should exist }
|
66
|
+
it { should contain %Q(
|
67
|
+
devise_for :admin,
|
68
|
+
:only => [:sessions, :passwords],
|
69
|
+
:controllers => { :sessions => 'admin/sessions', :passwords => 'admin/passwords' }
|
70
|
+
|
71
|
+
namespace :admin do
|
72
|
+
get '/', to: 'dashboard#index', as: :dashboard
|
73
|
+
end
|
74
|
+
) }
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'generators/admin_panel/scaffold/scaffold_generator'
|
3
|
+
|
4
|
+
describe AdminPanel::Generators::ScaffoldGenerator do
|
5
|
+
destination File.expand_path('../../../../../tmp', __FILE__)
|
6
|
+
|
7
|
+
before do
|
8
|
+
prepare_destination
|
9
|
+
prepare_rails_dummy
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'scaffolder' do
|
13
|
+
before { run_generator(%w(post title:string description:text public:boolean)) }
|
14
|
+
# @see spec/dummy/bin/rails
|
15
|
+
it_should_exist 'app/models/post.rb'
|
16
|
+
|
17
|
+
describe 'posts controller' do
|
18
|
+
subject { file('app/controllers/admin/posts_controller.rb')}
|
19
|
+
it { should exist }
|
20
|
+
it { should contain 'include Administrable' }
|
21
|
+
it { should contain '@posts = Post.all' }
|
22
|
+
end
|
23
|
+
|
24
|
+
it_should_exist 'app/views/admin/posts/index.html.erb'
|
25
|
+
it_should_exist 'app/views/admin/posts/edit.html.erb'
|
26
|
+
it_should_exist 'app/views/admin/posts/show.html.erb'
|
27
|
+
it_should_exist 'app/views/admin/posts/new.html.erb'
|
28
|
+
it_should_exist 'app/views/admin/posts/_form.html.erb'
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rails/all'
|
2
|
+
require 'rspec/rails/adapters'
|
3
|
+
require 'rspec/rails/example/rails_example_group'
|
4
|
+
require 'tmpdir'
|
5
|
+
require 'fileutils'
|
6
|
+
require 'ammeter/init'
|
7
|
+
|
8
|
+
def prepare_rails_dummy
|
9
|
+
FileUtils.cp_r('spec/dummy/.', destination_root)
|
10
|
+
end
|
11
|
+
|
12
|
+
def it_should_exist(path)
|
13
|
+
describe "file #{File.basename(path)}" do
|
14
|
+
subject { file(path)}
|
15
|
+
it { should exist }
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,232 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: admin-panel
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michał Matyas
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: ammeter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: railties
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 4.0.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 4.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sass-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 4.0.0
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 4.0.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bootstrap-sass
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.1'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.1'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simple_form
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 3.1.0.rc1
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.1.0.rc1
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: devise
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.2'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '3.2'
|
139
|
+
description: Generates Twitter Bootstrap based admin panel with scaffolder. Project
|
140
|
+
is quite opinionated, requires Rails 4, SASS, SimpleForm and Devise.
|
141
|
+
email:
|
142
|
+
- michal@higher.lv
|
143
|
+
executables: []
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- Gemfile
|
149
|
+
- Gemfile.lock
|
150
|
+
- LICENSE
|
151
|
+
- README.md
|
152
|
+
- Rakefile
|
153
|
+
- admin-panel.gemspec
|
154
|
+
- lib/admin-panel/version.rb
|
155
|
+
- lib/generators/admin_panel/install/install_generator.rb
|
156
|
+
- lib/generators/admin_panel/install/templates/README
|
157
|
+
- lib/generators/admin_panel/install/templates/assets/javascripts/admin.js
|
158
|
+
- lib/generators/admin_panel/install/templates/assets/stylesheets/admin.css.scss
|
159
|
+
- lib/generators/admin_panel/install/templates/controllers/admin/dashboard_controller.rb
|
160
|
+
- lib/generators/admin_panel/install/templates/controllers/admin/passwords_controller.rb
|
161
|
+
- lib/generators/admin_panel/install/templates/controllers/admin/sessions_controller.rb
|
162
|
+
- lib/generators/admin_panel/install/templates/controllers/concerns/administrable.rb
|
163
|
+
- lib/generators/admin_panel/install/templates/helpers/admin_helper.rb
|
164
|
+
- lib/generators/admin_panel/install/templates/layouts/admin/_messages.html.erb
|
165
|
+
- lib/generators/admin_panel/install/templates/layouts/admin/_navigation.html.erb
|
166
|
+
- lib/generators/admin_panel/install/templates/layouts/admin/application.html.erb
|
167
|
+
- lib/generators/admin_panel/install/templates/views/admin/dashboard/index.html.erb
|
168
|
+
- lib/generators/admin_panel/install/templates/views/admin/passwords/edit.html.erb
|
169
|
+
- lib/generators/admin_panel/install/templates/views/admin/passwords/new.html.erb
|
170
|
+
- lib/generators/admin_panel/install/templates/views/admin/sessions/new.html.erb
|
171
|
+
- lib/generators/admin_panel/scaffold/scaffold_generator.rb
|
172
|
+
- lib/generators/admin_panel/scaffold/templates/controllers/controller.rb.erb
|
173
|
+
- lib/generators/admin_panel/scaffold/templates/tests/test_unit/functional_test.rb.erb
|
174
|
+
- lib/generators/admin_panel/scaffold/templates/views/erb/_form.html.erb.erb
|
175
|
+
- lib/generators/admin_panel/scaffold/templates/views/erb/edit.html.erb.erb
|
176
|
+
- lib/generators/admin_panel/scaffold/templates/views/erb/index.html.erb.erb
|
177
|
+
- lib/generators/admin_panel/scaffold/templates/views/erb/new.html.erb.erb
|
178
|
+
- lib/generators/admin_panel/scaffold/templates/views/erb/show.html.erb.erb
|
179
|
+
- spec/dummy/Rakefile
|
180
|
+
- spec/dummy/app/assets/javascripts/application.js
|
181
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
182
|
+
- spec/dummy/bin/rails
|
183
|
+
- spec/dummy/config.ru
|
184
|
+
- spec/dummy/config/application.rb
|
185
|
+
- spec/dummy/config/boot.rb
|
186
|
+
- spec/dummy/config/environment.rb
|
187
|
+
- spec/dummy/config/environments/test.rb
|
188
|
+
- spec/dummy/config/routes.rb
|
189
|
+
- spec/dummy/db/seeds.rb
|
190
|
+
- spec/generators/admin_panel/install/install_generator_spec.rb
|
191
|
+
- spec/generators/admin_panel/scaffold/scaffold_generator_spec.rb
|
192
|
+
- spec/spec_helper.rb
|
193
|
+
homepage: https://github.com/d4rky-pl/admin-panel
|
194
|
+
licenses:
|
195
|
+
- MIT
|
196
|
+
metadata: {}
|
197
|
+
post_install_message:
|
198
|
+
rdoc_options: []
|
199
|
+
require_paths:
|
200
|
+
- lib
|
201
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
211
|
+
requirements: []
|
212
|
+
rubyforge_project:
|
213
|
+
rubygems_version: 2.2.2
|
214
|
+
signing_key:
|
215
|
+
specification_version: 4
|
216
|
+
summary: Generates Twitter Bootstrap based admin panel with scaffolder
|
217
|
+
test_files:
|
218
|
+
- spec/dummy/Rakefile
|
219
|
+
- spec/dummy/app/assets/javascripts/application.js
|
220
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
221
|
+
- spec/dummy/bin/rails
|
222
|
+
- spec/dummy/config.ru
|
223
|
+
- spec/dummy/config/application.rb
|
224
|
+
- spec/dummy/config/boot.rb
|
225
|
+
- spec/dummy/config/environment.rb
|
226
|
+
- spec/dummy/config/environments/test.rb
|
227
|
+
- spec/dummy/config/routes.rb
|
228
|
+
- spec/dummy/db/seeds.rb
|
229
|
+
- spec/generators/admin_panel/install/install_generator_spec.rb
|
230
|
+
- spec/generators/admin_panel/scaffold/scaffold_generator_spec.rb
|
231
|
+
- spec/spec_helper.rb
|
232
|
+
has_rdoc:
|