temporal_tables 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55f7a578768440a6fdc770e81ad15f2a8e29797e399325ddd3fc9e2424f65b11
4
- data.tar.gz: ad7a2f9d0a3a78111484ad178501d3d35c965e11dbdf2954641c384291142c5a
3
+ metadata.gz: 7a2a5e35b72b615ab7c9e690bcaab833583834b3fd440e762cab86ae545fc8fd
4
+ data.tar.gz: 11429f65bbc062d283f85271811f2dbbe867d1b420906365490c51b783a53f54
5
5
  SHA512:
6
- metadata.gz: 3185691e58dc83ed24bad103ded115f8ac1d49c4f2f2ac68229c7157493ae1a31a8c37fbd5354922a74c172b8516d797a70339b62d5d4004d7c2ca800cbe5051
7
- data.tar.gz: 00372454aa452460c4e4ad66ab62202c549ba729823bed275bafc9c7f5c40ee6fdf9d6769d8439ca5273c5a9f20742f02d7049663853e9e89b2d913bd6712645
6
+ metadata.gz: f764f397e1c647a3eeda69b133c230e03ce1df412d05ad2e3a3f5e851b2c86f524d3f692dc875ad0c03eeb433ca041390a91bf8b79065ebce0e9b7a98ad1c1ff
7
+ data.tar.gz: cd93d55c4f1dd33b05f78a5a67fe30003c6dc16cfbb3f139c4ec7514544ab96846ed32edf128360c2077ce745c0c0238e3229c37a7bb4e5a795aed1770a644d8
data/README.md CHANGED
@@ -143,5 +143,11 @@ Add an `updated_by` column to all temporal tables to track who made any changes,
143
143
  TemporalTables.add_updated_by_field(:integer) { User.current_user&.id }
