activerecord-bitemporal 2.1.0 → 2.2.0

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: 07ac44707e66e1fdad8071804841ee77a3dddb2e74ea87269e8f9a18f261131a
4
- data.tar.gz: 5d8f788c53af5f9265465d97e59fde78f6f4ca30eae0b9a5320da0a78634d676
3
+ metadata.gz: 0f295f51427b6b8fad97d0c36e84946cb705aad3d1d8bbff9a18b92df60cc083
4
+ data.tar.gz: 44003988d2c2dd02e4133a4d6ffbd233167793a9d5fac5bd5d1056fff3c97f42
5
5
  SHA512:
6
- metadata.gz: c2a9cf9a8322c2a2ecbd8e1a4cd80101a69c2484261cfc48385c35f592e039141aeaf3813f9308ed7801b06b0691426beee0bc3d995c95eb52282e9f94ff125a
7
- data.tar.gz: 611bc03e7821ff4179cae17d81adda035b0cdb4e96a7ea20e66edc8e323a064359d965150a665b843cfef98168d5be84ac1f57cb5bbefebe9aee07a1adca61f4
6
+ metadata.gz: 2ebc5d5e6933952e285e3a88f5d8fc03a919ef9c79e0106845362c09c3e73520f24b863a404f9b9a9ef1cfc94e4af48184f7e82345dfa6544bbde5f06555b646
7
+ data.tar.gz: c83ffc5f27d54e8dfed0aaa051922a20b16b8bcba78c556d9568fc71fb15c7d54b0e9713984a150015001469188e826ee5cfb54e41e89d6bea37e1be7d8422ff
data/.circleci/config.yml CHANGED
@@ -1,26 +1,15 @@
1
1
  version: 2.1
2
2
 
3
- executors:
4
- ruby_2_7:
5
- docker:
6
- - image: ruby:2.7.5
7
- - image: circleci/postgres:11-alpine
8
-
9
- ruby_3_0:
10
- docker:
11
- - image: ruby:3.0.3
12
- - image: circleci/postgres:11-alpine
13
-
14
- ruby_3_1:
15
- docker:
16
- - image: ruby:3.1.0
17
- - image: circleci/postgres:11-alpine
18
-
19
- commands:
20
- run_rspec:
3
+ jobs:
4
+ rspec:
21
5
  parameters:
6
+ ruby-version:
7
+ type: string
22
8
  gemfile:
23
9
  type: string
10
+ docker:
11
+ - image: ruby:<< parameters.ruby-version >>
12
+ - image: cimg/postgres:11.16
24
13
  steps:
25
14
  - checkout
26
15
  - run: gem install bundler
@@ -28,86 +17,28 @@ commands:
28
17
  - run: bundle exec appraisal << parameters.gemfile >> bundle install
29
18
  - run: bundle exec appraisal << parameters.gemfile >> rspec
30
19
 
31
- jobs:
32
- ruby_2_7_rails_5_2:
33
- executor: ruby_2_7
34
- steps:
35
- - run_rspec:
36
- gemfile: rails-5.2
37
-
38
- ruby_2_7_rails_6_0:
39
- executor: ruby_2_7
40
- steps:
41
- - run_rspec:
42
- gemfile: rails-6.0
43
-
44
- ruby_2_7_rails_6_1:
45
- executor: ruby_2_7
46
- steps:
47
- - run_rspec:
48
- gemfile: rails-6.1
49
-
50
- ruby_2_7_rails_7_0:
51
- executor: ruby_2_7
52
- steps:
53
- - run_rspec:
54
- gemfile: rails-7.0
55
-
56
- ruby_2_7_rails_main:
57
- executor: ruby_2_7
58
- steps:
59
- - run_rspec:
60
- gemfile: rails-main
61
-
62
- ruby_3_0_rails_6_1:
63
- executor: ruby_3_0
64
- steps:
65
- - run_rspec:
66
- gemfile: rails-6.1
67
-
68
- ruby_3_0_rails_7_0:
69
- executor: ruby_3_0
70
- steps:
71
- - run_rspec:
72
- gemfile: rails-7.0
73
-
74
- ruby_3_0_rails_main:
75
- executor: ruby_3_0
76
- steps:
77
- - run_rspec:
78
- gemfile: rails-main
79
-
80
- ruby_3_1_rails_6_1:
81
- executor: ruby_3_1
82
- steps:
83
- - run_rspec:
84
- gemfile: rails-6.1
85
-
86
- ruby_3_1_rails_7_0:
87
- executor: ruby_3_1
88
- steps:
89
- - run_rspec:
90
- gemfile: rails-7.0
91
-
92
- ruby_3_1_rails_main:
93
- executor: ruby_3_1
94
- steps:
95
- - run_rspec:
96
- gemfile: rails-main
97
-
98
20
  workflows:
