historiographer 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +115 -39
  3. data/{Gemfile → Users/brettshollenberger/programming/historiographer/Gemfile} +0 -1
  4. data/Users/brettshollenberger/programming/historiographer/Gemfile.lock +341 -0
  5. data/Users/brettshollenberger/programming/historiographer/Guardfile +4 -0
  6. data/Users/brettshollenberger/programming/historiographer/LICENSE.txt +20 -0
  7. data/Users/brettshollenberger/programming/historiographer/README.md +298 -0
  8. data/Users/brettshollenberger/programming/historiographer/historiographer-4.1.0.gem +0 -0
  9. data/{historiographer.gemspec → Users/brettshollenberger/programming/historiographer/historiographer.gemspec} +2 -43
  10. data/Users/brettshollenberger/programming/historiographer/lib/historiographer/configuration.rb +36 -0
  11. data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer/history.rb +9 -2
  12. data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer/history_migration.rb +9 -6
  13. data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer/relation.rb +1 -1
  14. data/Users/brettshollenberger/programming/historiographer/lib/historiographer/version.rb +3 -0
  15. data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer.rb +176 -11
  16. data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/database.yml +5 -3
  17. data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20241109182017_create_comments.rb +13 -0
  18. data/Users/brettshollenberger/programming/historiographer/spec/db/migrate/20241109182020_create_comment_histories.rb +9 -0
  19. data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/schema.rb +80 -41
  20. data/Users/brettshollenberger/programming/historiographer/spec/examples.txt +40 -0
  21. data/{spec → Users/brettshollenberger/programming/historiographer/spec}/historiographer_spec.rb +265 -40
  22. data/{spec → Users/brettshollenberger/programming/historiographer/spec}/spec_helper.rb +8 -4
  23. metadata +41 -39
  24. data/.document +0 -5
  25. data/.rspec +0 -1
  26. data/.ruby-version +0 -1
  27. data/.standalone_migrations +0 -6
  28. data/Gemfile.lock +0 -289
  29. data/Guardfile +0 -70
  30. data/VERSION +0 -1
  31. data/spec/examples.txt +0 -32
  32. /data/{Rakefile → Users/brettshollenberger/programming/historiographer/Rakefile} +0 -0
  33. /data/{init.rb → Users/brettshollenberger/programming/historiographer/init.rb} +0 -0
  34. /data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer/history_migration_mysql.rb +0 -0
  35. /data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer/mysql_migration.rb +0 -0
  36. /data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer/postgres_migration.rb +0 -0
  37. /data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer/safe.rb +0 -0
  38. /data/{lib → Users/brettshollenberger/programming/historiographer/lib}/historiographer/silent.rb +0 -0
  39. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20161121212228_create_posts.rb +0 -0
  40. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20161121212229_create_post_histories.rb +0 -0
  41. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20161121212230_create_authors.rb +0 -0
  42. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20161121212231_create_author_histories.rb +0 -0
  43. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20161121212232_create_users.rb +0 -0
  44. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20171011194624_create_safe_posts.rb +0 -0
  45. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20171011194715_create_safe_post_histories.rb +0 -0
  46. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20191024142304_create_thing_with_compound_index.rb +0 -0
  47. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20191024142352_create_thing_with_compound_index_history.rb +0 -0
  48. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20191024203106_create_thing_without_history.rb +0 -0
  49. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20221018204220_create_silent_posts.rb +0 -0
  50. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/db/migrate/20221018204255_create_silent_post_histories.rb +0 -0
  51. /data/{spec → Users/brettshollenberger/programming/historiographer/spec}/factories/post.rb +0 -0
