operator_recordable 1.3.1 → 1.4.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: 49732162b7408905bf8df338339f939127bc749d307fcf6639d52f173c645372
4
- data.tar.gz: 1e2358023c22551afb02a430d5bb43c4f1908d867616f30e52754564cfb93b27
3
+ metadata.gz: 17d5261fe9e0dde7d722753e707a2a5210bc183866be7d9509b6670e2187e432
4
+ data.tar.gz: 7c569a64a127e3b293ac7d5ed66ba0762774163ef7395d16acd49bd7e30bba85
5
5
  SHA512:
6
- metadata.gz: 4453ea3b593441f2761abacdcf3407a9612adbe3d38758a3c6852c0a34b9147fb90d587aea8f95be986aa749611170d8547e5bbe4ab76ea05824a2cd80b11f93
7
- data.tar.gz: f8833708e12cae1002924cb2d682936f0b5b43d10f65ee7fc4a92b1b2462ce0c1d01adb5431c57236c7064ddb38bf98a970232df3df181b5f97ec97454afed46
6
+ metadata.gz: 6e5d5deec10df7399288037211bf9de8d53ec2b21b4763818e74759de35e84704ee8857945d2afc603fe156aa9bdd541f364e74d871643665dc96adaa8cb8cae
7
+ data.tar.gz: 6d9ea5667096bd04be4705fc97fe0beccd34aa5d37b1925ede9c7868bd6558a1812db6b798ce1b871505b7461b954fee356bd9cc810a42d2e05ffac3385002ad
data/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  ## Unreleased
2
2
 
3
3
 
4
+ ## 1.4.0 (2022-08-18)
5
+
6
+ ### Changes
7
+
8
+ * Deprecate `:thread_store`
9
+ + [PR#36](https://github.com/yujideveloper/operator_recordable/pull/36)
10
+
11
+ ### Misc
12
+
13
+ * Change the default branch from master to main
14
+ + [PR#35](https://github.com/yujideveloper/operator_recordable/pull/35)
15
+
16
+
4
17
  ## 1.3.1 (2022-06-20)
5
18
 
6
19
  ### Bug fixes
data/README.md CHANGED
@@ -47,7 +47,7 @@ OperatorRecordable.config = {
47
47
  discarder_association_name: "discarder",
48
48
  operator_association_options: {},
49
49
  operator_association_scope: nil,
50
- store: :thread_store
50
+ store: :current_attributes_store
51
51
  }
52
52
  ```
53
53
 
@@ -97,7 +97,7 @@ OperatorRecordable.operator = current_operator
97
97
  #### `:thread_store`
98
98
 
99
99
  This store is implemented by `Thread.current`.
100
- This is default store.
100
+ This is default store. **But this is deprecated and will be removed in v2.0. Please consider using `:current_attributes_store` instead.**
101
101
 
102
102
 
103
103
  #### `:request_store`
@@ -2,6 +2,10 @@
2
2
 
3
3
  module OperatorRecordable
4
4
  class ThreadStore
5
+ def initialize
6
+ warn "DEPRECATION WARNING: `:thread_store` is deprecated. It will be removed in v2.0"
7
+ end
8
+
5
9
  def [](key)
6
10
  ::Thread.current[key]
7
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OperatorRecordable
4
- VERSION = "1.3.1"
4
+ VERSION = "1.4.0"
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
28
28
 
29
29
  spec.metadata["homepage_uri"] = spec.homepage
30
30
  spec.metadata["source_code_uri"] = spec.homepage
31
- spec.metadata["changelog_uri"] = "https://github.com/yujideveloper/operator_recordable/tree/master/CHANGELOG.md"
31
+ spec.metadata["changelog_uri"] = "https://github.com/yujideveloper/operator_recordable/tree/main/CHANGELOG.md"
32
32
 
33
33
  spec.metadata["rubygems_mfa_required"] = "true"
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: operator_recordable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Hanamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -183,7 +183,7 @@ metadata:
183
183
  allowed_push_host: https://rubygems.org
184
184
  homepage_uri: https://github.com/yujideveloper/operator_recordable
185
185
  source_code_uri: https://github.com/yujideveloper/operator_recordable
186
- changelog_uri: https://github.com/yujideveloper/operator_recordable/tree/master/CHANGELOG.md
186
+ changelog_uri: https://github.com/yujideveloper/operator_recordable/tree/main/CHANGELOG.md
187
187
  rubygems_mfa_required: 'true'
188
188
  post_install_message:
189
189
  rdoc_options: []