99
- version: 2
100
-
101
21
  test:
102
- jobs: &jobs
103
- - ruby_2_7_rails_5_2
104
- - ruby_2_7_rails_6_0
105
- - ruby_2_7_rails_6_1
106
- - ruby_2_7_rails_7_0
107
- - ruby_2_7_rails_main
108
- - ruby_3_0_rails_6_1
109
- - ruby_3_0_rails_7_0
110
- - ruby_3_0_rails_main
111
- - ruby_3_1_rails_6_1
112
- - ruby_3_1_rails_7_0
113
- - ruby_3_1_rails_main
22
+ jobs:
23
+ - rspec:
24
+ matrix:
25
+ parameters:
26
+ ruby-version:
27
+ - '2.7'
28
+ - '3.0'
29
+ - '3.1'
30
+ gemfile:
31
+ - rails-5.2
32
+ - rails-6.0
33
+ - rails-6.1
34
+ - rails-7.0
35
+ - rails-main
36
+ exclude:
37
+ - ruby-version: '3.0'
38
+ gemfile: rails-5.2
39
+ - ruby-version: '3.0'
40
+ gemfile: rails-6.0
41
+ - ruby-version: '3.1'
42
+ gemfile: rails-5.2
43
+ - ruby-version: '3.1'
44
+ gemfile: rails-6.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Breaking Changed
6
+
7
+ ### Added
8
+ - [replace postgres docker image](https://github.com/kufu/activerecord-bitemporal/pull/103)
9
+ - [use Matrix Jobs in CircleCI](https://github.com/kufu/activerecord-bitemporal/pull/107)
10
+ - [Add support changing swapped_id, when called #destroy](https://github.com/kufu/activerecord-bitemporal/pull/110)
11
+
12
+ ### Changed
13
+
14
+ ### Deprecated
15
+
16
+ ### Removed
17
+
18
+ ### Fixed
19
+
3
20
  ## 2.1.0
4
21
 
5
22
  ### Breaking Changed
@@ -345,6 +345,7 @@ module ActiveRecord
345
345
  duplicated_instance.valid_to = target_datetime
346
346
  duplicated_instance.transaction_from = current_time
347
347
  duplicated_instance.save!(validate: false)
348
+ @_swapped_id = duplicated_instance.swapped_id if @destroyed
348
349
  }
349
350
  raise ActiveRecord::RecordInvalid unless @destroyed
350
351
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module Bitemporal
5
- VERSION = "2.1.0"
5
+ VERSION = "2.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-bitemporal
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SmartHR
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -174,7 +174,7 @@ homepage: https://github.com/kufu/activerecord-bitemporal
174
174
  licenses:
175
175
  - Apache 2.0
176
176
  metadata: {}
177
- post_install_message:
177
+ post_install_message:
178
178
  rdoc_options: []
179
179
  require_paths:
180
180
  - lib
@@ -189,8 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.1.6
193
- signing_key:
192
+ rubygems_version: 3.4.3
193
+ signing_key:
194
194
  specification_version: 4
195
195
  summary: BiTemporal Data Model for ActiveRecord
196
196
  test_files: []