quinoa 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f23933057a05ee09ae0bcc6f25c5e9066c8940da
4
- data.tar.gz: e367d3d5866bbe7dc985e5a7c3440f0d8e502f91
3
+ metadata.gz: 53dfb345401bc5af6db45e7e2efed44cd1a31abb
4
+ data.tar.gz: 233dedd86222d2e2a788b319e3ef81f581837dcd
5
5
  SHA512:
6
- metadata.gz: 5f732054652c71e930a7800d908ec1f93dfb962e807fa239c193b15051a1a616df43fd03dc5cf9d4f9f545f19cdaaff651f991b2a80a6323ff7f65bde29e0751
7
- data.tar.gz: 337b3c0b63984eaacd03bfc4b2814b05948f4bb13b82d3223ff96b5d7ca9af1d731715242279359a1d6d231354a03f686a2dc5fb410d0d25fd0cf21634ffc474
6
+ metadata.gz: 11278e85aa91bcd74dab9e6e5f3da1ec3beee6140dbf84c23a384671908ee9585e3ccaca12312c36508c43d68555ca3a76da1abd372f8f780500da701be44938
7
+ data.tar.gz: be3c23989b181587427e0f19151df9c97618732b137111bf58091514bf7556af87c8f2b07873066f81f6123024837da212a5dca389854e298f2a46d50fdbbe6e
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- quinoa (0.0.2)
5
- rest-client (~> 0)
6
- rspec (~> 0)
4
+ quinoa (0.0.3)
5
+ rest-client (~> 0.9.2)
6
+ rspec (~> 0.9.4)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -15,19 +15,19 @@ The idea is to define a rest endpoint and some details about it only once, and t
15
15
 
16
16
  For example, if I want to define a rest endpoint for the url http://www.camiloribeiro.com with the content-type application/json and send two different body payloads, I could do it like this:
17
17
 
18
- camilo_test = Quinoa::Service.new "http://camiloribeiro.com"
19
- camilo_test.content_type = "application/json"
18
+ test = Quinoa::Service.new "http://camiloribeiro.com"
19
+ test.content_type = "application/json"
20
20
 
21
- camilo_test.body = '{ "foo":"bar"}'
22
- result1 = camilo_test.post!
21
+ test.body = '{ "foo":"bar"}'
22
+ result1 = test.post!
23
23
 
24
- camilo_test.body = '{ "bar":"foo"}'
25
- result2 = camilo_test.post!
24
+ test.body = '{ "bar":"foo"}'
25
+ result2 = test.post!
26
26
 
27
27
  Now if I want to change and use another endpoint in the same url, I can do something like this:
28
28
 
29
- camilo_test.path = /new_endpoint
30
- result3 = camilo_test.get!
29
+ test.path = /new_endpoint
30
+ result3 = test.get!
31
31
 
32
32
  To read the response it is as easy as setting the initial data:
33
33
 
data/changelog CHANGED
@@ -1,6 +1,9 @@
1
- 0.0.4:
1
+ 0.0.5:
2
2
  -
3
3
 
4
+ 0.0.4: setting versions for rspec and rest-client
5
+ - rspec 0.9.4 and res-client 0.9.2
6
+
4
7
  0.0.3: Authorization header in place
5
8
  - Adding support to authorization header
6
9
 
@@ -1,3 +1,3 @@
1
1
  module Quinoa
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/quinoa.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  s.add_development_dependency 'cucumber', '~> 0'
30
30
  s.add_development_dependency 'webmock', '~> 0'
31
31
 
32
- s.add_dependency 'rest-client', '~> 0'
33
- s.add_dependency 'rspec', '~> 0'
32
+ s.add_dependency 'rest-client', '~> 0.9.2'
33
+ s.add_dependency 'rspec', '~> 0.9.4'
34
34
 
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quinoa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camilo Ribeiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-02 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.9.2
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 0.9.2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 0.9.4
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 0.9.4
139
139
  description: Quinoa is a light and nutritive framework that allows automate service
140
140
  level tests using object model
141
141
  email: