ansible_tower_client 0.21.1 → 0.21.2
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 +6 -1
- data/Gemfile +0 -4
- data/lib/ansible_tower_client/api.rb +4 -1
- data/lib/ansible_tower_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d12a1f9a637375a1f8aaa70f88f936ddc03f3fcd9731bbfcb6cfa497eec3a27a
|
|
4
|
+
data.tar.gz: 1819f01be11621925cd615ba65622a6d7f673cce55b0cae731cbc9f87be5a515
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2b01f2da1c0d796a16463c67cc09023de86d33ab6f5d5b7808e023cb618e5598481b974b2b1744bd6c867c25172a124f7fd0755745160f04749fd9e26a1e470
|
|
7
|
+
data.tar.gz: 6b284cd8f8953f8cfc6e68b4239298dd88476391f5c92f4e87491cb5e3b95e48ca76cf684987140eee633aadd1dfdb8390eefc6b5b3b7ed3c483bbfb11416591
|
data/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
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.
|
|
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-
|
|
12
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|