data/Gemfile.lock DELETED
@@ -1,289 +0,0 @@
1
- GIT
2
- remote: https://github.com/technicalpickles/jeweler
3
- revision: 2ab86309fc2494ba2a4e9c86c514742cd4f681c2
4
- branch: master
5
- specs:
6
- jeweler (2.3.9)
7
- builder
8
- bundler
9
- git (>= 1.2.5)
10
- github_api (~> 0.16.0)
11
- highline (>= 1.6.15)
12
- nokogiri (>= 1.5.10)
13
- psych
14
- rake
15
- rdoc
16
- semver2
17
-
18
- GEM
19
- remote: https://rubygems.org/
20
- specs:
21
- actioncable (6.1.4.4)
22
- actionpack (= 6.1.4.4)
23
- activesupport (= 6.1.4.4)
24
- nio4r (~> 2.0)
25
- websocket-driver (>= 0.6.1)
26
- actionmailbox (6.1.4.4)
27
- actionpack (= 6.1.4.4)
28
- activejob (= 6.1.4.4)
29
- activerecord (= 6.1.4.4)
30
- activestorage (= 6.1.4.4)
31
- activesupport (= 6.1.4.4)
32
- mail (>= 2.7.1)
33
- actionmailer (6.1.4.4)
34
- actionpack (= 6.1.4.4)
35
- actionview (= 6.1.4.4)
36
- activejob (= 6.1.4.4)
37
- activesupport (= 6.1.4.4)
38
- mail (~> 2.5, >= 2.5.4)
39
- rails-dom-testing (~> 2.0)
40
- actionpack (6.1.4.4)
41
- actionview (= 6.1.4.4)
42
- activesupport (= 6.1.4.4)
43
- rack (~> 2.0, >= 2.0.9)
44
- rack-test (>= 0.6.3)
45
- rails-dom-testing (~> 2.0)
46
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
47
- actiontext (6.1.4.4)
48
- actionpack (= 6.1.4.4)
49
- activerecord (= 6.1.4.4)
50
- activestorage (= 6.1.4.4)
51
- activesupport (= 6.1.4.4)
52
- nokogiri (>= 1.8.5)
53
- actionview (6.1.4.4)
54
- activesupport (= 6.1.4.4)
55
- builder (~> 3.1)
56
- erubi (~> 1.4)
57
- rails-dom-testing (~> 2.0)
58
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
59
- activejob (6.1.4.4)
60
- activesupport (= 6.1.4.4)
61
- globalid (>= 0.3.6)
62
- activemodel (6.1.4.4)
63
- activesupport (= 6.1.4.4)
64
- activerecord (6.1.4.4)
65
- activemodel (= 6.1.4.4)
66
- activesupport (= 6.1.4.4)
67
- activerecord-import (1.3.0)
68
- activerecord (>= 4.2)
69
- activestorage (6.1.4.4)
70
- actionpack (= 6.1.4.4)
71
- activejob (= 6.1.4.4)
72
- activerecord (= 6.1.4.4)
73
- activesupport (= 6.1.4.4)
74
- marcel (~> 1.0.0)
75
- mini_mime (>= 1.1.0)
76
- activesupport (6.1.4.4)
77
- concurrent-ruby (~> 1.0, >= 1.0.2)
78
- i18n (>= 1.6, < 2)
79
- minitest (>= 5.1)
80
- tzinfo (~> 2.0)
81
- zeitwerk (~> 2.3)
82
- addressable (2.4.0)
83
- builder (3.2.4)
84
- coderay (1.1.3)
85
- concurrent-ruby (1.1.10)
86
- crass (1.0.6)
87
- database_cleaner (2.0.1)
88
- database_cleaner-active_record (~> 2.0.0)
89
- database_cleaner-active_record (2.0.1)
90
- activerecord (>= 5.a)
91
- database_cleaner-core (~> 2.0.0)
92
- database_cleaner-core (2.0.1)
93
- descendants_tracker (0.0.4)
94
- thread_safe (~> 0.3, >= 0.3.1)
95
- diff-lcs (1.5.0)
96
- docile (1.4.0)
97
- erubi (1.10.0)
98
- factory_bot (6.2.0)
99
- activesupport (>= 5.0.0)
100
- factory_bot_rails (6.2.0)
101
- factory_bot (~> 6.2.0)
102
- railties (>= 5.0.0)
103
- faraday (0.9.2)
104
- multipart-post (>= 1.2, < 3)
105
- ffi (1.15.5)
106
- formatador (1.1.0)
107
- git (1.11.0)
108
- rchardet (~> 1.8)
109
- github_api (0.16.0)
110
- addressable (~> 2.4.0)
111
- descendants_tracker (~> 0.0.4)
112
- faraday (~> 0.8, < 0.10)
113
- hashie (>= 3.4)
114
- mime-types (>= 1.16, < 3.0)
115
- oauth2 (~> 1.0)
116
- globalid (1.0.0)
117
- activesupport (>= 5.0)
118
- guard (2.18.0)
119
- formatador (>= 0.2.4)
120
- listen (>= 2.7, < 4.0)
121
- lumberjack (>= 1.0.12, < 2.0)
122
- nenv (~> 0.1)
123
- notiffany (~> 0.0)
124
- pry (>= 0.13.0)
125
- shellany (~> 0.0)
126
- thor (>= 0.18.1)
127
- guard-compat (1.2.1)
128
- guard-rspec (4.7.3)
129
- guard (~> 2.1)
130
- guard-compat (~> 1.1)
131
- rspec (>= 2.99.0, < 4.0)
132
- hashie (5.0.0)
133
- highline (2.0.3)
134
- i18n (1.12.0)
135
- concurrent-ruby (~> 1.0)
136
- json (1.8.6)
137
- jwt (2.5.0)
138
- listen (3.7.1)
139
- rb-fsevent (~> 0.10, >= 0.10.3)
140
- rb-inotify (~> 0.9, >= 0.9.10)
141
- loofah (2.13.0)
142
- crass (~> 1.0.2)
143
- nokogiri (>= 1.5.9)
144
- lumberjack (1.2.8)
145
- mail (2.7.1)
146
- mini_mime (>= 0.1.1)
147
- marcel (1.0.2)
148
- method_source (1.0.0)
149
- mime-types (2.99.3)
150
- mini_mime (1.1.2)
151
- mini_portile2 (2.8.0)
152
- minitest (5.16.3)
153
- multi_json (1.15.0)
154
- multi_xml (0.6.0)
155
- multipart-post (2.2.3)
156
- mysql2 (0.5.0)
157
- nenv (0.3.0)
158
- nio4r (2.5.8)
159
- nokogiri (1.13.8)
160
- mini_portile2 (~> 2.8.0)
161
- racc (~> 1.4)
162
- notiffany (0.1.3)
163
- nenv (~> 0.1)
164
- shellany (~> 0.0)
165
- oauth2 (1.4.8)
166
- faraday (>= 0.8, < 3.0)
167
- jwt (>= 1.0, < 3.0)
168
- multi_json (~> 1.3)
169
- multi_xml (~> 0.5)
170
- rack (>= 1.2, < 3)
171
- paranoia (2.5.2)
172
- activerecord (>= 5.1, < 7.1)
173
- pg (1.3.1)
174
- pry (0.14.1)
175
- coderay (~> 1.1)
176
- method_source (~> 1.0)
177
- psych (4.0.6)
178
- stringio
179
- racc (1.6.0)
180
- rack (2.2.4)
181
- rack-test (1.1.0)
182
- rack (>= 1.0, < 3)
183
- rails (6.1.4.4)
184
- actioncable (= 6.1.4.4)
185
- actionmailbox (= 6.1.4.4)
186
- actionmailer (= 6.1.4.4)
187
- actionpack (= 6.1.4.4)
188
- actiontext (= 6.1.4.4)
189
- actionview (= 6.1.4.4)
190
- activejob (= 6.1.4.4)
191
- activemodel (= 6.1.4.4)
192
- activerecord (= 6.1.4.4)
193
- activestorage (= 6.1.4.4)
194
- activesupport (= 6.1.4.4)
195
- bundler (>= 1.15.0)
196
- railties (= 6.1.4.4)
197
- sprockets-rails (>= 2.0.0)
198
- rails-dom-testing (2.0.3)
199
- activesupport (>= 4.2.0)
200
- nokogiri (>= 1.6)
201
- rails-html-sanitizer (1.4.2)
202
- loofah (~> 2.3)
203
- railties (6.1.4.4)
204
- actionpack (= 6.1.4.4)
205
- activesupport (= 6.1.4.4)
206
- method_source
207
- rake (>= 0.13)
208
- thor (~> 1.0)
209
- rake (13.0.6)
210
- rb-fsevent (0.11.0)
211
- rb-inotify (0.10.1)
212
- ffi (~> 1.0)
213
- rchardet (1.8.0)
214
- rdoc (3.12.2)
215
- json (~> 1.4)
216
- rollbar (3.3.0)
217
- rspec (3.10.0)
218
- rspec-core (~> 3.10.0)
219
- rspec-expectations (~> 3.10.0)
220
- rspec-mocks (~> 3.10.0)
221
- rspec-core (3.10.2)
222
- rspec-support (~> 3.10.0)
223
- rspec-expectations (3.10.2)
224
- diff-lcs (>= 1.2.0, < 2.0)
225
- rspec-support (~> 3.10.0)
226
- rspec-mocks (3.10.3)
227
- diff-lcs (>= 1.2.0, < 2.0)
228
- rspec-support (~> 3.10.0)
229
- rspec-support (3.10.3)
230
- semver2 (3.4.2)
231
- shellany (0.0.1)
232
- simplecov (0.21.2)
233
- docile (~> 1.1)
234
- simplecov-html (~> 0.11)
235
- simplecov_json_formatter (~> 0.1)
236
- simplecov-html (0.12.3)
237
- simplecov_json_formatter (0.1.3)
238
- sprockets (4.1.1)
239
- concurrent-ruby (~> 1.0)
240
- rack (> 1, < 3)
241
- sprockets-rails (3.4.2)
242
- actionpack (>= 5.2)
243
- activesupport (>= 5.2)
244
- sprockets (>= 3.0.0)
245
- standalone_migrations (6.1.0)
246
- activerecord (>= 4.2.7, < 6.2.0, != 5.2.3.rc1, != 5.2.3)
247
- railties (>= 4.2.7, < 6.2.0, != 5.2.3.rc1, != 5.2.3)
248
- rake (>= 10.0)
249
- stringio (3.0.2)
250
- thor (1.2.1)
251
- thread_safe (0.3.6)
252
- timecop (0.9.4)
253
- tzinfo (2.0.5)
254
- concurrent-ruby (~> 1.0)
255
- websocket-driver (0.7.5)
256
- websocket-extensions (>= 0.1.0)
257
- websocket-extensions (0.1.5)
258
- zeitwerk (2.6.1)
259
-
260
- PLATFORMS
261
- ruby
262
-
263
- DEPENDENCIES
264
- activerecord (>= 6)
265
- activerecord-import
266
- activesupport
267
- bundler (~> 1.0)
268
- database_cleaner
269
- factory_bot_rails
270
- guard
271
- guard-rspec
272
- jeweler!
273
- mysql2 (= 0.5)
274
- paranoia
275
- pg
276
- pry
277
- rails (>= 6)
278
- rdoc (~> 3.12)
279
- rollbar
280
- rspec
281
- simplecov
282
- standalone_migrations
283
- timecop
284
-
285
- RUBY VERSION
286
- ruby 3.0.2p107
287
-
288
- BUNDLED WITH
289
- 1.17.3
data/Guardfile DELETED
@@ -1,70 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- ## Uncomment and set this to only include directories you want to watch
5
- # directories %w(app lib config test spec features) \
6
- # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
-
8
- ## Note: if you are using the `directories` clause above and you are not
9
- ## watching the project directory ('.'), then you will want to move
10
- ## the Guardfile to a watched dir and symlink it back, e.g.
11
- #
12
- # $ mkdir config
13
- # $ mv Guardfile config/
14
- # $ ln -s config/Guardfile .
15
- #
16
- # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
-
18
- # Note: The cmd option is now required due to the increasing number of ways
19
- # rspec may be run, below are examples of the most common uses.
20
- # * bundler: 'bundle exec rspec'
21
- # * bundler binstubs: 'bin/rspec'
22
- # * spring: 'bin/rspec' (This will use spring if running and you have
23
- # installed the spring binstubs per the docs)
24
- # * zeus: 'zeus rspec' (requires the server to be started separately)
25
- # * 'just' rspec: 'rspec'
26
-
27
- guard :rspec, cmd: "bundle exec rspec" do
28
- require "guard/rspec/dsl"
29
- dsl = Guard::RSpec::Dsl.new(self)
30
-
31
- # Feel free to open issues for suggestions and improvements
32
-
33
- # RSpec files
34
- rspec = dsl.rspec
35
- watch(rspec.spec_helper) { rspec.spec_dir }
36
- watch(rspec.spec_support) { rspec.spec_dir }
37
- watch(rspec.spec_files)
38
-
39
- # Ruby files
40
- ruby = dsl.ruby
41
- dsl.watch_spec_files_for(ruby.lib_files)
42
-
43
- # Rails files
44
- rails = dsl.rails(view_extensions: %w(erb haml slim))
45
- dsl.watch_spec_files_for(rails.app_files)
46
- dsl.watch_spec_files_for(rails.views)
47
-
48
- watch(rails.controllers) do |m|
49
- [
50
- rspec.spec.call("routing/#{m[1]}_routing"),
51
- rspec.spec.call("controllers/#{m[1]}_controller"),
52
- rspec.spec.call("acceptance/#{m[1]}")
53
- ]
54
- end
55
-
56
- # Rails config changes
57
- watch(rails.spec_helper) { rspec.spec_dir }
58
- watch(rails.routes) { "#{rspec.spec_dir}/routing" }
59
- watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
60
-
61
- # Capybara features specs
62
- watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
63
- watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
64
-
65
- # Turnip features and steps
66
- watch(%r{^spec/acceptance/(.+)\.feature$})
67
- watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
68
- Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
69
- end
70
- end
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 4.0.0
data/spec/examples.txt DELETED
@@ -1,32 +0,0 @@
1
- example_id | status | run_time |
2
- ----------------------------------------- | ------ | --------------- |
3
- ./spec/historiographer_spec.rb[1:1:1] | passed | 0.05541 seconds |
4
- ./spec/historiographer_spec.rb[1:1:2] | passed | 0.04942 seconds |
5
- ./spec/historiographer_spec.rb[1:1:3] | passed | 0.02648 seconds |
6
- ./spec/historiographer_spec.rb[1:2:1] | passed | 0.03832 seconds |
7
- ./spec/historiographer_spec.rb[1:2:2] | passed | 0.00076 seconds |
8
- ./spec/historiographer_spec.rb[1:2:3:1:1] | passed | 0.04672 seconds |
9
- ./spec/historiographer_spec.rb[1:2:3:1:2] | passed | 0.01971 seconds |
10
- ./spec/historiographer_spec.rb[1:2:3:2:1] | passed | 0.12226 seconds |
11
- ./spec/historiographer_spec.rb[1:2:3:2:2] | passed | 0.09424 seconds |
12
- ./spec/historiographer_spec.rb[1:2:3:2:3] | passed | 0.05644 seconds |
13
- ./spec/historiographer_spec.rb[1:2:3:3:1] | passed | 0.16536 seconds |
14
- ./spec/historiographer_spec.rb[1:2:3:3:2] | passed | 0.01638 seconds |
15
- ./spec/historiographer_spec.rb[1:2:4:1] | passed | 0.00552 seconds |
16
- ./spec/historiographer_spec.rb[1:2:4:2] | passed | 0.01095 seconds |
17
- ./spec/historiographer_spec.rb[1:2:4:3] | passed | 0.0022 seconds |
18
- ./spec/historiographer_spec.rb[1:2:5:1] | passed | 0.08367 seconds |
19
- ./spec/historiographer_spec.rb[1:2:5:2] | passed | 0.10781 seconds |
20
- ./spec/historiographer_spec.rb[1:2:5:3] | passed | 0.00516 seconds |
21
- ./spec/historiographer_spec.rb[1:2:6] | passed | 0.00482 seconds |
22
- ./spec/historiographer_spec.rb[1:2:7] | passed | 0.00642 seconds |
23
- ./spec/historiographer_spec.rb[1:2:8] | passed | 0.00926 seconds |
24
- ./spec/historiographer_spec.rb[1:3:1] | passed | 0.01607 seconds |
25
- ./spec/historiographer_spec.rb[1:4:1] | passed | 0.03777 seconds |
26
- ./spec/historiographer_spec.rb[1:5:1] | passed | 0.04254 seconds |
27
- ./spec/historiographer_spec.rb[1:5:2] | passed | 0.02652 seconds |
28
- ./spec/historiographer_spec.rb[1:6:1] | passed | 0.23851 seconds |
29
- ./spec/historiographer_spec.rb[1:6:2] | passed | 0.16412 seconds |
30
- ./spec/historiographer_spec.rb[1:7:1] | passed | 0.07495 seconds |
31
- ./spec/historiographer_spec.rb[1:8:1] | passed | 0.02917 seconds |
32
- ./spec/historiographer_spec.rb[1:9:1] | passed | 0.0228 seconds |