foreman-tasks 0.13.2 → 0.13.3

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: 25fc44af39850ad061431b4262495b931072731c
4
- data.tar.gz: 925eb0edab02549e5a27980b83c2356732eb871d
3
+ metadata.gz: 16dc8a5924be891c16e0ecb275d800f44f2eed91
4
+ data.tar.gz: 88d32a5f03bd21855b8d9ad18d16d37d4a8eb141
5
5
  SHA512:
6
- metadata.gz: 1cfa0af234b3c6adc0b80ea15411ce3d7bc9d4e0326d620b0495ae914a2adf628762d49a7f9460573c290b1fad3d4535db3c2024c068c40fbdbfcb8cd186c249
7
- data.tar.gz: 11a2abde6bf2eed2ead3d6fef4e6cc1dc9baaa9b828c30afa4938387f9451a1ee25226382d0cb32c6e8c952d833b5197d94a99009142f198c36e93835055eace
6
+ metadata.gz: e5ee5d42a1c536a918e226410f23693268d7dd4125d15ad770f79d15733ea6a6af4219d8665e11ae4f89d1fc8ede96b30668c8865c4adba40c5095e9f43ee709
7
+ data.tar.gz: a59d1ec846c2d0e33ad29e18240097a8427aefb7c5552782bce05c4f15efd43e5bfdd0746fb27f73cb9d7160ab551afd339171db34711d100018fe77631a0143
@@ -35,13 +35,19 @@ module ForemanTasks
35
35
  dynflow_task_wrap(:destroy) { super }
36
36
  end
37
37
 
38
- def update_attributes(*args)
38
+ # In order to use host.<attribute>_changed?, we must assign_attributes to
39
+ # the host record for these update and update! methods.
40
+ def update(*args)
41
+ assign_attributes(*args)
39
42
  dynflow_task_wrap(:save) { super(*args) }
40
43
  end
44
+ alias update_attributes update
41
45
 
42
- def update_attributes!(*args)
46
+ def update!(*args)
47
+ assign_attributes(*args)
43
48
  dynflow_task_wrap(:save) { super(*args) }
44
49
  end
50
+ alias update_attributes! update!
45
51
 
46
52
  # this can be used when HostActionSubject is used for orchestration but you want to avoid
47
53
  # triggering more tasks by ActiveRecord callbacks within run/finalize phase of your task
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '0.13.2'.freeze
2
+ VERSION = '0.13.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-14 00:00:00.000000000 Z
11
+ date: 2018-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks-core