push_type_admin 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/push_type/icons-assets.svg +94 -0
  3. data/app/assets/stylesheets/push_type/admin.scss +36 -13
  4. data/app/assets/stylesheets/push_type/foundation_and_overrides.scss +1 -1
  5. data/app/helpers/push_type/assets_helper.rb +1 -1
  6. data/app/helpers/push_type/nodes_helper.rb +4 -0
  7. data/app/views/layouts/push_type/admin.html.erb +1 -1
  8. data/app/views/layouts/push_type/email.html.erb +238 -0
  9. data/app/views/push_type/nodes/index.html.haml +8 -8
  10. data/app/views/push_type/nodes/trash.html.haml +1 -1
  11. data/lib/push_type/admin.rb +1 -0
  12. data/test/dummy/config/initializers/push_type.rb +4 -1
  13. data/test/dummy/config/secrets.yml +2 -2
  14. data/test/dummy/db/migrate/{20150222152455_create_push_type_users.push_type.rb → 20150310192202_create_push_type_users.push_type.rb} +0 -0
  15. data/test/dummy/db/migrate/{20150222152456_create_push_type_nodes.push_type.rb → 20150310192203_create_push_type_nodes.push_type.rb} +0 -0
  16. data/test/dummy/db/migrate/{20150222152457_create_push_type_node_hierarchies.push_type.rb → 20150310192204_create_push_type_node_hierarchies.push_type.rb} +0 -0
  17. data/test/dummy/db/migrate/{20150222152458_create_push_type_assets.push_type.rb → 20150310192205_create_push_type_assets.push_type.rb} +0 -0
  18. data/test/dummy/db/schema.rb +1 -1
  19. data/test/dummy/log/test.log +2980 -2980
  20. data/test/dummy/tmp/cache/assets/test/sass/0bf981301b6f8cfa0a13d38a3554eafaa08d4bc1/foundation.scssc +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/admin.scssc +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/admin_assets.scss.erbc +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/foundation_and_overrides.scssc +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/tagsinput.scssc +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_accordion.scssc +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_alert-boxes.scssc +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_block-grid.scssc +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_breadcrumbs.scssc +0 -0
  29. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_button-groups.scssc +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_buttons.scssc +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_clearing.scssc +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_dropdown-buttons.scssc +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_dropdown.scssc +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_flex-video.scssc +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_forms.scssc +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_global.scssc +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_grid.scssc +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_icon-bar.scssc +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_inline-lists.scssc +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_joyride.scssc +0 -0
  41. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_keystrokes.scssc +0 -0
  42. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_labels.scssc +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_magellan.scssc +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_offcanvas.scssc +0 -0
  45. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_orbit.scssc +0 -0
  46. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_pagination.scssc +0 -0
  47. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_panels.scssc +0 -0
  48. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_pricing-tables.scssc +0 -0
  49. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_progress-bars.scssc +0 -0
  50. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_range-slider.scssc +0 -0
  51. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_reveal.scssc +0 -0
  52. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_side-nav.scssc +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_split-buttons.scssc +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_sub-nav.scssc +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_switches.scssc +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tables.scssc +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tabs.scssc +0 -0
  58. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_thumbs.scssc +0 -0
  59. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tooltips.scssc +0 -0
  60. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_top-bar.scssc +0 -0
  61. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_type.scssc +0 -0
  62. data/test/dummy/tmp/cache/assets/test/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_visibility.scssc +0 -0
  63. data/test/dummy/tmp/cache/assets/test/sass/9ffd013d383870261f2263c294cb3119536e8d59/_functions.scssc +0 -0
  64. data/test/dummy/tmp/cache/assets/test/sass/d416499186bc6a8ba276a69cc9d9fffa030e66bc/foundation-icons.scssc +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/0e01ae9de0f3914c8317853aedd9ace4 +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/7879ec7699a19e017377e1b57702e3e5 +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/8d531fdb806de0724337e0b80e253914 +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/91e13d81afe9041372ad8f79ee9159f4 +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/a9b8decaa2942e8913458c9f35da2693 +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/aaf7959dea629271d23756ab876bc035 +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/c206fbd33f49ab785c6ddf4bcffd3b93 +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/df90022afc0d52f16bc498be20a5967d +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/edaf2543a96ee921c30a071b3a73036f +0 -0
  74. data/test/dummy/tmp/cache/assets/test/sprockets/edd24c59de6c00e4e68dbbdf2775984a +0 -0
  75. data/test/helpers/push_type/assets_helper_test.rb +4 -4
  76. metadata +28 -15
  77. data/app/assets/images/push_type/icon-file-audio.png +0 -0
  78. data/app/assets/images/push_type/icon-file-document.png +0 -0
  79. data/app/assets/images/push_type/icon-file-video.png +0 -0
@@ -36,19 +36,19 @@ module PushType
36
36
  describe '#asset_icon' do
37
37
  describe 'with image asset' do
38
38
  let(:asset) { FactoryGirl.create :image_asset }
39
- it { asset_icon(asset).must_equal 'push_type/icon-file-image.png'}
39
+ it { asset_icon(asset).must_equal 'push_type/icons-assets.svg#image'}
40
40
  end
41
41
  describe 'with audio asset' do
42
42
  let(:asset) { FactoryGirl.create :audio_asset }
43
- it { asset_icon(asset).must_equal 'push_type/icon-file-audio.png'}
43
+ it { asset_icon(asset).must_equal 'push_type/icons-assets.svg#audio'}
44
44
  end
45
45
  describe 'with video asset' do
46
46
  let(:asset) { FactoryGirl.create :video_asset }
47
- it { asset_icon(asset).must_equal 'push_type/icon-file-video.png'}
47
+ it { asset_icon(asset).must_equal 'push_type/icons-assets.svg#video'}
48
48
  end
49
49
  describe 'with document asset' do
50
50
  let(:asset) { FactoryGirl.create :document_asset }
51
- it { asset_icon(asset).must_equal 'push_type/icon-file-document.png'}
51
+ it { asset_icon(asset).must_equal 'push_type/icons-assets.svg#pdf'}
52
52
  end
53
53
  end
54
54
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: push_type_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Russell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: push_type_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.1
19
+ version: 0.3.3
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: 0.3.1
26
+ version: 0.3.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: haml-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.16.2
153
+ - !ruby/object:Gem::Dependency
154
+ name: premailer-rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.8.0
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.8.0
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: minitest-rails
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -201,9 +215,7 @@ extra_rdoc_files: []
201
215
  files:
202
216
  - LICENSE.md
203
217
  - README.md
204
- - app/assets/images/push_type/icon-file-audio.png
205
- - app/assets/images/push_type/icon-file-document.png
206
- - app/assets/images/push_type/icon-file-video.png
218
+ - app/assets/images/push_type/icons-assets.svg
207
219
  - app/assets/javascripts/push_type/admin.js.coffee
208
220
  - app/assets/javascripts/push_type/admin_assets.js.coffee.erb
209
221
  - app/assets/javascripts/push_type/assets.js.coffee
@@ -228,6 +240,7 @@ files:
228
240
  - app/views/kaminari/_paginator.html.haml
229
241
  - app/views/kaminari/_prev_page.html.haml
230
242
  - app/views/layouts/push_type/admin.html.erb
243
+ - app/views/layouts/push_type/email.html.erb
231
244
  - app/views/push_type/admin/info.html.haml
232
245
  - app/views/push_type/assets/_form.html.haml
233
246
  - app/views/push_type/assets/_form_submit.html.haml
@@ -297,10 +310,10 @@ files:
297
310
  - test/dummy/config/locales/en.yml
298
311
  - test/dummy/config/routes.rb
299
312
  - test/dummy/config/secrets.yml
300
- - test/dummy/db/migrate/20150222152455_create_push_type_users.push_type.rb
301
- - test/dummy/db/migrate/20150222152456_create_push_type_nodes.push_type.rb
302
- - test/dummy/db/migrate/20150222152457_create_push_type_node_hierarchies.push_type.rb
303
- - test/dummy/db/migrate/20150222152458_create_push_type_assets.push_type.rb
313
+ - test/dummy/db/migrate/20150310192202_create_push_type_users.push_type.rb
314
+ - test/dummy/db/migrate/20150310192203_create_push_type_nodes.push_type.rb
315
+ - test/dummy/db/migrate/20150310192204_create_push_type_node_hierarchies.push_type.rb
316
+ - test/dummy/db/migrate/20150310192205_create_push_type_assets.push_type.rb
304
317
  - test/dummy/db/schema.rb
305
318
  - test/dummy/db/seeds.rb
306
319
  - test/dummy/log/test.log
@@ -515,10 +528,10 @@ test_files:
515
528
  - test/dummy/config/routes.rb
516
529
  - test/dummy/config/secrets.yml
517
530
  - test/dummy/config.ru
518
- - test/dummy/db/migrate/20150222152455_create_push_type_users.push_type.rb
519
- - test/dummy/db/migrate/20150222152456_create_push_type_nodes.push_type.rb
520
- - test/dummy/db/migrate/20150222152457_create_push_type_node_hierarchies.push_type.rb
521
- - test/dummy/db/migrate/20150222152458_create_push_type_assets.push_type.rb
531
+ - test/dummy/db/migrate/20150310192202_create_push_type_users.push_type.rb
532
+ - test/dummy/db/migrate/20150310192203_create_push_type_nodes.push_type.rb
533
+ - test/dummy/db/migrate/20150310192204_create_push_type_node_hierarchies.push_type.rb
534
+ - test/dummy/db/migrate/20150310192205_create_push_type_assets.push_type.rb
522
535
  - test/dummy/db/schema.rb
523
536
  - test/dummy/db/seeds.rb
524
537
  - test/dummy/log/test.log