operator_recordable 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/operator_recordable/extension.rb +12 -0
- data/lib/operator_recordable/version.rb +1 -1
- data/lib/operator_recordable.rb +1 -6
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d89864582bca4bb737733162307fc2e264e359abd9eea47dc117a52fd6b052ab
|
4
|
+
data.tar.gz: ff4c33501e5b97a57fb575e438f9d9513247883a548bd24a993d5e12f70368e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14edc5f3d86dd3e76752013f175131d2c4f0d03eef67b72c69376df66fde4a76fbbf6ab0accfa84dad3e7a5a1afa241aa645a770fef0d13c140b5cf4467a98c7
|
7
|
+
data.tar.gz: c1834818a1059859a027e76470aa596f7028bac2bf537678e888f0721bada71f6119e2293f1b63e12dc0cccd01a515cbc82731d79900f3bf97c6b94605dd0e24
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -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
|
data/lib/operator_recordable.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require "operator_recordable/version"
|
4
4
|
require "operator_recordable/configuration"
|
5
|
-
require "operator_recordable/
|
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.
|
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-
|
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
|