tb_banners 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +8 -8
  2. data/app/assets/javascripts/admin/banners/application.js +1 -0
  3. data/app/assets/stylesheets/admin/banners/application.css +4 -0
  4. data/app/controllers/{spud/admin → admin}/banner_sets_controller.rb +5 -5
  5. data/app/controllers/{spud/admin → admin}/banners_controller.rb +2 -2
  6. data/app/helpers/admin/banner_sets_helper.rb +2 -0
  7. data/app/helpers/admin/banners_helper.rb +2 -0
  8. data/app/views/admin/banner_sets/_banner_set.html.erb +8 -0
  9. data/app/views/admin/banner_sets/edit.html.erb +1 -0
  10. data/app/views/{spud/admin → admin}/banner_sets/index.html.erb +1 -1
  11. data/app/views/admin/banner_sets/new.html.erb +1 -0
  12. data/app/views/admin/banner_sets/show.html.erb +11 -0
  13. data/app/views/admin/banners/_banner.html.erb +7 -0
  14. data/app/views/admin/banners/edit.html.erb +1 -0
  15. data/app/views/{spud/admin → admin}/banners/legacy.js.erb +1 -1
  16. data/app/views/admin/banners/new.html.erb +1 -0
  17. data/config/routes.rb +7 -9
  18. data/lib/spud_banners/engine.rb +3 -3
  19. data/lib/spud_banners/version.rb +1 -1
  20. data/spec/controllers/{spud/admin → admin}/banner_sets_controller_spec.rb +2 -2
  21. data/spec/dummy/db/migrate/20130920154442_create_spud_roles.tb_core.rb +11 -0
  22. data/spec/dummy/db/migrate/20130920154443_create_spud_permissions.tb_core.rb +11 -0
  23. data/spec/dummy/db/migrate/20130920154444_create_spud_role_permissions.tb_core.rb +12 -0
  24. data/spec/dummy/db/migrate/20130920154445_drop_spud_admin_permissions.tb_core.rb +16 -0
  25. data/spec/dummy/db/migrate/20130920154446_create_spud_banners.tb_banners.rb +16 -0
  26. data/spec/dummy/db/migrate/20130920154447_create_spud_banner_sets.tb_banners.rb +13 -0
  27. data/spec/dummy/db/migrate/20130920154448_add_rich_text_to_spud_banners.tb_banners.rb +7 -0
  28. data/spec/dummy/db/schema.rb +36 -16
  29. data/spec/dummy/log/test.log +1001 -0
  30. data/spec/spec_helper.rb +1 -1
  31. metadata +56 -42
  32. data/app/assets/javascripts/spud/admin/banners/application.js +0 -2
  33. data/app/assets/stylesheets/spud/admin/banners/application.css +0 -4
  34. data/app/helpers/spud/admin/banner_sets_helper.rb +0 -2
  35. data/app/helpers/spud/admin/banners_helper.rb +0 -2
  36. data/app/views/spud/admin/banner_sets/_banner_set.html.erb +0 -8
  37. data/app/views/spud/admin/banner_sets/edit.html.erb +0 -1
  38. data/app/views/spud/admin/banner_sets/new.html.erb +0 -1
  39. data/app/views/spud/admin/banner_sets/show.html.erb +0 -11
  40. data/app/views/spud/admin/banners/_banner.html.erb +0 -7
  41. data/app/views/spud/admin/banners/edit.html.erb +0 -1
  42. data/app/views/spud/admin/banners/new.html.erb +0 -1
  43. /data/app/assets/images/{spud/admin → admin}/banners/banners.png +0 -0
  44. /data/app/assets/images/{spud/admin → admin}/banners/banners@2x.png +0 -0
  45. /data/app/assets/javascripts/{spud/admin → admin}/banners/banner_sets.js +0 -0
  46. /data/app/assets/javascripts/{spud/admin → admin}/banners/banners.js +0 -0
  47. /data/app/assets/stylesheets/{spud/admin → admin}/banners/banner_sets.css +0 -0
  48. /data/app/assets/stylesheets/{spud/admin → admin}/banners/banners.css +0 -0
  49. /data/app/views/{spud/admin → admin}/banner_sets/_form.html.erb +0 -0
  50. /data/app/views/{spud/admin → admin}/banner_sets/create.html.erb +0 -0
  51. /data/app/views/{spud/admin → admin}/banners/_form.html.erb +0 -0
  52. /data/app/views/{spud/admin → admin}/banners/show.html.erb +0 -0
data/spec/spec_helper.rb CHANGED
@@ -13,7 +13,7 @@ require 'rspec/autorun'
13
13
  require 'database_cleaner'
14
14
  require 'shoulda'
15
15
  require 'factory_girl'
16
- require 'mocha'
16
+ require 'mocha/setup'
17
17
 
18
18
  # Requires supporting ruby files with custom matchers and macros, etc,
19
19
  # in spec/support/ and its subdirectories.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_banners
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-20 00:00:00.000000000 Z
11
+ date: 2013-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.9
19
+ version: 3.2.14
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.9
26
+ version: 3.2.14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tb_core
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 2.8.0
89
+ version: 2.14.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 2.8.0
96
+ version: 2.14.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 2.8.1
103
+ version: 2.14.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 2.8.1
110
+ version: 2.14.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: shoulda
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -126,30 +126,30 @@ dependencies:
126
126
  name: factory_girl
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '='
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
- version: 2.5.0
131
+ version: '3.0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '='
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
- version: 2.5.0
138
+ version: '3.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: mocha
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 0.10.3
145
+ version: 0.13.3
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 0.10.3
152
+ version: 0.13.3
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: database_cleaner
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -185,35 +185,35 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
- - app/assets/images/spud/admin/banners/banners.png
189
- - app/assets/images/spud/admin/banners/banners@2x.png
190
- - app/assets/javascripts/spud/admin/banners/application.js
191
- - app/assets/javascripts/spud/admin/banners/banner_sets.js
192
- - app/assets/javascripts/spud/admin/banners/banners.js
193
- - app/assets/stylesheets/spud/admin/banners/application.css
194
- - app/assets/stylesheets/spud/admin/banners/banner_sets.css
195
- - app/assets/stylesheets/spud/admin/banners/banners.css
196
- - app/controllers/spud/admin/banner_sets_controller.rb
197
- - app/controllers/spud/admin/banners_controller.rb
198
- - app/helpers/spud/admin/banner_sets_helper.rb
199
- - app/helpers/spud/admin/banners_helper.rb
188
+ - app/assets/images/admin/banners/banners.png
189
+ - app/assets/images/admin/banners/banners@2x.png
190
+ - app/assets/javascripts/admin/banners/application.js
191
+ - app/assets/javascripts/admin/banners/banner_sets.js
192
+ - app/assets/javascripts/admin/banners/banners.js
193
+ - app/assets/stylesheets/admin/banners/application.css
194
+ - app/assets/stylesheets/admin/banners/banner_sets.css
195
+ - app/assets/stylesheets/admin/banners/banners.css
196
+ - app/controllers/admin/banner_sets_controller.rb
197
+ - app/controllers/admin/banners_controller.rb
198
+ - app/helpers/admin/banner_sets_helper.rb
199
+ - app/helpers/admin/banners_helper.rb
200
200
  - app/helpers/spud_banners_helper.rb
201
201
  - app/models/spud_banner.rb
202
202
  - app/models/spud_banner_set.rb
203
203
  - app/observers/spud_banner_sweeper.rb
204
- - app/views/spud/admin/banner_sets/_banner_set.html.erb
205
- - app/views/spud/admin/banner_sets/_form.html.erb
206
- - app/views/spud/admin/banner_sets/create.html.erb
207
- - app/views/spud/admin/banner_sets/edit.html.erb
208
- - app/views/spud/admin/banner_sets/index.html.erb
209
- - app/views/spud/admin/banner_sets/new.html.erb
210
- - app/views/spud/admin/banner_sets/show.html.erb
211
- - app/views/spud/admin/banners/_banner.html.erb
212
- - app/views/spud/admin/banners/_form.html.erb
213
- - app/views/spud/admin/banners/edit.html.erb
214
- - app/views/spud/admin/banners/legacy.js.erb
215
- - app/views/spud/admin/banners/new.html.erb
216
- - app/views/spud/admin/banners/show.html.erb
204
+ - app/views/admin/banner_sets/_banner_set.html.erb
205
+ - app/views/admin/banner_sets/_form.html.erb
206
+ - app/views/admin/banner_sets/create.html.erb
207
+ - app/views/admin/banner_sets/edit.html.erb
208
+ - app/views/admin/banner_sets/index.html.erb
209
+ - app/views/admin/banner_sets/new.html.erb
210
+ - app/views/admin/banner_sets/show.html.erb
211
+ - app/views/admin/banners/_banner.html.erb
212
+ - app/views/admin/banners/_form.html.erb
213
+ - app/views/admin/banners/edit.html.erb
214
+ - app/views/admin/banners/legacy.js.erb
215
+ - app/views/admin/banners/new.html.erb
216
+ - app/views/admin/banners/show.html.erb
217
217
  - config/routes.rb
218
218
  - db/migrate/20121116195139_create_spud_banners.rb
219
219
  - db/migrate/20121116195312_create_spud_banner_sets.rb
@@ -227,7 +227,7 @@ files:
227
227
  - MIT-LICENSE
228
228
  - Rakefile
229
229
  - README.markdown
230
- - spec/controllers/spud/admin/banner_sets_controller_spec.rb
230
+ - spec/controllers/admin/banner_sets_controller_spec.rb
231
231
  - spec/dummy/app/assets/javascripts/application.js
232
232
  - spec/dummy/app/assets/stylesheets/application.css
233
233
  - spec/dummy/app/controllers/application_controller.rb
@@ -254,6 +254,13 @@ files:
254
254
  - spec/dummy/db/migrate/20121127192248_add_time_zone_to_spud_user.spud_core.rb
255
255
  - spec/dummy/db/migrate/20121127192249_add_scope_to_spud_admin_permissions.spud_core.rb
256
256
  - spec/dummy/db/migrate/20121127192250_create_spud_user_settings.spud_core.rb
257
+ - spec/dummy/db/migrate/20130920154442_create_spud_roles.tb_core.rb
258
+ - spec/dummy/db/migrate/20130920154443_create_spud_permissions.tb_core.rb
259
+ - spec/dummy/db/migrate/20130920154444_create_spud_role_permissions.tb_core.rb
260
+ - spec/dummy/db/migrate/20130920154445_drop_spud_admin_permissions.tb_core.rb
261
+ - spec/dummy/db/migrate/20130920154446_create_spud_banners.tb_banners.rb
262
+ - spec/dummy/db/migrate/20130920154447_create_spud_banner_sets.tb_banners.rb
263
+ - spec/dummy/db/migrate/20130920154448_add_rich_text_to_spud_banners.tb_banners.rb
257
264
  - spec/dummy/db/schema.rb
258
265
  - spec/dummy/log/development.log
259
266
  - spec/dummy/log/test.log
@@ -285,12 +292,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
292
  version: '0'
286
293
  requirements: []
287
294
  rubyforge_project:
288
- rubygems_version: 2.0.3
295
+ rubygems_version: 2.0.7
289
296
  signing_key:
290
297
  specification_version: 4
291
298
  summary: Twice Baked Banners
292
299
  test_files:
293
- - spec/controllers/spud/admin/banner_sets_controller_spec.rb
300
+ - spec/controllers/admin/banner_sets_controller_spec.rb
294
301
  - spec/dummy/app/assets/javascripts/application.js
295
302
  - spec/dummy/app/assets/stylesheets/application.css
296
303
  - spec/dummy/app/controllers/application_controller.rb
@@ -317,6 +324,13 @@ test_files:
317
324
  - spec/dummy/db/migrate/20121127192248_add_time_zone_to_spud_user.spud_core.rb
318
325
  - spec/dummy/db/migrate/20121127192249_add_scope_to_spud_admin_permissions.spud_core.rb
319
326
  - spec/dummy/db/migrate/20121127192250_create_spud_user_settings.spud_core.rb
327
+ - spec/dummy/db/migrate/20130920154442_create_spud_roles.tb_core.rb
328
+ - spec/dummy/db/migrate/20130920154443_create_spud_permissions.tb_core.rb
329
+ - spec/dummy/db/migrate/20130920154444_create_spud_role_permissions.tb_core.rb
330
+ - spec/dummy/db/migrate/20130920154445_drop_spud_admin_permissions.tb_core.rb
331
+ - spec/dummy/db/migrate/20130920154446_create_spud_banners.tb_banners.rb
332
+ - spec/dummy/db/migrate/20130920154447_create_spud_banner_sets.tb_banners.rb
333
+ - spec/dummy/db/migrate/20130920154448_add_rich_text_to_spud_banners.tb_banners.rb
320
334
  - spec/dummy/db/schema.rb
321
335
  - spec/dummy/log/development.log
322
336
  - spec/dummy/log/test.log
@@ -1,2 +0,0 @@
1
- //= require spud/admin/banners/banners
2
- //= require spud/admin/banners/banner_sets
@@ -1,4 +0,0 @@
1
- /*
2
- *= require spud/admin/banners/banners
3
- *= require spud/admin/banners/banner_sets
4
- */
@@ -1,2 +0,0 @@
1
- module Spud::Admin::BannerSetsHelper
2
- end
@@ -1,2 +0,0 @@
1
- module Spud::Admin::BannersHelper
2
- end
@@ -1,8 +0,0 @@
1
- <%= content_tag :li, :class => 'spud_admin_banner_sets_list_item', 'data-id' => banner_set.id do %>
2
- <%= banner_set.name %>
3
- <span class="spud_admin_banner_sets_list_item_actions">
4
- <%= link_to 'Manage Banners', spud_admin_banner_set_path(banner_set), :class => 'btn btn-small' %>
5
- <%= link_to 'Edit Configuration', edit_spud_admin_banner_set_path(banner_set), :class => 'btn btn-small spud_banner_sets_edit' %>
6
- <%= link_to 'Delete', spud_admin_banner_set_path(banner_set), :class => 'btn btn-small btn-danger spud_banner_sets_delete' %>
7
- </span>
8
- <% end %>
@@ -1 +0,0 @@
1
- <%= render :partial => 'form', :locals => {:path => spud_admin_banner_set_path(@banner_set)} %>
@@ -1 +0,0 @@
1
- <%= render :partial => 'form', :locals => {:path => spud_admin_banner_sets_path} %>
@@ -1,11 +0,0 @@
1
- <% content_for :data_controls do %>
2
- <%= link_to 'Upload Banner', new_spud_admin_banner_set_banner_path(@banner_set), :class => 'btn btn-primary spud_banner_add_new' %>
3
- <% end %>
4
-
5
- <div class="spud_banner_set_banners_container">
6
- <%= render :partial => 'spud/admin/banners/banner', :collection => @banner_set.banners %>
7
- </div>
8
-
9
- <script>
10
- $(document).ready(spud.admin.banners.init);
11
- </script>
@@ -1,7 +0,0 @@
1
- <%= content_tag :div, 'data-id' => banner.id, :class => 'spud_banner_set_banner_item' do %>
2
- <%= image_tag banner.banner.url(:spud_admin_small) %>
3
- <div class="spud_banner_set_banner_item_actions">
4
- <%= link_to 'Edit', edit_spud_admin_banner_path(banner), :class => 'spud_banner_set_banner_item_edit' %>
5
- <%= link_to 'Delete', spud_admin_banner_path(banner), :class => 'spud_banner_set_banner_item_delete' %>
6
- </div>
7
- <% end %>
@@ -1 +0,0 @@
1
- <%= render :partial => 'form', :locals => {:path => spud_admin_banner_path(@banner)} %>
@@ -1 +0,0 @@
1
- <%= render :partial => 'form', :locals => {:path => spud_admin_banner_set_banners_path(@banner_set)} %>