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 +8 -8
- data/CHANGELOG +4 -0
- data/lib/plaster.rb +11 -0
- data/lib/plaster/model_deconstructor.rb +1 -3
- data/lib/plaster/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NTFlZDYwODBhNWRlM2E0NzJhYmU3OTY4ZGQ1OGIwYmRhYzc4MTBkNQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NDczNmZiMmJlODE3ZjM1NjM3NTEwNTAwNWVmNmNiMWRkMjdjYTNlNQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Y2VmYzdiZGM2ZjllOWEzMTI0ZTAxMmQzMTUyNjI1OTBlYmJiY2NiNThhNTY1
|
|
10
|
+
ZWY2ZTBiYTM4NmRiZWJjZjg3YTE3YjI3M2E4NGYzOTI1NDU1MmU2MTY3YTIw
|
|
11
|
+
ZWRmZTBhYzdlZWE2OThjYTIwYzFhMzcwOTAzNjQ5MmE3NmY1Y2M=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZmY4ZjIzODVkZWQ3NDVhOWRlZjM5NDgxNmJjOGU4Njc2YjlmMDA3MTc0YWU1
|
|
14
|
+
Y2YwZGEwN2EwZmM3NWE4YzYyY2RhODc1ZTQyNmYwOTFkMGE0OWIyN2NkMDU3
|
|
15
|
+
NjUxZjQ5ZDBmNjhjZmM4N2M5ZDE2OGI5M2MwOGRkZWEwZDQ3MzI=
|
data/CHANGELOG
ADDED
data/lib/plaster.rb
CHANGED
|
@@ -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
|
|
data/lib/plaster/version.rb
CHANGED
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.
|
|
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-
|
|
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
|