attribute_struct 0.5.0 → 0.5.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: a88c87931988bfa2b2e576583dbfb8ee6a8b1c5091cb1c62b58f39dddf7f89ec
4
- data.tar.gz: 743c6adaaa2992229bcc42e5daf0cebd9a59c91a12f3f83c06a7a4eba672e02f
3
+ metadata.gz: 3c352a11063ef870f66e2fcf7ff1ac41e744b1c2ca3ebc624c90cef397d7fc07
4
+ data.tar.gz: bdc14c8037516cf494410fe84945f44582c4f0af3beb18c329a71e22376749aa
5
5
  SHA512:
6
- metadata.gz: c8df0dcb1c017726e1a2a3b698979fb1e257df3b18e02a7812a27ba7c7e7cfb50fe1fdbdc20625497d4b6eab339ef793d086c70504cc4ec3b7051cac9b75cdb1
7
- data.tar.gz: fa93e5e6850bd7d3cb516b6d6e6ca770a6660b561a13c5abf0da15df5b86a3c81ca7c0644c84fcc07cea100225b80c686002a00d5051057da9981633fb5c4c53
6
+ metadata.gz: 4a4a791483032581a0cc065d879bfad8e8aa97c7f09413c01a890a3504ecca4d22860d50b9674976d8e1a6b0c56b06ff3bfa59d7273f89bf9734ac2db47b8947
7
+ data.tar.gz: 889192d36b3f8714eaf36ebd9a00ac7c2eea71f1daf10f11a28ba8ac89825063cfd961bd47761d244eb529575d78f9ebf746910d3a430f026496cb9dc04c0dce
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.5.1
2
+ * Update loading strategy to prevent type mismatches
3
+
1
4
  # v0.5.0
2
5
  * Clean up loading and nest constants
3
6
 
@@ -1,3 +1,5 @@
1
+ require "attribute_struct/base"
2
+
1
3
  class AttributeStruct
2
4
 
3
5
  # Copyright (c) 2009 Dan Kubb
@@ -1,8 +1,10 @@
1
+ require "attribute_struct/base"
2
+
1
3
  require "attribute_struct/attribute_hash"
2
4
  require "attribute_struct/augmented"
3
5
  require "attribute_struct/monkey_camels"
4
6
 
5
- class AttributeStruct < BasicObject
7
+ class AttributeStruct
6
8
  class << self
7
9
 
8
10
  # @return [Hash] valid styles and mapped value
@@ -1,3 +1,5 @@
1
+ require "attribute_struct/base"
2
+
1
3
  class AttributeStruct
2
4
  # AttributeStruct expanded class that include the Kernel module
3
5
  # and automatically objectifies the instance
@@ -0,0 +1,2 @@
1
+ # Core class for attribute structures
2
+ class AttributeStruct < BasicObject; end
@@ -1,5 +1,7 @@
1
+ require "attribute_struct/base"
2
+
1
3
  # Helper methods for IRB interactions
2
- module AttributeStruct
4
+ class AttributeStruct
3
5
  module IrbCompat
4
6
 
5
7
  # @return [String] object inspection
@@ -1,3 +1,5 @@
1
+ require "attribute_struct/base"
2
+
1
3
  class AttributeStruct
2
4
  module MonkeyCamels
3
5
  class << self
@@ -1,4 +1,6 @@
1
- class AttributeStruct < BasicObject
1
+ require "attribute_struct/base"
2
+
3
+ class AttributeStruct
2
4
  # Current library version
3
- VERSION = ::Gem::Version.new("0.5.0")
5
+ VERSION = ::Gem::Version.new("0.5.1")
4
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attribute_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-16 00:00:00.000000000 Z
11
+ date: 2022-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo
@@ -87,6 +87,7 @@ files:
87
87
  - lib/attribute_struct/attribute_hash.rb
88
88
  - lib/attribute_struct/attribute_struct.rb
89
89
  - lib/attribute_struct/augmented.rb
90
+ - lib/attribute_struct/base.rb
90
91
  - lib/attribute_struct/irb_compat.rb
91
92
  - lib/attribute_struct/monkey_camels.rb
92
93
  - lib/attribute_struct/version.rb