restify 0.2.0.1.b42 → 0.2.0.1.b44

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzJjZmYxYWVmNjY4ZjhkZDE1NTg0NWRiY2NkOTdkMjQ3NjRkZDEzMg==
4
+ MjE3MTg2YTE4MDdjMzY0NmRkNWNlOGI1OWRlNjM0MGYxMTc4YWE3Yg==
5
5
  data.tar.gz: !binary |-
6
- YTcwMzYwZjVmY2E3OTY0NDc0Mjk4MzEwYzc0NWQ4ZDE5MDEyMGEyZg==
6
+ Y2E4Y2YzMGYwMzZiNmI0NmNhODNkNDFmMDY3N2ZlMmZjYzc3NmExNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Mzk0NTQxZDQzNjI2N2E3Mzg4NDM4NjZlZWIyNzgyZDVmMWFiMDNkZmU2NjIz
10
- NTA1YWIyN2VmZjg4YmQxZGZjYzk1NWQ1MmJmNjJkYWE2NDQ5NDY1MTIxZDRl
11
- MDY1YWNkNzk0Y2NiNmQzYTBkYzE0M2ZjNWIxMzc4MDdiMjk5MTA=
9
+ MjdhNWEzNzExZjVhMzVkYjE4ODhkMGY2MTFjZTcwOWMyMGE1YTNkMjUyZDM4
10
+ MjA0ZTI1ODE5YjVkYTkyNTdmMzYzZTQxZDFlYzcyNmE2MmM1Y2VkNTFjNTU4
11
+ NjI1MThjYzI0ZDgyMjgyYWUxMWNkYjVlMmYxMmY4MzAyOTdkNWY=
12
12
  data.tar.gz: !binary |-
