fine_print 6.0.0 → 6.0.2

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 +4 -4
  2. data/README.md +1 -2
  3. data/app/controllers/fine_print/contracts_controller.rb +9 -2
  4. data/app/views/fine_print/contracts/index.html.erb +3 -3
  5. data/lib/fine_print/action_controller/base.rb +3 -1
  6. data/lib/fine_print/version.rb +1 -1
  7. metadata +16 -172
  8. data/spec/controllers/contracts_controller_spec.rb +0 -222
  9. data/spec/controllers/home_controller_spec.rb +0 -27
  10. data/spec/controllers/signatures_controller_spec.rb +0 -68
  11. data/spec/dummy/Rakefile +0 -6
  12. data/spec/dummy/app/assets/config/manifest.js +0 -4
  13. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  14. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  15. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  16. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  17. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  18. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  19. data/spec/dummy/app/controllers/dummy_models_controller.rb +0 -2
  20. data/spec/dummy/app/helpers/application_helper.rb +0 -15
  21. data/spec/dummy/app/jobs/application_job.rb +0 -2
  22. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  23. data/spec/dummy/app/models/application_record.rb +0 -3
  24. data/spec/dummy/app/models/dummy_user.rb +0 -2
  25. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  26. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  27. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  28. data/spec/dummy/bin/bundle +0 -3
  29. data/spec/dummy/bin/rails +0 -4
  30. data/spec/dummy/bin/rake +0 -4
  31. data/spec/dummy/bin/setup +0 -36
  32. data/spec/dummy/bin/update +0 -31
  33. data/spec/dummy/bin/yarn +0 -11
  34. data/spec/dummy/config/application.rb +0 -25
  35. data/spec/dummy/config/boot.rb +0 -5
  36. data/spec/dummy/config/cable.yml +0 -10
  37. data/spec/dummy/config/database.yml +0 -25
  38. data/spec/dummy/config/environment.rb +0 -5
  39. data/spec/dummy/config/environments/development.rb +0 -61
  40. data/spec/dummy/config/environments/production.rb +0 -94
  41. data/spec/dummy/config/environments/test.rb +0 -46
  42. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  43. data/spec/dummy/config/initializers/assets.rb +0 -14
  44. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  45. data/spec/dummy/config/initializers/content_security_policy.rb +0 -25
  46. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  47. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  48. data/spec/dummy/config/initializers/fine_print.rb +0 -6
  49. data/spec/dummy/config/initializers/inflections.rb +0 -16
  50. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  51. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  52. data/spec/dummy/config/locales/en.yml +0 -33
  53. data/spec/dummy/config/puma.rb +0 -34
  54. data/spec/dummy/config/routes.rb +0 -3
  55. data/spec/dummy/config/spring.rb +0 -6
  56. data/spec/dummy/config/storage.yml +0 -34
  57. data/spec/dummy/config.ru +0 -5
  58. data/spec/dummy/db/migrate/1000_create_dummy_users.rb +0 -9
  59. data/spec/dummy/db/schema.rb +0 -42
  60. data/spec/dummy/db/test.sqlite3 +0 -0
  61. data/spec/dummy/log/test.log +0 -3634
  62. data/spec/dummy/package.json +0 -5
  63. data/spec/dummy/public/404.html +0 -67
  64. data/spec/dummy/public/422.html +0 -67
  65. data/spec/dummy/public/500.html +0 -66
  66. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  67. data/spec/dummy/public/apple-touch-icon.png +0 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/dummy/tmp/development_secret.txt +0 -1
  70. data/spec/factories/fine_print/contract.rb +0 -26
  71. data/spec/factories/fine_print/signature.rb +0 -17
  72. data/spec/factories/user.rb +0 -4
  73. data/spec/lib/fine_print/action_controller/base_spec.rb +0 -30
  74. data/spec/lib/fine_print_spec.rb +0 -63
  75. data/spec/models/contract_spec.rb +0 -89
  76. data/spec/models/signature_spec.rb +0 -18
  77. data/spec/spec_helper.rb +0 -23
  78. data/spec/support/controller.rb +0 -11
@@ -1,34 +0,0 @@
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.
3
- # Any libraries that use thread pools should be configured to match
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.
6
- #
7
- threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
- threads threads_count, threads_count
9
-
10
- # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11
- #
12
- port ENV.fetch("PORT") { 3000 }
13
-
14
- # Specifies the `environment` that Puma will run in.
15
- #
16
- environment ENV.fetch("RAILS_ENV") { "development" }
17
-
18
- # Specifies the number of `workers` to boot in clustered mode.
19
- # Workers are forked webserver processes. If using threads and workers together
20
- # the concurrency of the application would be max `threads` * `workers`.
21
- # Workers do not work on JRuby or Windows (both of which do not support
22
- # processes).
23
- #
24
- # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25
-
26
- # Use the `preload_app!` method when specifying a `workers` number.
27
- # This directive tells Puma to first boot the application and load code
28
- # before forking the application. This takes advantage of Copy On Write
29
- # process behavior so workers use less memory.
30
- #
31
- # preload_app!
32
-
33
- # Allow puma to be restarted by `rails restart` command.
34
- plugin :tmp_restart
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
- mount FinePrint::Engine => "/fine_print"
3
- end
@@ -1,6 +0,0 @@
1
- %w[
2
- .ruby-version
3
- .rbenv-vars
4
- tmp/restart.txt
5
- tmp/caching-dev.txt
6
- ].each { |path| Spring.watch(path) }
@@ -1,34 +0,0 @@
1
- test:
2
- service: Disk
3
- root: <%= Rails.root.join("tmp/storage") %>
4
-
5
- local:
6
- service: Disk
7
- root: <%= Rails.root.join("storage") %>
8
-
9
- # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
- # amazon:
11
- # service: S3
12
- # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
- # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
- # region: us-east-1
15
- # bucket: your_own_bucket
16
-
17
- # Remember not to checkin your GCS keyfile to a repository
18
- # google:
19
- # service: GCS
20
- # project: your_project
21
- # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
- # bucket: your_own_bucket
23
-
24
- # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
- # microsoft:
26
- # service: AzureStorage
27
- # storage_account_name: your_account_name
28
- # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
- # container: your_container_name
30
-
31
- # mirror:
32
- # service: Mirror
33
- # primary: local
34
- # mirrors: [ amazon, google, microsoft ]
data/spec/dummy/config.ru DELETED
@@ -1,5 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative 'config/environment'
4
-
5
- run Rails.application
@@ -1,9 +0,0 @@
1
- class CreateDummyUsers < ActiveRecord::Migration[4.2]
2
- def change
3
- create_table :dummy_users do |t|
4
- t.boolean :is_admin, null: false, default: false
5
-
6
- t.timestamps
7
- end
8
- end
9
- end
@@ -1,42 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
10
- #
11
- # It's strongly recommended that you check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(version: 1000) do
14
-
15
- create_table "dummy_users", force: :cascade do |t|
16
- t.boolean "is_admin", default: false, null: false
17
- t.datetime "created_at"
18
- t.datetime "updated_at"
19
- end
20
-
21
- create_table "fine_print_contracts", force: :cascade do |t|
22
- t.string "name", null: false
23
- t.integer "version"
24
- t.string "title", null: false
25
- t.text "content", null: false
26
- t.datetime "created_at"
27
- t.datetime "updated_at"
28
- t.index ["name", "version"], name: "index_fine_print_contracts_on_name_and_version", unique: true
29
- end
30
-
31
- create_table "fine_print_signatures", force: :cascade do |t|
32
- t.integer "contract_id", null: false
33
- t.string "user_type", null: false
34
- t.integer "user_id", null: false
35
- t.datetime "created_at"
36
- t.datetime "updated_at"
37
- t.boolean "is_implicit", default: false, null: false
38
- t.index ["contract_id"], name: "index_fine_print_signatures_on_contract_id"
39
- t.index ["user_id", "user_type", "contract_id"], name: "index_fine_print_s_on_u_id_and_u_type_and_c_id", unique: true
40
- end
41
-
42
- end
Binary file