plaster 0.1.0 → 0.1.1

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGEzNGM1OGE5NGM3ZjA5M2NjNWRmYmVhYTUxNjBhM2UxNmEwOWVkNQ==
4
+ NTFlZDYwODBhNWRlM2E0NzJhYmU3OTY4ZGQ1OGIwYmRhYzc4MTBkNQ==
5
5
  data.tar.gz: !binary |-
6
- ZmFkNmZlNTE4YWI4ZDU4YTQyZDZkMjkzNzBkMmFmODYwNzVhNDc1MQ==
6
+ NDczNmZiMmJlODE3ZjM1NjM3NTEwNTAwNWVmNmNiMWRkMjdjYTNlNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTY1Zjc2ZDU3MzZhN2Q1MzlkZmQyOWNkNjRkNWI2YWUyODg3M2IzYTU4OGUz
10
- MDcxMjFkYmYzODIwOGZkYjhiOTI0NzljN2QzNGNhOTEwNmNlODBiZjEzMzU4
11
- ODY2ODhiN2NmMGFkNTlhZTk2OWIyYTM3OTM3MTIwYTkyY2JlN2M=
9
+ Y2VmYzdiZGM2ZjllOWEzMTI0ZTAxMmQzMTUyNjI1OTBlYmJiY2NiNThhNTY1
10
+ ZWY2ZTBiYTM4NmRiZWJjZjg3YTE3YjI3M2E4NGYzOTI1NDU1MmU2MTY3YTIw
11
+ ZWRmZTBhYzdlZWE2OThjYTIwYzFhMzcwOTAzNjQ5MmE3NmY1Y2M=
12
12
  data.tar.gz: !binary |-
13
- NDc1ZDY2ZGNmMjcxMmYzZjQzZTUxYzY5OGZmNzYyNGU0YmNlYWZiYzQ3ODJk
14
- NjM3ZmExODZkNDg5NTk1OTc2Y2I4ZGM0MGIxN2MxOWEwOTE4NzljNzBiZGUw
15
- ZWY0YjAzZGIwZjcxNGJkOWIxMDJjYzA2NjcwMjhjMjAxYWYwY2U=
13
+ ZmY4ZjIzODVkZWQ3NDVhOWRlZjM5NDgxNmJjOGU4Njc2YjlmMDA3MTc0YWU1
14
+ Y2YwZGEwN2EwZmM3NWE4YzYyY2RhODc1ZTQyNmYwOTFkMGE0OWIyN2NkMDU3
15
+ NjUxZjQ5ZDBmNjhjZmM4N2M5ZDE2OGI5M2MwOGRkZWEwZDQ3MzI=
@@ -0,0 +1,4 @@
1
+ Version 0.1.1
2
+ - Add this CHANGELOG file.
3
+ - Fix bugs related to improper loading & usage of
4
+ HashWithIndifferentAccess from activesupport gem.
@@ -1,3 +1,14 @@
1
+
2
+ # The only thing that Plaster really requires ActiveSupport for
3
+ # at this time is HashWithIndifferentAccess. In order to make
4
+ # that work right, however, one mus require at least
5
+ # 'active_support_core_extensions/hash', which in turn requires
6
+ # most (or maybe all) of ActiveSupport anyway.
7
+ # FIXME: Perhaps use ActiveSupport if present, or fall back to
8
+ # an alternative implementation of
9
+ # HasWithIndifferentAccess
10
+ require 'active_support/all'
11
+
1
12
  require "plaster/version"
2
13
  require "plaster/model_deconstructor"
3
14
  require "plaster/wrapping_list"
@@ -1,5 +1,3 @@
1
- require 'active_support/hash_with_indifferent_access'
2
-
3
1
  module Plaster
4
2
 
5
3
  # Deconstructs a hierarchical data structure comprised of
@@ -77,7 +75,7 @@ module Plaster
77
75
  end
78
76
 
79
77
  def deconstruct_from_hash_like(obj)
80
- hash = obj.to_h
78
+ hash = HashWithIndifferentAccess.new(obj.to_h)
81
79
  deconstruct_hash_values!( hash )
82
80
  end
83
81
 
@@ -1,3 +1,3 @@
1
1
  module Plaster
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plaster
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
  - Steve Jorgensen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-07 00:00:00.000000000 Z
11
+ date: 2015-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -92,6 +92,7 @@ files:
92
92
  - .rspec
93
93
  - .ruby-version
94
94
  - .travis.yml
95
+ - CHANGELOG
95
96
  - CODE_OF_CONDUCT.md
96
97
  - Gemfile
97
98
  - LICENSE.txt