temporal_tables 0.6.4 → 0.6.6

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: 88bfbf7be5f376ec00be153d24f1bb3630866cbb2f59ca254287a8c24577522d
4
- data.tar.gz: eec871934adc29b3c86cf318edc561099c02e48d72217bd2c3b8c38bb8c4dbb3
3
+ metadata.gz: 751b39e906ea31cee28a7146afa577cc5788bbeb164bd4f9f0e5e04dc1a0d024
4
+ data.tar.gz: 697070c46cd1c4997f98a995044623784eb5cbe46d969f7d5a3a2622c23b4f3e
5
5
  SHA512:
6
- metadata.gz: 12f89717b5c1318aa61afd4915d16aab4f6ad2869cf365cd30fe3cee424a4b3ecb1f802065af4897b7b24eadd1cd2bf86158c8f1b02e4bb5d065148fa773ff77
7
- data.tar.gz: 1ffac0c09abbe0b31cdc86722d318478a6fa61a788b51e334fa2727ccfead8389daf2383c99c9276e665fe2f32fb197a2bd5551d996e21339f21dcedf145405e
6
+ metadata.gz: 973f379f3a886ed938d5bbd169401b752c22a8ce0ba3dead9a9dad480e63dcad563e2515ca593ae119a7280cd7cd53c0be55972c8d4114875fe5e09ae85d5c1d
7
+ data.tar.gz: a0a3483633ee91925e195e4e706d4d201f0af9f844fc92d0837e7282f17fc5a071a8058fdf33bd34bd8b870162f1819fb5852c5b0903f47934357a3e44868d42
data/.travis.yml CHANGED
@@ -2,5 +2,10 @@ rvm:
2
2
  - 2.4.3
3
3
 
4
4
  gemfile:
5
+ - gemfiles/Gemfile.5.0.pg
6
+ - gemfiles/Gemfile.5.1.pg
5
7
  - gemfiles/Gemfile.5.2.pg
