adminpanel 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -3
  3. data/Gemfile +7 -7
  4. data/Rakefile +20 -4
  5. data/adminpanel.gemspec +7 -7
  6. data/app/controllers/adminpanel/categories_controller.rb +1 -5
  7. data/app/controllers/adminpanel/galleries_controller.rb +13 -18
  8. data/app/controllers/concerns/adminpanel/facebook_actions.rb +26 -18
  9. data/app/controllers/concerns/adminpanel/rest_actions.rb +8 -3
  10. data/app/helpers/adminpanel/router_helper.rb +4 -0
  11. data/app/models/adminpanel/section.rb +4 -4
  12. data/app/views/adminpanel/sessions/new.html.erb +1 -1
  13. data/app/views/layouts/_top_bar.html.erb +24 -2
  14. data/app/views/layouts/admin-login.html.erb +1 -2
  15. data/app/views/shared/fb_choose_page.html.erb +3 -3
  16. data/app/views/shared/new.html.erb +24 -23
  17. data/config/locales/es.yml +8 -3
  18. data/config/routes.rb +8 -3
  19. data/lib/adminpanel/version.rb +1 -1
  20. data/lib/generators/adminpanel/gallery/templates/gallery_migration.rb +1 -1
  21. data/lib/generators/adminpanel/resource/resource_generator.rb +2 -2
  22. data/{spec → test}/dummy/.gitignore +0 -1
  23. data/{spec → test}/dummy/README.rdoc +0 -0
  24. data/{spec → test}/dummy/Rakefile +0 -0
  25. data/{spec → test}/dummy/app/assets/images/hipster.jpg +0 -0
  26. data/{spec → test}/dummy/app/assets/images/test.jpg +0 -0
  27. data/{spec → test}/dummy/app/assets/javascripts/application.js +0 -0
  28. data/{spec → test}/dummy/app/assets/stylesheets/application.css +0 -0
  29. data/{spec → test}/dummy/app/controllers/adminpanel/.gitkeep +0 -0
  30. data/{spec → test}/dummy/app/controllers/adminpanel/mugs_controller.rb +0 -0
  31. data/{spec → test}/dummy/app/controllers/adminpanel/products_controller.rb +0 -0
  32. data/{spec → test}/dummy/app/controllers/adminpanel/salesmen_controller.rb +0 -0
  33. data/{spec → test}/dummy/app/controllers/application_controller.rb +0 -0
  34. data/{spec → test}/dummy/app/helpers/application_helper.rb +0 -0
  35. data/{spec → test}/dummy/app/mailers/.gitkeep +0 -0
  36. data/{spec → test}/dummy/app/models/.gitkeep +0 -0
  37. data/{spec → test}/dummy/app/models/ability.rb +0 -0
  38. data/{spec → test}/dummy/app/models/adminpanel/categorization.rb +0 -0
  39. data/{spec → test}/dummy/app/models/adminpanel/category.rb +0 -0
  40. data/{spec → test}/dummy/app/models/adminpanel/mug.rb +0 -0
  41. data/{spec → test}/dummy/app/models/adminpanel/photo.rb +0 -0
  42. data/{spec → test}/dummy/app/models/adminpanel/product.rb +0 -0
  43. data/{spec → test}/dummy/app/models/adminpanel/salesman.rb +0 -0
  44. data/{spec → test}/dummy/app/uploader/adminpanel/photo_uploader.rb +0 -0
  45. data/{spec → test}/dummy/app/uploader/adminpanel/section_uploader.rb +0 -0
  46. data/{spec → test}/dummy/app/views/layouts/application.html.erb +0 -0
  47. data/{spec → test}/dummy/config.ru +0 -0
  48. data/{spec → test}/dummy/config/application.rb +0 -0
  49. data/{spec → test}/dummy/config/boot.rb +0 -0
  50. data/{spec/dummy/config/carrierwve.rb → test/dummy/config/carrierwave.rb} +1 -1
  51. data/{spec → test}/dummy/config/database.yml +0 -0
  52. data/{spec → test}/dummy/config/environment.rb +0 -0
  53. data/{spec → test}/dummy/config/environments/development.rb +0 -0
  54. data/{spec → test}/dummy/config/environments/production.rb +0 -0
  55. data/{spec → test}/dummy/config/environments/test.rb +2 -2
  56. data/{spec → test}/dummy/config/initializers/adminpanel_setup.rb +0 -0
  57. data/{spec → test}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  58. data/{spec → test}/dummy/config/initializers/mime_types.rb +0 -0
  59. data/{spec → test}/dummy/config/initializers/session_store.rb +0 -0
  60. data/{spec → test}/dummy/config/initializers/wrap_parameters.rb +0 -0
  61. data/{spec → test}/dummy/config/locales/.keep +0 -0
  62. data/{spec → test}/dummy/config/routes.rb +0 -0
  63. data/test/dummy/config/secrets.yml +2 -0
  64. data/{spec → test}/dummy/db/schema.rb +0 -0
  65. data/{spec → test}/dummy/lib/assets/.gitkeep +0 -0
  66. data/{spec → test}/dummy/public/404.html +0 -0
  67. data/{spec → test}/dummy/public/422.html +0 -0
  68. data/{spec → test}/dummy/public/500.html +0 -0
  69. data/{spec → test}/dummy/public/favicon.ico +0 -0
  70. data/{spec → test}/dummy/script/rails +0 -0
  71. data/test/dummy/test/fixtures/adminpanel/galleries.yml +15 -0
  72. data/test/dummy/test/fixtures/adminpanel/groups.yml +4 -0
  73. data/test/dummy/test/fixtures/adminpanel/users.yml +8 -0
  74. data/test/features/session/login_test.rb +33 -0
  75. data/test/features/shared/new_test.rb +39 -0
  76. data/test/models/adminpanel/gallery_test.rb +37 -0
  77. data/test/models/adminpanel/section_test.rb +53 -0
  78. data/test/models/adminpanel/user_test.rb +51 -0
  79. data/test/test_helper.rb +71 -0
  80. data/test/unit/gallery_unit_test.rb +21 -0
  81. metadata +212 -246
  82. data/spec/features/authentication_pages_spec.rb +0 -45
  83. data/spec/models/gallery_spec.rb +0 -24
  84. data/spec/models/section_spec.rb +0 -61
  85. data/spec/models/user_spec.rb +0 -94
