ansible_tower_client 0.20.0 → 0.20.1

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
  SHA256:
3
- metadata.gz: '08f27f29feac6a32266e5c3f567a410d90caf9fb11cce3c3d7c079145784280e'
4
- data.tar.gz: 9136eeeab2dc3dbb0ac23dc72905e8e8ee19a0c73a1031693d00519671e7331c
3
+ metadata.gz: c8544b17b193a7505b5452faa90a79279fdb989046bd70c450f510ede064704e
4
+ data.tar.gz: b338cb0c79843daf7b25083c95bce106a22333021860500f6bd07a578ba30d05
5
5
  SHA512:
6
- metadata.gz: 49034faefae5375f52d9e45afde8173bfb15430ad1e0ff0bc29b82a6e79ce1c69ea5a557a7fed788fcfecfcaa43822214fec8d088062ee7d0e4cf67c9465885e
7
- data.tar.gz: 8f31190deca0df56e1d21429a39e9eae367322d714a912f8a1bbf18deb9daba1b88eb597b790e10c878662e26fd37dbf8cc1c84242b17bb16656d138d4b64030
6
+ metadata.gz: 11514f0b355912240f8db68a22bc8d5b7c27c840255b34c97a8b851b36cc42cad147bf86f9cc447cf3e23ee9602e8780847819f2efb91e804277c3015b219bc9
7
+ data.tar.gz: 0677ddd8d7649eed1c6c28d7269d90ab623eb8a8dead13c2afdf5520af71465bda8d2a755c7f153779242eee3580843b8aaf2a5f7c344a6992dd0ccd4e0a6fe7
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.20.1] - 2019-06-20
9
+ ### Fixed
10
+ - Only attempt to find a related job if there is a reference to one [(#131)](https://github.com/ansible/ansible_tower_client_ruby/pull/131)
11
+
8
12
  ## [0.20.0] - 2019-05-22
9
13
  ### Added
10
14
  - Added support for v2 API credential objects [(#123)](https://github.com/ansible/ansible_tower_client_ruby/pull/123)
@@ -118,7 +122,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
118
122
  ### Fixed
119
123
  - Adjusted project_spec to test on a Project [(#63)](https://github.com/ansible/ansible_tower_client_ruby/pull/63)
120
124
 
121
- [Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.20.0...master
125
+ [Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.20.1...master
126
+ [0.20.1]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.20.0...v0.20.1
122
127
  [0.20.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.19.1...v0.20.0
123
128
  [0.19.1]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.19.0...v0.19.1
124
129
  [0.19.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.18.0...v0.19.0
@@ -5,7 +5,14 @@ module AnsibleTowerClient
5
5
  end
6
6
 
7
7
  def job
8
- api.jobs.find(job_id) if respond_to?(:job_id) && job_id
8
+ api.jobs.find(job_id) if job?
9
+ end
10
+
11
+ # to filter out WorkflowJobNode that is inventory sync or project sync
12
+ def job?
13
+ return false if !respond_to?(:job_id) || job_id.nil?
14
+
15
+ related.job.match?(/jobs/)
9
16
  end
10
17
  end
11
18
  end
@@ -1,3 +1,3 @@
1
1
  module AnsibleTowerClient
2
- VERSION = "0.20.0".freeze
2
+ VERSION = "0.20.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.20.0
4
+ version: 0.20.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: 2019-05-22 00:00:00.000000000 Z
12
+ date: 2019-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport