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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjZhNWQ1YzA2YmVmZDFlMWViZTBhY2QxMmVkMmUzM2EzNDU1YjY0MQ==
4
+ YjcwNDE5ZDJiNTFjOWFhN2YyNTk3YmVmODc0NzEyOGExYjk3Y2FjZQ==
5
5
  data.tar.gz: !binary |-
6
- YmU5OGEyOGUxOGZmY2Q2YTA1N2U2ZTI2NTIzMDhiYjcwNWRjN2UyNQ==
6
+ ZDk2ZGI4NDdmMmJmNTRlYTAwNTc2ODc1NDBjZTNiYjE5ZTk4NjUwMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWYyYjk3NDY1ZjQxYzVlZGQwOGM4MzFmN2Q3MjJhZmVlOWNlYWY2OWY0ZTc4
10
- MjJmZThmZGRmYjA0MDA5MTY4N2JjZDA0ZGE0MWQ4Y2FhYjRkNDZkODI4YjJj
11
- ZWY5YWI3OWExYWJjYjcxOGQ4NDYyYmM4M2FjMGQ2MTYyN2RhZWM=
9
+ Mzg5NDY4ZGVkOWVmZjBjZjQyZGQ3YThkZjQ1OTYyN2Y2YmI3ZDdiZmJkMjJk
10
+ YzY1OWQ3OGRiYTQxNzVhZDgxOTBjOTExZDZhODI3MDFkYjQ1YjQyOTg1MTAz
11
+ MGVmYTMxYWE0YTBkMDQzNDNlNzc1MjAxMzY0ZTA3MzY3ZDc4ZGY=
12
12
  data.tar.gz: !binary |-
13
- NGQzNWRhZmRmMzkwYzUwYzY2N2U5ZGUzOTA0MjQ0YmVmYTg0YWQzZWZmNThk
14
- NjA3YzAyYmIyN2IxNmFmZTJjODAzYjcyZTFkMmY0YmU4NWI4M2RiNTgxYzNk
15
- NDVjZDljYjRhNDU0ZjkzZmQ3ZTRhNWVlZWZlZWU0NmVmNTc1Y2I=
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 pre-alpha!
22
+ ## Restify is still under development
23
23
 
24
- * It does not cover all HTTP methods (not even all basic ones)
25
- * It is build on pre-alpha obligation library.
26
- * It has to less tests.
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 = gh.rel(:repository)
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.
@@ -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
@@ -31,7 +31,7 @@ module Restify
31
31
  end
32
32
  end
33
33
 
34
- # Compare with other {Resource}s or {Hash}s.
34
+ # Compare with other {Resource}s or hashes.
35
35
  #
36
36
  def ==(other)
37
37
  case other
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.b34
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-10 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: obligation