restify 0.4.0.b1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eaa7426d42906e309c899eb7b59b1d3f4b98284a
4
- data.tar.gz: 494b9841c5a3424157c7d75771cd6fa177277e25
3
+ metadata.gz: 53afb4149e4a7cf9a74f1adefb033fddbff747b1
4
+ data.tar.gz: 08a921b2651ed0b7f1a4b7bfe9cc3902bbdcc025
5
5
  SHA512:
6
- metadata.gz: 627086929d8b537b952e4f498c98e62c1609f635e7b7049b70ba0d4a0a9f05da6dacf699c4e290a527688fb12fd79128cac084abf77fd4a3aba2274d904923e7
7
- data.tar.gz: 36f9848d1585898e5a6ab343c053fb62958c6b701d4ac3e5e43de9be6d097bd6cf32b7e2c1d801495ab2df7eea0a2b01a3f85f7960f2a59187d9220d8d940497
6
+ metadata.gz: e36cddfca76ff7cb128eda9c4063fc1c331e9da02a386ee42fa3e2c294c6d6857ec2bc1eb9d4fae59d2bb6c4e5d2c34e26e8742190437d7196cfb61d16b39dc3
7
+ data.tar.gz: 2480565bdd848d2e6d4574fa664418b4bf387d91752d8e4f678673764a31e1cb4924b88901f1f04f28e5b40017454273024d683b97b1fb8cfafa196e7bf836b3
@@ -49,6 +49,14 @@ module Restify
49
49
 
50
50
  alias_method :rel, :relation
51
51
 
52
+ # @!method data
53
+ #
54
+ # Return response data. Usually a hash or array.
55
+ #
56
+ # @return [Object] Response data.
57
+ #
58
+ attr_reader :data
59
+
52
60
  # @!method response
53
61
  #
54
62
  # Return response if available.
@@ -3,7 +3,7 @@ module Restify
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
5
  PATCH = 0
6
- STAGE = 'b1'.freeze
6
+ STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.').freeze
8
8
 
9
9
  def self.to_s
@@ -87,5 +87,11 @@ describe Restify::Resource do
87
87
  expect(subject).to respond_to :[]
88
88
  expect(subject[1]).to eq 2
89
89
  end
90
+
91
+ describe '#data' do
92
+ it 'should return data' do
93
+ expect(subject.data).to equal data
94
+ end
95
+ end
90
96
  end
91
97
  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.4.0.b1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-23 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -155,12 +155,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - ">"
158
+ - - ">="
159
159
  - !ruby/object:Gem::Version
160
- version: 1.3.1
160
+ version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.4.8
163
+ rubygems_version: 2.5.1
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: An experimental hypermedia REST client.