8
+
9
+ - gemfiles/Gemfile.5.0.mysql
10
+ - gemfiles/Gemfile.5.1.mysql
6
11
  - gemfiles/Gemfile.5.2.mysql
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'rails', '~> 5.0.0'
5
+ gem 'mysql2', '~> 0.4.4'
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,147 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ temporal_tables (0.6.6)
5
+ rails (~> 5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.0.7.1)
11
+ actionpack (= 5.0.7.1)
12
+ nio4r (>= 1.2, < 3.0)
13
+ websocket-driver (~> 0.6.1)
14
+ actionmailer (5.0.7.1)
15
+ actionpack (= 5.0.7.1)
16
+ actionview (= 5.0.7.1)
17
+ activejob (= 5.0.7.1)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.0.7.1)
21
+ actionview (= 5.0.7.1)
22
+ activesupport (= 5.0.7.1)
23
+ rack (~> 2.0)
24
+ rack-test (~> 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.0.7.1)
28
+ activesupport (= 5.0.7.1)
29
+ builder (~> 3.1)
30
+ erubis (~> 2.7.0)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.0.7.1)
34
+ activesupport (= 5.0.7.1)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.0.7.1)
37
+ activesupport (= 5.0.7.1)
38
+ activerecord (5.0.7.1)
39
+ activemodel (= 5.0.7.1)
40
+ activesupport (= 5.0.7.1)
41
+ arel (~> 7.0)
42
+ activesupport (5.0.7.1)
43
+ concurrent-ruby (~> 1.0, >= 1.0.2)
44
+ i18n (>= 0.7, < 2)
45
+ minitest (~> 5.1)
46
+ tzinfo (~> 1.1)
47
+ arel (7.1.4)
48
+ builder (3.2.3)
49
+ byebug (10.0.2)
50
+ combustion (1.0.0)
51
+ activesupport (>= 3.0.0)
52
+ railties (>= 3.0.0)
53
+ thor (>= 0.14.6)
54
+ concurrent-ruby (1.1.4)
55
+ crass (1.0.4)
56
+ database_cleaner (1.7.0)
57
+ diff-lcs (1.3)
58
+ erubis (2.7.0)
59
+ gemika (0.3.4)
60
+ globalid (0.4.1)
61
+ activesupport (>= 4.2.0)
62
+ i18n (1.5.1)
63
+ concurrent-ruby (~> 1.0)
64
+ loofah (2.2.3)
65
+ crass (~> 1.0.2)
66
+ nokogiri (>= 1.5.9)
67
+ mail (2.7.1)
68
+ mini_mime (>= 0.1.1)
69
+ method_source (0.9.2)
70
+ mini_mime (1.0.1)
71
+ mini_portile2 (2.4.0)
72
+ minitest (5.11.3)
73
+ mysql2 (0.4.10)
74
+ nio4r (2.3.1)
75
+ nokogiri (1.10.0)
76
+ mini_portile2 (~> 2.4.0)
77
+ rack (2.0.6)
78
+ rack-test (0.6.3)
79
+ rack (>= 1.0)
80
+ rails (5.0.7.1)
81
+ actioncable (= 5.0.7.1)
82
+ actionmailer (= 5.0.7.1)
83
+ actionpack (= 5.0.7.1)
84
+ actionview (= 5.0.7.1)
85
+ activejob (= 5.0.7.1)
86
+ activemodel (= 5.0.7.1)
87
+ activerecord (= 5.0.7.1)
88
+ activesupport (= 5.0.7.1)
89
+ bundler (>= 1.3.0)
90
+ railties (= 5.0.7.1)
91
+ sprockets-rails (>= 2.0.0)
92
+ rails-dom-testing (2.0.3)
93
+ activesupport (>= 4.2.0)
94
+ nokogiri (>= 1.6)
95
+ rails-html-sanitizer (1.0.4)
96
+ loofah (~> 2.2, >= 2.2.2)
97
+ railties (5.0.7.1)
98
+ actionpack (= 5.0.7.1)
99
+ activesupport (= 5.0.7.1)
100
+ method_source
101
+ rake (>= 0.8.7)
102
+ thor (>= 0.18.1, < 2.0)
103
+ rake (12.3.2)
104
+ rspec (3.8.0)
105
+ rspec-core (~> 3.8.0)
106
+ rspec-expectations (~> 3.8.0)
107
+ rspec-mocks (~> 3.8.0)
108
+ rspec-core (3.8.0)
109
+ rspec-support (~> 3.8.0)
110
+ rspec-expectations (3.8.2)
111
+ diff-lcs (>= 1.2.0, < 2.0)
112
+ rspec-support (~> 3.8.0)
113
+ rspec-mocks (3.8.0)
114
+ diff-lcs (>= 1.2.0, < 2.0)
115
+ rspec-support (~> 3.8.0)
116
+ rspec-support (3.8.0)
117
+ sprockets (3.7.2)
118
+ concurrent-ruby (~> 1.0)
119
+ rack (> 1, < 3)
120
+ sprockets-rails (3.2.1)
121
+ actionpack (>= 4.0)
122
+ activesupport (>= 4.0)
123
+ sprockets (>= 3.0.0)
124
+ thor (0.20.3)
125
+ thread_safe (0.3.6)
126
+ tzinfo (1.2.5)
127
+ thread_safe (~> 0.1)
128
+ websocket-driver (0.6.5)
129
+ websocket-extensions (>= 0.1.0)
130
+ websocket-extensions (0.1.3)
131
+
132
+ PLATFORMS
133
+ ruby
134
+
135
+ DEPENDENCIES
136
+ byebug
137
+ combustion
138
+ database_cleaner
139
+ gemika
140
+ mysql2 (~> 0.4.4)
141
+ rails (~> 5.0.0)
142
+ rake
143
+ rspec (~> 3.4)
144
+ temporal_tables!
145
+
146
+ BUNDLED WITH
147
+ 1.16.6
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'rails', '~> 5.0.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 => '..'
@@ -0,0 +1,147 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ temporal_tables (0.6.6)
5
+ rails (~> 5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.0.7.1)
11
+ actionpack (= 5.0.7.1)
12
+ nio4r (>= 1.2, < 3.0)
13
+ websocket-driver (~> 0.6.1)
14
+ actionmailer (5.0.7.1)
15
+ actionpack (= 5.0.7.1)
16
+ actionview (= 5.0.7.1)
17
+ activejob (= 5.0.7.1)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.0.7.1)
21
+ actionview (= 5.0.7.1)
22
+ activesupport (= 5.0.7.1)
23
+ rack (~> 2.0)
24
+ rack-test (~> 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.0.7.1)
28
+ activesupport (= 5.0.7.1)
29
+ builder (~> 3.1)
30
+ erubis (~> 2.7.0)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.0.7.1)
34
+ activesupport (= 5.0.7.1)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.0.7.1)
37
+ activesupport (= 5.0.7.1)
38
+ activerecord (5.0.7.1)
39
+ activemodel (= 5.0.7.1)
40
+ activesupport (= 5.0.7.1)
41
+ arel (~> 7.0)
42
+ activesupport (5.0.7.1)
43
+ concurrent-ruby (~> 1.0, >= 1.0.2)
44
+ i18n (>= 0.7, < 2)
45
+ minitest (~> 5.1)
46
+ tzinfo (~> 1.1)
47
+ arel (7.1.4)
48
+ builder (3.2.3)
49
+ byebug (10.0.2)
50
+ combustion (1.0.0)
51
+ activesupport (>= 3.0.0)
52
+ railties (>= 3.0.0)
53
+ thor (>= 0.14.6)
54
+ concurrent-ruby (1.1.4)
55
+ crass (1.0.4)
56
+ database_cleaner (1.7.0)
57
+ diff-lcs (1.3)
58
+ erubis (2.7.0)
59
+ gemika (0.3.4)
60
+ globalid (0.4.1)
61
+ activesupport (>= 4.2.0)
62
+ i18n (1.5.1)
63
+ concurrent-ruby (~> 1.0)
64
+ loofah (2.2.3)
65
+ crass (~> 1.0.2)
66
+ nokogiri (>= 1.5.9)
67
+ mail (2.7.1)
68
+ mini_mime (>= 0.1.1)
69
+ method_source (0.9.2)
70
+ mini_mime (1.0.1)
71
+ mini_portile2 (2.4.0)
72
+ minitest (5.11.3)
73
+ nio4r (2.3.1)
74
+ nokogiri (1.10.0)
75
+ mini_portile2 (~> 2.4.0)
76
+ pg (1.1.3)
77
+ rack (2.0.6)
78
+ rack-test (0.6.3)
79
+ rack (>= 1.0)
80
+ rails (5.0.7.1)
81
+ actioncable (= 5.0.7.1)
82
+ actionmailer (= 5.0.7.1)
83
+ actionpack (= 5.0.7.1)
84
+ actionview (= 5.0.7.1)
85
+ activejob (= 5.0.7.1)
86
+ activemodel (= 5.0.7.1)
87
+ activerecord (= 5.0.7.1)
88
+ activesupport (= 5.0.7.1)
89
+ bundler (>= 1.3.0)
90
+ railties (= 5.0.7.1)
91
+ sprockets-rails (>= 2.0.0)
92
+ rails-dom-testing (2.0.3)
93
+ activesupport (>= 4.2.0)
94
+ nokogiri (>= 1.6)
95
+ rails-html-sanitizer (1.0.4)
96
+ loofah (~> 2.2, >= 2.2.2)
97
+ railties (5.0.7.1)
98
+ actionpack (= 5.0.7.1)
99
+ activesupport (= 5.0.7.1)
100
+ method_source
101
+ rake (>= 0.8.7)
102
+ thor (>= 0.18.1, < 2.0)
103
+ rake (12.3.2)
104
+ rspec (3.8.0)
105
+ rspec-core (~> 3.8.0)
106
+ rspec-expectations (~> 3.8.0)
107
+ rspec-mocks (~> 3.8.0)
108
+ rspec-core (3.8.0)
109
+ rspec-support (~> 3.8.0)
110
+ rspec-expectations (3.8.2)
111
+ diff-lcs (>= 1.2.0, < 2.0)
112
+ rspec-support (~> 3.8.0)
113
+ rspec-mocks (3.8.0)
114
+ diff-lcs (>= 1.2.0, < 2.0)
115
+ rspec-support (~> 3.8.0)
116
+ rspec-support (3.8.0)
117
+ sprockets (3.7.2)
118
+ concurrent-ruby (~> 1.0)
119
+ rack (> 1, < 3)
120
+ sprockets-rails (3.2.1)
121
+ actionpack (>= 4.0)
122
+ activesupport (>= 4.0)
123
+ sprockets (>= 3.0.0)
124
+ thor (0.20.3)
125
+ thread_safe (0.3.6)
126
+ tzinfo (1.2.5)
127
+ thread_safe (~> 0.1)
128
+ websocket-driver (0.6.5)
129
+ websocket-extensions (>= 0.1.0)
130
+ websocket-extensions (0.1.3)
131
+
132
+ PLATFORMS
133
+ ruby
134
+
135
+ DEPENDENCIES
136
+ byebug
137
+ combustion
138
+ database_cleaner
139
+ gemika
140
+ pg (>= 0.18, < 2.0)
141
+ rails (~> 5.0.0)
142
+ rake
143
+ rspec (~> 3.4)
144
+ temporal_tables!
145
+
146
+ BUNDLED WITH
147
+ 1.16.6
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'rails', '~> 5.1.0'
5
+ gem 'mysql2', '~> 0.4.4'
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,147 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ temporal_tables (0.6.6)
5
+ rails (~> 5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.1.6.1)
11
+ actionpack (= 5.1.6.1)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (~> 0.6.1)
14
+ actionmailer (5.1.6.1)
15
+ actionpack (= 5.1.6.1)
16
+ actionview (= 5.1.6.1)
17
+ activejob (= 5.1.6.1)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.1.6.1)
21
+ actionview (= 5.1.6.1)
22
+ activesupport (= 5.1.6.1)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.1.6.1)
28
+ activesupport (= 5.1.6.1)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.1.6.1)
34
+ activesupport (= 5.1.6.1)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.1.6.1)
37
+ activesupport (= 5.1.6.1)
38
+ activerecord (5.1.6.1)
39
+ activemodel (= 5.1.6.1)
40
+ activesupport (= 5.1.6.1)
41
+ arel (~> 8.0)
42
+ activesupport (5.1.6.1)
43
+ concurrent-ruby (~> 1.0, >= 1.0.2)
44
+ i18n (>= 0.7, < 2)
45
+ minitest (~> 5.1)
46
+ tzinfo (~> 1.1)
47
+ arel (8.0.0)
48
+ builder (3.2.3)
49
+ byebug (10.0.2)
50
+ combustion (1.0.0)
51
+ activesupport (>= 3.0.0)
52
+ railties (>= 3.0.0)
53
+ thor (>= 0.14.6)
54
+ concurrent-ruby (1.1.4)
55
+ crass (1.0.4)
56
+ database_cleaner (1.7.0)
57
+ diff-lcs (1.3)
58
+ erubi (1.8.0)
59
+ gemika (0.3.4)
60
+ globalid (0.4.1)
61
+ activesupport (>= 4.2.0)
62
+ i18n (1.5.1)
63
+ concurrent-ruby (~> 1.0)
64
+ loofah (2.2.3)
65
+ crass (~> 1.0.2)
66
+ nokogiri (>= 1.5.9)
67
+ mail (2.7.1)
68
+ mini_mime (>= 0.1.1)
69
+ method_source (0.9.2)
70
+ mini_mime (1.0.1)
71
+ mini_portile2 (2.4.0)
72
+ minitest (5.11.3)
73
+ mysql2 (0.4.10)
74
+ nio4r (2.3.1)
75
+ nokogiri (1.10.0)
76
+ mini_portile2 (~> 2.4.0)
77
+ rack (2.0.6)
78
+ rack-test (1.1.0)
79
+ rack (>= 1.0, < 3)
80
+ rails (5.1.6.1)
81
+ actioncable (= 5.1.6.1)
82
+ actionmailer (= 5.1.6.1)
83
+ actionpack (= 5.1.6.1)
84
+ actionview (= 5.1.6.1)
85
+ activejob (= 5.1.6.1)
86
+ activemodel (= 5.1.6.1)
87
+ activerecord (= 5.1.6.1)
88
+ activesupport (= 5.1.6.1)
89
+ bundler (>= 1.3.0)
90
+ railties (= 5.1.6.1)
91
+ sprockets-rails (>= 2.0.0)
92
+ rails-dom-testing (2.0.3)
93
+ activesupport (>= 4.2.0)
94
+ nokogiri (>= 1.6)
95
+ rails-html-sanitizer (1.0.4)
96
+ loofah (~> 2.2, >= 2.2.2)
97
+ railties (5.1.6.1)
98
+ actionpack (= 5.1.6.1)
99
+ activesupport (= 5.1.6.1)
100
+ method_source
101
+ rake (>= 0.8.7)
102
+ thor (>= 0.18.1, < 2.0)
103
+ rake (12.3.2)
104
+ rspec (3.8.0)
105
+ rspec-core (~> 3.8.0)
106
+ rspec-expectations (~> 3.8.0)
107
+ rspec-mocks (~> 3.8.0)
108
+ rspec-core (3.8.0)
109
+ rspec-support (~> 3.8.0)
110
+ rspec-expectations (3.8.2)
111
+ diff-lcs (>= 1.2.0, < 2.0)
112
+ rspec-support (~> 3.8.0)
113
+ rspec-mocks (3.8.0)
114
+ diff-lcs (>= 1.2.0, < 2.0)
115
+ rspec-support (~> 3.8.0)
116
+ rspec-support (3.8.0)
117
+ sprockets (3.7.2)
118
+ concurrent-ruby (~> 1.0)
119
+ rack (> 1, < 3)
120
+ sprockets-rails (3.2.1)
121
+ actionpack (>= 4.0)
122
+ activesupport (>= 4.0)
123
+ sprockets (>= 3.0.0)
124
+ thor (0.20.3)
125
+ thread_safe (0.3.6)
126
+ tzinfo (1.2.5)
127
+ thread_safe (~> 0.1)
128
+ websocket-driver (0.6.5)
129
+ websocket-extensions (>= 0.1.0)
130
+ websocket-extensions (0.1.3)
131
+
132
+ PLATFORMS
133
+ ruby
134
+
135
+ DEPENDENCIES
136
+ byebug
137
+ combustion
138
+ database_cleaner
139
+ gemika
140
+ mysql2 (~> 0.4.4)
141
+ rails (~> 5.1.0)
142
+ rake
143
+ rspec (~> 3.4)
144
+ temporal_tables!
145
+
146
+ BUNDLED WITH
147
+ 1.16.6
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'rails', '~> 5.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 => '..'
@@ -0,0 +1,147 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ temporal_tables (0.6.6)
5
+ rails (~> 5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.1.6.1)
11
+ actionpack (= 5.1.6.1)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (~> 0.6.1)
14
+ actionmailer (5.1.6.1)
15
+ actionpack (= 5.1.6.1)
16
+ actionview (= 5.1.6.1)
17
+ activejob (= 5.1.6.1)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.1.6.1)
21
+ actionview (= 5.1.6.1)
22
+ activesupport (= 5.1.6.1)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.1.6.1)
28
+ activesupport (= 5.1.6.1)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.1.6.1)
34
+ activesupport (= 5.1.6.1)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.1.6.1)
37
+ activesupport (= 5.1.6.1)
38
+ activerecord (5.1.6.1)
39
+ activemodel (= 5.1.6.1)
40
+ activesupport (= 5.1.6.1)
41
+ arel (~> 8.0)
42
+ activesupport (5.1.6.1)
43
+ concurrent-ruby (~> 1.0, >= 1.0.2)
44
+ i18n (>= 0.7, < 2)
45
+ minitest (~> 5.1)
46
+ tzinfo (~> 1.1)
47
+ arel (8.0.0)
48
+ builder (3.2.3)
49
+ byebug (10.0.2)
50
+ combustion (1.0.0)
51
+ activesupport (>= 3.0.0)
52
+ railties (>= 3.0.0)
53
+ thor (>= 0.14.6)
54
+ concurrent-ruby (1.1.4)
55
+ crass (1.0.4)
56
+ database_cleaner (1.7.0)
57
+ diff-lcs (1.3)
58
+ erubi (1.8.0)
59
+ gemika (0.3.4)
60
+ globalid (0.4.1)
61
+ activesupport (>= 4.2.0)
62
+ i18n (1.5.1)
63
+ concurrent-ruby (~> 1.0)
64
+ loofah (2.2.3)
65
+ crass (~> 1.0.2)
66
+ nokogiri (>= 1.5.9)
67
+ mail (2.7.1)
68
+ mini_mime (>= 0.1.1)
69
+ method_source (0.9.2)
70
+ mini_mime (1.0.1)
71
+ mini_portile2 (2.4.0)
72
+ minitest (5.11.3)
73
+ nio4r (2.3.1)
74
+ nokogiri (1.10.0)
75
+ mini_portile2 (~> 2.4.0)
76
+ pg (1.1.3)
77
+ rack (2.0.6)
78
+ rack-test (1.1.0)
79
+ rack (>= 1.0, < 3)
80
+ rails (5.1.6.1)
81
+ actioncable (= 5.1.6.1)
82
+ actionmailer (= 5.1.6.1)
83
+ actionpack (= 5.1.6.1)
84
+ actionview (= 5.1.6.1)
85
+ activejob (= 5.1.6.1)
86
+ activemodel (= 5.1.6.1)
87
+ activerecord (= 5.1.6.1)
88
+ activesupport (= 5.1.6.1)
89
+ bundler (>= 1.3.0)
90
+ railties (= 5.1.6.1)
91
+ sprockets-rails (>= 2.0.0)
92
+ rails-dom-testing (2.0.3)
93
+ activesupport (>= 4.2.0)
94
+ nokogiri (>= 1.6)
95
+ rails-html-sanitizer (1.0.4)
96
+ loofah (~> 2.2, >= 2.2.2)
97
+ railties (5.1.6.1)
98
+ actionpack (= 5.1.6.1)
99
+ activesupport (= 5.1.6.1)
100
+ method_source
101
+ rake (>= 0.8.7)
102
+ thor (>= 0.18.1, < 2.0)
103
+ rake (12.3.2)
104
+ rspec (3.8.0)
105
+ rspec-core (~> 3.8.0)
106
+ rspec-expectations (~> 3.8.0)
107
+ rspec-mocks (~> 3.8.0)
108
+ rspec-core (3.8.0)
109
+ rspec-support (~> 3.8.0)
110
+ rspec-expectations (3.8.2)
111
+ diff-lcs (>= 1.2.0, < 2.0)
112
+ rspec-support (~> 3.8.0)
113
+ rspec-mocks (3.8.0)
114
+ diff-lcs (>= 1.2.0, < 2.0)
115
+ rspec-support (~> 3.8.0)
116
+ rspec-support (3.8.0)
117
+ sprockets (3.7.2)
118
+ concurrent-ruby (~> 1.0)
119
+ rack (> 1, < 3)
120
+ sprockets-rails (3.2.1)
121
+ actionpack (>= 4.0)
122
+ activesupport (>= 4.0)
123
+ sprockets (>= 3.0.0)
124
+ thor (0.20.3)
125
+ thread_safe (0.3.6)
126
+ tzinfo (1.2.5)
127
+ thread_safe (~> 0.1)
128
+ websocket-driver (0.6.5)
129
+ websocket-extensions (>= 0.1.0)
130
+ websocket-extensions (0.1.3)
131
+
132
+ PLATFORMS
133
+ ruby
134
+
135
+ DEPENDENCIES
136
+ byebug
137
+ combustion
138
+ database_cleaner
139
+ gemika
140
+ pg (>= 0.18, < 2.0)
141
+ rails (~> 5.1.0)
142
+ rake
143
+ rspec (~> 3.4)
144
+ temporal_tables!
145
+
146
+ BUNDLED WITH
147
+ 1.16.6
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- temporal_tables (0.6.4)
5
- rails (~> 5.2)
4
+ temporal_tables (0.6.6)
5
+ rails (~> 5.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -152,4 +152,4 @@ DEPENDENCIES
152
152
  temporal_tables!
153
153
 
154
154
  BUNDLED WITH
155
- 1.16.1
155
+ 1.16.6
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- temporal_tables (0.6.4)
5
- rails (~> 5.2)
4
+ temporal_tables (0.6.6)
5
+ rails (~> 5.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -152,4 +152,4 @@ DEPENDENCIES
152
152
  temporal_tables!
153
153
 
154
154
  BUNDLED WITH
155
- 1.16.1
155
+ 1.16.6
@@ -8,16 +8,26 @@ module TemporalTables
8
8
  end
9
9
  end
10
10
 
11
- def at_value
12
- get_value(:at) || Thread.current[:at_time]
13
- end
11
+ def at_value
12
+ case Rails::VERSION::MINOR
13
+ when 0
14
+ @values.fetch(:at, nil) || Thread.current[:at_time]
15
+ else
16
+ get_value(:at) || Thread.current[:at_time]
17
+ end
18
+ end
14
19
 
15
- def at_value=(value)
16
- set_value(:at, value)
17
- end
20
+ def at_value=(value)
21
+ case Rails::VERSION::MINOR
22
+ when 0
23
+ @values[:at] = value
24
+ else
25
+ set_value(:at, value)
26
+ end
27
+ end
18
28
 
19
29
  def at(*args)
20
- spawn.at!(*args)
30
+ spawn.at!(*args)
21
31
  end
22
32
 
23
33
  def at!(value)
@@ -85,6 +95,15 @@ module TemporalTables
85
95
  def historical?
86
96
  table_name =~ /_h$/i && at_value
87
97
  end
98
+
99
+ # Only needed for Rails 5.1.x
100
+ def default_value_for(name)
101
+ if name == :at
102
+ nil
103
+ else
104
+ super(name)
105
+ end
106
+ end
88
107
  end
89
108
 
90
109
  # Uses the time from the "at" field stored in the record to filter queries
@@ -133,7 +133,7 @@ module TemporalTables
133
133
  indexes.each do |index|
134
134
  index_name = temporal_index_name(index.name)
135
135
 
136
- unless index_name_exists?(temporal_name(table_name), index_name)
136
+ unless temporal_index_exists?(table_name, index_name)
137
137
  add_index(
138
138
  temporal_name(table_name),
139
139
  index.columns, {
@@ -162,5 +162,15 @@ module TemporalTables
162
162
  def temporal_index_name(index_name)
163
163
  index_name.to_s.sub(/^index/, "ind_h").sub(/_ix(\d+)$/, '_hi\1')
164
164
  end
165
+
166
+ def temporal_index_exists?(table_name, index_name)
167
+ raise "Rails version not supported" unless Rails::VERSION::MAJOR == 5
168
+ case Rails::VERSION::MINOR
169
+ when 0
170
+ index_name_exists?(temporal_name(table_name), index_name, false)
171
+ else
172
+ index_name_exists?(temporal_name(table_name), index_name)
173
+ end
174
+ end
165
175
  end
166
176
  end
@@ -16,6 +16,8 @@ module TemporalTables
16
16
 
17
17
  class << self
18
18
  prepend STIWithHistory
19
+
20
+ delegate :at, to: :all
19
21
  end
20
22
 
21
23
  # Iterates all associations, makes sure their history classes are
@@ -1,3 +1,3 @@
1
1
  module TemporalTables
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.6"
3
3
  end
@@ -39,6 +39,11 @@ describe Person do
39
39
  expect(emily.warts.very_hairy).to eq([wart])
40
40
  expect(historical_emily.warts.very_hairy).to eq([wart.history.last])
41
41
  end
42
+
43
+ it "should allow at value on class too" do
44
+ expect(Wart.history.at(Time.now).where(person: emily).count).to eq(1)
45
+ expect(Wart.history.at(1.minute.ago).where(person: emily).count).to eq(0)
46
+ end
42
47
  end
43
48
 
44
49
  describe "when reflecting on the past" do
@@ -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.2"
20
+ gem.add_dependency "rails", "~> 5.0"
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.6.4
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brent Kroeker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-07 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -84,6 +84,14 @@ files:
84
84
  - README.md
85
85
  - Rakefile
86
86
  - config.ru
87
+ - gemfiles/Gemfile.5.0.mysql
88
+ - gemfiles/Gemfile.5.0.mysql.lock
89
+ - gemfiles/Gemfile.5.0.pg
90
+ - gemfiles/Gemfile.5.0.pg.lock
91
+ - gemfiles/Gemfile.5.1.mysql
92
+ - gemfiles/Gemfile.5.1.mysql.lock
93
+ - gemfiles/Gemfile.5.1.pg
94
+ - gemfiles/Gemfile.5.1.pg.lock
87
95
  - gemfiles/Gemfile.5.2.mysql
88
96
  - gemfiles/Gemfile.5.2.mysql.lock
89
97
  - gemfiles/Gemfile.5.2.pg