13
- OTQ0YTljNTYwNjUzYmZlMzIwYTMxZDg1OWJjYTYwNTlhYzM5YjdlOTQ4ZGVj
14
- NjJiMDAxZWIyYTQ4NmVjMjY0ZTlmN2MxMWU5N2RjZDY2NWE1MTI2N2MwOTM2
15
- MjgzNmFiMDg3YmRkNDM4MjEyNjRhZjJhYWQzM2VlOTA3YWU5NDg=
13
+ NGYyNDRmYTIxOTEyZjc5MjcwNTM2ZmZiOGRmOGVmZTJiMmY3MDk2NDgyNjc5
14
+ MjE2ZjdhYzkxNDUzZDM3YjhhMGU2OTkyZjFlNWVjZmNiNGQ1ZjA4Y2Q2ODU1
15
+ NWMzMDVjMDEyNGI4NDIzMzU5NDFmMmM1MjczYjgzNWI0ODdjNTk=
@@ -0,0 +1,122 @@
1
+ ## Next
2
+
3
+ * [#247](https://github.com/intridea/hashie/pull/247): Fixed #stringify_keys and #symbolize_keys collision with ActiveSupport - [@bartoszkopinski](https://github.com/bartoszkopinski).
4
+ * [#249](https://github.com/intridea/hashie/pull/249): SafeAssignment will now also protect hash-style assignments - [@jrochkind](https://github.com/jrochkind).
5
+ * [#251](https://github.com/intridea/hashie/pull/251): Add block to indifferent access #fetch - [@jgraichen](https://github.com/jgraichen).
6
+ * [#252](https://github.com/intridia/hashie/pull/252): Add support for conditionally required Hashie::Dash attributes - [@ccashwell](https://github.com/ccashwell).
7
+ * Your contribution here.
8
+
9
+ ## 3.3.2 (11/26/2014)
10
+
11
+ * [#233](https://github.com/intridea/hashie/pull/233): Custom error messages for required properties in Hashie::Dash subclasses - [@joss](https://github.com/joss).
12
+ * [#231](https://github.com/intridea/hashie/pull/231): Added support for coercion on class type that inherit from Hash - [@gregory](https://github.com/gregory).
13
+ * [#228](https://github.com/intridea/hashie/pull/228): Made Hashie::Extensions::Parsers::YamlErbParser pass template filename to ERB - [@jperville](https://github.com/jperville).
14
+ * [#224](https://github.com/intridea/hashie/pull/224): Merging Hashie::Mash now correctly only calls the block on duplicate values - [@amysutedja](https://github.com/amysutedja).
15
+ * [#221](https://github.com/intridea/hashie/pull/221): Reduce amount of allocated objects on calls with suffixes in Hashie::Mash - [@kubum](https://github.com/kubum).
16
+ * [#245](https://github.com/intridea/hashie/pull/245): Added Hashie::Extensions::MethodAccessWithOverride to autoloads - [@Fritzinger](https://github.com/Fritzinger).
17
+
18
+ ## 3.3.1 (8/26/2014)
19
+
20
+ * [#183](https://github.com/intridea/hashie/pull/183): Added Mash#load with YAML file support - [@gregory](https://github.com/gregory).
21
+ * [#195](https://github.com/intridea/hashie/pull/195): Ensure that the same object is returned after injecting IndifferentAccess - [@michaelherold](https://github.com/michaelherold).
22
+ * [#201](https://github.com/intridea/hashie/pull/201): Hashie::Trash transforms can be inherited - [@fobocaster](https://github.com/fobocaster).
23
+ * [#189](https://github.com/intridea/hashie/pull/189): Added Rash#fetch - [@medcat](https://github.com/medcat).
24
+ * [#200](https://github.com/intridea/hashie/pull/200): Improved coercion: primitives and error handling - [@maxlinc](https://github.com/maxlinc).
25
+ * [#204](https://github.com/intridea/hashie/pull/204): Added Hashie::Extensions::MethodOverridingWriter and Hashie::Extensions::MethodAccessWithOverride - [@michaelherold](https://github.com/michaelherold).
26
+ * [#205](http://github.com/intridea/hashie/pull/205): Added Hashie::Extensions::Mash::SafeAssignment - [@michaelherold](https://github.com/michaelherold).
27
+ * [#206](http://github.com/intridea/hashie/pull/206): Fixed stack overflow from repetitively including coercion in subclasses - [@michaelherold](https://github.com/michaelherold).
28
+ * [#207](http://github.com/intridea/hashie/pull/207): Fixed inheritance of transformations in Trash - [@fobocaster](https://github.com/fobocaster).
29
+ * [#209](http://github.com/intridea/hashie/pull/209): Added Hashie::Extensions::DeepFind - [@michaelherold](https://github.com/michaelherold).
30
+ * [#69](https://github.com/intridea/hashie/pull/69): Fixed regression in assigning multiple properties in Hashie::Trash - [@michaelherold](https://github.com/michaelherold), [@einzige](https://github.com/einzige), [@dblock](https://github.com/dblock).
31
+
32
+ ## 3.2.0 (7/10/2014)
33
+
34
+ * [#164](https://github.com/intridea/hashie/pull/164), [#165](https://github.com/intridea/hashie/pull/165), [#166](https://github.com/intridea/hashie/pull/166): Fixed stack overflow when coercing mashes that contain ActiveSupport::HashWithIndifferentAccess values - [@numinit](https://github.com/numinit), [@kgrz](https://github.com/kgrz).
35
+ * [#177](https://github.com/intridea/hashie/pull/177): Added support for coercing enumerables and collections - [@gregory](https://github.com/gregory).
36
+ * [#179](https://github.com/intridea/hashie/pull/179): Mash#values_at will convert each key before doing the lookup - [@nahiluhmot](https://github.com/nahiluhmot).
37
+ * [#184](https://github.com/intridea/hashie/pull/184): Allow ranges on Rash to match all Numeric types - [@medcat](https://github.com/medcat).
38
+ * [#187](https://github.com/intridea/hashie/pull/187): Automatically require version - [@medcat](https://github.com/medcat).
39
+ * [#190](https://github.com/intridea/hashie/issues/190): Fixed `coerce_key` with `from` Trash feature and Coercion extension - [@gregory](https://github.com/gregory).
40
+ * [#192](https://github.com/intridea/hashie/pull/192): Fixed StringifyKeys#stringify_keys! to recursively stringify keys of embedded ::Hash types - [@dblock](https://github.com/dblock).
41
+
42
+ ## 3.1.0 (6/25/2014)
43
+
44
+ * [#169](https://github.com/intridea/hashie/pull/169): Hash#to_hash will also convert nested objects that implement to_hash - [@gregory](https://github.com/gregory).
45
+ * [#171](https://github.com/intridea/hashie/pull/171): Include Trash and Dash class name when raising `NoMethodError` - [@gregory](https://github.com/gregory).
46
+ * [#172](https://github.com/intridea/hashie/pull/172): Added Dash and Trash#update_attributes! - [@gregory](https://github.com/gregory).
47
+ * [#173](https://github.com/intridea/hashie/pull/173): Auto include Dash::IndifferentAccess when IndiferentAccess is included in Dash - [@gregory](https://github.com/gregory).
48
+ * [#174](https://github.com/intridea/hashie/pull/174): Fixed `from` and `transform_with` Trash features when IndifferentAccess is included - [@gregory](https://github.com/gregory).
49
+
50
+ ## 3.0.0 (6/3/2014)
51
+
52
+ **Note:** This version introduces several backward incompatible API changes. See [UPGRADING](UPGRADING.md) for details.
53
+
54
+ * [#150](https://github.com/intridea/hashie/pull/159): Handle nil intermediate object on deep fetch - [@stephenaument](https://github.com/stephenaument).
55
+ * [#146](https://github.com/intridea/hashie/issues/146): Mash#respond_to? inconsistent with #method_missing and does not respond to #permitted? - [@dblock](https://github.com/dblock).
56
+ * [#152](https://github.com/intridea/hashie/pull/152): Do not convert keys to String in Hashie::Dash and Hashie::Trash, use Hashie::Extensions::Dash::IndifferentAccess to achieve backward compatible behavior - [@dblock](https://github.com/dblock).
57
+ * [#152](https://github.com/intridea/hashie/pull/152): Do not automatically stringify keys in Hashie::Hash#to_hash, pass `:stringify_keys` to achieve backward compatible behavior - [@dblock](https://github.com/dblock).
58
+ * [#148](https://github.com/intridea/hashie/pull/148): Consolidated Hashie::Hash#stringify_keys implementation - [@dblock](https://github.com/dblock).
59
+ * [#149](https://github.com/intridea/hashie/issues/149): Allow IgnoreUndeclared and DeepMerge to be used with undeclared properties - [@jhaesus](https://github.com/jhaesus).
60
+
61
+ ## 2.1.1 (4/12/2014)
62
+
63
+ * [#144](https://github.com/intridea/hashie/issues/144): Fixed regression invoking `to_hash` with no parameters - [@mbleigh](https://github.com/mbleigh).
64
+
65
+ ## 2.1.0 (4/6/2014)
66
+
67
+ * [#134](https://github.com/intridea/hashie/pull/134): Add deep_fetch extension for nested access - [@tylerdooling](https://github.com/tylerdooling).
68
+ * Removed support for Ruby 1.8.7 - [@dblock](https://github.com/dblock).
69
+ * Ruby style now enforced with Rubocop - [@dblock](https://github.com/dblock).
70
+ * [#138](https://github.com/intridea/hashie/pull/138): Added Hashie#Rash, a hash whose keys can be regular expressions or ranges - [@epitron](https://github.com/epitron).
71
+ * [#131](https://github.com/intridea/hashie/pull/131): Added IgnoreUndeclared, an extension to silently ignore undeclared properties at intialization - [@righi](https://github.com/righi).
72
+ * [#136](https://github.com/intridea/hashie/issues/136): Removed Hashie::Extensions::Structure - [@markiz](https://github.com/markiz).
73
+ * [#107](https://github.com/intridea/hashie/pull/107): Fixed excessive value conversions, poor performance of deep merge in Hashie::Mash - [@davemitchell](https://github.com/dblock), [@dblock](https://github.com/dblock).
74
+ * [#69](https://github.com/intridea/hashie/issues/69): Fixed assigning multiple properties in Hashie::Trash - [@einzige](https://github.com/einzige).
75
+ * [#100](https://github.com/intridea/hashie/pull/100): IndifferentAccess#store will respect indifference - [@jrochkind](https://github.com/jrochkind).
76
+ * [#103](https://github.com/intridea/hashie/pull/103): Fixed support for Hashie::Dash properties that end in bang - [@thedavemarshall](https://github.com/thedavemarshall).
77
+ * [89](https://github.com/intridea/hashie/issues/89): Do not respond to every method with suffix in Hashie::Mash, fixes Rails strong_parameters - [@Maxim-Filimonov](https://github.com/Maxim-Filimonov).
78
+ * [#110](https://github.com/intridea/hashie/pull/110): Correctly use Hash#default from Mash#method_missing - [@ryansouza](https://github.com/ryansouza).
79
+ * [#120](https://github.com/intridea/hashie/pull/120): Pass options to recursive to_hash calls - [@pwillett](https://github.com/pwillett).
80
+ * [#113](https://github.com/intridea/hashie/issues/113): Fixed Hash#merge with Hashie::Dash - [@spencer1248](https://github.com/spencer1248).
81
+ * [#99](https://github.com/intridea/hashie/issues/99): Hash#deep_merge raises errors when it encounters integers - [@defsprite](https://github.com/defsprite).
82
+ * [#133](https://github.com/intridea/hashie/pull/133): Fixed Hash##to_hash with symbolize_keys - [@mhuggins](https://github.com/mhuggins).
83
+ * [#130](https://github.com/intridea/hashie/pull/130): IndifferentAccess now works without MergeInitializer - [@npj](https://github.com/npj).
84
+ * [#111](https://github.com/intridea/hashie/issues/111): Trash#translations correctly maps original to translated names - [@artm](https://github.com/artm).
85
+ * [#129](https://github.com/intridea/hashie/pull/129): Added Trash#permitted_input_keys and inverse_translations - [@artm](https://github.com/artm).
86
+
87
+ ## 2.0.5
88
+
89
+ * [#96](https://github.com/intridea/hashie/pull/96): Make coercion work better with non-symbol keys in Hashie::Mash - [@wapcaplet](https://github.com/wapcaplet).
90
+
91
+ ## 2.0.4
92
+
93
+ * [#04](https://github.com/intridea/hashie/pull/94): Make #fetch method consistent with normal Hash - [@markiz](https://github.com/markiz).
94
+ * [#90](https://github.com/intridea/hashie/pull/90): Various doc tweaks - [@craiglittle](https://github.com/craiglittle).
95
+
96
+ ## 2.0.3
97
+
98
+ * [#88](https://github.com/intridea/hashie/pull/88): Hashie::Mash.new(abc: true).respond_to?(:abc?) works - [@7even](https://github.com/7even).
99
+ * [#68](https://github.com/intridea/hashie/pull/68): Fix #replace - [@jimeh](https://github.com/jimeh).
100
+
101
+ ## 2.0.2
102
+
103
+ * [#85](https://github.com/intridea/hashie/pull/85): adding symbolize_keys back to to_hash - [@cromulus](https://github.com/cromulus).
104
+
105
+ ## 2.0.1
106
+
107
+ * [#81](https://github.com/intridea/hashie/pull/81): remove Mash#object_id override - [@matschaffer](https://github.com/matschaffer).
108
+ * Gem cleanup: removed VERSION, Gemfile.lock [@jch](https://github.com/jch), [@mbleigh](https://github.com/mbleigh).
109
+
110
+ ## 2.0.0
111
+
112
+ * [#72](https://github.com/intridea/hashie/pull/72): Updated gemspec with license info - [@jordimassaguerpla](https://github.com/jordimassaguerpla).
113
+ * [#27](https://github.com/intridea/hashie/pull/27): Initialized with merge coerces values - [@mattfawcett](https://github.com/mattfawcett).
114
+ * [#28](https://github.com/intridea/hashie/pull/28): Hashie::Extensions::Coercion coerce_keys takes arguments - [@mattfawcett](https://github.com/mattfawcett).
115
+ * [#39](https://github.com/intridea/hashie/pull/39): Trash removes translated values on initialization - [@sleverbor](https://github.com/sleverbor).
116
+ * [#66](https://github.com/intridea/hashie/pull/66): Mash#fetch works with symbol or string keys - [@arthwood](https://github.com/arthwood).
117
+ * [#49](https://github.com/intridea/hashie/pull/49): Hashie::Hash inherits from ::Hash to avoid ambiguity - [@meh](https://github.com/meh), [@orend](https://github.com/orend).
118
+ * [#62](https://github.com/intridea/hashie/pull/62): update respond_to? method signature to match ruby core definition - [@dlupu](https://github.com/dlupu).
119
+ * [#41](https://github.com/intridea/hashie/pull/41): DeepMerge extension - [@nashby](https://github.com/nashby).
120
+ * [#63](https://github.com/intridea/hashie/pull/63): Dash defaults are dup'ed before assigned - [@ohrite](https://github.com/ohrite).
121
+ * [#77](https://github.com/intridea/hashie/pull/77): Remove id, type, and object_id as special allowable keys [@jch](https://github.com/jch).
122
+ * [#78](https://github.com/intridea/hashie/pull/78): Merge and update accepts a block - [@jch](https://github.com/jch).
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Intridea, Inc., and Contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,556 @@
1
+ # Hashie [![Build Status](https://secure.travis-ci.org/intridea/hashie.png)](http://travis-ci.org/intridea/hashie) [![Dependency Status](https://gemnasium.com/intridea/hashie.png)](https://gemnasium.com/intridea/hashie) [![Code Climate](https://codeclimate.com/github/intridea/hashie.png)](https://codeclimate.com/github/intridea/hashie) [![Test Coverage](https://codeclimate.com/github/intridea/hashie/badges/coverage.png)](https://codeclimate.com/github/intridea/hashie)
2
+
3
+ Hashie is a growing collection of tools that extend Hashes and make them more useful.
4
+
5
+ ## Installation
6
+
7
+ Hashie is available as a RubyGem:
8
+
9
+ ```bash
10
+ $ gem install hashie
11
+ ```
12
+
13
+ ## Upgrading
14
+
15
+ You're reading the documentation for the next release of Hashie, which should be 3.3.2. Please read [UPGRADING](UPGRADING.md) when upgrading from a previous version. The current stable release is [3.3.1](https://github.com/intridea/hashie/blob/v3.3.1/README.md).
16
+
17
+ ## Hash Extensions
18
+
19
+ The library is broken up into a number of atomically includeable Hash extension modules as described below. This provides maximum flexibility for users to mix and match functionality while maintaining feature parity with earlier versions of Hashie.
20
+
21
+ Any of the extensions listed below can be mixed into a class by `include`-ing `Hashie::Extensions::ExtensionName`.
22
+
23
+ ### Coercion
24
+
25
+ Coercions allow you to set up "coercion rules" based either on the key or the value type to massage data as it's being inserted into the Hash. Key coercions might be used, for example, in lightweight data modeling applications such as an API client:
26
+
27
+ ```ruby
28
+ class Tweet < Hash
29
+ include Hashie::Extensions::Coercion
30
+ coerce_key :user, User
31
+ end
32
+
33
+ user_hash = { name: "Bob" }
34
+ Tweet.new(user: user_hash)
35
+ # => automatically calls User.coerce(user_hash) or
36
+ # User.new(user_hash) if that isn't present.
37
+ ```
38
+
39
+ Value coercions, on the other hand, will coerce values based on the type of the value being inserted. This is useful if you are trying to build a Hash-like class that is self-propagating.
40
+
41
+ ```ruby
42
+ class SpecialHash < Hash
43
+ include Hashie::Extensions::Coercion
44
+ coerce_value Hash, SpecialHash
45
+
46
+ def initialize(hash = {})
47
+ super
48
+ hash.each_pair do |k,v|
49
+ self[k] = v
50
+ end
51
+ end
52
+ end
53
+ ```
54
+
55
+ ### Coercing Collections
56
+
57
+ ```ruby
58
+ class Tweet < Hash
59
+ include Hashie::Extensions::Coercion
60
+ coerce_key :mentions, Array[User]
61
+ coerce_key :friends, Set[User]
62
+ end
63
+
64
+ user_hash = { name: "Bob" }
65
+ mentions_hash= [user_hash, user_hash]
66
+ friends_hash = [user_hash]
67
+ tweet = Tweet.new(mentions: mentions_hash, friends: friends_hash)
68
+ # => automatically calls User.coerce(user_hash) or
69
+ # User.new(user_hash) if that isn't present on each element of the array
70
+
71
+ tweet.mentions.map(&:class) # => [User, User]
72
+ tweet.friends.class # => Set
73
+ ```
74
+
75
+ ### Coercing Hashes
76
+
77
+ ```ruby
78
+ class Relation
79
+ def initialize(string)
80
+ @relation = string
81
+ end
82
+ end
83
+
84
+ class Tweet < Hash
85
+ include Hashie::Extensions::Coercion
86
+ coerce_key :relations, Hash[User => Relation]
87
+ end
88
+
89
+ user_hash = { name: "Bob" }
90
+ relations_hash= { user_hash => "father", user_hash => "friend" }
91
+ tweet = Tweet.new(relations: relations_hash)
92
+ tweet.relations.map { |k,v| [k.class, v.class] } # => [[User, Relation], [User, Relation]]
93
+ tweet.relations.class # => Hash
94
+
95
+ # => automatically calls User.coerce(user_hash) on each key
96
+ # and Relation.new on each value since Relation doesn't define the `coerce` class method
97
+ ```
98
+
99
+ ### Coercing Core Types
100
+
101
+ Hashie handles coercion to the following by using standard conversion methods:
102
+
103
+ | type | method |
104
+ |----------|----------|
105
+ | Integer | `#to_i` |
106
+ | Float | `#to_f` |
107
+ | Complex | `#to_c` |
108
+ | Rational | `#to_r` |
109
+ | String | `#to_s` |
110
+ | Symbol | `#to_sym`|
111
+
112
+ **Note**: The standard Ruby conversion methods are less strict than you may assume. For example, `:foo.to_i` raises an error but `"foo".to_i` returns 0.
113
+
114
+ You can also use coerce from the following supertypes with `coerce_value`:
115
+ - Integer
116
+ - Numeric
117
+
118
+ Hashie does not have built-in support for coercion boolean values, since Ruby does not have a built-in boolean type or standard method for to a boolean. You can coerce to booleans using a custom proc.
119
+
120
+ ### Coercion Proc
121
+
122
+ You can use a custom coercion proc on either `#coerce_key` or `#coerce_value`. This is useful for coercing to booleans or other simple types without creating a new class and `coerce` method. For example:
123
+
124
+ ```ruby
125
+ class Tweet < Hash
126
+ include Hashie::Extensions::Coercion
127
+ coerce_key :retweeted, ->(v) do
128
+ case v
129
+ when String
130
+ return !!(v =~ /^(true|t|yes|y|1)$/i)
131
+ when Numeric
132
+ return !v.to_i.zero?
133
+ else
134
+ return v == true
135
+ end
136
+ end
137
+ end
138
+ ```
139
+
140
+ ### KeyConversion
141
+
142
+ The KeyConversion extension gives you the convenience methods of `symbolize_keys` and `stringify_keys` along with their bang counterparts. You can also include just stringify or just symbolize with `Hashie::Extensions::StringifyKeys` or `Hashie::Extensions::SymbolizeKeys`.
143
+
144
+ ### MergeInitializer
145
+
146
+ The MergeInitializer extension simply makes it possible to initialize a Hash subclass with another Hash, giving you a quick short-hand.
147
+
148
+ ### MethodAccess
149
+
150
+ The MethodAccess extension allows you to quickly build method-based reading, writing, and querying into your Hash descendant. It can also be included as individual modules, i.e. `Hashie::Extensions::MethodReader`, `Hashie::Extensions::MethodWriter` and `Hashie::Extensions::MethodQuery`.
151
+
152
+ ```ruby
153
+ class MyHash < Hash
154
+ include Hashie::Extensions::MethodAccess
155
+ end
156
+
157
+ h = MyHash.new
158
+ h.abc = 'def'
159
+ h.abc # => 'def'
160
+ h.abc? # => true
161
+ ```
162
+
163
+ ### MethodAccessWithOverride
164
+
165
+ The MethodAccessWithOverride extension is like the MethodAccess extension, except that it allows you to override Hash methods. It aliases any overridden method with two leading underscores. To include only this overriding functionality, you can include the single module `Hashie::Extensions::MethodOverridingWriter`.
166
+
167
+ ```ruby
168
+ class MyHash < Hash
169
+ include Hashie::Extensions::MethodAccess
170
+ end
171
+
172
+ class MyOverridingHash < Hash
173
+ include Hashie::Extensions::MethodAccessWithOverride
174
+ end
175
+
176
+ non_overriding = MyHash.new
177
+ non_overriding.zip = 'a-dee-doo-dah'
178
+ non_overriding.zip #=> [[['zip', 'a-dee-doo-dah']]]
179
+
180
+ overriding = MyHash.new
181
+ overriding.zip = 'a-dee-doo-dah'
182
+ overriding.zip #=> 'a-dee-doo-dah'
183
+ overriding.__zip #=> [[['zip', 'a-dee-doo-dah']]]
184
+ ```
185
+
186
+ ### IndifferentAccess
187
+
188
+ This extension can be mixed in to instantly give you indifferent access to your Hash subclass. This works just like the params hash in Rails and other frameworks where whether you provide symbols or strings to access keys, you will get the same results.
189
+
190
+ A unique feature of Hashie's IndifferentAccess mixin is that it will inject itself recursively into subhashes *without* reinitializing the hash in question. This means you can safely merge together indifferent and non-indifferent hashes arbitrarily deeply without worrying about whether you'll be able to `hash[:other][:another]` properly.
191
+
192
+ ### IgnoreUndeclared
193
+
194
+ This extension can be mixed in to silently ignore undeclared properties on initialization instead of raising an error. This is useful when using a Trash to capture a subset of a larger hash.
195
+
196
+ ```ruby
197
+ class Person < Trash
198
+ include Hashie::Extensions::IgnoreUndeclared
199
+ property :first_name
200
+ property :last_name
201
+ end
202
+
203
+ user_data = {
204
+ first_name: 'Freddy',
205
+ last_name: 'Nostrils',
206
+ email: 'freddy@example.com'
207
+ }
208
+
209
+ p = Person.new(user_data) # 'email' is silently ignored
210
+
211
+ p.first_name # => 'Freddy'
212
+ p.last_name # => 'Nostrils'
213
+ p.email # => NoMethodError
214
+ ```
215
+
216
+ ### DeepMerge
217
+
218
+ This extension allow you to easily include a recursive merging
219
+ system to any Hash descendant:
220
+
221
+ ```ruby
222
+ class MyHash < Hash
223
+ include Hashie::Extensions::DeepMerge
224
+ end
225
+
226
+ h1 = MyHash[{ x: { y: [4,5,6] }, z: [7,8,9] }]
227
+ h2 = MyHash[{ x: { y: [7,8,9] }, z: "xyz" }]
228
+
229
+ h1.deep_merge(h2) # => { x: { y: [7, 8, 9] }, z: "xyz" }
230
+ h2.deep_merge(h1) # => { x: { y: [4, 5, 6] }, z: [7, 8, 9] }
231
+ ```
232
+
233
+ ### DeepFetch
234
+
235
+ This extension can be mixed in to provide for safe and concise retrieval of deeply nested hash values. In the event that the requested key does not exist a block can be provided and its value will be returned.
236
+
237
+ Though this is a hash extension, it conveniently allows for arrays to be present in the nested structure. This feature makes the extension particularly useful for working with JSON API responses.
238
+
239
+ ```ruby
240
+ user = {
241
+ name: { first: 'Bob', last: 'Boberts' },
242
+ groups: [
243
+ { name: 'Rubyists' },
244
+ { name: 'Open source enthusiasts' }
245
+ ]
246
+ }
247
+
248
+ user.extend Hashie::Extensions::DeepFetch
249
+
250
+ user.deep_fetch :name, :first # => 'Bob'
251
+ user.deep_fetch :name, :middle # => 'KeyError: Could not fetch middle'
252
+
253
+ # using a default block
254
+ user.deep_fetch(:name, :middle) { |key| 'default' } # => 'default'
255
+
256
+ # a nested array
257
+ user.deep_fetch :groups, 1, :name # => 'Open source enthusiasts'
258
+ ```
259
+
260
+ ### DeepFind
261
+
262
+ This extension can be mixed in to provide for concise searching for keys within a deeply nested hash.
263
+
264
+ It can also search through any Enumerable contained within the hash for objects with the specified key.
265
+
266
+ Note: The searches are depth-first, so it is not guaranteed that a shallowly nested value will be found before a deeply nested value.
267
+
268
+ ```ruby
269
+ user = {
270
+ name: { first: 'Bob', last: 'Boberts' },
271
+ groups: [
272
+ { name: 'Rubyists' },
273
+ { name: 'Open source enthusiasts' }
274
+ ]
275
+ }
276
+
277
+ user.extend Hashie::Extensions::DeepFind
278
+
279
+ user.deep_find(:name) #=> { first: 'Bob', last: 'Boberts' }
280
+ user.deep_detect(:name) #=> { first: 'Bob', last: 'Boberts' }
281
+
282
+ user.deep_find_all(:name) #=> [{ first: 'Bob', last: 'Boberts' }, 'Rubyists', 'Open source enthusiasts']
283
+ user.deep_select(:name) #=> [{ first: 'Bob', last: 'Boberts' }, 'Rubyists', 'Open source enthusiasts']
284
+ ```
285
+
286
+ ## Mash
287
+
288
+ Mash is an extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended. It is intended to give the user easier access to the objects within the Mash through a property-like syntax, while still retaining all Hash functionality.
289
+
290
+ ### Example:
291
+
292
+ ```ruby
293
+ mash = Hashie::Mash.new
294
+ mash.name? # => false
295
+ mash.name # => nil
296
+ mash.name = "My Mash"
297
+ mash.name # => "My Mash"
298
+ mash.name? # => true
299
+ mash.inspect # => <Hashie::Mash name="My Mash">
300
+
301
+ mash = Hashie::Mash.new
302
+ # use bang methods for multi-level assignment
303
+ mash.author!.name = "Michael Bleigh"
304
+ mash.author # => <Hashie::Mash name="Michael Bleigh">
305
+
306
+ mash = Hashie::Mash.new
307
+ # use under-bang methods for multi-level testing
308
+ mash.author_.name? # => false
309
+ mash.inspect # => <Hashie::Mash>
310
+ ```
311
+
312
+ **Note:** The `?` method will return false if a key has been set to false or nil. In order to check if a key has been set at all, use the `mash.key?('some_key')` method instead.
313
+
314
+ Please note that a Mash will not override methods through the use of the property-like syntax. This can lead to confusion if you expect to be able to access a Mash value through the property-like syntax for a key that conflicts with a method name. However, it protects users of your library from the unexpected behavior of those methods being overridden behind the scenes.
315
+
316
+ ### Example:
317
+
318
+ ```ruby
319
+ mash = Hashie::Mash.new
320
+ mash.name = "My Mash"
321
+ mash.zip = "Method Override?"
322
+ mash.zip # => [[["name", "My Mash"]], [["zip", "Method Override?"]]]
323
+ ```
324
+
325
+ Mash allows you also to transform any files into a Mash objects.
326
+
327
+ ### Example:
328
+
329
+ ```yml
330
+ #/etc/config/settings/twitter.yml
331
+ development:
332
+ api_key: 'api_key'
333
+ production:
334
+ api_key: <%= ENV['API_KEY'] %> #let's say that ENV['API_KEY'] is set to 'abcd'
335
+ ```
336
+
337
+ ```ruby
338
+ mash = Mash.load('settings/twitter.yml')
339
+ mash.development.api_key # => 'localhost'
340
+ mash.development.api_key = "foo" # => <# RuntimeError can't modify frozen ...>
341
+ mash.development.api_key? # => true
342
+ ```
343
+
344
+ You can access a Mash from another class:
345
+
346
+ ```ruby
347
+ mash = Mash.load('settings/twitter.yml')[ENV['RACK_ENV']]
348
+ Twitter.extend mash.to_module # NOTE: if you want another name than settings, call: to_module('my_settings')
349
+ Twitter.settings.api_key # => 'abcd'
350
+ ```
351
+
352
+ You can use another parser (by default: YamlErbParser):
353
+
354
+ ```
355
+ #/etc/data/user.csv
356
+ id | name | lastname
357
+ ---|------------- | -------------
358
+ 1 |John | Doe
359
+ 2 |Laurent | Garnier
360
+ ```
361
+
362
+ ```ruby
363
+ mash = Mash.load('data/user.csv', parser: MyCustomCsvParser)
364
+ # => { 1 => { name: 'John', lastname: 'Doe'}, 2 => { name: 'Laurent', lastname: 'Garnier' } }
365
+ mash[1] #=> { name: 'John', lastname: 'Doe' }
366
+ ```
367
+
368
+ ### Mash Extension: SafeAssignment
369
+
370
+ This extension can be mixed into a Mash to guard the attempted overwriting of methods by property setters. When mixed in, the Mash will raise an `ArgumentError` if you attempt to write a property with the same name as an existing method.
371
+
372
+ #### Example:
373
+
374
+ ```ruby
375
+ class SafeMash < ::Hashie::Mash
376
+ include Hashie::Extensions::Mash::SafeAssignment
377
+ end
378
+
379
+ safe_mash = SafeMash.new
380
+ safe_mash.zip = 'Test' # => ArgumentError
381
+ safe_mash[:zip] = 'test' # => still ArgumentError
382
+ ```
383
+
384
+ ## Dash
385
+
386
+ Dash is an extended Hash that has a discrete set of defined properties and only those properties may be set on the hash. Additionally, you can set defaults for each property. You can also flag a property as required. Required properties will raise an exception if unset. Another option is message for required properties, which allow you to add custom messages for required property.
387
+
388
+ You can also conditionally require certain properties by passing a Proc or Symbol. If a Proc is provided, it will be run in the context of the Dash instance. If a Symbol is provided, the value returned for the property or method of the same name will be evaluated. The property will be required if the result of the conditional is truthy.
389
+
390
+ ### Example:
391
+
392
+ ```ruby
393
+ class Person < Hashie::Dash
394
+ property :name, required: true
395
+ property :age, required: true, message: 'must be set.'
396
+ property :email
397
+ property :phone, required: -> { email.nil? }, message: 'is required if email is not set.'
398
+ property :pants, required: :weekday?, message: 'are only required on weekdays.'
399
+ property :occupation, default: 'Rubyist'
400
+
401
+ def weekday?
402
+ [ Time.now.saturday?, Time.now.sunday? ].none?
403
+ end
404
+ end
405
+
406
+ p = Person.new # => ArgumentError: The property 'name' is required for this Dash.
407
+ p = Person.new(name: 'Bob') # => ArgumentError: The property 'age' must be set.
408
+
409
+ p = Person.new(name: "Bob", age: 18)
410
+ p.name # => 'Bob'
411
+ p.name = nil # => ArgumentError: The property 'name' is required for this Dash.
412
+ p.age # => 18
413
+ p.age = nil # => ArgumentError: The property 'age' must be set.
414
+ p.email = 'abc@def.com'
415
+ p.occupation # => 'Rubyist'
416
+ p.email # => 'abc@def.com'
417
+ p[:awesome] # => NoMethodError
418
+ p[:occupation] # => 'Rubyist'
419
+ p.update_attributes!(name: 'Trudy', occupation: 'Evil')
420
+ p.occupation # => 'Evil'
421
+ p.name # => 'Trudy'
422
+ p.update_attributes!(occupation: nil)
423
+ p.occupation # => 'Rubyist'
424
+ ```
425
+
426
+ Properties defined as symbols are not the same thing as properties defined as strings.
427
+
428
+ ### Example:
429
+
430
+ ```ruby
431
+ class Tricky < Hashie::Dash
432
+ property :trick
433
+ property 'trick'
434
+ end
435
+
436
+ p = Tricky.new(trick: 'one', 'trick' => 'two')
437
+ p.trick # => 'one', always symbol version
438
+ p[:trick] # => 'one'
439
+ p['trick'] # => 'two'
440
+ ```
441
+
442
+ Note that accessing a property as a method always uses the symbol version.
443
+
444
+ ```ruby
445
+ class Tricky < Hashie::Dash
446
+ property 'trick'
447
+ end
448
+
449
+ p = Tricky.new('trick' => 'two')
450
+ p.trick # => NoMethodError
451
+ ```
452
+
453
+ ### Mash and Rails 4 Strong Parameters
454
+
455
+ To enable compatibility with Rails 4 use the [hashie_rails](http://rubygems.org/gems/hashie_rails) gem.
456
+
457
+ ## Trash
458
+
459
+ A Trash is a Dash that allows you to translate keys on initialization. It is used like so:
460
+
461
+ ```ruby
462
+ class Person < Hashie::Trash
463
+ property :first_name, from: :firstName
464
+ end
465
+ ```
466
+
467
+ This will automatically translate the <tt>firstName</tt> key to <tt>first_name</tt>
468
+ when it is initialized using a hash such as through:
469
+
470
+ ```ruby
471
+ Person.new(firstName: 'Bob')
472
+ ```
473
+
474
+ Trash also supports translations using lambda, this could be useful when dealing with external API's. You can use it in this way:
475
+
476
+ ```ruby
477
+ class Result < Hashie::Trash
478
+ property :id, transform_with: lambda { |v| v.to_i }
479
+ property :created_at, from: :creation_date, with: lambda { |v| Time.parse(v) }
480
+ end
481
+ ```
482
+
483
+ this will produce the following
484
+
485
+ ```ruby
486
+ result = Result.new(id: '123', creation_date: '2012-03-30 17:23:28')
487
+ result.id.class # => Fixnum
488
+ result.created_at.class # => Time
489
+ ```
490
+
491
+ ## Clash
492
+
493
+ Clash is a Chainable Lazy Hash that allows you to easily construct complex hashes using method notation chaining. This will allow you to use a more action-oriented approach to building options hashes.
494
+
495
+ Essentially, a Clash is a generalized way to provide much of the same kind of "chainability" that libraries like Arel or Rails 2.x's named_scopes provide.
496
+
497
+ ### Example:
498
+
499
+ ```ruby
500
+ c = Hashie::Clash.new
501
+ c.where(abc: 'def').order(:created_at)
502
+ c # => { where: { abc: 'def' }, order: :created_at }
503
+
504
+ # You can also use bang notation to chain into sub-hashes,
505
+ # jumping back up the chain with _end!
506
+ c = Hashie::Clash.new
507
+ c.where!.abc('def').ghi(123)._end!.order(:created_at)
508
+ c # => { where: { abc: 'def', ghi: 123 }, order: :created_at }
509
+
510
+ # Multiple hashes are merged automatically
511
+ c = Hashie::Clash.new
512
+ c.where(abc: 'def').where(hgi: 123)
513
+ c # => { where: { abc: 'def', hgi: 123 } }
514
+ ```
515
+
516
+ ## Rash
517
+
518
+ Rash is a Hash whose keys can be Regexps or Ranges, which will map many input keys to a value.
519
+
520
+ A good use case for the Rash is an URL router for a web framework, where URLs need to be mapped to actions; the Rash's keys match URL patterns, while the values call the action which handles the URL.
521
+
522
+ If the Rash's value is a `proc`, the `proc` will be automatically called with the regexp's MatchData (matched groups) as a block argument.
523
+
524
+ ### Example:
525
+
526
+ ```ruby
527
+
528
+ # Mapping names to appropriate greetings
529
+ greeting = Hashie::Rash.new( /^Mr./ => "Hello sir!", /^Mrs./ => "Evening, madame." )
530
+ greeting["Mr. Steve Austin"] # => "Hello sir!"
531
+ greeting["Mrs. Steve Austin"] # => "Evening, madame."
532
+
533
+ # Mapping statements to saucy retorts
534
+ mapper = Hashie::Rash.new(
535
+ /I like (.+)/ => proc { |m| "Who DOESN'T like #{m[1]}?!" },
536
+ /Get off my (.+)!/ => proc { |m| "Forget your #{m[1]}, old man!" }
537
+ )
538
+ mapper["I like traffic lights"] # => "Who DOESN'T like traffic lights?!"
539
+ mapper["Get off my lawn!"] # => "Forget your lawn, old man!"
540
+ ```
541
+
542
+ ### Auto-optimized
543
+
544
+ **Note:** The Rash is automatically optimized every 500 accesses (which means that it sorts the list of Regexps, putting the most frequently matched ones at the beginning).
545
+
546
+ If this value is too low or too high for your needs, you can tune it by setting: `rash.optimize_every = n`.
547
+
548
+ ## Contributing
549
+
550
+ See [CONTRIBUTING.md](CONTRIBUTING.md)
551
+
552
+ ## Copyright
553
+
554
+ Copyright (c) 2009-2014 Intridea, Inc. (http://intridea.com/) and [contributors](https://github.com/intridea/hashie/graphs/contributors).
555
+
556
+ MIT License. See [LICENSE](LICENSE) for details.
@@ -0,0 +1,35 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # stub: hashie 3.3.3 ruby lib
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "hashie"
6
+ s.version = "3.3.3"
7
+
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
+ s.require_paths = ["lib"]
10
+ s.authors = ["Michael Bleigh", "Jerry Cheung"]
11
+ s.date = "2014-12-18"
12
+ s.description = "Hashie is a collection of classes and mixins that make hashes more powerful."
13
+ s.email = ["michael@intridea.com", "jollyjerry@gmail.com"]
14
+ s.files = [".yardopts", "CHANGELOG.md", "CONTRIBUTING.md", "LICENSE", "README.md", "Rakefile", "UPGRADING.md", "hashie.gemspec", "lib/hashie.rb", "lib/hashie/clash.rb", "lib/hashie/dash.rb", "lib/hashie/extensions/coercion.rb", "lib/hashie/extensions/dash/indifferent_access.rb", "lib/hashie/extensions/deep_fetch.rb", "lib/hashie/extensions/deep_find.rb", "lib/hashie/extensions/deep_merge.rb", "lib/hashie/extensions/ignore_undeclared.rb", "lib/hashie/extensions/indifferent_access.rb", "lib/hashie/extensions/key_conversion.rb", "lib/hashie/extensions/mash/safe_assignment.rb", "lib/hashie/extensions/merge_initializer.rb", "lib/hashie/extensions/method_access.rb", "lib/hashie/extensions/parsers/yaml_erb_parser.rb", "lib/hashie/extensions/pretty_inspect.rb", "lib/hashie/extensions/stringify_keys.rb", "lib/hashie/extensions/symbolize_keys.rb", "lib/hashie/hash.rb", "lib/hashie/mash.rb", "lib/hashie/rash.rb", "lib/hashie/trash.rb", "lib/hashie/version.rb", "spec/hashie/clash_spec.rb", "spec/hashie/dash_spec.rb", "spec/hashie/extensions/autoload_spec.rb", "spec/hashie/extensions/coercion_spec.rb", "spec/hashie/extensions/dash/indifferent_access_spec.rb", "spec/hashie/extensions/deep_fetch_spec.rb", "spec/hashie/extensions/deep_find_spec.rb", "spec/hashie/extensions/deep_merge_spec.rb", "spec/hashie/extensions/ignore_undeclared_spec.rb", "spec/hashie/extensions/indifferent_access_spec.rb", "spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb", "spec/hashie/extensions/key_conversion_spec.rb", "spec/hashie/extensions/mash/safe_assignment_spec.rb", "spec/hashie/extensions/merge_initializer_spec.rb", "spec/hashie/extensions/method_access_spec.rb", "spec/hashie/extensions/stringify_keys_spec.rb", "spec/hashie/extensions/symbolize_keys_spec.rb", "spec/hashie/hash_spec.rb", "spec/hashie/mash_spec.rb", "spec/hashie/parsers/yaml_erb_parser_spec.rb", "spec/hashie/rash_spec.rb", "spec/hashie/trash_spec.rb", "spec/hashie/version_spec.rb", "spec/spec_helper.rb", "spec/support/module_context.rb"]
15
+ s.homepage = "https://github.com/intridea/hashie"
16
+ s.licenses = ["MIT"]
17
+ s.rubygems_version = "2.4.5"
18
+ s.summary = "Your friendly neighborhood hash library."
19
+ s.test_files = ["spec/support/module_context.rb", "spec/spec_helper.rb", "spec/hashie/version_spec.rb", "spec/hashie/trash_spec.rb", "spec/hashie/rash_spec.rb", "spec/hashie/parsers/yaml_erb_parser_spec.rb", "spec/hashie/mash_spec.rb", "spec/hashie/hash_spec.rb", "spec/hashie/extensions/symbolize_keys_spec.rb", "spec/hashie/extensions/stringify_keys_spec.rb", "spec/hashie/extensions/method_access_spec.rb", "spec/hashie/extensions/merge_initializer_spec.rb", "spec/hashie/extensions/mash/safe_assignment_spec.rb", "spec/hashie/extensions/key_conversion_spec.rb", "spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb", "spec/hashie/extensions/indifferent_access_spec.rb", "spec/hashie/extensions/ignore_undeclared_spec.rb", "spec/hashie/extensions/deep_merge_spec.rb", "spec/hashie/extensions/deep_find_spec.rb", "spec/hashie/extensions/deep_fetch_spec.rb", "spec/hashie/extensions/dash/indifferent_access_spec.rb", "spec/hashie/extensions/coercion_spec.rb", "spec/hashie/extensions/autoload_spec.rb", "spec/hashie/dash_spec.rb", "spec/hashie/clash_spec.rb"]
20
+
21
+ if s.respond_to? :specification_version then
22
+ s.specification_version = 4
23
+
24
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
+ s.add_development_dependency(%q<rake>, [">= 0"])
26
+ s.add_development_dependency(%q<rspec>, ["~> 3.0"])
27
+ else
28
+ s.add_dependency(%q<rake>, [">= 0"])
29
+ s.add_dependency(%q<rspec>, ["~> 3.0"])
30
+ end
31
+ else
32
+ s.add_dependency(%q<rake>, [">= 0"])
33
+ s.add_dependency(%q<rspec>, ["~> 3.0"])
34
+ end
35
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.1.b42
4
+ version: 0.2.0.1.b44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: obligation
@@ -140,6 +140,10 @@ files:
140
140
  - spec/restify/resource_spec.rb
141
141
  - spec/restify_spec.rb
142
142
  - spec/spec_helper.rb
143
+ - vendor/bundle/ruby/2.1.0/bundler/gems/hashie-f42367e30e6a/CHANGELOG.md
144
+ - vendor/bundle/ruby/2.1.0/bundler/gems/hashie-f42367e30e6a/LICENSE
145
+ - vendor/bundle/ruby/2.1.0/bundler/gems/hashie-f42367e30e6a/README.md
146
+ - vendor/bundle/ruby/2.1.0/bundler/gems/hashie-f42367e30e6a/hashie.gemspec
143
147
  homepage: https://github.com/jgraichen/restify
144
148
  licenses:
145
149
  - LGPLv3