historiographer 4.1.0 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/history_migration.rb +1 -0
- data/lib/historiographer/version.rb +3 -0
- metadata +12 -41
- data/Users/brettshollenberger/programming/historiographer/Gemfile +0 -33
- data/Users/brettshollenberger/programming/historiographer/Gemfile.lock +0 -341
- data/Users/brettshollenberger/programming/historiographer/Guardfile +0 -4
- data/Users/brettshollenberger/programming/historiographer/LICENSE.txt +0 -20
- data/Users/brettshollenberger/programming/historiographer/README.md +0 -298
- data/Users/brettshollenberger/programming/historiographer/Rakefile +0 -54
- data/Users/brettshollenberger/programming/historiographer/historiographer-4.1.0.gem +0 -0
- data/Users/brettshollenberger/programming/historiographer/historiographer.gemspec +0 -65
- data/Users/brettshollenberger/programming/historiographer/init.rb +0 -18
- data/Users/brettshollenberger/programming/historiographer/lib/historiographer/version.rb +0 -3
- data/Users/brettshollenberger/programming/historiographer/spec/db/database.yml +0 -27
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20161121212228_create_posts.rb +0 -19
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20161121212229_create_post_histories.rb +0 -10
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20161121212230_create_authors.rb +0 -13
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20161121212231_create_author_histories.rb +0 -10
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20161121212232_create_users.rb +0 -9
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20171011194624_create_safe_posts.rb +0 -19
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20171011194715_create_safe_post_histories.rb +0 -9
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20191024142304_create_thing_with_compound_index.rb +0 -10
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20191024142352_create_thing_with_compound_index_history.rb +0 -11
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20191024203106_create_thing_without_history.rb +0 -7
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20221018204220_create_silent_posts.rb +0 -21
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20221018204255_create_silent_post_histories.rb +0 -9
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20241109182017_create_comments.rb +0 -13
- data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20241109182020_create_comment_histories.rb +0 -9
- data/Users/brettshollenberger/programming/historiographer/spec/db/schema.rb +0 -225
- data/Users/brettshollenberger/programming/historiographer/spec/examples.txt +0 -40
- data/Users/brettshollenberger/programming/historiographer/spec/factories/post.rb +0 -7
- data/Users/brettshollenberger/programming/historiographer/spec/historiographer_spec.rb +0 -813
- data/Users/brettshollenberger/programming/historiographer/spec/spec_helper.rb +0 -56
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/configuration.rb +0 -0
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/history.rb +0 -0
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/history_migration_mysql.rb +0 -0
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/mysql_migration.rb +0 -0
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/postgres_migration.rb +0 -0
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/relation.rb +0 -0
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/safe.rb +0 -0
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer/silent.rb +0 -0
- /data/{Users/brettshollenberger/programming/historiographer/lib → lib}/historiographer.rb +0 -0
@@ -1,225 +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
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
-
# migrations use external dependencies or application code.
|
10
|
-
#
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
12
|
-
|
13
|
-
ActiveRecord::Schema[7.1].define(version: 2024_11_09_182020) do
|
14
|
-
# These are extensions that must be enabled in order to support this database
|
15
|
-
enable_extension "plpgsql"
|
16
|
-
|
17
|
-
create_table "author_histories", force: :cascade do |t|
|
18
|
-
t.integer "author_id", null: false
|
19
|
-
t.string "full_name", null: false
|
20
|
-
t.text "bio"
|
21
|
-
t.datetime "deleted_at", precision: nil
|
22
|
-
t.datetime "created_at", precision: nil, null: false
|
23
|
-
t.datetime "updated_at", precision: nil, null: false
|
24
|
-
t.datetime "history_started_at", precision: nil, null: false
|
25
|
-
t.datetime "history_ended_at", precision: nil
|
26
|
-
t.integer "history_user_id"
|
27
|
-
t.string "snapshot_id"
|
28
|
-
t.index ["author_id"], name: "index_author_histories_on_author_id"
|
29
|
-
t.index ["deleted_at"], name: "index_author_histories_on_deleted_at"
|
30
|
-
t.index ["history_ended_at"], name: "index_author_histories_on_history_ended_at"
|
31
|
-
t.index ["history_started_at"], name: "index_author_histories_on_history_started_at"
|
32
|
-
t.index ["history_user_id"], name: "index_author_histories_on_history_user_id"
|
33
|
-
t.index ["snapshot_id"], name: "index_author_histories_on_snapshot_id"
|
34
|
-
end
|
35
|
-
|
36
|
-
create_table "authors", force: :cascade do |t|
|
37
|
-
t.string "full_name", null: false
|
38
|
-
t.text "bio"
|
39
|
-
t.datetime "deleted_at", precision: nil
|
40
|
-
t.datetime "created_at", precision: nil, null: false
|
41
|
-
t.datetime "updated_at", precision: nil, null: false
|
42
|
-
t.index ["deleted_at"], name: "index_authors_on_deleted_at"
|
43
|
-
end
|
44
|
-
|
45
|
-
create_table "comment_histories", force: :cascade do |t|
|
46
|
-
t.integer "comment_id", null: false
|
47
|
-
t.integer "post_id"
|
48
|
-
t.integer "author_id"
|
49
|
-
t.text "body"
|
50
|
-
t.datetime "created_at", null: false
|
51
|
-
t.datetime "updated_at", null: false
|
52
|
-
t.datetime "history_started_at", null: false
|
53
|
-
t.datetime "history_ended_at"
|
54
|
-
t.integer "history_user_id"
|
55
|
-
t.string "snapshot_id"
|
56
|
-
t.index ["author_id"], name: "index_comment_histories_on_author_id"
|
57
|
-
t.index ["comment_id"], name: "index_comment_histories_on_comment_id"
|
58
|
-
t.index ["history_ended_at"], name: "index_comment_histories_on_history_ended_at"
|
59
|
-
t.index ["history_started_at"], name: "index_comment_histories_on_history_started_at"
|
60
|
-
t.index ["history_user_id"], name: "index_comment_histories_on_history_user_id"
|
61
|
-
t.index ["post_id"], name: "index_comment_histories_on_post_id"
|
62
|
-
t.index ["snapshot_id"], name: "index_comment_histories_on_snapshot_id"
|
63
|
-
end
|
64
|
-
|
65
|
-
create_table "comments", force: :cascade do |t|
|
66
|
-
t.bigint "post_id"
|
67
|
-
t.bigint "author_id"
|
68
|
-
t.text "body"
|
69
|
-
t.datetime "created_at", null: false
|
70
|
-
t.datetime "updated_at", null: false
|
71
|
-
t.index ["author_id"], name: "index_comments_on_author_id"
|
72
|
-
t.index ["post_id"], name: "index_comments_on_post_id"
|
73
|
-
end
|
74
|
-
|
75
|
-
create_table "post_histories", force: :cascade do |t|
|
76
|
-
t.integer "post_id", null: false
|
77
|
-
t.string "title", null: false
|
78
|
-
t.text "body", null: false
|
79
|
-
t.integer "author_id", null: false
|
80
|
-
t.boolean "enabled", default: false
|
81
|
-
t.datetime "live_at", precision: nil
|
82
|
-
t.datetime "deleted_at", precision: nil
|
83
|
-
t.datetime "created_at", precision: nil, null: false
|
84
|
-
t.datetime "updated_at", precision: nil, null: false
|
85
|
-
t.datetime "history_started_at", precision: nil, null: false
|
86
|
-
t.datetime "history_ended_at", precision: nil
|
87
|
-
t.integer "history_user_id"
|
88
|
-
t.string "snapshot_id"
|
89
|
-
t.index ["author_id"], name: "index_post_histories_on_author_id"
|
90
|
-
t.index ["deleted_at"], name: "index_post_histories_on_deleted_at"
|
91
|
-
t.index ["enabled"], name: "index_post_histories_on_enabled"
|
92
|
-
t.index ["history_ended_at"], name: "index_post_histories_on_history_ended_at"
|
93
|
-
t.index ["history_started_at"], name: "index_post_histories_on_history_started_at"
|
94
|
-
t.index ["history_user_id"], name: "index_post_histories_on_history_user_id"
|
95
|
-
t.index ["live_at"], name: "index_post_histories_on_live_at"
|
96
|
-
t.index ["post_id"], name: "index_post_histories_on_post_id"
|
97
|
-
t.index ["snapshot_id"], name: "index_post_histories_on_snapshot_id"
|
98
|
-
end
|
99
|
-
|
100
|
-
create_table "posts", force: :cascade do |t|
|
101
|
-
t.string "title", null: false
|
102
|
-
t.text "body", null: false
|
103
|
-
t.integer "author_id", null: false
|
104
|
-
t.boolean "enabled", default: false
|
105
|
-
t.datetime "live_at", precision: nil
|
106
|
-
t.datetime "deleted_at", precision: nil
|
107
|
-
t.datetime "created_at", precision: nil, null: false
|
108
|
-
t.datetime "updated_at", precision: nil, null: false
|
109
|
-
t.index ["author_id"], name: "index_posts_on_author_id"
|
110
|
-
t.index ["deleted_at"], name: "index_posts_on_deleted_at"
|
111
|
-
t.index ["enabled"], name: "index_posts_on_enabled"
|
112
|
-
t.index ["live_at"], name: "index_posts_on_live_at"
|
113
|
-
end
|
114
|
-
|
115
|
-
create_table "safe_post_histories", force: :cascade do |t|
|
116
|
-
t.integer "safe_post_id", null: false
|
117
|
-
t.string "title", null: false
|
118
|
-
t.text "body", null: false
|
119
|
-
t.integer "author_id", null: false
|
120
|
-
t.boolean "enabled", default: false
|
121
|
-
t.datetime "live_at", precision: nil
|
122
|
-
t.datetime "deleted_at", precision: nil
|
123
|
-
t.datetime "created_at", precision: nil, null: false
|
124
|
-
t.datetime "updated_at", precision: nil, null: false
|
125
|
-
t.datetime "history_started_at", precision: nil, null: false
|
126
|
-
t.datetime "history_ended_at", precision: nil
|
127
|
-
t.integer "history_user_id"
|
128
|
-
t.string "snapshot_id"
|
129
|
-
t.index ["author_id"], name: "index_safe_post_histories_on_author_id"
|
130
|
-
t.index ["deleted_at"], name: "index_safe_post_histories_on_deleted_at"
|
131
|
-
t.index ["enabled"], name: "index_safe_post_histories_on_enabled"
|
132
|
-
t.index ["history_ended_at"], name: "index_safe_post_histories_on_history_ended_at"
|
133
|
-
t.index ["history_started_at"], name: "index_safe_post_histories_on_history_started_at"
|
134
|
-
t.index ["history_user_id"], name: "index_safe_post_histories_on_history_user_id"
|
135
|
-
t.index ["live_at"], name: "index_safe_post_histories_on_live_at"
|
136
|
-
t.index ["safe_post_id"], name: "index_safe_post_histories_on_safe_post_id"
|
137
|
-
t.index ["snapshot_id"], name: "index_safe_post_histories_on_snapshot_id"
|
138
|
-
end
|
139
|
-
|
140
|
-
create_table "safe_posts", force: :cascade do |t|
|
141
|
-
t.string "title", null: false
|
142
|
-
t.text "body", null: false
|
143
|
-
t.integer "author_id", null: false
|
144
|
-
t.boolean "enabled", default: false
|
145
|
-
t.datetime "live_at", precision: nil
|
146
|
-
t.datetime "deleted_at", precision: nil
|
147
|
-
t.datetime "created_at", precision: nil, null: false
|
148
|
-
t.datetime "updated_at", precision: nil, null: false
|
149
|
-
t.index ["author_id"], name: "index_safe_posts_on_author_id"
|
150
|
-
t.index ["deleted_at"], name: "index_safe_posts_on_deleted_at"
|
151
|
-
t.index ["enabled"], name: "index_safe_posts_on_enabled"
|
152
|
-
t.index ["live_at"], name: "index_safe_posts_on_live_at"
|
153
|
-
end
|
154
|
-
|
155
|
-
create_table "silent_post_histories", force: :cascade do |t|
|
156
|
-
t.integer "silent_post_id", null: false
|
157
|
-
t.string "title", null: false
|
158
|
-
t.text "body", null: false
|
159
|
-
t.integer "author_id", null: false
|
160
|
-
t.boolean "enabled", default: false
|
161
|
-
t.datetime "live_at", precision: nil
|
162
|
-
t.datetime "deleted_at", precision: nil
|
163
|
-
t.datetime "created_at", precision: nil, null: false
|
164
|
-
t.datetime "updated_at", precision: nil, null: false
|
165
|
-
t.datetime "history_started_at", precision: nil, null: false
|
166
|
-
t.datetime "history_ended_at", precision: nil
|
167
|
-
t.integer "history_user_id"
|
168
|
-
t.string "snapshot_id"
|
169
|
-
t.index ["author_id"], name: "index_silent_post_histories_on_author_id"
|
170
|
-
t.index ["deleted_at"], name: "index_silent_post_histories_on_deleted_at"
|
171
|
-
t.index ["enabled"], name: "index_silent_post_histories_on_enabled"
|
172
|
-
t.index ["history_ended_at"], name: "index_silent_post_histories_on_history_ended_at"
|
173
|
-
t.index ["history_started_at"], name: "index_silent_post_histories_on_history_started_at"
|
174
|
-
t.index ["history_user_id"], name: "index_silent_post_histories_on_history_user_id"
|
175
|
-
t.index ["live_at"], name: "index_silent_post_histories_on_live_at"
|
176
|
-
t.index ["silent_post_id"], name: "index_silent_post_histories_on_silent_post_id"
|
177
|
-
t.index ["snapshot_id"], name: "index_silent_post_histories_on_snapshot_id"
|
178
|
-
end
|
179
|
-
|
180
|
-
create_table "silent_posts", force: :cascade do |t|
|
181
|
-
t.string "title", null: false
|
182
|
-
t.text "body", null: false
|
183
|
-
t.integer "author_id", null: false
|
184
|
-
t.boolean "enabled", default: false
|
185
|
-
t.datetime "live_at", precision: nil
|
186
|
-
t.datetime "deleted_at", precision: nil
|
187
|
-
t.datetime "created_at", precision: nil, null: false
|
188
|
-
t.datetime "updated_at", precision: nil, null: false
|
189
|
-
t.index ["author_id"], name: "index_silent_posts_on_author_id"
|
190
|
-
t.index ["deleted_at"], name: "index_silent_posts_on_deleted_at"
|
191
|
-
t.index ["enabled"], name: "index_silent_posts_on_enabled"
|
192
|
-
t.index ["live_at"], name: "index_silent_posts_on_live_at"
|
193
|
-
end
|
194
|
-
|
195
|
-
create_table "thing_with_compound_index_histories", force: :cascade do |t|
|
196
|
-
t.integer "thing_with_compound_index_id", null: false
|
197
|
-
t.string "key"
|
198
|
-
t.string "value"
|
199
|
-
t.datetime "history_started_at", precision: nil, null: false
|
200
|
-
t.datetime "history_ended_at", precision: nil
|
201
|
-
t.integer "history_user_id"
|
202
|
-
t.string "snapshot_id"
|
203
|
-
t.index ["history_ended_at"], name: "index_thing_with_compound_index_histories_on_history_ended_at"
|
204
|
-
t.index ["history_started_at"], name: "index_thing_with_compound_index_histories_on_history_started_at"
|
205
|
-
t.index ["history_user_id"], name: "index_thing_with_compound_index_histories_on_history_user_id"
|
206
|
-
t.index ["key", "value"], name: "idx_history_k_v"
|
207
|
-
t.index ["snapshot_id"], name: "index_thing_with_compound_index_histories_on_snapshot_id"
|
208
|
-
t.index ["thing_with_compound_index_id"], name: "idx_k_v_histories"
|
209
|
-
end
|
210
|
-
|
211
|
-
create_table "thing_with_compound_indices", force: :cascade do |t|
|
212
|
-
t.string "key"
|
213
|
-
t.string "value"
|
214
|
-
t.index ["key", "value"], name: "idx_key_value"
|
215
|
-
end
|
216
|
-
|
217
|
-
create_table "thing_without_histories", force: :cascade do |t|
|
218
|
-
t.string "name"
|
219
|
-
end
|
220
|
-
|
221
|
-
create_table "users", force: :cascade do |t|
|
222
|
-
t.string "name"
|
223
|
-
end
|
224
|
-
|
225
|
-
end
|
@@ -1,40 +0,0 @@
|
|
1
|
-
example_id | status | run_time |
|
2
|
-
----------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/historiographer_spec.rb[1:1:1] | passed | 0.03206 seconds |
|
4
|
-
./spec/historiographer_spec.rb[1:1:2] | passed | 0.03548 seconds |
|
5
|
-
./spec/historiographer_spec.rb[1:1:3] | passed | 0.0394 seconds |
|
6
|
-
./spec/historiographer_spec.rb[1:2:1] | passed | 0.04024 seconds |
|
7
|
-
./spec/historiographer_spec.rb[1:2:2] | passed | 0.03537 seconds |
|
8
|
-
./spec/historiographer_spec.rb[1:2:3:1:1] | passed | 0.05859 seconds |
|
9
|
-
./spec/historiographer_spec.rb[1:2:3:1:2] | passed | 0.04457 seconds |
|
10
|
-
./spec/historiographer_spec.rb[1:2:3:2:1] | passed | 0.04026 seconds |
|
11
|
-
./spec/historiographer_spec.rb[1:2:3:2:2] | passed | 0.04242 seconds |
|
12
|
-
./spec/historiographer_spec.rb[1:2:3:2:3] | passed | 0.03368 seconds |
|
13
|
-
./spec/historiographer_spec.rb[1:2:3:3:1] | passed | 0.05167 seconds |
|
14
|
-
./spec/historiographer_spec.rb[1:2:3:3:2] | passed | 0.04029 seconds |
|
15
|
-
./spec/historiographer_spec.rb[1:2:4:1] | passed | 0.04736 seconds |
|
16
|
-
./spec/historiographer_spec.rb[1:2:4:2] | passed | 0.03779 seconds |
|
17
|
-
./spec/historiographer_spec.rb[1:2:4:3] | passed | 0.03484 seconds |
|
18
|
-
./spec/historiographer_spec.rb[1:2:5:1] | passed | 0.04458 seconds |
|
19
|
-
./spec/historiographer_spec.rb[1:2:5:2] | passed | 0.03644 seconds |
|
20
|
-
./spec/historiographer_spec.rb[1:2:5:3] | passed | 0.03426 seconds |
|
21
|
-
./spec/historiographer_spec.rb[1:2:6] | passed | 0.03251 seconds |
|
22
|
-
./spec/historiographer_spec.rb[1:2:7] | passed | 0.04135 seconds |
|
23
|
-
./spec/historiographer_spec.rb[1:2:8] | passed | 0.03819 seconds |
|
24
|
-
./spec/historiographer_spec.rb[1:3:1] | passed | 0.03542 seconds |
|
25
|
-
./spec/historiographer_spec.rb[1:4:1] | passed | 0.03833 seconds |
|
26
|
-
./spec/historiographer_spec.rb[1:5:1] | passed | 0.03372 seconds |
|
27
|
-
./spec/historiographer_spec.rb[1:5:2] | passed | 0.05387 seconds |
|
28
|
-
./spec/historiographer_spec.rb[1:6:1] | passed | 0.0377 seconds |
|
29
|
-
./spec/historiographer_spec.rb[1:6:2] | passed | 0.03973 seconds |
|
30
|
-
./spec/historiographer_spec.rb[1:7:1] | passed | 0.03895 seconds |
|
31
|
-
./spec/historiographer_spec.rb[1:8:1] | passed | 0.03733 seconds |
|
32
|
-
./spec/historiographer_spec.rb[1:9:1] | passed | 0.0322 seconds |
|
33
|
-
./spec/historiographer_spec.rb[1:10:1] | passed | 0.03434 seconds |
|
34
|
-
./spec/historiographer_spec.rb[1:10:2] | passed | 0.0363 seconds |
|
35
|
-
./spec/historiographer_spec.rb[1:10:3] | passed | 0.03492 seconds |
|
36
|
-
./spec/historiographer_spec.rb[1:10:4] | passed | 0.03702 seconds |
|
37
|
-
./spec/historiographer_spec.rb[1:11:1] | passed | 0.05087 seconds |
|
38
|
-
./spec/historiographer_spec.rb[1:11:2] | passed | 0.06332 seconds |
|
39
|
-
./spec/historiographer_spec.rb[1:11:3] | passed | 0.06558 seconds |
|
40
|
-
./spec/historiographer_spec.rb[1:12:1] | passed | 0.15112 seconds |
|