@@ -0,0 +1,21 @@
1
+ require 'test_helper'
2
+
3
+ class GalleryUnitTest < Minitest::Test
4
+ def test_gallery_position
5
+ #load fixtures
6
+ skip
7
+ Adminpanel::Gallery.delete_all
8
+ Adminpanel::Gallery.new.save(validate: false)
9
+ Adminpanel::Gallery.new.save(validate: false)
10
+ Adminpanel::Gallery.new.save(validate: false)
11
+
12
+ first_gallery = Adminpanel::Gallery.first
13
+ second_gallery = Adminpanel::Gallery.second
14
+ third_gallery = Adminpanel::Gallery.third
15
+
16
+ second_gallery.move_to_better_position
17
+ assert_equal 1, second_gallery.position
18
+ assert_equal 2, first_gallery.position
19
+ assert_equal 3, third_gallery.position
20
+ end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adminpanel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Ramon Camacho
@@ -9,46 +9,46 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-31 00:00:00.000000000 Z
12
+ date: 2014-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: 4.0.0
21
- - - "<="
21
+ - - <=
22
22
  - !ruby/object:Gem::Version
23
23
  version: 4.1.1
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ">="
28
+ - - '>='
29
29
  - !ruby/object:Gem::Version
30
30
  version: 4.0.0
31
- - - "<="
31
+ - - <=
32
32
  - !ruby/object:Gem::Version
33
33
  version: 4.1.1
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: carrierwave
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.10.0
41
- - - "<="
41
+ - - <=
42
42
  - !ruby/object:Gem::Version
43
43
  version: 1.0.0
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ">="
48
+ - - '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: 0.10.0
51
- - - "<="
51
+ - - <=
52
52
  - !ruby/object:Gem::Version
53
53
  version: 1.0.0
54
54
  - !ruby/object:Gem::Dependency
@@ -69,364 +69,326 @@ dependencies:
69
69
  name: jquery-rails
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: 3.1.0
75
- - - "<="
75
+ - - <=
76
76
  - !ruby/object:Gem::Version
77
77
  version: 4.0.0
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - '>='
83
83
  - !ruby/object:Gem::Version
84
84
  version: 3.1.0
85
- - - "<="
85
+ - - <=
86
86
  - !ruby/object:Gem::Version
87
87
  version: 4.0.0
88
88
  - !ruby/object:Gem::Dependency
89
89
  name: turbolinks
90
90
  requirement: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ">="
92
+ - - '>='
93
93
  - !ruby/object:Gem::Version
94
94
  version: 2.2.2
95
- - - "<="
95
+ - - <=
96
96
  - !ruby/object:Gem::Version
97
97
  version: 3.0.0
98
98
  type: :runtime
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ">="
102
+ - - '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: 2.2.2
105
- - - "<="
105
+ - - <=
106
106
  - !ruby/object:Gem::Version
107
107
  version: 3.0.0
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: bcrypt
110
110
  requirement: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - ">="
112
+ - - '>='
113
113
  - !ruby/object:Gem::Version
114
114
  version: 3.1.7
115
- - - "<="
115
+ - - <=
116
116
  - !ruby/object:Gem::Version
117
117
  version: 4.0.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 3.1.7
125
- - - "<="
125
+ - - <=
126
126
  - !ruby/object:Gem::Version
127
127
  version: 4.0.0
128
128
  - !ruby/object:Gem::Dependency
129
129
  name: rails-i18n
130
130
  requirement: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - ">="
132
+ - - '>='
133
133
  - !ruby/object:Gem::Version
134
134
  version: 4.0.2
135
- - - "<="
135
+ - - <=
136
136
  - !ruby/object:Gem::Version
137
137
  version: 4.1.0
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ">="
142
+ - - '>='
143
143
  - !ruby/object:Gem::Version
144
144
  version: 4.0.2
145
- - - "<="
145
+ - - <=
146
146
  - !ruby/object:Gem::Version
147
147
  version: 4.1.0
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: inherited_resources
150
150
  requirement: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ">="
152
+ - - '>='
153
153
  - !ruby/object:Gem::Version
154
154
  version: 1.4.1
155
- - - "<="
155
+ - - <=
156
156
  - !ruby/object:Gem::Version
157
157
  version: 2.0.0
158
158
  type: :runtime
159
159
  prerelease: false
160
160
  version_requirements: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - ">="
162
+ - - '>='
163
163
  - !ruby/object:Gem::Version
164
164
  version: 1.4.1
165
- - - "<="
165
+ - - <=
166
166
  - !ruby/object:Gem::Version
167
167
  version: 2.0.0
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: cancancan
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - ">="
172
+ - - '>='
173
173
  - !ruby/object:Gem::Version
174
174
  version: '1.7'
175
- - - "<="
175
+ - - <=
176
176
  - !ruby/object:Gem::Version
177
177
  version: 2.0.0
178
178
  type: :runtime
179
179
  prerelease: false
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
- - - ">="
182
+ - - '>='
183
183
  - !ruby/object:Gem::Version
184
184
  version: '1.7'
185
- - - "<="
185
+ - - <=
186
186
  - !ruby/object:Gem::Version
187
187
  version: 2.0.0
188
188
  - !ruby/object:Gem::Dependency
189
189
  name: google-api-client
190
190
  requirement: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ">="
192
+ - - '>='
193
193
  - !ruby/object:Gem::Version
194
194
  version: 0.7.1
195
- - - "<="
195
+ - - <=
196
196
  - !ruby/object:Gem::Version
197
197
  version: 1.0.0
198
198
  type: :runtime
199
199
  prerelease: false
200
200
  version_requirements: !ruby/object:Gem::Requirement
201
201
  requirements:
202
- - - ">="
202
+ - - '>='
203
203
  - !ruby/object:Gem::Version
204
204
  version: 0.7.1
205
- - - "<="
205
+ - - <=
206
206
  - !ruby/object:Gem::Version
207
207
  version: 1.0.0
208
208
  - !ruby/object:Gem::Dependency
209
209
  name: faker
210
210
  requirement: !ruby/object:Gem::Requirement
211
211
  requirements:
212
- - - ">="
212
+ - - '>='
213
213
  - !ruby/object:Gem::Version
214
214
  version: 1.3.0
215
- - - "<="
215
+ - - <=
216
216
  - !ruby/object:Gem::Version
217
217
  version: 2.0.0
218
218
  type: :runtime
219
219
  prerelease: false
220
220
  version_requirements: !ruby/object:Gem::Requirement
221
221
  requirements:
222
- - - ">="
222
+ - - '>='
223
223
  - !ruby/object:Gem::Version
224
224
  version: 1.3.0
225
- - - "<="
225
+ - - <=
226
226
  - !ruby/object:Gem::Version
227
227
  version: 2.0.0
228
228
  - !ruby/object:Gem::Dependency
229
229
  name: sass-rails
230
230
  requirement: !ruby/object:Gem::Requirement
231
231
  requirements:
232
- - - ">="
232
+ - - '>='
233
233
  - !ruby/object:Gem::Version
234
234
  version: 4.0.3
235
- - - "<="
235
+ - - <=
236
236
  - !ruby/object:Gem::Version
237
237
  version: 4.1.0
238
238
  type: :runtime
239
239
  prerelease: false
240
240
  version_requirements: !ruby/object:Gem::Requirement
241
241
  requirements:
242
- - - ">="
242
+ - - '>='
243
243
  - !ruby/object:Gem::Version
244
244
  version: 4.0.3
245
- - - "<="
245
+ - - <=
246
246
  - !ruby/object:Gem::Version
247
247
  version: 4.1.0
248
248
  - !ruby/object:Gem::Dependency
249
249
  name: font-awesome-rails
250
250
  requirement: !ruby/object:Gem::Requirement
251
251
  requirements:
252
- - - ">="
252
+ - - '>='
253
253
  - !ruby/object:Gem::Version
254
254
  version: 4.0.3.1
255
- - - "<="
255
+ - - <=
256
256
  - !ruby/object:Gem::Version
257
257
  version: 4.1.0
258
258
  type: :runtime
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - ">="
262
+ - - '>='
263
263
  - !ruby/object:Gem::Version
264
264
  version: 4.0.3.1
265
- - - "<="
265
+ - - <=
266
266
  - !ruby/object:Gem::Version
267
267
  version: 4.1.0
268
268
  - !ruby/object:Gem::Dependency
269
269
  name: koala
270
270
  requirement: !ruby/object:Gem::Requirement
271
271
  requirements:
272
- - - ">="
272
+ - - '>='
273
273
  - !ruby/object:Gem::Version
274
274
  version: 1.9.0
275
- - - "<="
275
+ - - <=
276
276
  - !ruby/object:Gem::Version
277
277
  version: 2.0.0
278
278
  type: :runtime
279
279
  prerelease: false
280
280
  version_requirements: !ruby/object:Gem::Requirement
281
281
  requirements:
282
- - - ">="
282
+ - - '>='
283
283
  - !ruby/object:Gem::Version
284
284
  version: 1.9.0
285
- - - "<="
285
+ - - <=
286
286
  - !ruby/object:Gem::Version
287
287
  version: 2.0.0
288
288
  - !ruby/object:Gem::Dependency
289
289
  name: sqlite3
290
290
  requirement: !ruby/object:Gem::Requirement
291
291
  requirements:
292
- - - ">="
292
+ - - '>='
293
293
  - !ruby/object:Gem::Version
294
294
  version: 1.3.9
295
- - - "<="
295
+ - - <=
296
296
  - !ruby/object:Gem::Version
297
297
  version: 2.0.0
298
298
  type: :development
299
299
  prerelease: false
300
300
  version_requirements: !ruby/object:Gem::Requirement
301
301
  requirements:
302
- - - ">="
302
+ - - '>='
303
303
  - !ruby/object:Gem::Version
304
304
  version: 1.3.9
305
- - - "<="
305
+ - - <=
306
306
  - !ruby/object:Gem::Version
307
307
  version: 2.0.0
308
308
  - !ruby/object:Gem::Dependency
309
- name: factory_girl_rails
309
+ name: minitest
310
310
  requirement: !ruby/object:Gem::Requirement
311
311
  requirements:
312
- - - ">="
312
+ - - '>='
313
313
  - !ruby/object:Gem::Version
314
- version: 4.4.1
315
- - - "<="
316
- - !ruby/object:Gem::Version
317
- version: 5.0.0
318
- type: :development
314
+ version: '0'
315
+ type: :runtime
319
316
  prerelease: false
320
317
  version_requirements: !ruby/object:Gem::Requirement
321
318
  requirements:
322
- - - ">="
319
+ - - '>='
323
320
  - !ruby/object:Gem::Version
324
- version: 4.4.1
325
- - - "<="
326
- - !ruby/object:Gem::Version
327
- version: 5.0.0
321
+ version: '0'
328
322
  - !ruby/object:Gem::Dependency
329
- name: rspec
323
+ name: minitest-emoji
330
324
  requirement: !ruby/object:Gem::Requirement
331
325
  requirements:
332
- - - ">="
333
- - !ruby/object:Gem::Version
334
- version: 2.14.1
335
- - - "<="
326
+ - - '>='
336
327
  - !ruby/object:Gem::Version
337
- version: 3.0.0
328
+ version: '0'
338
329
  type: :development
339
330
  prerelease: false
340
331
  version_requirements: !ruby/object:Gem::Requirement
341
332
  requirements:
342
- - - ">="
343
- - !ruby/object:Gem::Version
344
- version: 2.14.1
345
- - - "<="
333
+ - - '>='
346
334
  - !ruby/object:Gem::Version
347
- version: 3.0.0
335
+ version: '0'
348
336
  - !ruby/object:Gem::Dependency
349
- name: rspec-rails
337
+ name: minitest-capybara
350
338
  requirement: !ruby/object:Gem::Requirement
351
339
  requirements:
352
- - - ">="
353
- - !ruby/object:Gem::Version
354
- version: 2.14.1
355
- - - "<="
340
+ - - '>='
356
341
  - !ruby/object:Gem::Version
357
- version: 3.0.0
342
+ version: '0'
358
343
  type: :development
359
344
  prerelease: false
360
345
  version_requirements: !ruby/object:Gem::Requirement
361
346
  requirements:
362
- - - ">="
363
- - !ruby/object:Gem::Version
364
- version: 2.14.1
365
- - - "<="
347
+ - - '>='
366
348
  - !ruby/object:Gem::Version
367
- version: 3.0.0
349
+ version: '0'
368
350
  - !ruby/object:Gem::Dependency
