push_type_core 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/push_type/version.rb +1 -1
  3. data/test/dummy/app/assets/stylesheets/application.css +2 -2
  4. data/test/dummy/bin/setup +4 -0
  5. data/test/dummy/bin/yarn +11 -0
  6. data/test/dummy/config/cable.yml +1 -0
  7. data/test/dummy/config/database.yml +1 -1
  8. data/test/dummy/config/environments/development.rb +1 -1
  9. data/test/dummy/config/environments/production.rb +7 -3
  10. data/test/dummy/config/environments/test.rb +1 -1
  11. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -4
  12. data/test/dummy/config/initializers/assets.rb +6 -3
  13. data/test/dummy/config/initializers/push_type.rb +1 -1
  14. data/test/dummy/config/locales/en.yml +10 -0
  15. data/test/dummy/config/puma.rb +16 -7
  16. data/test/dummy/config/secrets.yml +14 -4
  17. data/test/dummy/db/migrate/{20170518181635_create_push_type_users.push_type.rb → 20170922151246_create_push_type_users.push_type.rb} +0 -0
  18. data/test/dummy/db/migrate/{20170518181636_create_push_type_nodes.push_type.rb → 20170922151247_create_push_type_nodes.push_type.rb} +0 -0
  19. data/test/dummy/db/migrate/{20170518181637_create_push_type_node_hierarchies.push_type.rb → 20170922151248_create_push_type_node_hierarchies.push_type.rb} +0 -0
  20. data/test/dummy/db/migrate/{20170518181638_create_push_type_assets.push_type.rb → 20170922151249_create_push_type_assets.push_type.rb} +0 -0
  21. data/test/dummy/db/migrate/{20170518181639_add_field_store_default_values.push_type.rb → 20170922151250_add_field_store_default_values.push_type.rb} +0 -0
  22. data/test/dummy/db/migrate/{20170518181640_drop_legacy_push_type_taxonomies.push_type.rb → 20170922151251_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
  23. data/test/dummy/db/schema.rb +31 -31
  24. data/test/dummy/log/test.log +9573 -9082
  25. data/test/dummy/package.json +5 -0
  26. data/test/dummy/public/404.html +6 -6
  27. data/test/dummy/public/422.html +6 -6
  28. data/test/dummy/public/500.html +6 -6
  29. data/test/dummy/public/robots.txt +0 -4
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-z/-zTAG_AZ6DwXX0Cr9lRJjmTq5QtmE90nli2sNQARB4Y.cache +1 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2p/2pLTxhc3AEw1ij6BSaHCTOzCdmHls3b6X2BJOgGJlvo.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache → 99/99m8UCKl4j8IpsVOK8ltLHyNh8Ae0nHw3GBkC34V_co.cache} +0 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache → B4/B43LeT9Wba4fLvXw-C_kKq-x9HwYZxnBBiltbIufzzQ.cache} +0 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/JH/JHIrmQ-QKOegrk3C-nT6krwBmtgfHZ3p9hMARO3wGeA.cache +1 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{mx/mxlxz9ERHkX5e8UxqYRkLMOCgd2LZPKAXHx9n6E_Gl0.cache → K3/K3gXaXdE70Os0tFZWdN0RhxLYyK4Tkqxkvs_UlXMnLo.cache} +0 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{xM → XM}/XM3DBlByPxBkHmk_0YnTMQRksSqlxv1pXVEhlfudgp8.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{mo/movXRh1yhXnoSxtCk5yMkXQkBKUOBDZ9c2o4bKTQOAI.cache → Xa/Xa0rMz8rH8k9hoOlTOYy0cDr5lV4-OoV05Pti43Wxw0.cache} +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{xM/xM3gq4lmDufbeuqmM2x4v5Lgu1iuYFR4FCFuGWkxWN4.cache → ZG/ZGtjrYSWfhQw5WTxwvZlujjhnZa1pWl_6d3TqAsv890.cache} +0 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{3Q/3QXhvNrvPooX-Tz3azDUIanQpmTOnNqaiua5vV9cRLs.cache → ix/ixZDew6Xyg3UcRDRkOpY__EPHBugt_obye596pklZzo.cache} +0 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lJ/lJeW8Y8UwqRfy5ZGuy415jyJl-6N8cwI5d_oTFjgoAw.cache +1 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v3.0/n1/n1WEJwG2Q3wVIHSGTSH9qkD0O5iRyZAm4b-EgSp9AsI.cache +1 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Bp/BpTIRhA-GS10QrpUHsZja1dAjjGnUgKyDLICDiOhnRo.cache → oS/oSny1jPtVV4CQzpNvnBrSEXbrDcFotXREGTeFhIX2w8.cache} +2 -2
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{p_/p_C2472u4AgNrKfyOmuc3iErM-p7EWvSP8sYOJU4Hes.cache → ww/wwPGypMVefgCJRhWzOLsWvYdTNOIj8waOZhaTzHioh0.cache} +2 -2
  44. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xd/xdD7MvvFCQ0fSLaxSSdb6pvGs-2uE71UOI2xH2bj7bQ.cache +1 -0
  45. data/test/dummy/tmp/generators/app/presenters/page_presenter.rb +12 -0
  46. metadata +56 -62
  47. data/test/dummy/config/initializers/new_framework_defaults.rb +0 -24
  48. data/test/dummy/config/initializers/session_store.rb +0 -3
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1N/1NNyrLTivkL3hdlxBCXmY6iPuav17Zf_HEok9VWTl9Q.cache +0 -1
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/63/63SLH-WYBSKsVbXlO_ussUx7A7uyKTGmBwUGdAYytlg.cache +0 -1
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7a/7aRzafVCYl8iUvhtC98x4lDfOVsxtR6jTRMCEHhJEDY.cache +0 -1
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ev/evdY6EM6tdxsMC0SkTHJlHl2KXPmxFugKHYW4De7150.cache +0 -1
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/g2/g2ChIdW29D1jUIexFQvW8kjbszkdixbAYIEudlI_WTA.cache +0 -1
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rm/rmuq1vpW28rB5CthJcHi9WnU5qKYUcVT_n7bCXvO9tM.cache +0 -1
  55. data/test/dummy/tmp/generators/app/fields/rich_text_field.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a19e99db81b95433c9f096daeea18b76518510fe
4
- data.tar.gz: cfcd99676d781f0b0acafb93f4d22cf39553b037
3
+ metadata.gz: 266136ffff739338d025c28f06228fe29b75ff52
4
+ data.tar.gz: 8eed56614d25ebddd83b0c05d94e23f9fe32c3c4
5
5
  SHA512:
6
- metadata.gz: 9d4043091259932313b5f49ec2ac4056e4599ffa1e95f424ed3b322662fa0b1128648c4b89583a4d3a31727e319815768d6f90a91b5c029bf8035f3dd6cd157d
7
- data.tar.gz: b16d137a4a64304f6538a26af3fa0a5ea127962c7497828aadb055b7f1e2d4d6682e7873e7db64d97c97d77dc68d92e1323d1a7e1b45b8cadb2d07f32ad376dc
6
+ metadata.gz: 831b4a68f1164a06dab38fbaa372b1f99cd724d35dcf2c16d17134cfcbee506b48f7f118ddd77298a1a6e42466feb786ca2161841ada0408b6679743b3f0a990
7
+ data.tar.gz: 8f1a6e6205853607e56ed4c3d0a9b5f1beecd9595292aa0d3cb186424ff7e49aef01af49cd10e9eafef75a666414cd7a430708199ab1a687125e647fb7bec6cb
@@ -1,3 +1,3 @@
1
1
  module PushType
2
- VERSION = '0.11.1'
2
+ VERSION = '0.11.2'
3
3
  end
@@ -2,8 +2,8 @@
2
2
  * This is a manifest file that'll be compiled into application.css, which will include all the files
3
3
  * listed below.
4
4
  *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
6
+ * vendor/assets/stylesheets directory can be referenced here using a relative path.
7
7
  *
