adminscaffold 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +34 -0
  5. data/lib/admin_scaffold/version.rb +3 -0
  6. data/lib/admin_scaffold.rb +6 -0
  7. data/lib/adminscaffold.rb +1 -0
  8. data/lib/generators/admin_scaffold/admin_scaffold_generator.rb +24 -0
  9. data/lib/generators/admin_scaffold/install_generator.rb +19 -0
  10. data/lib/generators/admin_scaffold/templates/admin.css +4 -0
  11. data/lib/generators/admin_scaffold/templates/admin.html.erb.tt +14 -0
  12. data/lib/generators/admin_scaffold/templates/admin.js +4 -0
  13. data/lib/generators/admin_scaffold/templates/admin_controller.rb +3 -0
  14. data/lib/tasks/admin_scaffold_tasks.rake +4 -0
  15. data/test/admin_scaffold_test.rb +7 -0
  16. data/test/dummy/README.rdoc +28 -0
  17. data/test/dummy/Rakefile +6 -0
  18. data/test/dummy/app/assets/javascripts/admin/books.js +2 -0
  19. data/test/dummy/app/assets/javascripts/admin.js +4 -0
  20. data/test/dummy/app/assets/javascripts/application.js +13 -0
  21. data/test/dummy/app/assets/stylesheets/admin/books.css +4 -0
  22. data/test/dummy/app/assets/stylesheets/admin.css +4 -0
  23. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  24. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  25. data/test/dummy/app/controllers/admin/books_controller.rb +58 -0
  26. data/test/dummy/app/controllers/admin_controller.rb +3 -0
  27. data/test/dummy/app/controllers/application_controller.rb +5 -0
  28. data/test/dummy/app/helpers/admin/books_helper.rb +2 -0
  29. data/test/dummy/app/helpers/application_helper.rb +2 -0
  30. data/test/dummy/app/models/admin/book.rb +2 -0
  31. data/test/dummy/app/models/book.rb +2 -0
  32. data/test/dummy/app/views/admin/books/_form.html.erb +29 -0
  33. data/test/dummy/app/views/admin/books/edit.html.erb +6 -0
  34. data/test/dummy/app/views/admin/books/index.html.erb +31 -0
  35. data/test/dummy/app/views/admin/books/new.html.erb +5 -0
  36. data/test/dummy/app/views/admin/books/show.html.erb +19 -0
  37. data/test/dummy/app/views/layouts/admin.html.erb +14 -0
  38. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  39. data/test/dummy/bin/bundle +3 -0
  40. data/test/dummy/bin/rails +4 -0
  41. data/test/dummy/bin/rake +4 -0
  42. data/test/dummy/bin/setup +29 -0
  43. data/test/dummy/config/application.rb +26 -0
  44. data/test/dummy/config/boot.rb +5 -0
  45. data/test/dummy/config/database.yml +85 -0
  46. data/test/dummy/config/environment.rb +5 -0
  47. data/test/dummy/config/environments/development.rb +41 -0
  48. data/test/dummy/config/environments/production.rb +79 -0
  49. data/test/dummy/config/environments/test.rb +42 -0
  50. data/test/dummy/config/initializers/assets.rb +12 -0
  51. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  52. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  53. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  54. data/test/dummy/config/initializers/inflections.rb +16 -0
  55. data/test/dummy/config/initializers/mime_types.rb +4 -0
  56. data/test/dummy/config/initializers/session_store.rb +3 -0
  57. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  58. data/test/dummy/config/locales/en.yml +23 -0
  59. data/test/dummy/config/routes.rb +60 -0
  60. data/test/dummy/config/secrets.yml +22 -0
  61. data/test/dummy/config.ru +4 -0
  62. data/test/dummy/db/migrate/20150205063647_create_books.rb +11 -0
  63. data/test/dummy/db/schema.rb +27 -0
  64. data/test/dummy/log/development.log +122 -0
  65. data/test/dummy/log/test.log +156 -0
  66. data/test/dummy/public/404.html +67 -0
  67. data/test/dummy/public/422.html +67 -0
  68. data/test/dummy/public/500.html +66 -0
  69. data/test/dummy/public/favicon.ico +0 -0
  70. data/test/dummy/test/fixtures/books.yml +11 -0
  71. data/test/dummy/test/models/book_test.rb +7 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/01abf17de4892ee0547ad83c30695a01 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/0e2a64fc0b20a44edef0e893fe02bb8b +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/27184889e78dc5a556f3c7567afbef63 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/28d0ee5d51a1686dbfab844d57224241 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/3b33c918bc770b5c08f9a754758bc4e6 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/5953ddd4e0ec1b5b73fbed29804c11b3 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/5d4bd56a9d4de4d2e6d0cfb68c8af8e8 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/6609ee9da4eaea9b8d8137fbcfce6fdd +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/6f2cc8e9b9b8a6b61af4dd957ad61f3e +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/7aa90d1a0cd25a99c81ace73df870a64 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/7cc8464f262e75d9f3d931e2616dd878 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/86bf772f4327364a1dad3a4b3051c844 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/9085b07723908dd6995971c4f3c933ad +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/97a02c0a737b9c49960349900e5474c3 +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/b660bba6001bad109fa661da993b1414 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/cc70a8a06744e45cd5d774b3f5760aea +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/d125916fa47fe25c811ff41c3e47b1dc +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/e2c4bbeb230c9445cd39fac60f905174 +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/f6db94d89ef810b760500ac4d6d7f631 +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/f8160f91b680b2f94df78cefd5abc06e +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/fdcd9c4f2824a62f9858c5b88e2f8185 +0 -0
  93. data/test/dummy/tmp/pids/server.pid +1 -0
  94. data/test/test_helper.rb +18 -0
  95. metadata +245 -0
