sequenced 2.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +100 -0
- data/Appraisals +19 -0
- data/CHANGELOG.md +32 -0
- data/Gemfile +12 -3
- data/MIT-LICENSE +1 -1
- data/README.md +90 -50
- data/Rakefile +39 -15
- data/gemfiles/rails_5_2.gemfile +17 -0
- data/gemfiles/rails_5_2.gemfile.lock +193 -0
- data/gemfiles/rails_6.gemfile +17 -0
- data/gemfiles/rails_6.gemfile.lock +204 -0
- data/gemfiles/rails_6_1.gemfile +17 -0
- data/gemfiles/rails_6_1.gemfile.lock +207 -0
- data/gemfiles/rails_7.gemfile +17 -0
- data/gemfiles/rails_7.gemfile.lock +206 -0
- data/gemfiles/rails_master.gemfile +17 -0
- data/gemfiles/rails_master.gemfile.lock +215 -0
- data/lib/sequenced/acts_as_sequenced.rb +34 -8
- data/lib/sequenced/generator.rb +28 -13
- data/lib/sequenced/version.rb +1 -1
- data/lib/sequenced.rb +5 -3
- data/sequenced.gemspec +8 -10
- metadata +29 -168
- data/.travis.yml +0 -4
- data/TODO.md +0 -7
- data/test/acts_as_sequenced_test.rb +0 -132
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/models/account.rb +0 -6
- data/test/dummy/app/models/address.rb +0 -4
- data/test/dummy/app/models/answer.rb +0 -4
- data/test/dummy/app/models/comment.rb +0 -8
- data/test/dummy/app/models/email.rb +0 -4
- data/test/dummy/app/models/invoice.rb +0 -4
- data/test/dummy/app/models/monster.rb +0 -3
- data/test/dummy/app/models/order.rb +0 -4
- data/test/dummy/app/models/policeman.rb +0 -5
- data/test/dummy/app/models/product.rb +0 -8
- data/test/dummy/app/models/question.rb +0 -4
- data/test/dummy/app/models/rating.rb +0 -3
- data/test/dummy/app/models/subscription.rb +0 -3
- data/test/dummy/app/models/user.rb +0 -4
- data/test/dummy/app/models/werewolf.rb +0 -2
- data/test/dummy/app/models/zombie.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/application.rb +0 -56
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -38
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -58
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120219165346_create_questions.rb +0 -10
- data/test/dummy/db/migrate/20120219165548_create_answers.rb +0 -13
- data/test/dummy/db/migrate/20120219171957_create_accounts.rb +0 -9
- data/test/dummy/db/migrate/20120219172039_create_invoices.rb +0 -12
- data/test/dummy/db/migrate/20120219172922_create_orders.rb +0 -10
- data/test/dummy/db/migrate/20120219174931_create_subscriptions.rb +0 -10
- data/test/dummy/db/migrate/20120219175744_create_users.rb +0 -12
- data/test/dummy/db/migrate/20120219232323_create_addresses.rb +0 -9
- data/test/dummy/db/migrate/20120220000804_create_comments.rb +0 -12
- data/test/dummy/db/migrate/20130411225444_create_emails.rb +0 -12
- data/test/dummy/db/migrate/20130715002029_create_ratings.rb +0 -10
- data/test/dummy/db/migrate/20130730004055_create_products.rb +0 -9
- data/test/dummy/db/migrate/20131226000000_create_monsters.rb +0 -9
- data/test/dummy/db/migrate/20140404195334_create_policemen.rb +0 -9
- data/test/dummy/db/schema.rb +0 -108
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/log/development.log +0 -62
- data/test/dummy/log/test.log +0 -30088
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/test_helper.rb +0 -13
data/test/dummy/db/schema.rb
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# This file is auto-generated from the current state of the database. Instead
|
3
|
-
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
-
#
|
6
|
-
# Note that this schema.rb definition is the authoritative source for your
|
7
|
-
# database schema. If you need to create the application database on another
|
8
|
-
# system, you should be using db:schema:load, not running all the migrations
|
9
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
-
#
|
12
|
-
# It's strongly recommended that you check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(version: 20130715002029) do
|
15
|
-
|
16
|
-
create_table "accounts", force: true do |t|
|
17
|
-
t.string "name"
|
18
|
-
t.datetime "created_at"
|
19
|
-
t.datetime "updated_at"
|
20
|
-
end
|
21
|
-
|
22
|
-
create_table "addresses", force: true do |t|
|
23
|
-
t.integer "account_id"
|
24
|
-
t.string "city"
|
25
|
-
t.datetime "created_at"
|
26
|
-
t.datetime "updated_at"
|
27
|
-
end
|
28
|
-
|
29
|
-
create_table "answers", force: true do |t|
|
30
|
-
t.integer "question_id"
|
31
|
-
t.text "body"
|
32
|
-
t.integer "sequential_id"
|
33
|
-
t.datetime "created_at"
|
34
|
-
t.datetime "updated_at"
|
35
|
-
end
|
36
|
-
|
37
|
-
add_index "answers", ["question_id"], name: "index_answers_on_question_id"
|
38
|
-
add_index "answers", ["sequential_id"], name: "index_answers_on_sequential_id"
|
39
|
-
|
40
|
-
create_table "comments", force: true do |t|
|
41
|
-
t.integer "question_id"
|
42
|
-
t.text "body"
|
43
|
-
t.integer "sequential_id"
|
44
|
-
t.datetime "created_at"
|
45
|
-
t.datetime "updated_at"
|
46
|
-
end
|
47
|
-
|
48
|
-
add_index "comments", ["question_id"], name: "index_comments_on_question_id"
|
49
|
-
|
50
|
-
create_table "emails", force: true do |t|
|
51
|
-
t.string "emailable_type"
|
52
|
-
t.integer "emailable_id"
|
53
|
-
t.integer "sequential_id"
|
54
|
-
t.string "address"
|
55
|
-
t.datetime "created_at"
|
56
|
-
t.datetime "updated_at"
|
57
|
-
end
|
58
|
-
|
59
|
-
create_table "invoices", force: true do |t|
|
60
|
-
t.integer "amount"
|
61
|
-
t.integer "sequential_id"
|
62
|
-
t.integer "account_id"
|
63
|
-
t.datetime "created_at"
|
64
|
-
t.datetime "updated_at"
|
65
|
-
end
|
66
|
-
|
67
|
-
add_index "invoices", ["account_id"], name: "index_invoices_on_account_id"
|
68
|
-
|
69
|
-
create_table "orders", force: true do |t|
|
70
|
-
t.string "product"
|
71
|
-
t.integer "account_id"
|
72
|
-
t.datetime "created_at"
|
73
|
-
t.datetime "updated_at"
|
74
|
-
end
|
75
|
-
|
76
|
-
create_table "questions", force: true do |t|
|
77
|
-
t.string "summary"
|
78
|
-
t.text "body"
|
79
|
-
t.datetime "created_at"
|
80
|
-
t.datetime "updated_at"
|
81
|
-
end
|
82
|
-
|
83
|
-
create_table "ratings", force: true do |t|
|
84
|
-
t.integer "comment_id"
|
85
|
-
t.integer "score"
|
86
|
-
t.integer "sequential_id"
|
87
|
-
t.datetime "created_at"
|
88
|
-
t.datetime "updated_at"
|
89
|
-
end
|
90
|
-
|
91
|
-
create_table "subscriptions", force: true do |t|
|
92
|
-
t.string "plan"
|
93
|
-
t.integer "sequential_id"
|
94
|
-
t.datetime "created_at"
|
95
|
-
t.datetime "updated_at"
|
96
|
-
end
|
97
|
-
|
98
|
-
create_table "users", force: true do |t|
|
99
|
-
t.integer "account_id"
|
100
|
-
t.string "name"
|
101
|
-
t.integer "custom_sequential_id"
|
102
|
-
t.datetime "created_at"
|
103
|
-
t.datetime "updated_at"
|
104
|
-
end
|
105
|
-
|
106
|
-
add_index "users", ["account_id"], name: "index_users_on_account_id"
|
107
|
-
|
108
|
-
end
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
File without changes
|
data/test/dummy/log/.gitkeep
DELETED
File without changes
|
@@ -1,62 +0,0 @@
|
|
1
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
2
|
-
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
4
|
-
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6
|
-
Migrating to CreateQuestions (20120219165346)
|
7
|
-
[1m[35m (0.0ms)[0m begin transaction
|
8
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "summary" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
9
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120219165346')
|
10
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
11
|
-
Migrating to CreateAnswers (20120219165548)
|
12
|
-
[1m[35m (0.0ms)[0m begin transaction
|
13
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "body" text, "sequential_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
14
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
15
|
-
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_answers_on_question_id" ON "answers" ("question_id")[0m
|
16
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
17
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_answers_on_question_id')[0m
|
18
|
-
[1m[35m (0.2ms)[0m CREATE INDEX "index_answers_on_sequential_id" ON "answers" ("sequential_id")
|
19
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120219165548')[0m
|
20
|
-
[1m[35m (1.2ms)[0m commit transaction
|
21
|
-
Migrating to CreateAccounts (20120219171957)
|
22
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23
|
-
[1m[35m (0.5ms)[0m CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
24
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120219171957')[0m
|
25
|
-
[1m[35m (1.0ms)[0m commit transaction
|
26
|
-
Migrating to CreateInvoices (20120219172039)
|
27
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
28
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "sequential_id" integer, "account_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
29
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("invoices")[0m
|
30
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_invoices_on_account_id" ON "invoices" ("account_id")
|
31
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120219172039')[0m
|
32
|
-
[1m[35m (1.1ms)[0m commit transaction
|
33
|
-
Migrating to CreateOrders (20120219172922)
|
34
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product" varchar(255), "account_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
36
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120219172922')[0m
|
37
|
-
[1m[35m (1.2ms)[0m commit transaction
|
38
|
-
Migrating to CreateSubscriptions (20120219174931)
|
39
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
40
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan" varchar(255), "sequential_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
41
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120219174931')[0m
|
42
|
-
[1m[35m (0.8ms)[0m commit transaction
|
43
|
-
Migrating to CreateUsers (20120219175744)
|
44
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "name" varchar(255), "custom_sequential_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
46
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
47
|
-
[1m[35m (0.2ms)[0m CREATE INDEX "index_users_on_account_id" ON "users" ("account_id")
|
48
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120219175744')[0m
|
49
|
-
[1m[35m (1.1ms)[0m commit transaction
|
50
|
-
[1m[36m (0.5ms)[0m [1mselect sqlite_version(*)[0m
|
51
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
52
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("accounts")[0m
|
53
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
54
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_answers_on_sequential_id')[0m
|
55
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_answers_on_question_id')
|
56
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("invoices")[0m
|
57
|
-
[1m[35m (0.0ms)[0m PRAGMA index_info('index_invoices_on_account_id')
|
58
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("orders")[0m
|
59
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("questions")
|
60
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("subscriptions")[0m
|
61
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
62
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_account_id')[0m
|