8
8
  * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
9
  * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
data/test/dummy/bin/setup CHANGED
@@ -18,6 +18,10 @@ chdir APP_ROOT do
18
18
  system! 'gem install bundler --conservative'
19
19
  system('bundle check') || system!('bundle install')
20
20
 
21
+ # Install JavaScript dependencies if using Yarn
22
+ # system('bin/yarn')
23
+
24
+
21
25
  # puts "\n== Copying sample files =="
22
26
  # unless File.exist?('config/database.yml')
23
27
  # cp 'config/database.yml.sample', 'config/database.yml'
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ VENDOR_PATH = File.expand_path('..', __dir__)
3
+ Dir.chdir(VENDOR_PATH) do
4
+ begin
5
+ exec "yarnpkg #{ARGV.join(" ")}"
6
+ rescue Errno::ENOENT
7
+ $stderr.puts "Yarn executable was not detected in the system."
8
+ $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9
+ exit 1
10
+ end
11
+ end
@@ -7,3 +7,4 @@ test:
7
7
  production:
8
8
  adapter: redis
9
9
  url: redis://localhost:6379/1
10
+ channel_prefix: dummy_production
@@ -17,7 +17,7 @@
17
17
  default: &default
18
18
  adapter: postgresql
19
19
  encoding: unicode
20
- # For details on connection pooling, see rails configuration guide
20
+ # For details on connection pooling, see Rails configuration guide
21
21
  # http://guides.rubyonrails.org/configuring.html#database-pooling
22
22
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
23
23
 
@@ -18,7 +18,7 @@ Rails.application.configure do
18
18
 
19
19
  config.cache_store = :memory_store
20
20
  config.public_file_server.headers = {
21
- 'Cache-Control' => 'public, max-age=172800'
21
+ 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
22
22
  }
23
23
  else
24
24
  config.action_controller.perform_caching = false
@@ -14,12 +14,16 @@ Rails.application.configure do
14
14
  config.consider_all_requests_local = false
15
15
  config.action_controller.perform_caching = true
16
16
 
17
+ # Attempt to read encrypted secrets from `config/secrets.yml.enc`.
18
+ # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
19
+ # `config/secrets.yml.key`.
20
+ config.read_encrypted_secrets = true
21
+
17
22
  # Disable serving static files from the `/public` folder by default since
18
23
  # Apache or NGINX already handles this.
19
24
  config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
20
25
 
21
- # Compress JavaScripts and CSS.
22
- config.assets.js_compressor = :uglifier
26
+ # Compress CSS.
23
27
  # config.assets.css_compressor = :sass
24
28
 
25
29
  # Do not fallback to assets pipeline if a precompiled asset is missed.
@@ -78,7 +82,7 @@ Rails.application.configure do
78
82
  if ENV["RAILS_LOG_TO_STDOUT"].present?
79
83
  logger = ActiveSupport::Logger.new(STDOUT)
80
84
  logger.formatter = config.log_formatter
81
- config.logger = ActiveSupport::TaggedLogging.new(logger)
85
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
82
86
  end
83
87
 
84
88
  # Do not dump schema after migrations.
@@ -15,7 +15,7 @@ Rails.application.configure do
15
15
  # Configure public file server for tests with Cache-Control for performance.
16
16
  config.public_file_server.enabled = true
17
17
  config.public_file_server.headers = {
18
- 'Cache-Control' => 'public, max-age=3600'
18
+ 'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}"
19
19
  }
20
20
 
21
21
  # Show full error reports and disable caching.
@@ -1,6 +1,8 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # ApplicationController.renderer.defaults.merge!(
4
- # http_host: 'example.org',
5
- # https: false
6
- # )
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -3,9 +3,12 @@
3
3
  # Version of your assets, change this if you want to expire all your assets.
4
4
  Rails.application.config.assets.version = '1.0'
5
5
 
6
- # Add additional assets to the asset load path
6
+ # Add additional assets to the asset load path.
7
7
  # Rails.application.config.assets.paths << Emoji.images_path
8
+ # Add Yarn node_modules folder to the asset load path.
9
+ Rails.application.config.assets.paths << Rails.root.join('node_modules')
8
10
 
9
11
  # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
12
+ # application.js, application.css, and all non-JS/CSS in the app/assets
13
+ # folder are already added.
14
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -45,6 +45,6 @@ PushType.setup do |config|
45
45
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
46
46
  # }
47
47
 
48
- # config.dragonfly_secret = '9b21b75749c94c238149dc784bc1210a52ef293b0589ad07534db448d74d5455'
48
+ # config.dragonfly_secret = '8573634d97f4ce5c3315ea0572674dc37e19aba3823b90e6648962ffa7362a3e'
49
49
 
50
50
  end
@@ -16,6 +16,16 @@
16
16
  #
17
17
  # This would use the information in config/locales/es.yml.
18
18
  #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
19
29
  # To learn more, please read the Rails Internationalization guide
20
30
  # available at http://guides.rubyonrails.org/i18n.html.
21
31
 
@@ -1,13 +1,13 @@
1
1
  # Puma can serve each request in a thread from an internal thread pool.
2
- # The `threads` method setting takes two numbers a minimum and maximum.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
3
  # Any libraries that use thread pools should be configured to match
4
4
  # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
- # and maximum, this matches the default thread size of Active Record.
5
+ # and maximum; this matches the default thread size of Active Record.
6
6
  #
7
- threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
8
  threads threads_count, threads_count
9
9
 
10
- # Specifies the `port` that Puma will listen on to receive requests, default is 3000.
10
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11
11
  #
12
12
  port ENV.fetch("PORT") { 3000 }
13
13
 
@@ -32,16 +32,25 @@ environment ENV.fetch("RAILS_ENV") { "development" }
32
32
  #
33
33
  # preload_app!
34
34
 
35
+ # If you are preloading your application and using Active Record, it's
36
+ # recommended that you close any connections to the database before workers
37
+ # are forked to prevent connection leakage.
38
+ #
39
+ # before_fork do
40
+ # ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
41
+ # end
42
+
35
43
  # The code in the `on_worker_boot` will be called if you are using
36
44
  # clustered mode by specifying a number of `workers`. After each worker
37
- # process is booted this block will be run, if you are using `preload_app!`
38
- # option you will want to use this block to reconnect to any threads
39
- # or connections that may have been created at application boot, Ruby
45
+ # process is booted, this block will be run. If you are using the `preload_app!`
46
+ # option, you will want to use this block to reconnect to any threads
47
+ # or connections that may have been created at application boot, as Ruby
40
48
  # cannot share connections between processes.
41
49
  #
42
50
  # on_worker_boot do
43
51
  # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
44
52
  # end
53
+ #
45
54
 
46
55
  # Allow puma to be restarted by `rails restart` command.
47
56
  plugin :tmp_restart
@@ -10,13 +10,23 @@
10
10
  # Make sure the secrets in this file are kept private
11
11
  # if you're sharing your code publicly.
12
12
 
13
+ # Shared secrets are available across all environments.
14
+
15
+ # shared:
16
+ # api_key: a1B2c3D4e5F6
17
+
18
+ # Environmental secrets are only available for that specific environment.
19
+
13
20
  development:
14
- secret_key_base: 8283d6ea2880a3f32c073bd643497596aef67a2d80724268074f478f6d0e7b7819b0bdb4f154cc99fc0231251818e73acbc2e8412220ce94456468262a31c0d1
21
+ secret_key_base: 231a0c620357ef152bb3f25d2d3b568efe1da995c469fbbafca2c3004caf0da2e20c809bf7c84a7f54e90d648b8cd90d2f552f4e79435d54663bc5797e969cff
15
22
 
16
23
  test:
17
- secret_key_base: c39409c290ae06578c826ae90f7dab9fb888a26ad12ca30c318a94b813f119052fe44b6baed2f9f28850936c6bdfc4aa0ecd693d3e143856866069f11e1ae6fb
24
+ secret_key_base: 0efe3d181357d37c806a5a2fb76a5e0557260c9bf7ec181f939177e882f9f56f6d90046527a5dc673ed799ada316f1c373e5ccd7a815cb32206119a653b26335
25
+
26
+ # Do not keep production secrets in the unencrypted secrets file.
27
+ # Instead, either read values from the environment.
28
+ # Or, use `bin/rails secrets:setup` to configure encrypted secrets
29
+ # and move the `production:` environment over there.
18
30
 
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
31
  production:
22
32
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -10,56 +10,56 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20170518181640) do
13
+ ActiveRecord::Schema.define(version: 20170922151251) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
17
17
  enable_extension "uuid-ossp"
18
18
 
19
19
  create_table "push_type_assets", id: :uuid, default: -> { "uuid_generate_v4()" }, force: :cascade do |t|
20
- t.string "file_uid"
21
- t.string "file_name"
22
- t.integer "file_size"
23
- t.string "file_ext"
24
- t.string "mime_type"
25
- t.string "description"
26
- t.uuid "uploader_id"
27
- t.datetime "created_at", null: false
28
- t.datetime "updated_at", null: false
20
+ t.string "file_uid"
21
+ t.string "file_name"
22
+ t.integer "file_size"
23
+ t.string "file_ext"
24
+ t.string "mime_type"
25
+ t.string "description"
26
+ t.uuid "uploader_id"
27
+ t.datetime "created_at", null: false
28
+ t.datetime "updated_at", null: false
29
29
  t.datetime "deleted_at"
30
30
  end
31
31
 
32
32
  create_table "push_type_node_hierarchies", id: false, force: :cascade do |t|
33
- t.uuid "ancestor_id", null: false
34
- t.uuid "descendant_id", null: false
35
- t.integer "generations", null: false
36
- t.index ["ancestor_id", "descendant_id", "generations"], name: "node_anc_desc_idx", unique: true, using: :btree
37
- t.index ["descendant_id"], name: "node_desc_idx", using: :btree
33
+ t.uuid "ancestor_id", null: false
34
+ t.uuid "descendant_id", null: false
35
+ t.integer "generations", null: false
36
+ t.index ["ancestor_id", "descendant_id", "generations"], name: "node_anc_desc_idx", unique: true
37
+ t.index ["descendant_id"], name: "node_desc_idx"
38
38
  end
39
39
 
40
40
  create_table "push_type_nodes", id: :uuid, default: -> { "uuid_generate_v4()" }, force: :cascade do |t|
41
- t.string "type"
42
- t.string "title"
43
- t.string "slug"
44
- t.jsonb "field_store", default: {}, null: false
45
- t.uuid "parent_id"
46
- t.integer "sort_order"
47
- t.integer "status"
41
+ t.string "type"
42
+ t.string "title"
43
+ t.string "slug"
44
+ t.jsonb "field_store", default: {}, null: false
45
+ t.uuid "parent_id"
46
+ t.integer "sort_order"
47
+ t.integer "status"
48
48
  t.datetime "published_at"
49
49
  t.datetime "published_to"
50
- t.uuid "creator_id"
51
- t.uuid "updater_id"
52
- t.datetime "created_at", null: false
53
- t.datetime "updated_at", null: false
50
+ t.uuid "creator_id"
51
+ t.uuid "updater_id"
52
+ t.datetime "created_at", null: false
53
+ t.datetime "updated_at", null: false
54
54
  t.datetime "deleted_at"
55
55
  end
56
56
 
57
57
  create_table "push_type_users", id: :uuid, default: -> { "uuid_generate_v4()" }, force: :cascade do |t|
58
- t.string "name"
59
- t.string "email"
60
- t.jsonb "field_store", default: {}, null: false
61
- t.datetime "created_at", null: false
62
- t.datetime "updated_at", null: false
58
+ t.string "name"
59
+ t.string "email"
60
+ t.jsonb "field_store", default: {}, null: false
61
+ t.datetime "created_at", null: false
62
+ t.datetime "updated_at", null: false
63
63
  end
64
64
 
65
65
  end