storytime-admin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +23 -0
  5. data/app/assets/javascripts/admin/application.js +3 -0
  6. data/app/assets/stylesheets/admin/_content.css.scss +4 -0
  7. data/app/assets/stylesheets/admin/_tables.css.scss +25 -0
  8. data/app/assets/stylesheets/admin.css.scss +2 -0
  9. data/app/controllers/storytime_admin/application_controller.rb +117 -0
  10. data/app/helpers/storytime_admin/application_helper.rb +28 -0
  11. data/app/views/storytime_admin/application/_fields.html.haml +2 -0
  12. data/app/views/storytime_admin/application/_flashes.html.haml +5 -0
  13. data/app/views/storytime_admin/application/_form.html.haml +5 -0
  14. data/app/views/storytime_admin/application/_headers.html.haml +1 -0
  15. data/app/views/storytime_admin/application/_navigation.html.haml +12 -0
  16. data/app/views/storytime_admin/application/_object.html.haml +3 -0
  17. data/app/views/storytime_admin/application/_row.html.haml +1 -0
  18. data/app/views/storytime_admin/application/_table.html.haml +7 -0
  19. data/app/views/storytime_admin/application/edit.html.haml +9 -0
  20. data/app/views/storytime_admin/application/index.html.haml +10 -0
  21. data/app/views/storytime_admin/application/new.html.haml +9 -0
  22. data/config/routes.rb +5 -0
  23. data/lib/generators/storytime_admin/resource/USAGE +8 -0
  24. data/lib/generators/storytime_admin/resource/resource_generator.rb +14 -0
  25. data/lib/generators/storytime_admin/resource/templates/controller.rb +45 -0
  26. data/lib/storytime_admin/engine.rb +15 -0
  27. data/lib/storytime_admin/version.rb +3 -0
  28. data/lib/storytime_admin.rb +34 -0
  29. data/lib/tasks/admin_tasks.rake +4 -0
  30. metadata +324 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d9c62de1f633ed8817a17760d7d690146a43e2f2
