push_type_wysiwyg 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/push_type/froala_overrides/file_upload.js +1 -1
  3. data/app/assets/javascripts/push_type/froala_overrides/froala_editor.js +7 -32
  4. data/lib/push_type/wysiwyg.rb +2 -0
  5. data/lib/push_type/wysiwyg/engine.rb +5 -3
  6. data/test/controllers/push_type/wysiwyg_media_controller_test.rb +2 -2
  7. data/test/dummy/app/models/category.rb +2 -1
  8. data/test/dummy/app/models/page.rb +5 -4
  9. data/test/dummy/config/initializers/push_type.rb +21 -4
  10. data/test/dummy/config/secrets.yml +2 -2
  11. data/test/dummy/db/migrate/{20150816155521_create_push_type_users.push_type.rb → 20150824095220_create_push_type_users.push_type.rb} +0 -0
  12. data/test/dummy/db/migrate/{20150816155522_create_push_type_nodes.push_type.rb → 20150824095221_create_push_type_nodes.push_type.rb} +0 -0
  13. data/test/dummy/db/migrate/{20150816155523_create_push_type_node_hierarchies.push_type.rb → 20150824095222_create_push_type_node_hierarchies.push_type.rb} +0 -0
  14. data/test/dummy/db/migrate/{20150816155524_create_push_type_assets.push_type.rb → 20150824095223_create_push_type_assets.push_type.rb} +0 -0
  15. data/test/dummy/db/migrate/{20150816155525_create_push_type_taxonomies.push_type.rb → 20150824095224_create_push_type_taxonomies.push_type.rb} +0 -0
  16. data/test/dummy/db/migrate/{20150816155526_create_push_type_taxonomy_hierarchies.push_type.rb → 20150824095225_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
  17. data/test/dummy/db/migrate/{20150816155527_add_field_store_default_values.push_type.rb → 20150824095226_add_field_store_default_values.push_type.rb} +0 -0
  18. data/test/dummy/db/schema.rb +1 -1
  19. data/test/dummy/log/test.log +727 -706
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{iEI8WixZrgmiB_zh_BWlKL7CuC2q7ssPJvlwnAQECoE.cache → JjX54PrDmCFzcjTbq6Nd993K1CK5NOf5R7f3qyO_-So.cache} +2 -2
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_yN7kor4gekA7HUSIorkC2I1VnxWM5aOgd5eNrA6ca8.cache +1 -0
  22. data/test/helpers/push_type/wysiwyg_media_helper_test.rb +2 -2
  23. data/test/models/push_type/wysiwyg_field_test.rb +4 -2
  24. data/test/test_helper.rb +4 -14
  25. metadata +31 -31
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/BbvLT7G9ojUvtI0HU7G_rmPrIv82rlBK6mQyu158MwU.cache +0 -1
@@ -1,3 +1,3 @@
1
- {:uriI"�file:///Users/aaron/dev/pushcode/push_type/admin/app/assets/images/push_type/icons-assets.svg?type=image/svg+xml&id=ee2d0b10ea50ecfba267cc84c0cc4483ea607cd9a9d6752f2914fd058e3c8902:ET:load_pathI"@/Users/aaron/dev/pushcode/push_type/admin/app/assets/images;F:
2
- @hash{ I"environment-version;TTI"environment-paths;TTI":processors:type=image/svg+xml&file_type=image/svg+xml;TTI"ifile-digest:///Users/aaron/dev/pushcode/push_type/admin/app/assets/images/push_type/icons-assets.svg;TT:dependencies_digest"%'���6��L,1Lɂ����UGQC`�:idI"Eee2d0b10ea50ecfba267cc84c0cc4483ea607cd9a9d6752f2914fd058e3c8902;F:
1
+ {:uriI"�file:///Users/aaron/dev/pushcode/push_type/admin/app/assets/images/push_type/icons-assets.svg?type=image/svg+xml&id=db45bf7f2df6801a9cdce8d39c20d5cb630a2d833a99e78287dd811433a401c5:ET:load_pathI"@/Users/aaron/dev/pushcode/push_type/admin/app/assets/images;F:
2
+ @hash{ I"environment-version;TTI"environment-paths;TTI":processors:type=image/svg+xml&file_type=image/svg+xml;TTI"ifile-digest:///Users/aaron/dev/pushcode/push_type/admin/app/assets/images/push_type/icons-assets.svg;TT:dependencies_digest"%��&�?HP��K��?�39Y��+���q#�:idI"Edb45bf7f2df6801a9cdce8d39c20d5cb630a2d833a99e78287dd811433a401c5;F:
3
3
  mtimel+D�T
@@ -0,0 +1 @@
1
+ I"�file:///Users/aaron/dev/pushcode/push_type/admin/app/assets/images/push_type/icons-assets.svg?type=image/svg+xml&id=db45bf7f2df6801a9cdce8d39c20d5cb630a2d833a99e78287dd811433a401c5:ET
@@ -1,7 +1,7 @@
1
- require "test_helper"
1
+ require 'test_helper'
2
2
 
3
3
  module PushType
4
- describe WysiwygMediaHelper do
4
+ class WysiwygMediaHelperTest < ActionView::TestCase
5
5
 
6
6
  describe '#wysiwyg_assets_hash' do
7
7
  let(:assets) { PushType::Asset.page(1).per(2) }
@@ -1,9 +1,11 @@
1
- require "test_helper"
1
+ require 'test_helper'
2
2
 
3
3
  module PushType
4
- describe WysiwygField do
4
+ class WysiwygFieldTest < ActiveSupport::TestCase
5
+
5
6
  let(:field) { PushType::WysiwygField.new :foo }
6
7
  it { field.form_helper.must_equal :text_area }
7
8
  it { field.html_options[:class].must_equal 'froala' }
9
+
8
10
  end
9
11
  end
data/test/test_helper.rb CHANGED
@@ -1,16 +1,7 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
3
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
4
- #ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
5
- require "rails/test_help"
6
- require "minitest/rails"
7
-
8
- # To add Capybara feature tests add `gem "minitest-rails-capybara"`
9
- # to the test group in the Gemfile and uncomment the following:
10
- # require "minitest/rails/capybara"
11
-
12
- # Uncomment for awesome colorful output
13
- require 'minitest/pride'
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+ require File.expand_path('../../test/dummy/config/environment.rb', __FILE__)
3
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path('../../test/dummy/db/migrate', __FILE__)]
4
+ require 'rails/test_help'
14
5
 
15
6
  # Require PushType testing setup
16
7
  require 'push_type/testing/setup'
@@ -18,4 +9,3 @@ require 'push_type/testing/factories'
18
9
 
19
10
  # Load support files
20
11
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
21
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: push_type_wysiwyg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
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-08-16 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: push_type_core
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.1
19
+ version: 0.5.2
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.5.1
26
+ version: 0.5.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: push_type_admin
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.5.1
33
+ version: 0.5.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.5.1
40
+ version: 0.5.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: wysiwyg-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2.6
47
+ version: 1.2.8
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2.6
54
+ version: 1.2.8
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest-rails
56
+ name: minitest-spec-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.0
61
+ version: 5.2.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.2.0
68
+ version: 5.2.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: database_cleaner
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.4.0
75
+ version: 1.4.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.4.0
82
+ version: 1.4.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: factory_girl_rails
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -157,13 +157,13 @@ files:
157
157
  - test/dummy/config/locales/en.yml
158
158
  - test/dummy/config/routes.rb
159
159
  - test/dummy/config/secrets.yml
160
- - test/dummy/db/migrate/20150816155521_create_push_type_users.push_type.rb
161
- - test/dummy/db/migrate/20150816155522_create_push_type_nodes.push_type.rb
162
- - test/dummy/db/migrate/20150816155523_create_push_type_node_hierarchies.push_type.rb
163
- - test/dummy/db/migrate/20150816155524_create_push_type_assets.push_type.rb
164
- - test/dummy/db/migrate/20150816155525_create_push_type_taxonomies.push_type.rb
165
- - test/dummy/db/migrate/20150816155526_create_push_type_taxonomy_hierarchies.push_type.rb
166
- - test/dummy/db/migrate/20150816155527_add_field_store_default_values.push_type.rb
160
+ - test/dummy/db/migrate/20150824095220_create_push_type_users.push_type.rb
161
+ - test/dummy/db/migrate/20150824095221_create_push_type_nodes.push_type.rb
162
+ - test/dummy/db/migrate/20150824095222_create_push_type_node_hierarchies.push_type.rb
163
+ - test/dummy/db/migrate/20150824095223_create_push_type_assets.push_type.rb
164
+ - test/dummy/db/migrate/20150824095224_create_push_type_taxonomies.push_type.rb
165
+ - test/dummy/db/migrate/20150824095225_create_push_type_taxonomy_hierarchies.push_type.rb
166
+ - test/dummy/db/migrate/20150824095226_add_field_store_default_values.push_type.rb
167
167
  - test/dummy/db/schema.rb
168
168
  - test/dummy/db/seeds.rb
169
169
  - test/dummy/log/test.log
@@ -172,10 +172,10 @@ files:
172
172
  - test/dummy/public/500.html
173
173
  - test/dummy/public/favicon.ico
174
174
  - test/dummy/public/robots.txt
175
- - test/dummy/tmp/cache/assets/test/sprockets/v3.0/BbvLT7G9ojUvtI0HU7G_rmPrIv82rlBK6mQyu158MwU.cache
176
175
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/EbaghK7WkVIzsKnewW2dOyr__okSe5VRDicJ32ZHDyA.cache
176
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/JjX54PrDmCFzcjTbq6Nd993K1CK5NOf5R7f3qyO_-So.cache
177
177
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/_dyCheV64NW1k5WoytRgTEE3aOLVNtWTiZ8MqRzF71c.cache
178
- - test/dummy/tmp/cache/assets/test/sprockets/v3.0/iEI8WixZrgmiB_zh_BWlKL7CuC2q7ssPJvlwnAQECoE.cache
178
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/_yN7kor4gekA7HUSIorkC2I1VnxWM5aOgd5eNrA6ca8.cache
179
179
  - test/helpers/push_type/wysiwyg_media_helper_test.rb
180
180
  - test/models/push_type/wysiwyg_field_test.rb
181
181
  - test/test_helper.rb
@@ -239,13 +239,13 @@ test_files:
239
239
  - test/dummy/config/routes.rb
240
240
  - test/dummy/config/secrets.yml
241
241
  - test/dummy/config.ru
242
- - test/dummy/db/migrate/20150816155521_create_push_type_users.push_type.rb
243
- - test/dummy/db/migrate/20150816155522_create_push_type_nodes.push_type.rb
244
- - test/dummy/db/migrate/20150816155523_create_push_type_node_hierarchies.push_type.rb
245
- - test/dummy/db/migrate/20150816155524_create_push_type_assets.push_type.rb
246
- - test/dummy/db/migrate/20150816155525_create_push_type_taxonomies.push_type.rb
247
- - test/dummy/db/migrate/20150816155526_create_push_type_taxonomy_hierarchies.push_type.rb
248
- - test/dummy/db/migrate/20150816155527_add_field_store_default_values.push_type.rb
242
+ - test/dummy/db/migrate/20150824095220_create_push_type_users.push_type.rb
243
+ - test/dummy/db/migrate/20150824095221_create_push_type_nodes.push_type.rb
244
+ - test/dummy/db/migrate/20150824095222_create_push_type_node_hierarchies.push_type.rb
245
+ - test/dummy/db/migrate/20150824095223_create_push_type_assets.push_type.rb
246
+ - test/dummy/db/migrate/20150824095224_create_push_type_taxonomies.push_type.rb
247
+ - test/dummy/db/migrate/20150824095225_create_push_type_taxonomy_hierarchies.push_type.rb
248
+ - test/dummy/db/migrate/20150824095226_add_field_store_default_values.push_type.rb
249
249
  - test/dummy/db/schema.rb
250
250
  - test/dummy/db/seeds.rb
251
251
  - test/dummy/log/test.log
@@ -257,9 +257,9 @@ test_files:
257
257
  - test/dummy/Rakefile
258
258
  - test/dummy/README.rdoc
259
259
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/_dyCheV64NW1k5WoytRgTEE3aOLVNtWTiZ8MqRzF71c.cache
260
- - test/dummy/tmp/cache/assets/test/sprockets/v3.0/BbvLT7G9ojUvtI0HU7G_rmPrIv82rlBK6mQyu158MwU.cache
260
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/_yN7kor4gekA7HUSIorkC2I1VnxWM5aOgd5eNrA6ca8.cache
261
261
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/EbaghK7WkVIzsKnewW2dOyr__okSe5VRDicJ32ZHDyA.cache
262
- - test/dummy/tmp/cache/assets/test/sprockets/v3.0/iEI8WixZrgmiB_zh_BWlKL7CuC2q7ssPJvlwnAQECoE.cache
262
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/JjX54PrDmCFzcjTbq6Nd993K1CK5NOf5R7f3qyO_-So.cache
263
263
  - test/helpers/push_type/wysiwyg_media_helper_test.rb
264
264
  - test/models/push_type/wysiwyg_field_test.rb
265
265
  - test/test_helper.rb
@@ -1 +0,0 @@
1
- I"�file:///Users/aaron/dev/pushcode/push_type/admin/app/assets/images/push_type/icons-assets.svg?type=image/svg+xml&id=ee2d0b10ea50ecfba267cc84c0cc4483ea607cd9a9d6752f2914fd058e3c8902:ET