ansible_tower_client 0.21.1 → 0.21.2

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: 1976fcec1dbc3b5e36bf1ebfd42832ad8132f86ec292b413dc65e975192a5444
4
- data.tar.gz: c46ba8f70de13610a05a3fec6d68c4a351fd6c6861826ad13a5ee0375715b7c1
3
+ metadata.gz: d12a1f9a637375a1f8aaa70f88f936ddc03f3fcd9731bbfcb6cfa497eec3a27a
4
+ data.tar.gz: 1819f01be11621925cd615ba65622a6d7f673cce55b0cae731cbc9f87be5a515
5
5
  SHA512:
6
- metadata.gz: cadb4d020c61e7795750e533fc51d9ed08b8fffa5aad106e2122d3d011e9b31832c8710ec4e6347e08ab5db6739f67f6bb27a49934f73be575e03bcac08105b7
7
- data.tar.gz: d13662d6ef35c9f3b5161cc1f830fa9951646db79f7684aed96a720f06e7a1d13d36c26256b83a1c703593c655446caf2699d0ff2d5a312d0571669641dbcec8
6
+ metadata.gz: d2b01f2da1c0d796a16463c67cc09023de86d33ab6f5d5b7808e023cb618e5598481b974b2b1744bd6c867c25172a124f7fd0755745160f04749fd9e26a1e470
7
+ data.tar.gz: 6b284cd8f8953f8cfc6e68b4239298dd88476391f5c92f4e87491cb5e3b95e48ca76cf684987140eee633aadd1dfdb8390eefc6b5b3b7ed3c483bbfb11416591
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.21.2] - 2020-06-09
9
+ ### Fixed
10
+ - Return AnsibleTowerClient::ConnectionError if not able to parse response in #verify_credentials [(#144)](https://github.com/ansible/ansible_tower_client_ruby/pull/144)
11
+
8
12
  ## [0.21.1] - 2020-02-17
9
13
  ### Fixed
10
14
  - Revert removal of trailing "/" on get of "config" [(#141)](https://github.com/ansible/ansible_tower_client_ruby/pull/141)
@@ -142,7 +146,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
142
146
  ### Fixed
143
147
  - Adjusted project_spec to test on a Project [(#63)](https://github.com/ansible/ansible_tower_client_ruby/pull/63)
144
148
 
145
- [Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.21.1...master
149
+ [Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.21.2...master
150
+ [0.21.2]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.21.1...v0.21.2
146
151
  [0.21.1]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.21.0...v0.21.1
147
152
  [0.21.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.20.2...v0.21.0
148
153
  [0.20.2]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.20.1...v0.20.2
data/Gemfile CHANGED
@@ -5,7 +5,3 @@ require File.join(Bundler::Plugin.index.load_paths("bundler-inject")[0], "bundle
5
5
 
6
6
  # Specify your gem's dependencies in ansible_tower_client.gemspec
7
7
  gemspec
8
-
9
- # HACK: Rails 5 dropped support for Ruby < 2.2.2
10
- active_support_version = "< 5" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2.2")
11
- gem "activesupport", active_support_version
@@ -20,7 +20,10 @@ module AnsibleTowerClient
20
20
  end
21
21
 
22
22
  def verify_credentials
23
- JSON.parse(get("me/").body).fetch_path("results", 0, "username")
23
+ results = get("me/").body
24
+ JSON.parse(results).fetch_path("results", 0, "username")
25
+ rescue JSON::ParserError
26
+ raise AnsibleTowerClient::ConnectionError, "unexpected response"
24
27
  end
25
28
 
26
29
  def activity_stream
@@ -1,3 +1,3 @@
1
1
  module AnsibleTowerClient
2
- VERSION = "0.21.1".freeze
2
+ VERSION = "0.21.2".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.21.1
4
+ version: 0.21.2
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: 2020-02-17 00:00:00.000000000 Z
12
+ date: 2020-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport