bootic_client 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/README.md +14 -0
- data/lib/bootic_client/client.rb +1 -1
- data/lib/bootic_client/version.rb +1 -1
- data/spec/client_spec.rb +4 -5
- data/spec/relation_spec.rb +9 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c16e369fb5577f0ffe506797543b16370054bb9
|
4
|
+
data.tar.gz: 05d40ef9fba53f7cf3e556e5ca86892e11eb5b37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36005ad3fb4a47fab8e8768fc235c6e4396c9201654ed8b8bf697720692ef2c367ac048a342bf82c9414c670b1a1fa6525626090c409ac93c6122d81b013425a
|
7
|
+
data.tar.gz: f84d5136154b79e38e65c69dc979a86b782518d9b5f143c0d79a372b988edecba0848d4085f257abeda9da7549687e6fc402471e5e5f0338aa1d6bca883648c2
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v0.0.8](https://github.com/bootic/bootic_client.rb/tree/v0.0.8) (2015-04-06)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.7...v0.0.8)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Basic auth strategy [\#2](https://github.com/bootic/bootic_client.rb/pull/2) ([ismasan](https://github.com/ismasan))
|
10
|
+
|
11
|
+
## [v0.0.7](https://github.com/bootic/bootic_client.rb/tree/v0.0.7) (2015-03-07)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.6...v0.0.7)
|
14
|
+
|
15
|
+
## [v0.0.6](https://github.com/bootic/bootic_client.rb/tree/v0.0.6) (2015-01-29)
|
16
|
+
|
17
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.5...v0.0.6)
|
18
|
+
|
19
|
+
**Merged pull requests:**
|
20
|
+
|
21
|
+
- Enumerable list entities [\#1](https://github.com/bootic/bootic_client.rb/pull/1) ([ismasan](https://github.com/ismasan))
|
22
|
+
|
23
|
+
## [v0.0.5](https://github.com/bootic/bootic_client.rb/tree/v0.0.5) (2014-07-27)
|
24
|
+
|
25
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.4...v0.0.5)
|
26
|
+
|
27
|
+
## [v0.0.4](https://github.com/bootic/bootic_client.rb/tree/v0.0.4) (2014-07-13)
|
28
|
+
|
29
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.3...v0.0.4)
|
30
|
+
|
31
|
+
## [v0.0.3](https://github.com/bootic/bootic_client.rb/tree/v0.0.3) (2014-06-21)
|
32
|
+
|
33
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.2...v0.0.3)
|
34
|
+
|
35
|
+
## [v0.0.2](https://github.com/bootic/bootic_client.rb/tree/v0.0.2) (2014-06-17)
|
36
|
+
|
37
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.1...v0.0.2)
|
38
|
+
|
39
|
+
## [v0.0.1](https://github.com/bootic/bootic_client.rb/tree/v0.0.1) (2014-06-15)
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
@@ -225,3 +225,17 @@ messaging_api.delete_message(id: new_message.id)
|
|
225
225
|
4. Push to the branch (`git push origin my-new-feature`)
|
226
226
|
5. Create new Pull Request
|
227
227
|
|
228
|
+
## Release
|
229
|
+
|
230
|
+
Bump version.rb and
|
231
|
+
|
232
|
+
```
|
233
|
+
bundle exec rake release
|
234
|
+
```
|
235
|
+
|
236
|
+
Update, commit and push changelog:
|
237
|
+
|
238
|
+
```
|
239
|
+
github_changelog_generator -u bootic -p bootic_client.rb
|
240
|
+
```
|
241
|
+
|
data/lib/bootic_client/client.rb
CHANGED
data/spec/client_spec.rb
CHANGED
@@ -163,7 +163,7 @@ describe BooticClient::Client do
|
|
163
163
|
expect(client.post(root_url, {foo: 'bar'}, request_headers).body['message']).to eql('Hello!')
|
164
164
|
end
|
165
165
|
end
|
166
|
-
|
166
|
+
|
167
167
|
[:put, :patch].each do |verb|
|
168
168
|
describe verb.to_s.upcase do
|
169
169
|
before do
|
@@ -177,7 +177,7 @@ describe BooticClient::Client do
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
end
|
180
|
-
|
180
|
+
|
181
181
|
context 'DELETE' do
|
182
182
|
before do
|
183
183
|
@delete_requst = stub_request(:delete, root_url)
|
@@ -186,13 +186,12 @@ describe BooticClient::Client do
|
|
186
186
|
end
|
187
187
|
|
188
188
|
it 'DELETEs request and parses response' do
|
189
|
-
expect(client.send(:delete, root_url, request_headers).status).to eql(200)
|
189
|
+
expect(client.send(:delete, root_url, {}, request_headers).status).to eql(200)
|
190
190
|
expect(@delete_requst).to have_been_requested
|
191
191
|
end
|
192
192
|
end
|
193
|
-
|
194
|
-
end
|
195
193
|
|
194
|
+
end
|
196
195
|
|
197
196
|
end
|
198
197
|
end
|
data/spec/relation_spec.rb
CHANGED
@@ -68,5 +68,14 @@ describe BooticClient::Relation do
|
|
68
68
|
expect(relation_templated.run(bars: 123, foo: 'bar')).to eql(entity)
|
69
69
|
end
|
70
70
|
end
|
71
|
+
|
72
|
+
describe 'DELETE' do
|
73
|
+
let(:relation) { BooticClient::Relation.new({'href' => '/foo/bars', 'type' => 'application/json', 'name' => 'self', 'method' => 'delete'}, client) }
|
74
|
+
|
75
|
+
it 'DELETEs data and returns resulting entity' do
|
76
|
+
client.stub(:request_and_wrap).with(:delete, '/foo/bars', BooticClient::Entity, {}).and_return entity
|
77
|
+
expect(relation.run).to eql(entity)
|
78
|
+
end
|
79
|
+
end
|
71
80
|
end
|
72
81
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootic_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Celis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- ".gitignore"
|
175
175
|
- ".rspec"
|
176
176
|
- ".travis.yml"
|
177
|
+
- CHANGELOG.md
|
177
178
|
- Gemfile
|
178
179
|
- LICENSE.txt
|
179
180
|
- README.md
|