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