fine_print 6.0.1 → 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/lib/fine_print/action_controller/base.rb +3 -1
  4. data/lib/fine_print/version.rb +1 -1
  5. metadata +9 -169
  6. data/spec/controllers/contracts_controller_spec.rb +0 -222
  7. data/spec/controllers/home_controller_spec.rb +0 -27
  8. data/spec/controllers/signatures_controller_spec.rb +0 -68
  9. data/spec/dummy/Rakefile +0 -6
  10. data/spec/dummy/app/assets/config/manifest.js +0 -4
  11. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  12. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  13. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  14. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  15. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  16. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  17. data/spec/dummy/app/controllers/dummy_models_controller.rb +0 -2
  18. data/spec/dummy/app/helpers/application_helper.rb +0 -15
  19. data/spec/dummy/app/jobs/application_job.rb +0 -2
  20. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  21. data/spec/dummy/app/models/application_record.rb +0 -3
  22. data/spec/dummy/app/models/dummy_user.rb +0 -2
  23. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  24. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  25. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  26. data/spec/dummy/bin/bundle +0 -3
  27. data/spec/dummy/bin/rails +0 -4
  28. data/spec/dummy/bin/rake +0 -4
  29. data/spec/dummy/bin/setup +0 -36
  30. data/spec/dummy/bin/update +0 -31
  31. data/spec/dummy/bin/yarn +0 -11
  32. data/spec/dummy/config/application.rb +0 -25
  33. data/spec/dummy/config/boot.rb +0 -5
  34. data/spec/dummy/config/cable.yml +0 -10
  35. data/spec/dummy/config/database.yml +0 -25
  36. data/spec/dummy/config/environment.rb +0 -5
  37. data/spec/dummy/config/environments/development.rb +0 -61
  38. data/spec/dummy/config/environments/production.rb +0 -94
  39. data/spec/dummy/config/environments/test.rb +0 -46
  40. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  41. data/spec/dummy/config/initializers/assets.rb +0 -14
  42. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  43. data/spec/dummy/config/initializers/content_security_policy.rb +0 -25
  44. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  45. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  46. data/spec/dummy/config/initializers/fine_print.rb +0 -6
  47. data/spec/dummy/config/initializers/inflections.rb +0 -16
  48. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  49. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  50. data/spec/dummy/config/locales/en.yml +0 -33
  51. data/spec/dummy/config/puma.rb +0 -34
  52. data/spec/dummy/config/routes.rb +0 -3
  53. data/spec/dummy/config/spring.rb +0 -6
  54. data/spec/dummy/config/storage.yml +0 -34
  55. data/spec/dummy/config.ru +0 -5
  56. data/spec/dummy/db/development.sqlite3 +0 -0
  57. data/spec/dummy/db/migrate/1000_create_dummy_users.rb +0 -9
  58. data/spec/dummy/db/schema.rb +0 -42
  59. data/spec/dummy/db/test.sqlite3 +0 -0
  60. data/spec/dummy/log/development.log +0 -95
  61. data/spec/dummy/log/test.log +0 -5352
  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
- 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
Binary file
@@ -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
@@ -1,95 +0,0 @@
1
-  (0.1ms) SELECT sqlite_version(*)
2
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
3
-  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
4
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
5
-  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
6
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
7
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
9
- Migrating to InstallFinePrint (0)
10
-  (0.0ms) begin transaction
11
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
12
-  (0.5ms) CREATE TABLE "fine_print_contracts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "version" integer, "title" varchar NOT NULL, "content" text NOT NULL, "created_at" datetime, "updated_at" datetime)
13
- ↳ /Users/dante/Desktop/fine_print/db/migrate/0_install_fine_print.rb:3
14
-  (0.1ms) CREATE UNIQUE INDEX "index_fine_print_contracts_on_name_and_version" ON "fine_print_contracts" ("name", "version")
15
- ↳ /Users/dante/Desktop/fine_print/db/migrate/0_install_fine_print.rb:12
16
-  (0.1ms) CREATE TABLE "fine_print_signatures" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "contract_id" integer NOT NULL, "user_type" varchar NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
17
- ↳ /Users/dante/Desktop/fine_print/db/migrate/0_install_fine_print.rb:14
18
-  (0.1ms) CREATE UNIQUE INDEX "index_fine_print_s_on_u_id_and_u_type_and_c_id" ON "fine_print_signatures" ("user_id", "user_type", "contract_id")
19
- ↳ /Users/dante/Desktop/fine_print/db/migrate/0_install_fine_print.rb:21
20
-  (0.1ms) CREATE INDEX "index_fine_print_signatures_on_contract_id" ON "fine_print_signatures" ("contract_id")
21
- ↳ /Users/dante/Desktop/fine_print/db/migrate/0_install_fine_print.rb:24
22
- ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "0"]]
23
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
24
-  (1.1ms) commit transaction
25
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
26
- Migrating to AddImplicitSignatures (1)
27
-  (0.0ms) begin transaction
28
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
29
-  (0.6ms) ALTER TABLE "fine_print_signatures" ADD "is_implicit" boolean DEFAULT 0 NOT NULL
30
- ↳ /Users/dante/Desktop/fine_print/db/migrate/1_add_implicit_signatures.rb:3
31
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
32
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
33
-  (0.8ms) commit transaction
34
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
35
- Migrating to CreateDummyUsers (1000)
36
-  (0.0ms) begin transaction
37
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
38
-  (0.4ms) CREATE TABLE "dummy_users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "is_admin" boolean DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)
39
- ↳ db/migrate/1000_create_dummy_users.rb:3
40
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1000"]]
41
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
42
-  (0.9ms) commit transaction
43
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
44
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
45
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
46
-  (0.0ms) begin transaction
47
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
48
- ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2023-03-21 17:29:24.804592"], ["updated_at", "2023-03-21 17:29:24.804592"]]
49
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
50
-  (0.9ms) commit transaction
51
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
52
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
53
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
54
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
55
- ↳ /Users/dante/.rbenv/versions/2.7.2/bin/rake:23
56
-  (1.2ms) SELECT sqlite_version(*)
57
-  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
58
-  (1.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
59
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
60
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
61
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
62
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
63
-  (0.1ms) SELECT sqlite_version(*)
64
-  (0.0ms) SELECT sqlite_version(*)
65
-  (0.0ms) SELECT sqlite_version(*)
66
-  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
67
-  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
68
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
69
- Migrating to InstallFinePrint (0)
70
- TRANSACTION (0.1ms) begin transaction
71
-  (0.4ms) CREATE TABLE "fine_print_contracts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "version" integer, "title" varchar NOT NULL, "content" text NOT NULL, "created_at" datetime, "updated_at" datetime)
72
-  (0.1ms) CREATE UNIQUE INDEX "index_fine_print_contracts_on_name_and_version" ON "fine_print_contracts" ("name", "version")
73
-  (0.1ms) CREATE TABLE "fine_print_signatures" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "contract_id" integer NOT NULL, "user_type" varchar NOT NULL, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
74
-  (0.1ms) CREATE UNIQUE INDEX "index_fine_print_s_on_u_id_and_u_type_and_c_id" ON "fine_print_signatures" ("user_id", "user_type", "contract_id")
75
-  (0.1ms) CREATE INDEX "index_fine_print_signatures_on_contract_id" ON "fine_print_signatures" ("contract_id")
76
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "0"]]
77
- TRANSACTION (1.2ms) commit transaction
78
- Migrating to AddImplicitSignatures (1)
79
- TRANSACTION (0.0ms) begin transaction
80
-  (0.6ms) ALTER TABLE "fine_print_signatures" ADD "is_implicit" boolean DEFAULT 0 NOT NULL
81
- ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
82
- TRANSACTION (0.9ms) commit transaction
83
- Migrating to CreateDummyUsers (1000)
84
- TRANSACTION (0.1ms) begin transaction
85
-  (0.4ms) CREATE TABLE "dummy_users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "is_admin" boolean DEFAULT 0 NOT NULL, "created_at" datetime, "updated_at" datetime)
86
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1000"]]
87
- TRANSACTION (1.0ms) commit transaction
88
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
89
- TRANSACTION (0.1ms) begin transaction
90
- ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2023-03-21 17:38:35.575933"], ["updated_at", "2023-03-21 17:38:35.575933"]]
91
- TRANSACTION (0.9ms) commit transaction
92
-  (0.1ms) SELECT sqlite_version(*)
93
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
94
-  (0.0ms) SELECT sqlite_version(*)
95
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC