hal-client 2.2.0 → 2.2.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.
- data/README.md +14 -14
- data/lib/hal_client/version.rb +1 -1
- data/lib/hal_client.rb +1 -0
- metadata +3 -3
data/README.md
CHANGED
@@ -5,20 +5,6 @@
|
|
5
5
|
|
6
6
|
An easy to use client interface for REST APIs that use [HAL](http://stateless.co/hal_specification.html).
|
7
7
|
|
8
|
-
## Installation
|
9
|
-
|
10
|
-
Add this line to your application's Gemfile:
|
11
|
-
|
12
|
-
gem 'hal-client'
|
13
|
-
|
14
|
-
And then execute:
|
15
|
-
|
16
|
-
$ bundle
|
17
|
-
|
18
|
-
Or install it yourself as:
|
19
|
-
|
20
|
-
$ gem install hal-client
|
21
|
-
|
22
8
|
Usage
|
23
9
|
-----
|
24
10
|
|
@@ -131,6 +117,20 @@ HalClient can be used by servers of HAL APIs to interpret the bodies of requests
|
|
131
117
|
|
132
118
|
Created this way the representation will not dereference any links (because it doesn't have a HalClient) but it will provide `HalClient::Representation`s of both embedded and linked resources.
|
133
119
|
|
120
|
+
## Installation
|
121
|
+
|
122
|
+
Add this line to your application's Gemfile:
|
123
|
+
|
124
|
+
gem 'hal-client'
|
125
|
+
|
126
|
+
And then execute:
|
127
|
+
|
128
|
+
$ bundle
|
129
|
+
|
130
|
+
Or install it yourself as:
|
131
|
+
|
132
|
+
$ gem install hal-client
|
133
|
+
|
134
134
|
## Upgrading from 1.x to 2.x
|
135
135
|
|
136
136
|
The signature of `HalClient::Representation#new` changed such that keyword arguments are required. Any direct uses of that method must be changed. This is the only breaking change.
|
data/lib/hal_client/version.rb
CHANGED
data/lib/hal_client.rb
CHANGED
@@ -7,6 +7,7 @@ class HalClient
|
|
7
7
|
autoload :Representation, 'hal_client/representation'
|
8
8
|
autoload :RepresentationSet, 'hal_client/representation_set'
|
9
9
|
autoload :CurieResolver, 'hal_client/curie_resolver'
|
10
|
+
autoload :Collection, 'hal_client/collection'
|
10
11
|
autoload :InvalidRepresentationError, 'hal_client/errors'
|
11
12
|
autoload :NotACollectionError, 'hal_client/errors'
|
12
13
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hal-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -202,7 +202,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
202
|
version: '0'
|
203
203
|
segments:
|
204
204
|
- 0
|
205
|
-
hash:
|
205
|
+
hash: -2800746664713076879
|
206
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
207
|
none: false
|
208
208
|
requirements:
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
segments:
|
213
213
|
- 0
|
214
|
-
hash:
|
214
|
+
hash: -2800746664713076879
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
217
|
rubygems_version: 1.8.23
|