369
- name: capybara
351
+ name: mocha
370
352
  requirement: !ruby/object:Gem::Requirement
371
353
  requirements:
372
- - - ">="
373
- - !ruby/object:Gem::Version
374
- version: 2.1.0
375
- - - "<="
354
+ - - '>='
376
355
  - !ruby/object:Gem::Version
377
- version: 3.0.0
356
+ version: '0'
378
357
  type: :development
379
358
  prerelease: false
380
359
  version_requirements: !ruby/object:Gem::Requirement
381
360
  requirements:
382
- - - ">="
383
- - !ruby/object:Gem::Version
384
- version: 2.1.0
385
- - - "<="
361
+ - - '>='
386
362
  - !ruby/object:Gem::Version
387
- version: 3.0.0
363
+ version: '0'
388
364
  - !ruby/object:Gem::Dependency
389
- name: ammeter
365
+ name: minitest-metadata
390
366
  requirement: !ruby/object:Gem::Requirement
391
367
  requirements:
392
- - - '='
368
+ - - '>='
393
369
  - !ruby/object:Gem::Version
394
- version: 1.0.0
395
- type: :development
396
- prerelease: false
397
- version_requirements: !ruby/object:Gem::Requirement
398
- requirements:
399
- - - '='
400
- - !ruby/object:Gem::Version
401
- version: 1.0.0
402
- - !ruby/object:Gem::Dependency
403
- name: selenium-webdriver
404
- requirement: !ruby/object:Gem::Requirement
405
- requirements:
406
- - - '='
407
- - !ruby/object:Gem::Version
408
- version: 2.42.0
370
+ version: '0'
409
371
  type: :development
410
372
  prerelease: false
411
373
  version_requirements: !ruby/object:Gem::Requirement
412
374
  requirements:
413
- - - '='
375
+ - - '>='
414
376
  - !ruby/object:Gem::Version
415
- version: 2.42.0
377
+ version: '0'
416
378
  - !ruby/object:Gem::Dependency
417
- name: capybara-webkit
379
+ name: poltergeist
418
380
  requirement: !ruby/object:Gem::Requirement
419
381
  requirements:
420
- - - '='
382
+ - - '>='
421
383
  - !ruby/object:Gem::Version
422
- version: 1.1.1
384
+ version: '0'
423
385
  type: :development
424
386
  prerelease: false
425
387
  version_requirements: !ruby/object:Gem::Requirement
426
388
  requirements:
427
- - - '='
389
+ - - '>='
428
390
  - !ruby/object:Gem::Version
429
- version: 1.1.1
391
+ version: '0'
430
392
  description: Gem that makes the administrative panel for a site a breeze!
431
393
  email:
432
394
  - joserracamacho@gmail.com
@@ -434,9 +396,9 @@ executables: []
434
396
  extensions: []
435
397
  extra_rdoc_files: []
436
398
  files:
437
- - ".gitignore"
438
- - ".rspec"
439
- - ".travis.yml"
399
+ - .gitignore
400
+ - .rspec
401
+ - .travis.yml
440
402
  - Gemfile
441
403
  - LICENSE.txt
442
404
  - README.md
@@ -608,60 +570,6 @@ files:
608
570
  - lib/generators/adminpanel/resource/templates/controller.rb
609
571
  - lib/generators/adminpanel/resource/templates/resource.rb
610
572
  - lib/tasks/adminpanel/adminpanel.rake
