store_configurable 3.2.2 → 3.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,11 @@
1
1
 
2
+ = 3.2.3
3
+
4
+ * Allow inspect of the StoreConfigurable object to pass down to ordered options.
5
+
6
+ * Avoid inspection errors by setting config for all #read_attribute calls.
7
+
8
+
2
9
  = 3.2.2
3
10
 
4
11
  * Fix new object inspect by hooking into #read_attribute. Fixes #2.
@@ -58,10 +58,6 @@ module StoreConfigurable
58
58
  @__config__ ||= DirtyTrackingOrderedOptions.new(@__store_configurable_owner__)
59
59
  end
60
60
 
61
- def inspect
62
- "#<StoreConfigurable::Object:#{object_id}>"
63
- end
64
-
65
61
  private
66
62
 
67
63
  def method_missing(method, *args, &block)
@@ -52,7 +52,7 @@ module StoreConfigurable
52
52
 
53
53
  # An override to ActiveRecord's low level read_attribute so we can setup the config object.
54
54
  def read_attribute(attr_name)
55
- config if attr_name.to_s == '_config'
55
+ config
56
56
  super
57
57
  end
58
58
 
@@ -1,6 +1,6 @@
1
1
  module StoreConfigurable
2
2
 
3
3
  # We track ActiveRecord's major and minor version and follow semantic versioning.
4
- VERSION = '3.2.2'
4
+ VERSION = '3.2.3'
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: store_configurable
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-13 00:00:00.000000000 Z
12
+ date: 2012-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &70288304643160 !ruby/object:Gem::Requirement
16
+ requirement: &70306619248640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70288304643160
24
+ version_requirements: *70306619248640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70288304642660 !ruby/object:Gem::Requirement
27
+ requirement: &70306619248140 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.3'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70288304642660
35
+ version_requirements: *70306619248140
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70288304642200 !ruby/object:Gem::Requirement
38
+ requirement: &70306619247680 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.9.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70288304642200
46
+ version_requirements: *70306619247680
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: minitest
49
- requirement: &70288304641740 !ruby/object:Gem::Requirement
49
+ requirement: &70306619247180 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 2.8.1
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70288304641740
57
+ version_requirements: *70306619247180
58
58
  description: Grown up ActiveRecord::Store config options!
59
59
  email:
60
60
  - ken@metaskills.net