coactive 0.1.0 → 0.1.1

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: caf295bc360ec4f4551be981b1233660a33406714b2627d1d7c3118cfde42ba1
4
- data.tar.gz: 55a5254e390a82bf22188fb8d84253d2382e52360abc2a36a007ef129b74572f
3
+ metadata.gz: 770c5f64ad5b2032eb3adcc65af596be49364f39fa75de5febc4ee3213ce9f9b
4
+ data.tar.gz: f8efaa56a30c4f4eabcb22b7c4a0d14f9753c4f982a79f5ec9d5a697c86181a6
5
5
  SHA512:
6
- metadata.gz: 477b7ff382d1697943a0898ac2d8703aaa98fde5088e1f88c6e6a05f7cdee08d4071914d5a8308103ec0dd7a553df777a5d0382bf088db44bdf0d2e5f80c9b7c
7
- data.tar.gz: 6c038fdee9aed452ac716abd2d6f29149164c57e0db32777fde17bad46652f25ba1ad34c86cad1139e90c8e41911cdae46428df9572e9b80efb783afafe815a1
6
+ metadata.gz: 6b9f507b0e3c8f2a55e9151ea868d14a314ef017157746375b068c99ded7803bb8c39295fe880b95523eb8d6a054a5ab0646f17a90362e86dd5616d9277bafd3
7
+ data.tar.gz: e8e5146497628c5de49e7d45797dfa377d209053d3a1ba5195ab7425bdef3092ba1721006ae3ffbefc721c152526d11ccef3068acde178a2ec5b308a01235b10
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 1.0.0
3
+ ## 0.1.1
4
+
5
+ * Reassign config data when configured.
6
+
7
+ ## 0.1.0
4
8
 
5
9
  * First release.
@@ -11,8 +11,13 @@ module Coactive
11
11
  lookup_superclass_until: ['ActiveRecord::Base', 'ActiveModel::Base'],
12
12
  }
13
13
 
14
- def initialize
14
+ attr_accessor :data
15
+
16
+ def initialize(attrs = {})
15
17
  @data = DEFAULTS.deep_dup
18
+ attrs.each do |key, value|
19
+ send("#{key}=", value)
20
+ end
16
21
  end
17
22
 
18
23
  DEFAULTS.keys.each do |key|
@@ -14,6 +14,7 @@ module Coactive
14
14
 
15
15
  class_methods do
16
16
  def configure_coactive
17
+ self.coactive_config = Config.new(coactive_config.data)
17
18
  yield coactive_config
18
19
  end
19
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coactive
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coactive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-28 00:00:00.000000000 Z
11
+ date: 2021-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.1.2
151
+ rubygems_version: 3.0.3
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Make classes coactive