restify 0.1.2.1.b34 → 0.1.2.1.b35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +5 -5
- data/lib/restify/relation.rb +4 -4
- data/lib/restify/resource.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjcwNDE5ZDJiNTFjOWFhN2YyNTk3YmVmODc0NzEyOGExYjk3Y2FjZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDk2ZGI4NDdmMmJmNTRlYTAwNTc2ODc1NDBjZTNiYjE5ZTk4NjUwMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Mzg5NDY4ZGVkOWVmZjBjZjQyZGQ3YThkZjQ1OTYyN2Y2YmI3ZDdiZmJkMjJk
|
10
|
+
YzY1OWQ3OGRiYTQxNzVhZDgxOTBjOTExZDZhODI3MDFkYjQ1YjQyOTg1MTAz
|
11
|
+
MGVmYTMxYWE0YTBkMDQzNDNlNzc1MjAxMzY0ZTA3MzY3ZDc4ZGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTU0NDQzZjU2MmE4NmUxYzdmYWQ0OTJjMzdkOTg3Yzk4ZTYwODNmZTNiYmNm
|
14
|
+
MDhlOWM5MDY5ZDg5NjAyZGY3ZmE1YzU4YTE1NGIxZGVhMDc2MmExYmEzOTFh
|
15
|
+
MjM3NDFiMjIyZWZhOThjNmQzYWJlY2NiNTRlYzExYTE0YTM5OTc=
|
data/README.md
CHANGED
@@ -19,11 +19,11 @@ and can decode and encode
|
|
19
19
|
|
20
20
|
* [JSON](https://github.com/intridea/multi_json)
|
21
21
|
|
22
|
-
## Restify is still
|
22
|
+
## Restify is still under development
|
23
23
|
|
24
|
-
* It
|
25
|
-
* It
|
26
|
-
* It
|
24
|
+
* It is build on experimental obligation library.
|
25
|
+
* It's missing a extensive test suite
|
26
|
+
* It's not used in high-volume production environments but for remote API usage in testing and CI.
|
27
27
|
|
28
28
|
Planned features:
|
29
29
|
|
@@ -51,7 +51,7 @@ The `value` call resolves the returned `Obligation` (like a Future object) by bl
|
|
51
51
|
Get a relation described by the root resource. Restify supports Link headers as well as JSON encoded relations (`*_url` fields).
|
52
52
|
|
53
53
|
```ruby
|
54
|
-
repositories =
|
54
|
+
repositories = client.rel(:repository)
|
55
55
|
```
|
56
56
|
|
57
57
|
Send a GET request for a specific repository using given parameters. They will be used to expand the URI template behind the `repositories` relation.
|
data/lib/restify/relation.rb
CHANGED
@@ -14,6 +14,10 @@ module Restify
|
|
14
14
|
request :get, params
|
15
15
|
end
|
16
16
|
|
17
|
+
def delete(params = {})
|
18
|
+
request :delete, params.merge(data: data)
|
19
|
+
end
|
20
|
+
|
17
21
|
def post(data = {}, params = {})
|
18
22
|
request :post, params.merge(data: data)
|
19
23
|
end
|
@@ -26,10 +30,6 @@ module Restify
|
|
26
30
|
request :patch, params.merge(data: data)
|
27
31
|
end
|
28
32
|
|
29
|
-
def delete(data = {}, params = {})
|
30
|
-
request :delete, params.merge(data: data)
|
31
|
-
end
|
32
|
-
|
33
33
|
def ==(other)
|
34
34
|
super || (other.is_a?(String) && @template.pattern == other)
|
35
35
|
end
|
data/lib/restify/resource.rb
CHANGED
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.1.2.1.
|
4
|
+
version: 0.1.2.1.b35
|
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-
|
11
|
+
date: 2014-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: obligation
|