ansible_tower_client 0.19.0 → 0.19.1

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
  SHA256:
3
- metadata.gz: 2e521e11dfb720759a44642c73ce82b4de134a73aeed67d9aa36cf69684600b0
4
- data.tar.gz: 97d9e5d785722b7cedeb349d1e467b617f866ab8761e8fc10b471c427556e059
3
+ metadata.gz: d1a288ed349e5e1039eeb1679ac362a14dd04a29881dcba2fefe00d56ad38d37
4
+ data.tar.gz: '08b1c643d52ef8a8a6469337659a16422430e45e121be392a194df5c3ba28512'
5
5
  SHA512:
6
- metadata.gz: 767ab86b6240276c19d27aa048e0de0277b830e4daf96b52af5221f26d1680ae7f1d6022cc8b33235777ff876b22ae418c8f90d94078d5d117736b4d8940bac6
7
- data.tar.gz: 490cbf7434ddf868bbc09cbf6121a10cdba8e14d6dbfddcbd5980f412959c3b54cbd560c18849f6302263e62ec44af6f1fc945603acf5f1a9b4205a801c4a445
6
+ metadata.gz: 8420eccf49a31b14a5aa8fa4c0979e54b54f769aa33986838245cb55d10f7294857a71f7cf0e5d02d070fc6f08bb41bd1b081e9c4070bd287c2350c99eaf54ad
7
+ data.tar.gz: b4c976cdf183e43c7769642105e6c7695f819d162fc080c93c313a2190b9eac2070df8048815c8cb50db259f7b63fac9e47e29bc116fb51a6c6d94ef041dad96
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.19.1] - 2019-03-25
9
+ ### Fixed
10
+ - Avoid redundant redirects [(#124)](https://github.com/ansible/ansible_tower_client_ruby/pull/124) [(#127)](https://github.com/ansible/ansible_tower_client_ruby/pull/127)
11
+ - Ensure a single trailing slash on URLs [(#126)](https://github.com/ansible/ansible_tower_client_ruby/pull/126)
12
+
8
13
  ## [0.19.0] - 2018-11-19
9
14
  ### Added
10
15
  - Added ProjectUpdate#stdout [(#122)](https://github.com/ansible/ansible_tower_client_ruby/pull/122)
@@ -109,7 +114,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
109
114
  ### Fixed
110
115
  - Adjusted project_spec to test on a Project [(#63)](https://github.com/ansible/ansible_tower_client_ruby/pull/63)
111
116
 
112
- [Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.19.0...master
117
+ [Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.19.1...master
118
+ [0.19.1]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.19.0...v0.19.1
113
119
  [0.19.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.18.0...v0.19.0
114
120
  [0.18.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.17.0...v0.18.0
115
121
  [0.17.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.16.0...v0.17.0
@@ -12,7 +12,7 @@ module AnsibleTowerClient
12
12
  end
13
13
 
14
14
  def config
15
- JSON.parse(get("config").body)
15
+ JSON.parse(get("config/").body)
16
16
  end
17
17
 
18
18
  def version
@@ -20,7 +20,7 @@ module AnsibleTowerClient
20
20
  end
21
21
 
22
22
  def verify_credentials
23
- JSON.parse(get("me").body).fetch_path("results", 0, "username")
23
+ JSON.parse(get("me/").body).fetch_path("results", 0, "username")
24
24
  end
25
25
 
26
26
  def activity_stream
@@ -9,7 +9,7 @@ module AnsibleTowerClient
9
9
  # @param get_options [Hash] a hash of http GET params to pass to the api request
10
10
  # e.g. { :order_by => 'timestamp', :name__contains => 'foo' }
11
11
  def all(get_options = nil)
12
- find_all_by_url(klass.endpoint, get_options)
12
+ find_all_by_url("#{klass.endpoint}/", get_options)
13
13
  end
14
14
 
15
15
  def find_all_by_url(url, get_options = nil)
@@ -28,7 +28,7 @@ module AnsibleTowerClient
28
28
  end
29
29
 
30
30
  def find(id)
31
- build_object(parse_response(api.get("#{klass.endpoint}/#{id}/")))
31
+ build_object(parse_response(api.get(find_uri(id))))
32
32
  end
33
33
 
34
34
  def create!(*args)
@@ -51,6 +51,10 @@ module AnsibleTowerClient
51
51
  parse_result_set(body)
52
52
  end
53
53
 
54
+ def find_uri(id)
55
+ File.join(klass.endpoint, id.to_s, "/")
56
+ end
57
+
54
58
  def parse_response(response)
55
59
  JSON.parse(response.body)
56
60
  end
@@ -23,7 +23,12 @@ module AnsibleTowerClient
23
23
  end
24
24
 
25
25
  def response_values(env)
26
- {:status => env.status, :headers => env.response_headers, :body => env.body}
26
+ {
27
+ :headers => env.response_headers,
28
+ :status => env.status,
29
+ :body => env.body,
30
+ :url => env.url,
31
+ }
27
32
  end
28
33
  end
29
34
  end
@@ -1,3 +1,3 @@
1
1
  module AnsibleTowerClient
2
- VERSION = "0.19.0".freeze
2
+ VERSION = "0.19.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible_tower_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dunne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-11-19 00:00:00.000000000 Z
12
+ date: 2019-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.7.7
200
+ rubygems_version: 2.7.6
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Ansible Tower REST API wrapper gem