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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c16e369fb5577f0ffe506797543b16370054bb9
4
- data.tar.gz: 05d40ef9fba53f7cf3e556e5ca86892e11eb5b37
3
+ metadata.gz: f30f8bf8e19051d85d9fc6ac491ee256f96c6d2b
4
+ data.tar.gz: bd047d64d66362352aeb8465582c80fa6d834d49
5
5
  SHA512:
6
- metadata.gz: 36005ad3fb4a47fab8e8768fc235c6e4396c9201654ed8b8bf697720692ef2c367ac048a342bf82c9414c670b1a1fa6525626090c409ac93c6122d81b013425a
7
- data.tar.gz: f84d5136154b79e38e65c69dc979a86b782518d9b5f143c0d79a372b988edecba0848d4085f257abeda9da7549687e6fc402471e5e5f0338aa1d6bca883648c2
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)
@@ -23,6 +23,10 @@ module BooticClient
23
23
  !!attrs['templated']
24
24
  end
25
25
 
26
+ def parameters
27
+ @parameters ||= templated? ? uri.variables : []
28
+ end
29
+
26
30
  def name
27
31
  attrs['name']
28
32
  end
@@ -1,3 +1,3 @@
1
1
  module BooticClient
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -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.9
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-05-01 00:00:00.000000000 Z
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.4.5
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