ansible_tower_client 0.12.1 → 0.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 914bccee287a96a6c0ddc2cd66ad6bfa3c2da8b4
4
- data.tar.gz: 8971ed9f983fe84aba7c03b3c2176e8999b2cae4
3
+ metadata.gz: 7b60ec7c40a5ee45a48ff8ee5d27695d9e470169
4
+ data.tar.gz: d7d90bf6956a581e0e646d902f543972d8827308
5
5
  SHA512:
6
- metadata.gz: 814a592ad993fc5a373f30a832a28319a488dd8310a6fb092fa4fa2a70a1bf38819c197e291ed1425c4ca2a8666201c905f0b8d8f612631db4388ad02baabfc8
7
- data.tar.gz: 3718ceeae6daf8e205737deb12867f24b541f166f25df04d426146e29d52df99a8c634662c4141ea1115201eff3b3cdb3cd87540a96067aaebd8492722fa8f8b
6
+ metadata.gz: 2856f389c86256e3480beff31f411f4bc74a54e0699cc80424770b935bd77e3b8cbc48b7a9c073b09fee1b058cf9967e2069fb3f3e68a1b578d5f077cd43c871
7
+ data.tar.gz: 19d45289db416b18c2a311dfd8c8e386facd4af6beeb2ae89cf260a61bb261ef4c13e6ed010cfe792abb26b1799e2cf6d4a9e84e6ac90a41efc46b4f2d00ee3e
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - "2.3.1"
4
+ - "2.4.1"
4
5
  sudo: false
5
6
  cache: bundler
6
7
  before_install: gem install bundler -v 1.10.3
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.12.2] - 2017-05-08
9
+ ### Fixed
10
+ - Check before update attribute of basemodel [(#93)](https://github.com/ansible/ansible_tower_client_ruby/pull/93)
11
+
8
12
  ## [0.12.1] - 2017-04-24
9
13
  ### Fixed
10
14
  - Fix setting organization on Credential [(#92)](https://github.com/ansible/ansible_tower_client_ruby/pull/92)
@@ -58,7 +62,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
58
62
  ### Fixed
59
63
  - Adjusted project_spec to test on a Project [(#63)](https://github.com/ansible/ansible_tower_client_ruby/pull/63)
60
64
 
61
- [Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.12.1...master
65
+ [Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.12.2...master
66
+ [0.12.2]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.12.1...v0.12.2
62
67
  [0.12.1]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.12.0...v0.12.1
63
68
  [0.12.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.11.0...v0.12.0
64
69
  [0.11.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.10.0...v0.11.0
@@ -82,10 +82,11 @@ module AnsibleTowerClient
82
82
  def update_attributes!(attributes)
83
83
  @api.patch(url, attributes.to_json)
84
84
  attributes.each do |method_name, value|
85
- if override_raw_attributes[method_name]
86
- send("#{override_raw_attributes[method_name]}=", value)
85
+ invoke_name = "#{override_raw_attributes[method_name] || method_name}="
86
+ if respond_to?(invoke_name)
87
+ send(invoke_name, value)
87
88
  else
88
- send("#{method_name}=", value)
89
+ AnsibleTowerClient.logger.warn("Unknown attribute/method: #{invoke_name}. Skip updating it ...")
89
90
  end
90
91
  end
91
92
  true
@@ -1,3 +1,3 @@
1
1
  module AnsibleTowerClient
2
- VERSION = "0.12.1".freeze
2
+ VERSION = "0.12.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.12.1
4
+ version: 0.12.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: 2017-04-24 00:00:00.000000000 Z
12
+ date: 2017-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport