push_type_core 0.7.0.beta.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/app/fields/push_type/matrix_field.rb +1 -1
  3. data/app/fields/push_type/repeater_field.rb +2 -2
  4. data/app/models/push_type/structure.rb +4 -0
  5. data/lib/generators/push_type/install/templates/push_type.rb +0 -5
  6. data/lib/generators/push_type/taxonomy/taxonomy_generator.rb +1 -1
  7. data/lib/push_type/version.rb +1 -1
  8. data/test/dummy/config/initializers/push_type.rb +1 -6
  9. data/test/dummy/config/secrets.yml +2 -2
  10. data/test/dummy/db/migrate/{20160108132348_create_push_type_users.push_type.rb → 20160122151524_create_push_type_users.push_type.rb} +0 -0
  11. data/test/dummy/db/migrate/{20160108132349_create_push_type_nodes.push_type.rb → 20160122151525_create_push_type_nodes.push_type.rb} +0 -0
  12. data/test/dummy/db/migrate/{20160108132350_create_push_type_node_hierarchies.push_type.rb → 20160122151526_create_push_type_node_hierarchies.push_type.rb} +0 -0
  13. data/test/dummy/db/migrate/{20160108132351_create_push_type_assets.push_type.rb → 20160122151527_create_push_type_assets.push_type.rb} +0 -0
  14. data/test/dummy/db/migrate/{20160108132352_create_push_type_taxonomies.push_type.rb → 20160122151528_create_push_type_taxonomies.push_type.rb} +0 -0
  15. data/test/dummy/db/migrate/{20160108132353_create_push_type_taxonomy_hierarchies.push_type.rb → 20160122151529_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
  16. data/test/dummy/db/migrate/{20160108132354_add_field_store_default_values.push_type.rb → 20160122151530_add_field_store_default_values.push_type.rb} +0 -0
  17. data/test/dummy/db/schema.rb +1 -1
  18. data/test/dummy/log/test.log +8903 -8903
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0ANSDcZJu9gPyqtYPIW729qm1kriQ29Vn9LU8T2SGQU.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{8FGH_ku24FOYEa6ACm3vyk_rZwODpSzv3MjZU4irm7M.cache → A0UfNVcNn48aSCOiAvcHrJ1BASyXJCELidVIQ6drqQM.cache} +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{o8jETQIOAUNl34ED3ZTGdlVAlYRSl8zt6mfx4Wr1_Hs.cache → RLSLZQ8zubBDFwRzJo2WPXEPjX3gpp-T1h5FK-UnAYo.cache} +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_d65qW7wxRtKVSYpmfSenECz5QUWVI9pppUgV7TA1Rk.cache +0 -0
  23. data/test/dummy/tmp/generators/config/initializers/push_type.rb +50 -0
  24. data/test/dummy/tmp/generators/config/routes.rb +59 -0
  25. data/test/fields/push_type/matrix_field_test.rb +7 -3
  26. metadata +26 -26
  27. data/test/dummy/tmp/generators/app/models/category.rb +0 -7
  28. data/test/dummy/tmp/generators/app/views/taxonomies/category.html.erb +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d3d652a0bab59b2d23b0a20a92e2ccef3f0c1a7
4
- data.tar.gz: 906acebbaddf5db69730186dc1ef93bc26188a6c
3
+ metadata.gz: 9157c07fb81b39a6edec686caa23945b733d9676
4
+ data.tar.gz: 6eaba2fdcccd35b7f2c2c270205cc395c98a263d
5
5
  SHA512:
6
- metadata.gz: 49d0a9de217ce1a13fee164e4e6615b7a1a9c7bd1c00920fefd9f18690b5dc76ddaa66cb3ed82ad7a004bbd007434eb0764c0cab5647eab20b6f894593e0b53b
7
- data.tar.gz: a9078d72241a28f71bcef2163b180a4b3fadbc68331489cca7b84313a9e23f61500afe6c9fdca9866ae03a0ccd474ba7d00123f659070391b1d5b112ff2f7c53
6
+ metadata.gz: 320537d485fcc3523b1283ef0a376c0c7f5eee7a0f1667595490b1be25705374dc84bb65edbc98e38e5f760c030dfbbd7c045c14a9f38f93c664c7e4f38e83e4
7
+ data.tar.gz: cb7dc8dc5f7e9d7c12910f8b7f51f217f81c0ceeccc2539a9c2c0d597c3c937f5d3d1b04de9b7639c94cadb9898870bf59aa60d097ff4a427f6c36eebb44491c
@@ -12,7 +12,7 @@ module PushType
12
12
 
13
13
  def value
14
14
  return if json_value.blank?
15
- rows
15
+ rows.reject(&:blank?)
16
16
  end
17
17
 
18
18
  def fields
@@ -16,7 +16,7 @@ module PushType
16
16
 
17
17
  def value
18
18
  return if json_value.blank?
19
- rows.map(&:_f)
19
+ rows.reject(&:blank?).map(&:_f)
20
20
  end
21
21
 
22
22
  def template
@@ -45,7 +45,7 @@ module PushType
45
45
 
46
46
  def structure_json_key
47
47
  case @opts[:repeats]
48
- when :relation, :node, :taxonomy, :asset then :_f_id
48
+ when :relation, :asset then :_f_id
49
49
  else :_f
50
50
  end
51
51
  end
@@ -20,5 +20,9 @@ module PushType
20
20
  end
21
21
  end
22
22
 
23
+ def blank?
24
+ fields.map { |k, f| f.value }.all?(&:blank?)
25
+ end
26
+
23
27
  end
24
28
  end
@@ -15,11 +15,6 @@ PushType.setup do |config|
15
15
  # through their permalink.
16
16
  config.unexposed_nodes = []
17
17
 
18
- # Set an array of taxonomy type symbols which will not be exposed
19
- # to the `TaxonomiesFrontEndController`. These taxonomies will not
20
- # be accessible through their permalink.
21
- config.unexposed_taxonomies = []
22
-
23
18
  # Media styles allow you to predefine a collection of geometry
24
19
  # strings for resizing images on the fly with the `Asset#media`
25
20
  # method. Example: `image.media(:large)`
@@ -8,6 +8,6 @@ module PushType
8
8
  end
9
9
 
10
10
  hook_for :test_framework, as: :model
11
-
11
+ hide!
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module PushType
2
- VERSION = '0.7.0.beta.1'
2
+ VERSION = '0.7.0'
3
3
  end
@@ -15,11 +15,6 @@ PushType.setup do |config|
15
15
  # through their permalink.
16
16
  config.unexposed_nodes = []
17
17
 
18
- # Set an array of taxonomy type symbols which will not be exposed
19
- # to the `TaxonomiesFrontEndController`. These taxonomies will not
20
- # be accessible through their permalink.
21
- config.unexposed_taxonomies = []
22
-
23
18
  # Media styles allow you to predefine a collection of geometry
24
19
  # strings for resizing images on the fly with the `Asset#media`
25
20
  # method. Example: `image.media(:large)`
@@ -50,6 +45,6 @@ PushType.setup do |config|
50
45
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
51
46
  # }
52
47
 
53
- # config.dragonfly_secret = '5144f00f6ae06864ec9474d664386ae17306588adde244ab38d7c8d617c43b4f'
48
+ # config.dragonfly_secret = '271df62782ac8231fd83d982acbbaf45552ecd92777925f7f664a6cee3ba9738'
54
49
 
55
50
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: ccfc5206a2ad6123f8ac4ca2f1d3edad662720b07a4d490d63ab6bf4e70b56552cbe7f4c85e179af3b8b148c8df071be5fe7336056e34537f2e58295319d1dfa
14
+ secret_key_base: 8f3024409a00bb714abf072147d19aeac045966e9c5df452fb6f4d2fb637338131a8558bd629e3b585db96a43d285663ed2c81e220e16c89d33c441971037b9d
15
15
 
16
16
  test:
17
- secret_key_base: b0dc720c791c2fd64b480ca79b7a18abc865d984ad21a7cb9bc613df504c8f17fb6ad972f48ab571166813ff35bf2e868b4367b15308b95b98569deb8615331f
17
+ secret_key_base: 5531a988ccefaee0fd9df7e0203712ad461e87af88e408d27ebe39e6c33569cda48b9d57676d8070dafb69d090060fffc16f8d470081dd64d3c80293cad6738d
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160108132354) do
14
+ ActiveRecord::Schema.define(version: 20160122151530) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"