push_type_core 0.8.2 → 0.9.0.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/app/fields/push_type/tag_list_field.rb +2 -2
  3. data/app/models/concerns/push_type/unexposable.rb +1 -1
  4. data/lib/push_type/testing/common_rake.rb +2 -1
  5. data/lib/push_type/testing/setup.rb +6 -0
  6. data/lib/push_type/testing/support/expectations.rb +11 -0
  7. data/lib/push_type/version.rb +1 -1
  8. data/test/controllers/front_end_controller_test.rb +2 -2
  9. data/test/dummy/{README.rdoc → README.md} +1 -5
  10. data/test/dummy/Rakefile +1 -1
  11. data/test/dummy/app/assets/config/manifest.js +2 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +3 -3
  13. data/test/dummy/app/channels/application_cable/channel.rb +4 -0
  14. data/test/dummy/app/channels/application_cable/connection.rb +4 -0
  15. data/test/dummy/app/controllers/application_controller.rb +0 -2
  16. data/test/dummy/app/jobs/application_job.rb +2 -0
  17. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  18. data/test/dummy/app/models/application_record.rb +3 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +8 -8
  20. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  21. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  22. data/test/dummy/bin/rails +1 -1
  23. data/test/dummy/bin/setup +17 -12
  24. data/test/dummy/bin/update +29 -0
  25. data/test/dummy/config/cable.yml +9 -0
  26. data/test/dummy/config/database.yml +2 -2
  27. data/test/dummy/config/environment.rb +1 -1
  28. data/test/dummy/config/environments/development.rb +24 -11
  29. data/test/dummy/config/environments/production.rb +24 -17
  30. data/test/dummy/config/environments/test.rb +6 -6
  31. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  32. data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
  33. data/test/dummy/config/initializers/new_framework_defaults.rb +24 -0
  34. data/test/dummy/config/initializers/push_type.rb +1 -1
  35. data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
  36. data/test/dummy/config/puma.rb +47 -0
  37. data/test/dummy/config/routes.rb +1 -54
  38. data/test/dummy/config/secrets.yml +3 -3
  39. data/test/dummy/config/spring.rb +6 -0
  40. data/test/dummy/config.ru +2 -1
  41. data/test/dummy/db/schema.rb +6 -8
  42. data/test/dummy/db/seeds.rb +3 -3
  43. data/test/dummy/log/test.log +9411 -9376
  44. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  45. data/test/dummy/public/apple-touch-icon.png +0 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{aP/aP9ugnoyKROpCcS7YL5bnUT1O0JwWQh4eL-lJguHJNk.cache → Jb/Jb810SiOuJVuKRcwOdnHdyrHDD_hWIWvSHrcSPoaQPU.cache} +0 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{g7/g7hfivsQMUCaQEqa3fNXHP8Tmbv72q85IeMZlKz1A1w.cache → SO/SOZa21InoBC05GGCDAcckZrbpHSOC_C1x_8gdUutdjs.cache} +2 -2
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{1l/1lgqDTR9gGukdSENXZntwdNqC1WI44OdFXB_mYW5yuk.cache → T4/T4GQ8YD0DmTbkGOBb9_FXxyAS4d4bTyDY2ZNaOFrZYI.cache} +0 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/XK/XKi7NI277oX6OL-scTKJX0mD8ETpeTWUmd0qOhAh48c.cache +1 -0
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cS/cSFgEM3CjGY-WL5BvUliuazHXS93pXySDc_urG4lNaE.cache +1 -0
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{TP/TPUoo4sX7sBfMJ_HNNIt2WhWmTzsgu_ywRm1et0eoN0.cache → ff/ffkN8ZBG66BGCq-xL4PHZZAsspgxBQNa9shBPn9Wiqg.cache} +2 -2
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hy/hyqofDaeg-q9IihEOLw2JbC6hGbwuYdXFRM9oFc1J64.cache +1 -0
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nq/nquxPPDMFQdTs8eGDT2OwFDhyUXTjCiTzy-AK0OiruM.cache +1 -0
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/og/og2Zl6GnhduLl0YJf4C9T6H-QZ3xbeND4jjCS_Iz6D8.cache +1 -0
  55. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQ8c5p2po-w6U57egs5gQy5iUvn5Y5bQH3HPJslC4XU.cache +1 -0
  56. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{LY/LY-K3FTDpqOZfFSZb1BgnzI6IcwgEe-qVq2cB5Wo7hc.cache → rI/rIrIe053W7_bEOF2UU8uE2-YdjmGhP_XyEll7fNAGHQ.cache} +0 -0
  57. data/test/dummy/tmp/generators/app/models/location.rb +7 -0
  58. metadata +128 -64
  59. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-K/-KRPVoCYVzbfzLXlXQogpskJSnZ0HfVou2e5tQHIJ94.cache +0 -1
  60. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4b/4b1XF5NcBp9ea4U91OkH7OnGb5yBXnLRobZUVnrYQZY.cache +0 -1
  61. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8Z/8Z8NReKmNGw_LKGJrqMi57iLalYxRSsCz8C0HyUBcFw.cache +0 -1
  62. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gr/Groxd22-2x3-TgwJofLgyj5xpGqSBuMVuOClCEoZ7A0.cache +0 -1
  63. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PI/PIywb8-2j1FZKWFRWNm49KKYUju4qPDiXj2R60gZwEs.cache +0 -1
  64. data/test/dummy/tmp/cache/assets/sprockets/v3.0/un/unRcQxp09TEeuHjcQZuF4a-j7CErQidN8Iv_7LmuiXg.cache +0 -1
  65. data/test/dummy/tmp/generators/config/initializers/push_type.rb +0 -50
  66. data/test/dummy/tmp/generators/config/routes.rb +0 -59
  67. /data/test/dummy/db/migrate/{20160615180803_create_push_type_users.push_type.rb → 20160725104431_create_push_type_users.push_type.rb} +0 -0
  68. /data/test/dummy/db/migrate/{20160615180804_create_push_type_nodes.push_type.rb → 20160725104432_create_push_type_nodes.push_type.rb} +0 -0
  69. /data/test/dummy/db/migrate/{20160615180805_create_push_type_node_hierarchies.push_type.rb → 20160725104433_create_push_type_node_hierarchies.push_type.rb} +0 -0
  70. /data/test/dummy/db/migrate/{20160615180806_create_push_type_assets.push_type.rb → 20160725104434_create_push_type_assets.push_type.rb} +0 -0
  71. /data/test/dummy/db/migrate/{20160615180807_add_field_store_default_values.push_type.rb → 20160725104435_add_field_store_default_values.push_type.rb} +0 -0
  72. /data/test/dummy/db/migrate/{20160615180808_drop_legacy_push_type_taxonomies.push_type.rb → 20160725104436_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
  73. /data/test/dummy/tmp/cache/assets/sprockets/v3.0/{5d/5dQrPu4rI_K7R9AV8N5XURWY_1Pk_XDrx1_TgEiPJwA.cache → FY/FYTJbeYszISifBF_e9V_McV0ypFX5D_qRidBDUSyduE.cache} +0 -0
  74. /data/test/dummy/tmp/cache/assets/sprockets/v3.0/{OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache → n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache} +0 -0
  75. /data/test/dummy/tmp/cache/assets/sprockets/v3.0/{5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache → nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache} +0 -0
@@ -2,58 +2,5 @@ Rails.application.routes.draw do
2
2
 
3
3
  mount_push_type
4
4
 
5
- # The priority is based upon order of creation: first created -> highest priority.
6
- # See how all your routes lay out with "rake routes".
7
-
8
- # You can have the root of your site routed with "root"
9
- # root 'welcome#index'
10
-
11
- # Example of regular route:
12
- # get 'products/:id' => 'catalog#view'
13
-
14
- # Example of named route that can be invoked with purchase_url(id: product.id)
15
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
16
-
17
- # Example resource route (maps HTTP verbs to controller actions automatically):
18
- # resources :products
19
-
20
- # Example resource route with options:
21
- # resources :products do
22
- # member do
23
- # get 'short'
24
- # post 'toggle'
25
- # end
26
- #
27
- # collection do
28
- # get 'sold'
29
- # end
30
- # end
31
-
32
- # Example resource route with sub-resources:
33
- # resources :products do
34
- # resources :comments, :sales
35
- # resource :seller
36
- # end
37
-
38
- # Example resource route with more complex sub-resources:
39
- # resources :products do
40
- # resources :comments
41
- # resources :sales do
42
- # get 'recent', on: :collection
43
- # end
44
- # end
45
-
46
- # Example resource route with concerns:
47
- # concern :toggleable do
48
- # post 'toggle'
49
- # end
50
- # resources :posts, concerns: :toggleable
51
- # resources :photos, concerns: :toggleable
52
-
53
- # Example resource route within a namespace:
54
- # namespace :admin do
55
- # # Directs /admin/products/* to Admin::ProductsController
56
- # # (app/controllers/admin/products_controller.rb)
57
- # resources :products
58
- # end
5
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
59
6
  end
@@ -5,16 +5,16 @@
5
5
 
6
6
  # Make sure the secret is at least 30 characters and all random,
7
7
  # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
8
+ # You can use `rails secret` to generate a secure secret key.
9
9
 
10
10
  # Make sure the secrets in this file are kept private
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 58abfad1bfa572e07c1cbae8200fbe2b665942b40f4a3e19c6fd4b79abdfe4edf9fc5bf32b604a81d25f997e14b02ed963162dfc72356f198fde2a5bbfcbb250
14
+ secret_key_base: deb70f653ffcace0c5eca5307f12a49e009912f3e75fab7f4639b63d6154b52905c1cf6e297325ac84b3c660b3ae68adeb7b1a092be440469529de45d066c55f
15
15
 
16
16
  test:
17
- secret_key_base: 6f97c12f120791cff919f1508e934e5195ff56414fc4113d4ebb1c25e8ec531792300e1e5469d8cca55add38b6f3e1e1eca606f88c1642b7028a3d5bd43075a5
17
+ secret_key_base: 82eb2ba4a9a239f790e07c43d6299acaa48ee52ced09cb5e337630ce4cde1b14e9e4eb65e3fa8cd6cd070e0c019d9e6a8259ed7a024f77bb1eea009d7e22e79a
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -0,0 +1,6 @@
1
+ %w(
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ).each { |path| Spring.watch(path) }
data/test/dummy/config.ru CHANGED
@@ -1,4 +1,5 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require ::File.expand_path('../config/environment', __FILE__)
3
+ require_relative 'config/environment'
4
+
4
5
  run Rails.application
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -11,13 +10,13 @@
11
10
  #
12
11
  # It's strongly recommended that you check this file into your version control system.
13
12
 
14
- ActiveRecord::Schema.define(version: 20160615180808) do
13
+ ActiveRecord::Schema.define(version: 20160725104436) do
15
14
 
16
15
  # These are extensions that must be enabled in order to support this database
17
16
  enable_extension "plpgsql"
18
17
  enable_extension "uuid-ossp"
19
18
 
20
- create_table "push_type_assets", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
19
+ create_table "push_type_assets", id: :uuid, default: -> { "uuid_generate_v4()" }, force: :cascade do |t|
21
20
  t.string "file_uid"
22
21
  t.string "file_name"
23
22
  t.integer "file_size"
@@ -34,12 +33,11 @@ ActiveRecord::Schema.define(version: 20160615180808) do
34
33
  t.uuid "ancestor_id", null: false
35
34
  t.uuid "descendant_id", null: false
36
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
37
38
  end
38
39
 
39
- add_index "push_type_node_hierarchies", ["ancestor_id", "descendant_id", "generations"], name: "node_anc_desc_idx", unique: true, using: :btree
40
- add_index "push_type_node_hierarchies", ["descendant_id"], name: "node_desc_idx", using: :btree
41
-
42
- create_table "push_type_nodes", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
40
+ create_table "push_type_nodes", id: :uuid, default: -> { "uuid_generate_v4()" }, force: :cascade do |t|
43
41
  t.string "type"
44
42
  t.string "title"
45
43
  t.string "slug"
@@ -56,7 +54,7 @@ ActiveRecord::Schema.define(version: 20160615180808) do
56
54
  t.datetime "deleted_at"
57
55
  end
58
56
 
59
- create_table "push_type_users", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t|
57
+ create_table "push_type_users", id: :uuid, default: -> { "uuid_generate_v4()" }, force: :cascade do |t|
60
58
  t.string "name"
61
59
  t.string "email"
62
60
  t.jsonb "field_store", default: {}, null: false
@@ -1,7 +1,7 @@
1
1
  # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
2
+ # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
3
3
  #
4
4
  # Examples:
5
5
  #
6
- # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
- # Mayor.create(name: 'Emanuel', city: cities.first)
6
+ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7
+ # Character.create(name: 'Luke', movie: movies.first)