metadata ADDED
@@ -0,0 +1,245 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: adminscaffold
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Jian Weihang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-05 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.2.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.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: pg
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: admin scaffold
42
+ email:
43
+ - tonytonyjan@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - MIT-LICENSE
49
+ - README.rdoc
50
+ - Rakefile
51
+ - lib/admin_scaffold.rb
52
+ - lib/admin_scaffold/version.rb
53
+ - lib/adminscaffold.rb
54
+ - lib/generators/admin_scaffold/admin_scaffold_generator.rb
55
+ - lib/generators/admin_scaffold/install_generator.rb
56
+ - lib/generators/admin_scaffold/templates/admin.css
57
+ - lib/generators/admin_scaffold/templates/admin.html.erb.tt
58
+ - lib/generators/admin_scaffold/templates/admin.js
59
+ - lib/generators/admin_scaffold/templates/admin_controller.rb
60
+ - lib/tasks/admin_scaffold_tasks.rake
61
+ - test/admin_scaffold_test.rb
62
+ - test/dummy/README.rdoc
63
+ - test/dummy/Rakefile
64
+ - test/dummy/app/assets/javascripts/admin.js
65
+ - test/dummy/app/assets/javascripts/admin/books.js
66
+ - test/dummy/app/assets/javascripts/application.js
67
+ - test/dummy/app/assets/stylesheets/admin.css
68
+ - test/dummy/app/assets/stylesheets/admin/books.css
69
+ - test/dummy/app/assets/stylesheets/application.css
70
+ - test/dummy/app/assets/stylesheets/scaffold.css
71
+ - test/dummy/app/controllers/admin/books_controller.rb
72
+ - test/dummy/app/controllers/admin_controller.rb
73
+ - test/dummy/app/controllers/application_controller.rb
74
+ - test/dummy/app/helpers/admin/books_helper.rb
75
+ - test/dummy/app/helpers/application_helper.rb
76
+ - test/dummy/app/models/admin/book.rb
77
+ - test/dummy/app/models/book.rb
78
+ - test/dummy/app/views/admin/books/_form.html.erb
79
+ - test/dummy/app/views/admin/books/edit.html.erb
80
+ - test/dummy/app/views/admin/books/index.html.erb
81
+ - test/dummy/app/views/admin/books/new.html.erb
82
+ - test/dummy/app/views/admin/books/show.html.erb
83
+ - test/dummy/app/views/layouts/admin.html.erb
84
+ - test/dummy/app/views/layouts/application.html.erb
85
+ - test/dummy/bin/bundle
86
+ - test/dummy/bin/rails
87
+ - test/dummy/bin/rake
88
+ - test/dummy/bin/setup
89
+ - test/dummy/config.ru
90
+ - test/dummy/config/application.rb
91
+ - test/dummy/config/boot.rb
92
+ - test/dummy/config/database.yml
93
+ - test/dummy/config/environment.rb
94
+ - test/dummy/config/environments/development.rb
95
+ - test/dummy/config/environments/production.rb
96
+ - test/dummy/config/environments/test.rb
97
+ - test/dummy/config/initializers/assets.rb
98
+ - test/dummy/config/initializers/backtrace_silencers.rb
99
+ - test/dummy/config/initializers/cookies_serializer.rb
100
+ - test/dummy/config/initializers/filter_parameter_logging.rb
101
+ - test/dummy/config/initializers/inflections.rb
102
+ - test/dummy/config/initializers/mime_types.rb
103
+ - test/dummy/config/initializers/session_store.rb
104
+ - test/dummy/config/initializers/wrap_parameters.rb
105
+ - test/dummy/config/locales/en.yml
106
+ - test/dummy/config/routes.rb
107
+ - test/dummy/config/secrets.yml
108
+ - test/dummy/db/migrate/20150205063647_create_books.rb
109
+ - test/dummy/db/schema.rb
110
+ - test/dummy/log/development.log
111
+ - test/dummy/log/test.log
112
+ - test/dummy/public/404.html
113
+ - test/dummy/public/422.html
114
+ - test/dummy/public/500.html
115
+ - test/dummy/public/favicon.ico
116
+ - test/dummy/test/fixtures/books.yml
117
+ - test/dummy/test/models/book_test.rb
118
+ - test/dummy/tmp/cache/assets/development/sprockets/01abf17de4892ee0547ad83c30695a01
119
+ - test/dummy/tmp/cache/assets/development/sprockets/0e2a64fc0b20a44edef0e893fe02bb8b
120
+ - test/dummy/tmp/cache/assets/development/sprockets/27184889e78dc5a556f3c7567afbef63
121
+ - test/dummy/tmp/cache/assets/development/sprockets/28d0ee5d51a1686dbfab844d57224241
122
+ - test/dummy/tmp/cache/assets/development/sprockets/3b33c918bc770b5c08f9a754758bc4e6
123
+ - test/dummy/tmp/cache/assets/development/sprockets/5953ddd4e0ec1b5b73fbed29804c11b3
124
+ - test/dummy/tmp/cache/assets/development/sprockets/5d4bd56a9d4de4d2e6d0cfb68c8af8e8
125
+ - test/dummy/tmp/cache/assets/development/sprockets/6609ee9da4eaea9b8d8137fbcfce6fdd
126
+ - test/dummy/tmp/cache/assets/development/sprockets/6f2cc8e9b9b8a6b61af4dd957ad61f3e
127
+ - test/dummy/tmp/cache/assets/development/sprockets/7aa90d1a0cd25a99c81ace73df870a64
128
+ - test/dummy/tmp/cache/assets/development/sprockets/7cc8464f262e75d9f3d931e2616dd878
129
+ - test/dummy/tmp/cache/assets/development/sprockets/86bf772f4327364a1dad3a4b3051c844
130
+ - test/dummy/tmp/cache/assets/development/sprockets/9085b07723908dd6995971c4f3c933ad
131
+ - test/dummy/tmp/cache/assets/development/sprockets/97a02c0a737b9c49960349900e5474c3
132
+ - test/dummy/tmp/cache/assets/development/sprockets/b660bba6001bad109fa661da993b1414
133
+ - test/dummy/tmp/cache/assets/development/sprockets/cc70a8a06744e45cd5d774b3f5760aea
134
+ - test/dummy/tmp/cache/assets/development/sprockets/d125916fa47fe25c811ff41c3e47b1dc
135
+ - test/dummy/tmp/cache/assets/development/sprockets/e2c4bbeb230c9445cd39fac60f905174
136
+ - test/dummy/tmp/cache/assets/development/sprockets/f6db94d89ef810b760500ac4d6d7f631
137
+ - test/dummy/tmp/cache/assets/development/sprockets/f8160f91b680b2f94df78cefd5abc06e
138
+ - test/dummy/tmp/cache/assets/development/sprockets/fdcd9c4f2824a62f9858c5b88e2f8185
139
+ - test/dummy/tmp/pids/server.pid
140
+ - test/test_helper.rb
141
+ homepage: https://github.com/tonytonyjan/admin_scaffold
142
+ licenses:
143
+ - MIT
144
+ metadata: {}
145
+ post_install_message:
146
+ rdoc_options: []
147
+ require_paths:
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ requirements: []
160
+ rubyforge_project:
161
+ rubygems_version: 2.4.5
162
+ signing_key:
163
+ specification_version: 4
164
+ summary: admin scaffold
165
+ test_files:
166
+ - test/admin_scaffold_test.rb
167
+ - test/dummy/app/assets/javascripts/admin/books.js
168
+ - test/dummy/app/assets/javascripts/admin.js
169
+ - test/dummy/app/assets/javascripts/application.js
170
+ - test/dummy/app/assets/stylesheets/admin/books.css
171
+ - test/dummy/app/assets/stylesheets/admin.css
172
+ - test/dummy/app/assets/stylesheets/application.css
173
+ - test/dummy/app/assets/stylesheets/scaffold.css
174
+ - test/dummy/app/controllers/admin/books_controller.rb
175
+ - test/dummy/app/controllers/admin_controller.rb
176
+ - test/dummy/app/controllers/application_controller.rb
177
+ - test/dummy/app/helpers/admin/books_helper.rb
178
+ - test/dummy/app/helpers/application_helper.rb
179
+ - test/dummy/app/models/admin/book.rb
180
+ - test/dummy/app/models/book.rb
181
+ - test/dummy/app/views/admin/books/_form.html.erb
182
+ - test/dummy/app/views/admin/books/edit.html.erb
183
+ - test/dummy/app/views/admin/books/index.html.erb
184
+ - test/dummy/app/views/admin/books/new.html.erb
185
+ - test/dummy/app/views/admin/books/show.html.erb
186
+ - test/dummy/app/views/layouts/admin.html.erb
187
+ - test/dummy/app/views/layouts/application.html.erb
188
+ - test/dummy/bin/bundle
189
+ - test/dummy/bin/rails
190
+ - test/dummy/bin/rake
191
+ - test/dummy/bin/setup
192
+ - test/dummy/config/application.rb
193
+ - test/dummy/config/boot.rb
194
+ - test/dummy/config/database.yml
195
+ - test/dummy/config/environment.rb
196
+ - test/dummy/config/environments/development.rb
197
+ - test/dummy/config/environments/production.rb
198
+ - test/dummy/config/environments/test.rb
199
+ - test/dummy/config/initializers/assets.rb
200
+ - test/dummy/config/initializers/backtrace_silencers.rb
201
+ - test/dummy/config/initializers/cookies_serializer.rb
202
+ - test/dummy/config/initializers/filter_parameter_logging.rb
203
+ - test/dummy/config/initializers/inflections.rb
204
+ - test/dummy/config/initializers/mime_types.rb
205
+ - test/dummy/config/initializers/session_store.rb
206
+ - test/dummy/config/initializers/wrap_parameters.rb
207
+ - test/dummy/config/locales/en.yml
208
+ - test/dummy/config/routes.rb
209
+ - test/dummy/config/secrets.yml
210
+ - test/dummy/config.ru
211
+ - test/dummy/db/migrate/20150205063647_create_books.rb
212
+ - test/dummy/db/schema.rb
213
+ - test/dummy/log/development.log
214
+ - test/dummy/log/test.log
215
+ - test/dummy/public/404.html
216
+ - test/dummy/public/422.html
217
+ - test/dummy/public/500.html
218
+ - test/dummy/public/favicon.ico
219
+ - test/dummy/Rakefile
220
+ - test/dummy/README.rdoc
221
+ - test/dummy/test/fixtures/books.yml
222
+ - test/dummy/test/models/book_test.rb
223
+ - test/dummy/tmp/cache/assets/development/sprockets/01abf17de4892ee0547ad83c30695a01
224
+ - test/dummy/tmp/cache/assets/development/sprockets/0e2a64fc0b20a44edef0e893fe02bb8b
225
+ - test/dummy/tmp/cache/assets/development/sprockets/27184889e78dc5a556f3c7567afbef63
226
+ - test/dummy/tmp/cache/assets/development/sprockets/28d0ee5d51a1686dbfab844d57224241
227
+ - test/dummy/tmp/cache/assets/development/sprockets/3b33c918bc770b5c08f9a754758bc4e6
228
+ - test/dummy/tmp/cache/assets/development/sprockets/5953ddd4e0ec1b5b73fbed29804c11b3
229
+ - test/dummy/tmp/cache/assets/development/sprockets/5d4bd56a9d4de4d2e6d0cfb68c8af8e8
230
+ - test/dummy/tmp/cache/assets/development/sprockets/6609ee9da4eaea9b8d8137fbcfce6fdd
231
+ - test/dummy/tmp/cache/assets/development/sprockets/6f2cc8e9b9b8a6b61af4dd957ad61f3e
232
+ - test/dummy/tmp/cache/assets/development/sprockets/7aa90d1a0cd25a99c81ace73df870a64
233
+ - test/dummy/tmp/cache/assets/development/sprockets/7cc8464f262e75d9f3d931e2616dd878
234
+ - test/dummy/tmp/cache/assets/development/sprockets/86bf772f4327364a1dad3a4b3051c844
235
+ - test/dummy/tmp/cache/assets/development/sprockets/9085b07723908dd6995971c4f3c933ad
236
+ - test/dummy/tmp/cache/assets/development/sprockets/97a02c0a737b9c49960349900e5474c3
237
+ - test/dummy/tmp/cache/assets/development/sprockets/b660bba6001bad109fa661da993b1414
238
+ - test/dummy/tmp/cache/assets/development/sprockets/cc70a8a06744e45cd5d774b3f5760aea
239
+ - test/dummy/tmp/cache/assets/development/sprockets/d125916fa47fe25c811ff41c3e47b1dc
240
+ - test/dummy/tmp/cache/assets/development/sprockets/e2c4bbeb230c9445cd39fac60f905174
241
+ - test/dummy/tmp/cache/assets/development/sprockets/f6db94d89ef810b760500ac4d6d7f631
242
+ - test/dummy/tmp/cache/assets/development/sprockets/f8160f91b680b2f94df78cefd5abc06e
243
+ - test/dummy/tmp/cache/assets/development/sprockets/fdcd9c4f2824a62f9858c5b88e2f8185
244
+ - test/dummy/tmp/pids/server.pid
245
+ - test/test_helper.rb