bootic_client 0.0.9 → 0.0.10
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bootic_client/relation.rb +4 -0
- data/lib/bootic_client/version.rb +1 -1
- data/spec/relation_spec.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f30f8bf8e19051d85d9fc6ac491ee256f96c6d2b
|
|
4
|
+
data.tar.gz: bd047d64d66362352aeb8465582c80fa6d834d49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d4a3be3b234927fc884f32fd229530547b5a80c2d649782123ce66fbd4ce0cdd204f50ef68ad168ada6c536c745f2286dfaf1b063cf88aae21d17471ddc819a
|
|
7
|
+
data.tar.gz: 702fc183dcd174e1129045276e3db6b7366ef7f6e62bab9b6b3001b3b50141c0f68e9b2d81e092ec5bd66164ee513c66ce9b2ea29868050692af7cb436bfa5d9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v0.0.9](https://github.com/bootic/bootic_client.rb/tree/v0.0.9) (2015-05-01)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.8...v0.0.9)
|
|
6
|
+
|
|
3
7
|
## [v0.0.8](https://github.com/bootic/bootic_client.rb/tree/v0.0.8) (2015-04-06)
|
|
4
8
|
|
|
5
9
|
[Full Changelog](https://github.com/bootic/bootic_client.rb/compare/v0.0.7...v0.0.8)
|
data/spec/relation_spec.rb
CHANGED
|
@@ -29,6 +29,10 @@ describe BooticClient::Relation do
|
|
|
29
29
|
expect(relation.templated?).to eql(false)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
it 'does not have parameters' do
|
|
33
|
+
expect(relation.parameters).to eql []
|
|
34
|
+
end
|
|
35
|
+
|
|
32
36
|
it 'passes query string to client' do
|
|
33
37
|
expect(client).to receive(:request_and_wrap).with(:get, '/foos/bar', BooticClient::Entity, id: 2, q: 'test', page: 2).and_return entity
|
|
34
38
|
expect(relation.run(id: 2, q: 'test', page: 2)).to eql(entity)
|
|
@@ -47,6 +51,10 @@ describe BooticClient::Relation do
|
|
|
47
51
|
expect(relation.run).to eql(entity)
|
|
48
52
|
end
|
|
49
53
|
|
|
54
|
+
it 'has parameter list' do
|
|
55
|
+
expect(relation.parameters).to eql ['id', 'q', 'page']
|
|
56
|
+
end
|
|
57
|
+
|
|
50
58
|
it 'interpolates tokens' do
|
|
51
59
|
expect(client).to receive(:request_and_wrap).with(:get, '/foos/2?q=test&page=2', BooticClient::Entity, {other: 'other'}).and_return entity
|
|
52
60
|
expect(relation.run(id: 2, q: 'test', page: 2, other: 'other')).to eql(entity)
|
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.10
|
|
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-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
221
221
|
version: '0'
|
|
222
222
|
requirements: []
|
|
223
223
|
rubyforge_project:
|
|
224
|
-
rubygems_version: 2.
|
|
224
|
+
rubygems_version: 2.2.2
|
|
225
225
|
signing_key:
|
|
226
226
|
specification_version: 4
|
|
227
227
|
summary: Official Ruby client for the Bootic API
|