611
- - spec/dummy/.gitignore
612
- - spec/dummy/README.rdoc
613
- - spec/dummy/Rakefile
614
- - spec/dummy/app/assets/images/hipster.jpg
615
- - spec/dummy/app/assets/images/test.jpg
616
- - spec/dummy/app/assets/javascripts/application.js
617
- - spec/dummy/app/assets/stylesheets/application.css
618
- - spec/dummy/app/controllers/adminpanel/.gitkeep
619
- - spec/dummy/app/controllers/adminpanel/mugs_controller.rb
620
- - spec/dummy/app/controllers/adminpanel/products_controller.rb
621
- - spec/dummy/app/controllers/adminpanel/salesmen_controller.rb
622
- - spec/dummy/app/controllers/application_controller.rb
623
- - spec/dummy/app/helpers/application_helper.rb
624
- - spec/dummy/app/mailers/.gitkeep
625
- - spec/dummy/app/models/.gitkeep
626
- - spec/dummy/app/models/ability.rb
627
- - spec/dummy/app/models/adminpanel/categorization.rb
628
- - spec/dummy/app/models/adminpanel/category.rb
629
- - spec/dummy/app/models/adminpanel/mug.rb
630
- - spec/dummy/app/models/adminpanel/photo.rb
631
- - spec/dummy/app/models/adminpanel/product.rb
632
- - spec/dummy/app/models/adminpanel/salesman.rb
633
- - spec/dummy/app/uploader/adminpanel/photo_uploader.rb
634
- - spec/dummy/app/uploader/adminpanel/section_uploader.rb
635
- - spec/dummy/app/views/layouts/application.html.erb
636
- - spec/dummy/config.ru
637
- - spec/dummy/config/application.rb
638
- - spec/dummy/config/boot.rb
639
- - spec/dummy/config/carrierwve.rb
640
- - spec/dummy/config/database.yml
641
- - spec/dummy/config/environment.rb
642
- - spec/dummy/config/environments/development.rb
643
- - spec/dummy/config/environments/production.rb
644
- - spec/dummy/config/environments/test.rb
645
- - spec/dummy/config/initializers/adminpanel_setup.rb
646
- - spec/dummy/config/initializers/backtrace_silencers.rb
647
- - spec/dummy/config/initializers/mime_types.rb
648
- - spec/dummy/config/initializers/secret_token.rb
649
- - spec/dummy/config/initializers/session_store.rb
650
- - spec/dummy/config/initializers/wrap_parameters.rb
651
- - spec/dummy/config/locales/.keep
652
- - spec/dummy/config/routes.rb
653
- - spec/dummy/db/development.sqlite3
654
- - spec/dummy/db/schema.rb
655
- - spec/dummy/lib/assets/.gitkeep
656
- - spec/dummy/log/.gitkeep
657
- - spec/dummy/log/development.log
658
- - spec/dummy/log/test.log
659
- - spec/dummy/public/404.html
660
- - spec/dummy/public/422.html
661
- - spec/dummy/public/500.html
662
- - spec/dummy/public/favicon.ico
663
- - spec/dummy/script/rails
664
- - spec/features/authentication_pages_spec.rb
665
573
  - spec/features/galleries_pages_spec.rb
666
574
  - spec/features/section_pages_spec.rb
667
575
  - spec/features/shared_pages/edit_spec.rb
@@ -671,15 +579,71 @@ files:
671
579
  - spec/generators/gallery_generator_spec.rb
672
580
  - spec/generators/initialize_generator_spec.rb
673
581
  - spec/generators/resource_generator_spec.rb
674
- - spec/models/gallery_spec.rb
675
- - spec/models/section_spec.rb
676
- - spec/models/user_spec.rb
677
582
  - spec/spec_helper.rb
678
583
  - spec/support/capybara_matchers.rb
679
584
  - spec/support/factories.rb
680
585
  - spec/support/helper_methods.rb
681
586
  - spec/support/shared_connection.rb
682
587
  - spec/tasks/adminpanel_rake_spec.rb
588
+ - test/dummy/.gitignore
589
+ - test/dummy/README.rdoc
590
+ - test/dummy/Rakefile
591
+ - test/dummy/app/assets/images/hipster.jpg
592
+ - test/dummy/app/assets/images/test.jpg
593
+ - test/dummy/app/assets/javascripts/application.js
594
+ - test/dummy/app/assets/stylesheets/application.css
595
+ - test/dummy/app/controllers/adminpanel/.gitkeep
596
+ - test/dummy/app/controllers/adminpanel/mugs_controller.rb
597
+ - test/dummy/app/controllers/adminpanel/products_controller.rb
598
+ - test/dummy/app/controllers/adminpanel/salesmen_controller.rb
599
+ - test/dummy/app/controllers/application_controller.rb
600
+ - test/dummy/app/helpers/application_helper.rb
601
+ - test/dummy/app/mailers/.gitkeep
602
+ - test/dummy/app/models/.gitkeep
603
+ - test/dummy/app/models/ability.rb
604
+ - test/dummy/app/models/adminpanel/categorization.rb
605
+ - test/dummy/app/models/adminpanel/category.rb
606
+ - test/dummy/app/models/adminpanel/mug.rb
607
+ - test/dummy/app/models/adminpanel/photo.rb
608
+ - test/dummy/app/models/adminpanel/product.rb
609
+ - test/dummy/app/models/adminpanel/salesman.rb
610
+ - test/dummy/app/uploader/adminpanel/photo_uploader.rb
611
+ - test/dummy/app/uploader/adminpanel/section_uploader.rb
612
+ - test/dummy/app/views/layouts/application.html.erb
613
+ - test/dummy/config.ru
614
+ - test/dummy/config/application.rb
615
+ - test/dummy/config/boot.rb
616
+ - test/dummy/config/carrierwave.rb
617
+ - test/dummy/config/database.yml
618
+ - test/dummy/config/environment.rb
619
+ - test/dummy/config/environments/development.rb
620
+ - test/dummy/config/environments/production.rb
621
+ - test/dummy/config/environments/test.rb
622
+ - test/dummy/config/initializers/adminpanel_setup.rb
623
+ - test/dummy/config/initializers/backtrace_silencers.rb
624
+ - test/dummy/config/initializers/mime_types.rb
625
+ - test/dummy/config/initializers/session_store.rb
626
+ - test/dummy/config/initializers/wrap_parameters.rb
627
+ - test/dummy/config/locales/.keep
628
+ - test/dummy/config/routes.rb
629
+ - test/dummy/config/secrets.yml
630
+ - test/dummy/db/schema.rb
631
+ - test/dummy/lib/assets/.gitkeep
632
+ - test/dummy/public/404.html
633
+ - test/dummy/public/422.html
634
+ - test/dummy/public/500.html
635
+ - test/dummy/public/favicon.ico
636
+ - test/dummy/script/rails
637
+ - test/dummy/test/fixtures/adminpanel/galleries.yml
638
+ - test/dummy/test/fixtures/adminpanel/groups.yml
639
+ - test/dummy/test/fixtures/adminpanel/users.yml
640
+ - test/features/session/login_test.rb
641
+ - test/features/shared/new_test.rb
642
+ - test/models/adminpanel/gallery_test.rb
643
+ - test/models/adminpanel/section_test.rb
644
+ - test/models/adminpanel/user_test.rb
645
+ - test/test_helper.rb
646
+ - test/unit/gallery_unit_test.rb
683
647
  homepage: https://github.com/joseramonc/adminpanel
