diff options
author | nimesh-msys <nimesh.patni@msystechnologies.com> | 2018-07-24 13:27:41 +0530 |
---|---|---|
committer | nimesh-msys <nimesh.patni@msystechnologies.com> | 2018-07-24 14:59:52 +0530 |
commit | e5fe82316403110d61d5eb06bde88778a67540b1 (patch) | |
tree | aebdd0c44671153a8e34fc0a806192873410b043 | |
parent | 0584508ea354dade2d3df419d98b5171ff82fb2e (diff) | |
download | chef-e5fe82316403110d61d5eb06bde88778a67540b1.tar.gz |
Bump version of ISO8601 to latest (0.11.0)
- Verified: No Threats
Fixes- MSYS-868
Signed-off-by: nimesh-msys <nimesh.patni@msystechnologies.com>
-rw-r--r-- | Gemfile.lock | 8 | ||||
-rw-r--r-- | chef.gemspec | 2 | ||||
-rw-r--r-- | lib/chef/resource/windows_task.rb | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index 72a223e739..931bcc3049 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -20,7 +20,7 @@ PATH ffi-yajl (~> 2.2) highline (~> 1.6, >= 1.6.9) iniparse (~> 1.4) - iso8601 (~> 0.9.1) + iso8601 (~> 0.11.0) mixlib-archive (~> 0.4) mixlib-authentication (~> 2.1) mixlib-cli (~> 1.7) @@ -51,7 +51,7 @@ PATH ffi-yajl (~> 2.2) highline (~> 1.6, >= 1.6.9) iniparse (~> 1.4) - iso8601 (~> 0.9.1) + iso8601 (~> 0.11.0) mixlib-archive (~> 0.4) mixlib-authentication (~> 2.1) mixlib-cli (~> 1.7) @@ -169,7 +169,7 @@ GEM tomlrb (~> 1.2) train-core (~> 1.4, >= 1.4.15) ipaddress (0.8.3) - iso8601 (0.9.1) + iso8601 (0.11.0) json (2.1.0) launchy (2.4.3) addressable (~> 2.3) @@ -339,7 +339,7 @@ GEM win32-service (1.0.1) ffi ffi-win32-extensions - win32-taskscheduler (1.0.9) + win32-taskscheduler (1.0.10) ffi structured_warnings windows-api (0.4.4) diff --git a/chef.gemspec b/chef.gemspec index cb92cc8003..2242d6e5fd 100644 --- a/chef.gemspec +++ b/chef.gemspec @@ -38,7 +38,7 @@ Gem::Specification.new do |s| s.add_dependency "plist", "~> 3.2" s.add_dependency "iniparse", "~> 1.4" s.add_dependency "addressable" - s.add_dependency "iso8601", "~> 0.9.1" + s.add_dependency "iso8601", "~> 0.11.0" # Audit mode requires these, so they are non-developmental dependencies now %w{rspec-core rspec-expectations rspec-mocks}.each { |gem| s.add_dependency gem, "~> 3.5" } diff --git a/lib/chef/resource/windows_task.rb b/lib/chef/resource/windows_task.rb index fd4c93907d..b311caf743 100644 --- a/lib/chef/resource/windows_task.rb +++ b/lib/chef/resource/windows_task.rb @@ -267,8 +267,8 @@ class Chef # Converts the number of seconds to an ISO8601 duration format and returns it. # Ref : https://github.com/arnau/ISO8601/blob/master/lib/iso8601/duration.rb#L18-L23 # e.g. - # ISO8601::Duration.new(65707200) - # returns 'P65707200S' + # ISO8601::Duration.new(65707200).to_s + # returns 'PT65707200S' def sec_to_dur(seconds) ISO8601::Duration.new(seconds.to_i).to_s end |