144
144
  ```
145
145
 
146
+ ## Development
147
+
148
+ To add a new version of rails to the specs, create corresponding Gemfiles in the `gemfiles/` directory, and add references to them in `.travis.yml`.
149
+
150
+ To run specs, run `rake matrix:install` and `rake matrix:spec`.
151
+
146
152
  ## Copyright
147
153
  See [LICENSE](https://github.com/bkroeker/temporal_tables/blob/master/LICENSE.txt) for more details.
@@ -2,7 +2,7 @@ PATH
2
2
  remote: ..
3
3
  specs:
4
4
  temporal_tables (0.7.0)
5
- rails (>= 5.0, <= 6.0)
5
+ rails (>= 5.0, < 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@ PATH
2
2
  remote: ..
3
3
  specs:
4
4
  temporal_tables (0.7.0)
5
- rails (>= 5.0, <= 6.0)
5
+ rails (>= 5.0, < 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@ PATH
2
2
  remote: ..
3
3
  specs:
4
4
  temporal_tables (0.7.0)
5
- rails (>= 5.0, <= 6.0)
5
+ rails (>= 5.0, < 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@ PATH
2
2
  remote: ..
3
3
  specs:
4
4
  temporal_tables (0.7.0)
5
- rails (>= 5.0, <= 6.0)
5
+ rails (>= 5.0, < 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@ PATH
2
2
  remote: ..
3
3
  specs:
4
4
  temporal_tables (0.7.0)
5
- rails (>= 5.0, <= 6.0)
5
+ rails (>= 5.0, < 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@ PATH
2
2
  remote: ..
3
3
  specs:
4
4
  temporal_tables (0.7.0)
5
- rails (>= 5.0, <= 6.0)
5
+ rails (>= 5.0, < 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'rails', '~> 6.0.0'
4
+ gem 'rails', '~> 6.0.2'
5
5
  gem 'mysql2'
6
6
 
7
7
  # Development dependencies
@@ -2,156 +2,156 @@ PATH
2
2
  remote: ..
3
3
  specs:
4
4
  temporal_tables (0.7.0)
5
- rails (>= 5.0, <= 6.0)
5
+ rails (>= 5.0, < 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.0)
11
- actionpack (= 6.0.0)
10
+ actioncable (6.0.2.1)
11
+ actionpack (= 6.0.2.1)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.0)
15
- actionpack (= 6.0.0)
16
- activejob (= 6.0.0)
17
- activerecord (= 6.0.0)
18
- activestorage (= 6.0.0)
19
- activesupport (= 6.0.0)
14
+ actionmailbox (6.0.2.1)
15
+ actionpack (= 6.0.2.1)
16
+ activejob (= 6.0.2.1)
17
+ activerecord (= 6.0.2.1)
18
+ activestorage (= 6.0.2.1)
19
+ activesupport (= 6.0.2.1)
20
20
  mail (>= 2.7.1)
21
- actionmailer (6.0.0)
22
- actionpack (= 6.0.0)
23
- actionview (= 6.0.0)
24
- activejob (= 6.0.0)
21
+ actionmailer (6.0.2.1)
22
+ actionpack (= 6.0.2.1)
23
+ actionview (= 6.0.2.1)
24
+ activejob (= 6.0.2.1)
25
25
  mail (~> 2.5, >= 2.5.4)
26
26
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.0)
28
- actionview (= 6.0.0)
29
- activesupport (= 6.0.0)
30
- rack (~> 2.0)
27
+ actionpack (6.0.2.1)
28
+ actionview (= 6.0.2.1)
29
+ activesupport (= 6.0.2.1)
30
+ rack (~> 2.0, >= 2.0.8)
31
31
  rack-test (>= 0.6.3)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.0)
35
- actionpack (= 6.0.0)
36
- activerecord (= 6.0.0)
37
- activestorage (= 6.0.0)
38
- activesupport (= 6.0.0)
34
+ actiontext (6.0.2.1)
35
+ actionpack (= 6.0.2.1)
36
+ activerecord (= 6.0.2.1)
37
+ activestorage (= 6.0.2.1)
38
+ activesupport (= 6.0.2.1)
39
39
  nokogiri (>= 1.8.5)
40
- actionview (6.0.0)
41
- activesupport (= 6.0.0)
40
+ actionview (6.0.2.1)
41
+ activesupport (= 6.0.2.1)
42
42
  builder (~> 3.1)
43
43
  erubi (~> 1.4)
44
44
  rails-dom-testing (~> 2.0)
45
45
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.0)
47
- activesupport (= 6.0.0)
46
+ activejob (6.0.2.1)
47
+ activesupport (= 6.0.2.1)
48
48
  globalid (>= 0.3.6)
49
- activemodel (6.0.0)
50
- activesupport (= 6.0.0)
51
- activerecord (6.0.0)
52
- activemodel (= 6.0.0)
53
- activesupport (= 6.0.0)
54
- activestorage (6.0.0)
55
- actionpack (= 6.0.0)
56
- activejob (= 6.0.0)
57
- activerecord (= 6.0.0)
49
+ activemodel (6.0.2.1)
50
+ activesupport (= 6.0.2.1)
51
+ activerecord (6.0.2.1)
52
+ activemodel (= 6.0.2.1)
53
+ activesupport (= 6.0.2.1)
54
+ activestorage (6.0.2.1)
55
+ actionpack (= 6.0.2.1)
56
+ activejob (= 6.0.2.1)
57
+ activerecord (= 6.0.2.1)
58
58
  marcel (~> 0.3.1)
59
- activesupport (6.0.0)
59
+ activesupport (6.0.2.1)
60
60
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
61
  i18n (>= 0.7, < 2)
62
62
  minitest (~> 5.1)
63
63
  tzinfo (~> 1.1)
64
- zeitwerk (~> 2.1, >= 2.1.8)
65
- builder (3.2.3)
66
- byebug (11.0.1)
67
- combustion (1.1.1)
64
+ zeitwerk (~> 2.2)
65
+ builder (3.2.4)
66
+ byebug (11.1.1)
67
+ combustion (1.1.2)
68
68
  activesupport (>= 3.0.0)
69
69
  railties (>= 3.0.0)
70
70
  thor (>= 0.14.6)
71
- concurrent-ruby (1.1.5)
72
- crass (1.0.4)
73
- database_cleaner (1.7.0)
71
+ concurrent-ruby (1.1.6)
72
+ crass (1.0.6)
73
+ database_cleaner (1.8.3)
74
74
  diff-lcs (1.3)
75
- erubi (1.8.0)
75
+ erubi (1.9.0)
76
76
  gemika (0.4.0)
77
77
  globalid (0.4.2)
78
78
  activesupport (>= 4.2.0)
79
- i18n (1.6.0)
79
+ i18n (1.8.2)
80
80
  concurrent-ruby (~> 1.0)
81
- loofah (2.2.3)
81
+ loofah (2.4.0)
82
82
  crass (~> 1.0.2)
83
83
  nokogiri (>= 1.5.9)
84
84
  mail (2.7.1)
85
85
  mini_mime (>= 0.1.1)
86
86
  marcel (0.3.3)
87
87
  mimemagic (~> 0.3.2)
88
- method_source (0.9.2)
89
- mimemagic (0.3.3)
88
+ method_source (1.0.0)
89
+ mimemagic (0.3.4)
90
90
  mini_mime (1.0.2)
91
91
  mini_portile2 (2.4.0)
92
- minitest (5.11.3)
93
- mysql2 (0.5.2)
94
- nio4r (2.5.1)
95
- nokogiri (1.10.4)
92
+ minitest (5.14.0)
93
+ mysql2 (0.5.3)
94
+ nio4r (2.5.2)
95
+ nokogiri (1.10.9)
96
96
  mini_portile2 (~> 2.4.0)
97
- rack (2.0.7)
97
+ rack (2.2.2)
98
98
  rack-test (1.1.0)
99
99
  rack (>= 1.0, < 3)
100
- rails (6.0.0)
101
- actioncable (= 6.0.0)
102
- actionmailbox (= 6.0.0)
103
- actionmailer (= 6.0.0)
104
- actionpack (= 6.0.0)
105
- actiontext (= 6.0.0)
106
- actionview (= 6.0.0)
107
- activejob (= 6.0.0)
108
- activemodel (= 6.0.0)
109
- activerecord (= 6.0.0)
110
- activestorage (= 6.0.0)
111
- activesupport (= 6.0.0)
100
+ rails (6.0.2.1)
101
+ actioncable (= 6.0.2.1)
102
+ actionmailbox (= 6.0.2.1)
103
+ actionmailer (= 6.0.2.1)
104
+ actionpack (= 6.0.2.1)
105
+ actiontext (= 6.0.2.1)
106
+ actionview (= 6.0.2.1)
107
+ activejob (= 6.0.2.1)
108
+ activemodel (= 6.0.2.1)
109
+ activerecord (= 6.0.2.1)
110
+ activestorage (= 6.0.2.1)
111
+ activesupport (= 6.0.2.1)
112
112
  bundler (>= 1.3.0)
113
- railties (= 6.0.0)
113
+ railties (= 6.0.2.1)
114
114
  sprockets-rails (>= 2.0.0)
115
115
  rails-dom-testing (2.0.3)
116
116
  activesupport (>= 4.2.0)
117
117
  nokogiri (>= 1.6)
118
- rails-html-sanitizer (1.2.0)
119
- loofah (~> 2.2, >= 2.2.2)
120
- railties (6.0.0)
121
- actionpack (= 6.0.0)
122
- activesupport (= 6.0.0)
118
+ rails-html-sanitizer (1.3.0)
119
+ loofah (~> 2.3)
120
+ railties (6.0.2.1)
121
+ actionpack (= 6.0.2.1)
122
+ activesupport (= 6.0.2.1)
123
123
  method_source
124
124
  rake (>= 0.8.7)
125
125
  thor (>= 0.20.3, < 2.0)
126
- rake (12.3.3)
127
- rspec (3.8.0)
128
- rspec-core (~> 3.8.0)
129
- rspec-expectations (~> 3.8.0)
130
- rspec-mocks (~> 3.8.0)
131
- rspec-core (3.8.2)
132
- rspec-support (~> 3.8.0)
133
- rspec-expectations (3.8.4)
126
+ rake (13.0.1)
127
+ rspec (3.9.0)
128
+ rspec-core (~> 3.9.0)
129
+ rspec-expectations (~> 3.9.0)
130
+ rspec-mocks (~> 3.9.0)
131
+ rspec-core (3.9.1)
132
+ rspec-support (~> 3.9.1)
133
+ rspec-expectations (3.9.1)
134
134
  diff-lcs (>= 1.2.0, < 2.0)
135
- rspec-support (~> 3.8.0)
136
- rspec-mocks (3.8.1)
135
+ rspec-support (~> 3.9.0)
136
+ rspec-mocks (3.9.1)
137
137
  diff-lcs (>= 1.2.0, < 2.0)
138
- rspec-support (~> 3.8.0)
139
- rspec-support (3.8.2)
140
- sprockets (3.7.2)
138
+ rspec-support (~> 3.9.0)
139
+ rspec-support (3.9.2)
140
+ sprockets (4.0.0)
141
141
  concurrent-ruby (~> 1.0)
142
142
  rack (> 1, < 3)
143
143
  sprockets-rails (3.2.1)
144
144
  actionpack (>= 4.0)
145
145
  activesupport (>= 4.0)
146
146
  sprockets (>= 3.0.0)
147
- thor (0.20.3)
147
+ thor (1.0.1)
148
148
  thread_safe (0.3.6)
149
- tzinfo (1.2.5)
149
+ tzinfo (1.2.6)
150
150
  thread_safe (~> 0.1)
151
151
  websocket-driver (0.7.1)
152
152
  websocket-extensions (>= 0.1.0)
153
153
  websocket-extensions (0.1.4)
154
- zeitwerk (2.1.9)
154
+ zeitwerk (2.3.0)
155
155
 
156
156
  PLATFORMS
157
157
  ruby
@@ -162,7 +162,7 @@ DEPENDENCIES
162
162
  database_cleaner
163
163
  gemika
164
164
  mysql2
165
- rails (~> 6.0.0)
165
+ rails (~> 6.0.2)
166
166
  rake
167
167
  rspec (~> 3.4)
168
168
  temporal_tables!
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'rails', '~> 6.0.0'
4
+ gem 'rails', '~> 6.0.2'
5
5
  gem 'pg', '>= 0.18', '< 2.0'
6
6
 
7
7
  # Development dependencies
@@ -2,156 +2,156 @@ PATH
2
2
  remote: ..
3
3
  specs:
4
4
  temporal_tables (0.7.0)
5
- rails (>= 5.0, <= 6.0)
5
+ rails (>= 5.0, < 6.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.0)
11
- actionpack (= 6.0.0)
10
+ actioncable (6.0.2.1)
11
+ actionpack (= 6.0.2.1)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.0)
15
- actionpack (= 6.0.0)
16
- activejob (= 6.0.0)
17
- activerecord (= 6.0.0)
18
- activestorage (= 6.0.0)
19
- activesupport (= 6.0.0)
14
+ actionmailbox (6.0.2.1)
15
+ actionpack (= 6.0.2.1)
16
+ activejob (= 6.0.2.1)
17
+ activerecord (= 6.0.2.1)
18
+ activestorage (= 6.0.2.1)
19
+ activesupport (= 6.0.2.1)
20
20
  mail (>= 2.7.1)
21
- actionmailer (6.0.0)
22
- actionpack (= 6.0.0)
23
- actionview (= 6.0.0)
24
- activejob (= 6.0.0)
21
+ actionmailer (6.0.2.1)
22
+ actionpack (= 6.0.2.1)
23
+ actionview (= 6.0.2.1)
24
+ activejob (= 6.0.2.1)
25
25
  mail (~> 2.5, >= 2.5.4)
26
26
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.0)
28
- actionview (= 6.0.0)
29
- activesupport (= 6.0.0)
30
- rack (~> 2.0)
27
+ actionpack (6.0.2.1)
28
+ actionview (= 6.0.2.1)
29
+ activesupport (= 6.0.2.1)
30
+ rack (~> 2.0, >= 2.0.8)
31
31
  rack-test (>= 0.6.3)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.0)
35
- actionpack (= 6.0.0)
36
- activerecord (= 6.0.0)
37
- activestorage (= 6.0.0)
38
- activesupport (= 6.0.0)
34
+ actiontext (6.0.2.1)
35
+ actionpack (= 6.0.2.1)
36
+ activerecord (= 6.0.2.1)
37
+ activestorage (= 6.0.2.1)
38
+ activesupport (= 6.0.2.1)
39
39
  nokogiri (>= 1.8.5)
40
- actionview (6.0.0)
41
- activesupport (= 6.0.0)
40
+ actionview (6.0.2.1)
41
+ activesupport (= 6.0.2.1)
42
42
  builder (~> 3.1)
43
43
  erubi (~> 1.4)
44
44
  rails-dom-testing (~> 2.0)
45
45
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.0)
47
- activesupport (= 6.0.0)
46
+ activejob (6.0.2.1)
47
+ activesupport (= 6.0.2.1)
48
48
  globalid (>= 0.3.6)
49
- activemodel (6.0.0)
50
- activesupport (= 6.0.0)
51
- activerecord (6.0.0)
52
- activemodel (= 6.0.0)
53
- activesupport (= 6.0.0)
54
- activestorage (6.0.0)
55
- actionpack (= 6.0.0)
56
- activejob (= 6.0.0)
57
- activerecord (= 6.0.0)
49
+ activemodel (6.0.2.1)
50
+ activesupport (= 6.0.2.1)
51
+ activerecord (6.0.2.1)
52
+ activemodel (= 6.0.2.1)
53
+ activesupport (= 6.0.2.1)
54
+ activestorage (6.0.2.1)
55
+ actionpack (= 6.0.2.1)
56
+ activejob (= 6.0.2.1)
57
+ activerecord (= 6.0.2.1)
58
58
  marcel (~> 0.3.1)
59
- activesupport (6.0.0)
59
+ activesupport (6.0.2.1)
60
60
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
61
  i18n (>= 0.7, < 2)
62
62
  minitest (~> 5.1)
63
63
  tzinfo (~> 1.1)
64
- zeitwerk (~> 2.1, >= 2.1.8)
65
- builder (3.2.3)
66
- byebug (11.0.1)
67
- combustion (1.1.1)
64
+ zeitwerk (~> 2.2)
65
+ builder (3.2.4)
66
+ byebug (11.1.1)
67
+ combustion (1.1.2)
68
68
  activesupport (>= 3.0.0)
69
69
  railties (>= 3.0.0)
70
70
  thor (>= 0.14.6)
71
- concurrent-ruby (1.1.5)
72
- crass (1.0.4)
73
- database_cleaner (1.7.0)
71
+ concurrent-ruby (1.1.6)
72
+ crass (1.0.6)
73
+ database_cleaner (1.8.3)
74
74
  diff-lcs (1.3)
75
- erubi (1.8.0)
75
+ erubi (1.9.0)
76
76
  gemika (0.4.0)
77
77
  globalid (0.4.2)
78
78
  activesupport (>= 4.2.0)
79
- i18n (1.6.0)
79
+ i18n (1.8.2)
80
80
  concurrent-ruby (~> 1.0)
81
- loofah (2.2.3)
81
+ loofah (2.4.0)
82
82
  crass (~> 1.0.2)
83
83
  nokogiri (>= 1.5.9)
84
84
  mail (2.7.1)
85
85
  mini_mime (>= 0.1.1)
86
86
  marcel (0.3.3)
87
87
  mimemagic (~> 0.3.2)
88
- method_source (0.9.2)
89
- mimemagic (0.3.3)
88
+ method_source (1.0.0)
89
+ mimemagic (0.3.4)
90
90
  mini_mime (1.0.2)
91
91
  mini_portile2 (2.4.0)
92
- minitest (5.11.3)
93
- nio4r (2.5.1)
94
- nokogiri (1.10.4)
92
+ minitest (5.14.0)
93
+ nio4r (2.5.2)
94
+ nokogiri (1.10.9)
95
95
  mini_portile2 (~> 2.4.0)
96
- pg (1.1.4)
97
- rack (2.0.7)
96
+ pg (1.2.3)
97
+ rack (2.2.2)
98
98
  rack-test (1.1.0)
99
99
  rack (>= 1.0, < 3)
100
- rails (6.0.0)
101
- actioncable (= 6.0.0)
102
- actionmailbox (= 6.0.0)
103
- actionmailer (= 6.0.0)
104
- actionpack (= 6.0.0)
105
- actiontext (= 6.0.0)
106
- actionview (= 6.0.0)
107
- activejob (= 6.0.0)
108
- activemodel (= 6.0.0)
109
- activerecord (= 6.0.0)
110
- activestorage (= 6.0.0)
111
- activesupport (= 6.0.0)
100
+ rails (6.0.2.1)
101
+ actioncable (= 6.0.2.1)
102
+ actionmailbox (= 6.0.2.1)
103
+ actionmailer (= 6.0.2.1)
104
+ actionpack (= 6.0.2.1)
105
+ actiontext (= 6.0.2.1)
106
+ actionview (= 6.0.2.1)
107
+ activejob (= 6.0.2.1)
108
+ activemodel (= 6.0.2.1)
109
+ activerecord (= 6.0.2.1)
110
+ activestorage (= 6.0.2.1)
111
+ activesupport (= 6.0.2.1)
112
112
  bundler (>= 1.3.0)
113
- railties (= 6.0.0)
113
+ railties (= 6.0.2.1)
114
114
  sprockets-rails (>= 2.0.0)
115
115
  rails-dom-testing (2.0.3)
116
116
  activesupport (>= 4.2.0)
117
117
  nokogiri (>= 1.6)
118
- rails-html-sanitizer (1.2.0)
119
- loofah (~> 2.2, >= 2.2.2)
120
- railties (6.0.0)
121
- actionpack (= 6.0.0)
122
- activesupport (= 6.0.0)
118
+ rails-html-sanitizer (1.3.0)
119
+ loofah (~> 2.3)
120
+ railties (6.0.2.1)
121
+ actionpack (= 6.0.2.1)
122
+ activesupport (= 6.0.2.1)
123
123
  method_source
124
124
  rake (>= 0.8.7)
125
125
  thor (>= 0.20.3, < 2.0)
126
- rake (12.3.3)
127
- rspec (3.8.0)
128
- rspec-core (~> 3.8.0)
129
- rspec-expectations (~> 3.8.0)
130
- rspec-mocks (~> 3.8.0)
131
- rspec-core (3.8.2)
132
- rspec-support (~> 3.8.0)
133
- rspec-expectations (3.8.4)
126
+ rake (13.0.1)
127
+ rspec (3.9.0)
128
+ rspec-core (~> 3.9.0)
129
+ rspec-expectations (~> 3.9.0)
130
+ rspec-mocks (~> 3.9.0)
131
+ rspec-core (3.9.1)
132
+ rspec-support (~> 3.9.1)
133
+ rspec-expectations (3.9.1)
134
134
  diff-lcs (>= 1.2.0, < 2.0)
135
- rspec-support (~> 3.8.0)
136
- rspec-mocks (3.8.1)
135
+ rspec-support (~> 3.9.0)
136
+ rspec-mocks (3.9.1)
137
137
  diff-lcs (>= 1.2.0, < 2.0)
138
- rspec-support (~> 3.8.0)
139
- rspec-support (3.8.2)
140
- sprockets (3.7.2)
138
+ rspec-support (~> 3.9.0)
139
+ rspec-support (3.9.2)
140
+ sprockets (4.0.0)
141
141
  concurrent-ruby (~> 1.0)
142
142
  rack (> 1, < 3)
143
143
  sprockets-rails (3.2.1)
144
144
  actionpack (>= 4.0)
145
145
  activesupport (>= 4.0)
146
146
  sprockets (>= 3.0.0)
147
- thor (0.20.3)
147
+ thor (1.0.1)
148
148
  thread_safe (0.3.6)
149
- tzinfo (1.2.5)
149
+ tzinfo (1.2.6)
150
150
  thread_safe (~> 0.1)
151
151
  websocket-driver (0.7.1)
152
152
  websocket-extensions (>= 0.1.0)
153
153
  websocket-extensions (0.1.4)
154
- zeitwerk (2.1.9)
154
+ zeitwerk (2.3.0)
155
155
 
156
156
  PLATFORMS
157
157
  ruby
@@ -162,7 +162,7 @@ DEPENDENCIES
162
162
  database_cleaner
163
163
  gemika
164
164
  pg (>= 0.18, < 2.0)
165
- rails (~> 6.0.0)
165
+ rails (~> 6.0.2)
166
166
  rake
167
167
  rspec (~> 3.4)
168
168
  temporal_tables!
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'rails', '~> 6.1.0'
5
+ gem 'mysql2'
6
+
7
+ # Development dependencies
8
+ gem 'rspec', '~> 3.4'
9
+ gem 'rake'
10
+ gem 'byebug'
11
+ gem 'database_cleaner'
12
+ gem 'combustion'
13
+ gem 'gemika'
14
+
15
+ # Gem under test
16
+ gem 'temporal_tables', :path => '..'
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'rails', '~> 6.1.0'
5
+ gem 'pg', '>= 0.18', '< 2.0'
6
+
7
+ # Development dependencies
8
+ gem 'rspec', '~> 3.4'
9
+ gem 'rake'
10
+ gem 'byebug'
11
+ gem 'database_cleaner'
12
+ gem 'combustion'
13
+ gem 'gemika'
14
+
15
+ # Gem under test
16
+ gem 'temporal_tables', :path => '..'
@@ -1,7 +1,7 @@
1
1
  module TemporalTables
2
2
  # This is required for eager_load to work in Rails 6.0
3
3
  module ArelTable
4
- def create_join(to, constraint = nil, klass = Nodes::InnerJoin)
4
+ def create_join(to, constraint = nil, klass = Arel::Nodes::InnerJoin)
5
5
  join = super
6
6
  if at_value = Thread.current[:at_time]
7
7
  join = join.
@@ -10,7 +10,12 @@ module TemporalTables
10
10
  block.call t
11
11
 
12
12
  if TemporalTables.add_updated_by_field && !skip_table
13
- t.column :updated_by, TemporalTables.updated_by_type
13
+ updated_by_already_exists = t.columns.any? { |c| c.name == "updated_by" }
14
+ if updated_by_already_exists
15
+ puts "consider adding #{table_name} to TemporalTables skip_table"
16
+ else
17
+ t.column :updated_by, TemporalTables.updated_by_type
18
+ end
14
19
  end
15
20
  end
16
21
 
@@ -1,3 +1,3 @@
1
1
  module TemporalTables
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency "rails", ">= 5.0", "<= 6.0"
20
+ gem.add_dependency "rails", ">= 5.0", "< 6.1"
21
21
  gem.add_development_dependency "rspec", "~> 3.4"
22
22
  gem.add_development_dependency "combustion", "~> 0.9.1"
23
23
  gem.add_development_dependency "gemika"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: temporal_tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brent Kroeker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-29 00:00:00.000000000 Z
11
+ date: 2020-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
- - - "<="
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.0'
22
+ version: '6.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '5.0'
30
- - - "<="
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.0'
32
+ version: '6.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -106,6 +106,8 @@ files:
106
106
  - gemfiles/Gemfile.6.0.mysql.lock
107
107
  - gemfiles/Gemfile.6.0.pg
108
108
  - gemfiles/Gemfile.6.0.pg.lock
109
+ - gemfiles/Gemfile.6.1.mysql
110
+ - gemfiles/Gemfile.6.1.pg
109
111
  - lib/temporal_tables.rb
110
112
  - lib/temporal_tables/arel_table.rb
111
113
  - lib/temporal_tables/association_extensions.rb