684
648
  licenses:
685
649
  - MIT
@@ -691,12 +655,12 @@ require_paths:
691
655
  - app/assets
692
656
  required_ruby_version: !ruby/object:Gem::Requirement
693
657
  requirements:
694
- - - ">="
658
+ - - '>='
695
659
  - !ruby/object:Gem::Version
696
660
  version: 2.0.0
697
661
  required_rubygems_version: !ruby/object:Gem::Requirement
698
662
  requirements:
699
- - - ">="
663
+ - - '>='
700
664
  - !ruby/object:Gem::Version
701
665
  version: '0'
702
666
  requirements: []
@@ -706,60 +670,6 @@ signing_key:
706
670
  specification_version: 4
707
671
  summary: Developed with <3 by CoDN
708
672
  test_files:
709
- - spec/dummy/.gitignore
710
- - spec/dummy/README.rdoc
711
- - spec/dummy/Rakefile
712
- - spec/dummy/app/assets/images/hipster.jpg
713
- - spec/dummy/app/assets/images/test.jpg
714
- - spec/dummy/app/assets/javascripts/application.js
715
- - spec/dummy/app/assets/stylesheets/application.css
716
- - spec/dummy/app/controllers/adminpanel/.gitkeep
717
- - spec/dummy/app/controllers/adminpanel/mugs_controller.rb
718
- - spec/dummy/app/controllers/adminpanel/products_controller.rb
719
- - spec/dummy/app/controllers/adminpanel/salesmen_controller.rb
720
- - spec/dummy/app/controllers/application_controller.rb
721
- - spec/dummy/app/helpers/application_helper.rb
722
- - spec/dummy/app/mailers/.gitkeep
723
- - spec/dummy/app/models/.gitkeep
724
- - spec/dummy/app/models/ability.rb
725
- - spec/dummy/app/models/adminpanel/categorization.rb
726
- - spec/dummy/app/models/adminpanel/category.rb
727
- - spec/dummy/app/models/adminpanel/mug.rb
728
- - spec/dummy/app/models/adminpanel/photo.rb
729
- - spec/dummy/app/models/adminpanel/product.rb
730
- - spec/dummy/app/models/adminpanel/salesman.rb
731
- - spec/dummy/app/uploader/adminpanel/photo_uploader.rb
732
- - spec/dummy/app/uploader/adminpanel/section_uploader.rb
733
- - spec/dummy/app/views/layouts/application.html.erb
734
- - spec/dummy/config.ru
735
- - spec/dummy/config/application.rb
736
- - spec/dummy/config/boot.rb
737
- - spec/dummy/config/carrierwve.rb
738
- - spec/dummy/config/database.yml
739
- - spec/dummy/config/environment.rb
740
- - spec/dummy/config/environments/development.rb
741
- - spec/dummy/config/environments/production.rb
742
- - spec/dummy/config/environments/test.rb
743
- - spec/dummy/config/initializers/adminpanel_setup.rb
744
- - spec/dummy/config/initializers/backtrace_silencers.rb
745
- - spec/dummy/config/initializers/mime_types.rb
746
- - spec/dummy/config/initializers/secret_token.rb
747
- - spec/dummy/config/initializers/session_store.rb
748
- - spec/dummy/config/initializers/wrap_parameters.rb
749
- - spec/dummy/config/locales/.keep
750
- - spec/dummy/config/routes.rb
751
- - spec/dummy/db/development.sqlite3
752
- - spec/dummy/db/schema.rb
753
- - spec/dummy/lib/assets/.gitkeep
754
- - spec/dummy/log/.gitkeep
755
- - spec/dummy/log/development.log
756
- - spec/dummy/log/test.log
757
- - spec/dummy/public/404.html
758
- - spec/dummy/public/422.html
759
- - spec/dummy/public/500.html
760
- - spec/dummy/public/favicon.ico
761
- - spec/dummy/script/rails
762
- - spec/features/authentication_pages_spec.rb
763
673
  - spec/features/galleries_pages_spec.rb
764
674
  - spec/features/section_pages_spec.rb
765
675
  - spec/features/shared_pages/edit_spec.rb
@@ -769,12 +679,68 @@ test_files:
769
679
  - spec/generators/gallery_generator_spec.rb
770
680
  - spec/generators/initialize_generator_spec.rb
771
681
  - spec/generators/resource_generator_spec.rb
772
- - spec/models/gallery_spec.rb
773
- - spec/models/section_spec.rb
774
- - spec/models/user_spec.rb
775
682
  - spec/spec_helper.rb
776
683
  - spec/support/capybara_matchers.rb
777
684
  - spec/support/factories.rb
778
685
  - spec/support/helper_methods.rb
779
686
  - spec/support/shared_connection.rb
780
687
  - spec/tasks/adminpanel_rake_spec.rb
688
+ - test/dummy/.gitignore
689
+ - test/dummy/README.rdoc
690
+ - test/dummy/Rakefile
691
+ - test/dummy/app/assets/images/hipster.jpg
692
+ - test/dummy/app/assets/images/test.jpg
693
+ - test/dummy/app/assets/javascripts/application.js
694
+ - test/dummy/app/assets/stylesheets/application.css
695
+ - test/dummy/app/controllers/adminpanel/.gitkeep
696
+ - test/dummy/app/controllers/adminpanel/mugs_controller.rb
697
+ - test/dummy/app/controllers/adminpanel/products_controller.rb
698
+ - test/dummy/app/controllers/adminpanel/salesmen_controller.rb
699
+ - test/dummy/app/controllers/application_controller.rb
700
+ - test/dummy/app/helpers/application_helper.rb
701
+ - test/dummy/app/mailers/.gitkeep
702
+ - test/dummy/app/models/.gitkeep
703
+ - test/dummy/app/models/ability.rb
704
+ - test/dummy/app/models/adminpanel/categorization.rb
705
+ - test/dummy/app/models/adminpanel/category.rb
706
+ - test/dummy/app/models/adminpanel/mug.rb
707
+ - test/dummy/app/models/adminpanel/photo.rb
708
+ - test/dummy/app/models/adminpanel/product.rb
709
+ - test/dummy/app/models/adminpanel/salesman.rb
710
+ - test/dummy/app/uploader/adminpanel/photo_uploader.rb
711
+ - test/dummy/app/uploader/adminpanel/section_uploader.rb
712
+ - test/dummy/app/views/layouts/application.html.erb
713
+ - test/dummy/config.ru
714
+ - test/dummy/config/application.rb
715
+ - test/dummy/config/boot.rb
716
+ - test/dummy/config/carrierwave.rb
717
+ - test/dummy/config/database.yml
718
+ - test/dummy/config/environment.rb
719
+ - test/dummy/config/environments/development.rb
720
+ - test/dummy/config/environments/production.rb
721
+ - test/dummy/config/environments/test.rb
722
+ - test/dummy/config/initializers/adminpanel_setup.rb
723
+ - test/dummy/config/initializers/backtrace_silencers.rb
724
+ - test/dummy/config/initializers/mime_types.rb
725
+ - test/dummy/config/initializers/session_store.rb
726
+ - test/dummy/config/initializers/wrap_parameters.rb
727
+ - test/dummy/config/locales/.keep
728
+ - test/dummy/config/routes.rb
729
+ - test/dummy/config/secrets.yml
730
+ - test/dummy/db/schema.rb
731
+ - test/dummy/lib/assets/.gitkeep
732
+ - test/dummy/public/404.html
733
+ - test/dummy/public/422.html
734
+ - test/dummy/public/500.html
735
+ - test/dummy/public/favicon.ico
736
+ - test/dummy/script/rails
737
+ - test/dummy/test/fixtures/adminpanel/galleries.yml
738
+ - test/dummy/test/fixtures/adminpanel/groups.yml
739
+ - test/dummy/test/fixtures/adminpanel/users.yml
740
+ - test/features/session/login_test.rb
741
+ - test/features/shared/new_test.rb
742
+ - test/models/adminpanel/gallery_test.rb
743
+ - test/models/adminpanel/section_test.rb
744
+ - test/models/adminpanel/user_test.rb
745
+ - test/test_helper.rb
746
+ - test/unit/gallery_unit_test.rb