4
+ data.tar.gz: 00788717ff5b71fe2bb4c75180004b8c5e681c71
5
+ SHA512:
6
+ metadata.gz: 0e6f9695ee3d82cd8eb436274f781b102af90ed6db56d50eb070d78db69c8c410bcf7469ae7857561fa01e689899bc66d5e337a76561d0921f4804c893934658
7
+ data.tar.gz: 0aa56427fb0ee7028b8b5a12790b204abc30a01c57879a309d491ba30654e9414729098a05f77e5ee3dc0990df31221cf0c43cb71fabac1c02050df9fdb8dd3a
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2015 FlyoverWorks Inc.
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.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = Admin
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,23 @@
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 = 'Admin'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+
22
+ Bundler::GemHelper.install_tasks
23
+
@@ -0,0 +1,3 @@
1
+ //= require jquery
2
+ //= require jquery_ujs
3
+ //= require_tree .
@@ -0,0 +1,4 @@
1
+ .content-padding {
2
+ padding-top: 20px;
3
+ padding-bottom: 20px;
4
+ }
@@ -0,0 +1,25 @@
1
+ .table-admin {
2
+ th:last-child, td:last-child {
3
+ text-align: right;
4
+ }
5
+
6
+ td, th {
7
+ line-height: 40px !important;
8
+ }
9
+
10
+ td.avatar {
11
+ width: 60px;
12
+
13
+ img {
14
+ width: 40px;
15
+ height: 40px;
16
+ @include border-top-radius(50%);
17
+ @include border-bottom-radius(50%);
18
+ }
19
+ }
20
+ }
21
+
22
+ .content-padding {
23
+ padding-top: 20px;
24
+ padding-bottom: 20px;
25
+ }
@@ -0,0 +1,2 @@
1
+ @import 'admin/content';
2
+ @import 'admin/tables';
@@ -0,0 +1,117 @@
1
+ module StorytimeAdmin
2
+ class ApplicationController < StorytimeAdmin.base_controller.constantize
3
+ layout :set_layout
4
+
5
+ before_action :authenticate_user!
6
+ before_action :ensure_admin!
7
+ before_action :load_model, only: [:edit, :update, :destroy]
8
+
9
+ helper_method :model, :model_name, :model_sym, :admin_controller?, :headers, :form_attributes, :index_attr, :current_user
10
+
11
+ def index
12
+ @collection = model.all.page(params[:page]).per(20)
13
+ end
14
+
15
+ def new
16
+ @model = model.new
17
+ end
18
+
19
+ def edit
20
+ end
21
+
22
+ def create
23
+ @model = model.new(permitted_params)
24
+ @model.user = current_user if @model.respond_to? :user
25
+
26
+ if @model.save
27
+ redirect_to model, notice: "#{model_name} successfully created"
28
+ else
29
+ render :new
30
+ end
31
+ end
32
+
33
+ def update
34
+ if @model.update(permitted_params)
35
+ redirect_to model, notice: "#{model_name} successfully updated"
36
+ else
37
+ render :edit
38
+ end
39
+ end
40
+
41
+ def destroy
42
+ @model.destroy
43
+ redirect_to model, notice: "#{model_name} successfully deleted"
44
+ end
45
+
46
+ private
47
+ def permitted_params
48
+ params.require(model_sym).permit(permitted_attributes.map(&:to_sym))
49
+ end
50
+
51
+ def ensure_admin!
52
+ unless current_user && current_user.admin?
53
+ redirect_to main_app.root_url, flash: { error: "Only admin users can access this page" }
54
+ end
55
+ end
56
+
57
+ def attributes
58
+ @attributes ||= model.columns.map(&:name)
59
+ end
60
+
61
+ def form_attributes
62
+ @form_attributes ||= attributes.reject{ |v| form_blacklist.include?(v) }
63
+ end
64
+
65
+ def permitted_attributes
66
+ @permitted_attributes ||= attributes.reject{ |v| permitted_params_blacklist.include?(v) }
67
+ end
68
+
69
+ def form_blacklist
70
+ ["id", "created_at", "updated_at"]
71
+ end
72
+
73
+ def permitted_params_blacklist
74
+ ["id", "created_at", "updated_at"]
75
+ end
76
+
77
+ def index_attr
78
+ if attributes.include?("title")
79
+ "title"
80
+ elsif attributes.include?("name")
81
+ "name"
82
+ else
83
+ "id"
84
+ end
85
+ end
86
+
87
+ def load_model
88
+ @model = model.find(params[:id])
89
+ end
90
+
91
+ def model
92
+ model_name.classify.constantize
93
+ end
94
+
95
+ def model_name
96
+ @model_name ||= self.class.name.split("::").last.gsub("Controller", "").singularize
97
+ end
98
+
99
+ def model_sym
100
+ @model_sym ||= model.name.underscore.to_sym
101
+ end
102
+
103
+ def admin_controller?
104
+ true
105
+ end
106
+
107
+ def set_layout
108
+ StorytimeAdmin.layout unless StorytimeAdmin.layout.nil?
109
+ end
110
+
111
+ if StorytimeAdmin.user_class_symbol != :user
112
+ def current_user
113
+ send("current_#{Admin.user_class_underscore_all}".to_sym)
114
+ end
115
+ end
116
+ end
117
+ end
@@ -0,0 +1,28 @@
1
+ module StorytimeAdmin
2
+ module ApplicationHelper
3
+ def method_missing method, *args, &block
4
+ # puts "LOOKING FOR ROUTES #{method}"
5
+ if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
6
+ if main_app.respond_to?(method)
7
+ main_app.send(method, *args)
8
+ else
9
+ super
10
+ end
11
+ else
12
+ super
13
+ end
14
+ end
15
+
16
+ def respond_to?(method)
17
+ if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
18
+ if main_app.respond_to?(method)
19
+ true
20
+ else
21
+ super
22
+ end
23
+ else
24
+ super
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,2 @@
1
+ - form_attributes.each do |attribute|
2
+ = f.input attribute.to_sym
@@ -0,0 +1,5 @@
1
+ - [:notice, :error, :alert].each do |level|
2
+ - unless flash[level].blank?
3
+ %div{class: "flash alert alert-#{flash_class(level)}", style: "padding-left: 0; padding-right: 0;"}
4
+ .container-fluid
5
+ = content_tag :p, flash[level]
@@ -0,0 +1,5 @@
1
+ = simple_form_for @model do |f|
2
+ = f.error_notification
3
+ = render 'fields', f: f
4
+ = f.submit "Save", class: "btn btn-primary btn-outline"
5
+ = link_to "Cancel", model, class: "btn btn-link"
@@ -0,0 +1 @@
1
+ %th= index_attr.titleize
@@ -0,0 +1,12 @@
1
+ %nav.navbar.navbar-inverse.navbar-fixed-top{role: "navigation"}
2
+ .container-fluid
3
+ .navbar-header
4
+ %button.navbar-toggle{"data-target" => "#navbar-collapse", "data-toggle" => "collapse", type: "button"}
5
+ %span.sr-only Toggle navigation
6
+ %span.icon-bar
7
+ %span.icon-bar
8
+ %span.icon-bar
9
+ = link_to StorytimeAdmin.nav_title, root_url, class: "navbar-brand"
10
+ #navbar-collapse.collapse.navbar-collapse
11
+ %ul.nav.navbar-nav
12
+ = render "links"
@@ -0,0 +1,3 @@
1
+ %tr.table-row-link{ data: { url: url_for([:edit, object]) } }
2
+ = render 'row', object: object
3
+ %td.text-right= link_to icon('trash-o'), object, class: "btn btn-sm btn-outline btn-danger", id: "delete_#{model_sym.to_s}_#{object.id}", method: :delete, data: { confirm: "Are you sure you want to delete this #{model_name}?" }
@@ -0,0 +1 @@
1
+ %td= object.send(index_attr)
@@ -0,0 +1,7 @@
1
+ %table.table.table-hover.table-admin
2
+ %thead
3
+ %tr
4
+ = render "headers"
5
+ %th.text-right Actions
6
+ %tbody
7
+ = render partial: 'object', collection: @collection, as: :object
@@ -0,0 +1,9 @@
1
+ #main
2
+ .scroll-panel
3
+ .scroll-panel-header
4
+ = link_to '#', class: "btn btn-default btn-icon pull-left visible-xs visible-sm", data: { toggle: "off-canvas", target: "#dashboard-nav" } do
5
+ %i.icon-st-icons-st-logo
6
+ = link_to "Cancel", model, class: "btn btn-default btn-sm pull-right"
7
+ %h3.scroll-panel-title Edit #{model_name}
8
+ .scroll-panel-body
9
+ = render "form"
@@ -0,0 +1,10 @@
1
+ #main
2
+ .scroll-panel
3
+ .scroll-panel-header
4
+ = link_to '#', class: "btn btn-default btn-icon pull-left visible-xs visible-sm", data: { toggle: "off-canvas", target: "#dashboard-nav" } do
5
+ %i.icon-st-icons-st-logo
6
+ = link_to "New #{model_name}", [:new, model_sym], class: "btn btn-sm btn-primary btn-outline pull-right"
7
+ %h3.scroll-panel-title= model_name.pluralize
8
+ .scroll-panel-body
9
+ = render 'table'
10
+ = paginate @collection, theme: 'twitter-bootstrap-3'
@@ -0,0 +1,9 @@
1
+ #main
2
+ .scroll-panel
3
+ .scroll-panel-header
4
+ = link_to '#', class: "btn btn-default btn-icon pull-left visible-xs visible-sm", data: { toggle: "off-canvas", target: "#dashboard-nav" } do
5
+ %i.icon-st-icons-st-logo
6
+ = link_to "Cancel", model, class: "btn btn-default btn-sm pull-right"
7
+ %h3.scroll-panel-title New #{model_name}
8
+ .scroll-panel-body
9
+ = render "form"
data/config/routes.rb ADDED
@@ -0,0 +1,5 @@
1
+ StorytimeAdmin::Engine.routes.draw do
2
+ StorytimeAdmin.models.each do |model|
3
+ resources model.tableize.to_sym
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate storytime_admin:resource Thing
6
+
7
+ This will create:
8
+ app/controllers/storytime_admin/things_controller.rb
@@ -0,0 +1,14 @@
1
+ module StorytimeAdmin
2
+ class ResourceGenerator < Rails::Generators::NamedBase
3
+ source_root File.expand_path('../templates', __FILE__)
4
+
5
+ def generate_controller
6
+ template 'controller.rb', "app/controllers/storytime_admin/#{table_name}_controller.rb"
7
+ end
8
+
9
+ private
10
+ def table_name
11
+ @table_name ||= file_path.tableize
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,45 @@
1
+ module StorytimeAdmin
2
+ class <%= class_name.pluralize %>Controller < StorytimeAdmin::ApplicationController
3
+ # Set active navigation link
4
+ set_tab :admin, :<%= class_name.tableize %>
5
+
6
+ private
7
+ ##########################################
8
+ ### Customize permitted_params
9
+ ##########################################
10
+ # def permitted_params
11
+ # params.require(model_sym).permit(permitted_attributes.map(&:to_sym))
12
+ # end
13
+
14
+ ##########################################
15
+ ### Add attributes here to exclude them
16
+ ### from permitted_params
17
+ ##########################################
18
+ # def permitted_params_blacklist
19
+ # ["id", "created_at", "updated_at"]
20
+ # end
21
+
22
+ ##########################################
23
+ ### Add attributes here to use the default
24
+ ### form but exclude additional attributes
25
+ ##########################################
26
+ # def form_blacklist
27
+ # ["id", "created_at", "updated_at"]
28
+ # end
29
+
30
+ ##########################################
31
+ ### If you are using the default index
32
+ ### template, this controls which attribute
33
+ ### is used in the table
34
+ ##########################################
35
+ # def index_attr
36
+ # if attributes.include?("title")
37
+ # "title"
38
+ # elsif attributes.include?("name")
39
+ # "name"
40
+ # else
41
+ # "id"
42
+ # end
43
+ # end
44
+ end
45
+ end
@@ -0,0 +1,15 @@
1
+ require 'haml-rails'
2
+ require 'sass-rails'
3
+ require 'font-awesome-sass'
4
+ require 'coffee-rails'
5
+ require 'jquery-rails'
6
+ require 'simple_form'
7
+ require 'leather'
8
+ require 'kaminari'
9
+ require 'bootstrap-kaminari-views'
10
+
11
+ module StorytimeAdmin
12
+ class Engine < ::Rails::Engine
13
+ isolate_namespace StorytimeAdmin
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module StorytimeAdmin
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,34 @@
1
+ require "storytime_admin/engine"
2
+
3
+ module StorytimeAdmin
4
+ class << self
5
+ mattr_accessor :nav_title, :models, :user_class, :layout, :base_controller
6
+ self.nav_title = "Admin"
7
+ self.base_controller = "::ApplicationController"
8
+ @@user_class = "User"
9
+ end
10
+
11
+ def self.configure(&block)
12
+ yield self
13
+ end
14
+
15
+ def self.models
16
+ Dir.glob(Rails.root.join("app", "controllers", "storytime_admin", "**/*")).map{|controller| controller.split("/").last.split("_controller")[0]}
17
+ end
18
+
19
+ def self.user_class
20
+ @@user_class.constantize
21
+ end
22
+
23
+ def self.user_class_underscore
24
+ @@user_class.underscore
25
+ end
26
+
27
+ def self.user_class_underscore_all
28
+ @@user_class.underscore.gsub('/', '_')
29
+ end
30
+
31
+ def self.user_class_symbol
32
+ @@user_class.underscore.to_sym
33
+ end
34
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :admin do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,324 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: storytime-admin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - David Van Der Beek
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: kaminari
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bootstrap-kaminari-views
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coffee-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jquery-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: haml-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: leather
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sass-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '4.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '4.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: font-awesome-sass
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simple_form
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: devise
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: sqlite3
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rspec-rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: factory_girl_rails
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: capybara
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: poltergeist
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '1.5'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '1.5'
237
+ - !ruby/object:Gem::Dependency
238
+ name: pry-nav
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: pry-stack_explorer
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ description: A simple alternative to Active Admin and Rails Admin
266
+ email:
267
+ - david@flyoverworks.com
268
+ executables: []
269
+ extensions: []
270
+ extra_rdoc_files: []
271
+ files:
272
+ - MIT-LICENSE
273
+ - README.rdoc
274
+ - Rakefile
275
+ - app/assets/javascripts/admin/application.js
276
+ - app/assets/stylesheets/admin.css.scss
277
+ - app/assets/stylesheets/admin/_content.css.scss
278
+ - app/assets/stylesheets/admin/_tables.css.scss
279
+ - app/controllers/storytime_admin/application_controller.rb
280
+ - app/helpers/storytime_admin/application_helper.rb
281
+ - app/views/storytime_admin/application/_fields.html.haml
282
+ - app/views/storytime_admin/application/_flashes.html.haml
283
+ - app/views/storytime_admin/application/_form.html.haml
284
+ - app/views/storytime_admin/application/_headers.html.haml
285
+ - app/views/storytime_admin/application/_navigation.html.haml
286
+ - app/views/storytime_admin/application/_object.html.haml
287
+ - app/views/storytime_admin/application/_row.html.haml
288
+ - app/views/storytime_admin/application/_table.html.haml
289
+ - app/views/storytime_admin/application/edit.html.haml
290
+ - app/views/storytime_admin/application/index.html.haml
291
+ - app/views/storytime_admin/application/new.html.haml
292
+ - config/routes.rb
293
+ - lib/generators/storytime_admin/resource/USAGE
294
+ - lib/generators/storytime_admin/resource/resource_generator.rb
295
+ - lib/generators/storytime_admin/resource/templates/controller.rb
296
+ - lib/storytime_admin.rb
297
+ - lib/storytime_admin/engine.rb
298
+ - lib/storytime_admin/version.rb
299
+ - lib/tasks/admin_tasks.rake
300
+ homepage: http://www.github.com/flyoverworks/storytime-admin
301
+ licenses:
302
+ - MIT
303
+ metadata: {}
304
+ post_install_message:
305
+ rdoc_options: []
306
+ require_paths:
307
+ - lib
308
+ required_ruby_version: !ruby/object:Gem::Requirement
309
+ requirements:
310
+ - - ">="
311
+ - !ruby/object:Gem::Version
312
+ version: '0'
313
+ required_rubygems_version: !ruby/object:Gem::Requirement
314
+ requirements:
315
+ - - ">="
316
+ - !ruby/object:Gem::Version
317
+ version: '0'
318
+ requirements: []
319
+ rubyforge_project:
320
+ rubygems_version: 2.2.2
321
+ signing_key:
322
+ specification_version: 4
323
+ summary: Admin engine originally created for Storytime
324
+ test_files: []