fine_print 3.1.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +6 -6
  3. data/app/controllers/fine_print/application_controller.rb +1 -1
  4. data/app/controllers/fine_print/contracts_controller.rb +1 -1
  5. data/app/controllers/fine_print/signatures_controller.rb +5 -5
  6. data/app/models/fine_print/contract.rb +5 -4
  7. data/app/views/fine_print/signatures/_form.html.erb +2 -1
  8. data/config/initializers/fine_print.rb +14 -19
  9. data/db/migrate/0_install_fine_print.rb +1 -1
  10. data/db/migrate/1_add_implicit_signatures.rb +1 -1
  11. data/lib/fine_print/action_controller/base.rb +5 -5
  12. data/lib/fine_print/engine.rb +5 -5
  13. data/lib/fine_print/version.rb +1 -1
  14. data/lib/fine_print.rb +24 -13
  15. data/spec/controllers/contracts_controller_spec.rb +22 -22
  16. data/spec/controllers/signatures_controller_spec.rb +11 -11
  17. data/spec/dummy/Rakefile +2 -2
  18. data/spec/dummy/app/assets/config/manifest.js +4 -0
  19. data/spec/dummy/app/assets/javascripts/application.js +5 -3
  20. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  21. data/spec/dummy/app/assets/stylesheets/application.css +6 -4
  22. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  23. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  24. data/spec/dummy/app/controllers/dummy_models_controller.rb +1 -1
  25. data/spec/dummy/app/jobs/application_job.rb +2 -0
  26. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  27. data/spec/dummy/app/models/application_record.rb +3 -0
  28. data/spec/dummy/app/models/dummy_user.rb +1 -1
  29. data/spec/dummy/app/views/layouts/application.html.erb +10 -10
  30. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  31. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  32. data/spec/dummy/bin/bundle +1 -1
  33. data/spec/dummy/bin/rails +1 -1
  34. data/spec/dummy/bin/setup +36 -0
  35. data/spec/dummy/bin/update +31 -0
  36. data/spec/dummy/bin/yarn +11 -0
  37. data/spec/dummy/config/application.rb +7 -13
  38. data/spec/dummy/config/boot.rb +3 -3
  39. data/spec/dummy/config/cable.yml +10 -0
  40. data/spec/dummy/config/database.yml +9 -9
  41. data/spec/dummy/config/environment.rb +2 -2
  42. data/spec/dummy/config/environments/development.rb +37 -5
  43. data/spec/dummy/config/environments/production.rb +43 -29
  44. data/spec/dummy/config/environments/test.rb +14 -4
  45. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  46. data/spec/dummy/config/initializers/assets.rb +14 -0
  47. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  48. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  49. data/spec/dummy/config/initializers/fine_print.rb +1 -2
  50. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  51. data/spec/dummy/config/initializers/wrap_parameters.rb +2 -2
  52. data/spec/dummy/config/locales/en.yml +10 -0
  53. data/spec/dummy/config/puma.rb +34 -0
  54. data/spec/dummy/config/spring.rb +6 -0
  55. data/spec/dummy/config/storage.yml +34 -0
  56. data/spec/dummy/config.ru +2 -1
  57. data/spec/dummy/db/migrate/1000_create_dummy_users.rb +1 -1
  58. data/spec/dummy/db/schema.rb +15 -18
  59. data/spec/dummy/db/test.sqlite3 +0 -0
  60. data/spec/dummy/log/test.log +790 -3835
  61. data/spec/dummy/package.json +5 -0
  62. data/spec/dummy/public/404.html +24 -15
  63. data/spec/dummy/public/422.html +24 -15
  64. data/spec/dummy/public/500.html +23 -14
  65. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  66. data/spec/dummy/public/apple-touch-icon.png +0 -0
  67. data/spec/factories/fine_print/contract.rb +2 -2
  68. data/spec/factories/fine_print/signature.rb +2 -2
  69. data/spec/factories/user.rb +1 -1
  70. data/spec/lib/fine_print_spec.rb +4 -4
  71. data/spec/models/contract_spec.rb +6 -6
  72. data/spec/models/signature_spec.rb +2 -2
  73. data/spec/spec_helper.rb +3 -1
  74. data/spec/support/controller.rb +2 -2
  75. metadata +97 -43
  76. data/spec/dummy/README.md +0 -3
  77. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  78. data/spec/dummy/config/initializers/session_store.rb +0 -3
data/spec/dummy/README.md DELETED
@@ -1,3 +0,0 @@
1
- ## Dummy
2
-
3
- A dummy application used to test the FinePrint engine.
@@ -1,12 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- Dummy::Application.config.secret_key_base = 'd2b1305db4640dc238e977414f76c1a03e2abd6b1233b968cd750f27878c39cd1397c220186de49b0a29c137bb69fb27e6ad2b66c1e100b2f9a9d50e1deb7f78'
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'