activerecord-bitemporal 2.0.0 → 2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 712d3f7bf1cb73ff98bbe7f5ca15f860c62096e419b89d44e6a419ba865eec38
4
- data.tar.gz: 4071219bd39db37fc51dee4d1689f722c0a8c2ee6eb16120373d21ecf234def8
3
+ metadata.gz: 07ac44707e66e1fdad8071804841ee77a3dddb2e74ea87269e8f9a18f261131a
4
+ data.tar.gz: 5d8f788c53af5f9265465d97e59fde78f6f4ca30eae0b9a5320da0a78634d676
5
5
  SHA512:
6
- metadata.gz: fb0f10288f109171dd11aed5221fe0297224c6d798278ba60c18cad092cf4b757d2c5aff9463c9a9fafe0f1556f1d71d47d4d89d435f96f8debdda51883c0e42
7
- data.tar.gz: 588eb1741174be2031b8e326fe34da93efebda700ad37bb26a260250a3e25d6b1ecb3ffc1964a7fb99c8ea4035d4a660e59ec617d5732320f944467a3d71b202
6
+ metadata.gz: c2a9cf9a8322c2a2ecbd8e1a4cd80101a69c2484261cfc48385c35f592e039141aeaf3813f9308ed7801b06b0691426beee0bc3d995c95eb52282e9f94ff125a
7
+ data.tar.gz: 611bc03e7821ff4179cae17d81adda035b0cdb4e96a7ea20e66edc8e323a064359d965150a665b843cfef98168d5be84ac1f57cb5bbefebe9aee07a1adca61f4
data/.circleci/config.yml CHANGED
@@ -111,13 +111,3 @@ workflows:
111
111
  - ruby_3_1_rails_6_1
112
112
  - ruby_3_1_rails_7_0
113
113
  - ruby_3_1_rails_main
114
-
115
- daily_test:
116
- triggers:
117
- - schedule:
118
- cron: "0 23 * * *"
119
- filters:
120
- branches:
121
- only:
122
- - master
123
- jobs: *jobs
@@ -0,0 +1,37 @@
1
+ name: Push to rubygems.org
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ rubygems-otp-code:
7
+ description: RubyGems OTP code
8
+ required: true
9
+ type: string
10
+ email:
11
+ description: Your email
12
+ required: true
13
+ type: string
14
+
15
+ jobs:
16
+ release:
17
+ runs-on: ubuntu-latest
18
+ env:
19
+ GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
20
+ GEM_HOST_OTP_CODE: ${{ github.event.inputs.rubygems-otp-code }}
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ with:
24
+ fetch-depth: 0
25
+
26
+ - uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: '3.1'
29
+ bundler-cache: true
30
+
31
+ - name: config
32
+ run: |
33
+ git config --global user.email ${{ github.event.inputs.email }}
34
+ git config --global user.name ${{ github.actor }}
35
+
36
+ - name: release
37
+ run: bundle exec rake release
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Breaking Changed
6
+
7
+ ### Added
8
+ - [Update valid_to after #update](https://github.com/kufu/activerecord-bitemporal/pull/105)
9
+ - [Add GitHub Actions workflow to release to RubyGems.org](https://github.com/kufu/activerecord-bitemporal/pull/104)
10
+ - [migrate Scheduled workflows in CircleCI](https://github.com/kufu/activerecord-bitemporal/pull/106)
11
+
12
+ ### Changed
13
+
14
+ ### Deprecated
15
+
16
+ ### Removed
17
+
18
+ ### Fixed
19
+
3
20
  ## 2.0.0
4
21
 
5
22
  ### Breaking Changed
@@ -321,6 +321,7 @@ module ActiveRecord
321
321
  # update 後に新しく生成したインスタンスのデータを移行する
322
322
  @_swapped_id = after_instance.swapped_id
323
323
  self.valid_from = after_instance.valid_from
324
+ self.valid_to = after_instance.valid_to
324
325
 
325
326
  1
326
327
  # MEMO: Must return false instead of nil, if `#_update_row` failure.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module Bitemporal
5
- VERSION = "2.0.0"
5
+ VERSION = "2.1.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.0.0
4
+ version: 2.1.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-09-16 00:00:00.000000000 Z
11
+ date: 2022-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -145,6 +145,7 @@ extra_rdoc_files: []
145
145
  files:
146
146
  - ".circleci/config.yml"
147
147
  - ".github/auto_assign.yml"
148
+ - ".github/workflows/release.yml"
148
149
  - ".gitignore"
149
150
  - Appraisals
150
151
  - CHANGELOG.md
@@ -173,7 +174,7 @@ homepage: https://github.com/kufu/activerecord-bitemporal
173
174
  licenses:
174
175
  - Apache 2.0
175
176
  metadata: {}
176
- post_install_message:
177
+ post_install_message:
177
178
  rdoc_options: []
178
179
  require_paths:
179
180
  - lib
@@ -188,8 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  - !ruby/object:Gem::Version
189
190
  version: '0'
190
191
  requirements: []
191
- rubygems_version: 3.3.7
192
- signing_key:
192
+ rubygems_version: 3.1.6
193
+ signing_key:
193
194
  specification_version: 4
194
195
  summary: BiTemporal Data Model for ActiveRecord
195
196
  test_files: []