operator_recordable 0.2.0 → 0.3.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: 3e05ee5e40a24819f5628847408a64657df213e1f96bf7060b87b9b86f45d6aa
4
- data.tar.gz: 6491c0178099e81c2b423e5344e018b76de979e76009d7ef21df9d3bb0bfdec6
3
+ metadata.gz: d89864582bca4bb737733162307fc2e264e359abd9eea47dc117a52fd6b052ab
4
+ data.tar.gz: ff4c33501e5b97a57fb575e438f9d9513247883a548bd24a993d5e12f70368e4
5
5
  SHA512:
6
- metadata.gz: d24f2ffdcb2a74658cf298da772d5b5945c56c5283b0087fb0f52c4d07afb56a144265a26633df7fb5c5399d4aed38e43f1a4700f489d5741bccca24867748f1
7
- data.tar.gz: a4803ce15c437240371fb6e32433880e2862d2598fe8616f5681fda4d21647550ad017dd5471578d95a9ea4e1b070103b39a729f16ab83526d8a698de7950555
6
+ metadata.gz: 14edc5f3d86dd3e76752013f175131d2c4f0d03eef67b72c69376df66fde4a76fbbf6ab0accfa84dad3e7a5a1afa241aa645a770fef0d13c140b5cf4467a98c7
7
+ data.tar.gz: c1834818a1059859a027e76470aa596f7028bac2bf537678e888f0721bada71f6119e2293f1b63e12dc0cccd01a515cbc82731d79900f3bf97c6b94605dd0e24
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  ## Unreleased
2
2
 
3
3
 
4
+ ## 0.3.0 (2018-10-05)
5
+
6
+ ### Breaking changes
7
+
8
+ * Change mixin module from `OperatorRecordable` to `OperatorRecordable::Extension`
9
+
10
+
4
11
  ## 0.2.0 (2018-09-27)
5
12
 
6
13
  ### Cbanges
data/README.md CHANGED
@@ -68,7 +68,7 @@ OperatorRecordable.config = {
68
68
  class ApplicationRecord < ActiveRecord::Base
69
69
  self.abstract_class = true
70
70
 
71
- include OperatorRecordable
71
+ include OperatorRecordable::Extension
72
72
  end
73
73
  ```
74
74
 
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "operator_recordable/recorder"
4
+
5
+ module OperatorRecordable
6
+ module Extension
7
+ def self.included(class_or_module)
8
+ class_or_module.extend Recorder.new(OperatorRecordable.config)
9
+ end
10
+ private_class_method :included
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OperatorRecordable
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "operator_recordable/version"
4
4
  require "operator_recordable/configuration"
5
- require "operator_recordable/recorder"
5
+ require "operator_recordable/extension"
6
6
 
7
7
  module OperatorRecordable
8
8
  def self.config
@@ -22,11 +22,6 @@ module OperatorRecordable
22
22
  config.store[operator_store_key] = operator
23
23
  end
24
24
 
25
- def self.included(class_or_module)
26
- class_or_module.extend Recorder.new(config)
27
- end
28
- private_class_method :included
29
-
30
25
  def self.operator_store_key
31
26
  :operator_recordable_operator
32
27
  end
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: 0.2.0
4
+ version: 0.3.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: 2018-09-26 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -133,6 +133,7 @@ files:
133
133
  - gemfiles/activerecord_5.2.gemfile
134
134
  - lib/operator_recordable.rb
135
135
  - lib/operator_recordable/configuration.rb
136
+ - lib/operator_recordable/extension.rb
136
137
  - lib/operator_recordable/recorder.rb
137
138
  - lib/operator_recordable/store.rb
138
139
  - lib/operator_recordable/store/current_attributes_store.rb