chef-dk 1.3.40 → 1.3.43

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: ed34435ea853be2cb950bcdbf8fe0d5bd0f2e651
4
- data.tar.gz: b9bdd9a646a8965203b1923738a62ad9fefc5ba1
3
+ metadata.gz: 3368ac2150a2a280c49d2bb157e49dedb23a6eb5
4
+ data.tar.gz: 0f52ab76f3c31b35666fdfaa63f720a7cc7840b1
5
5
  SHA512:
6
- metadata.gz: 1142fb28fd05137bb141525607b087b9adf737dc29fd4ce836f42ee29caa17dae0e583367bd96ad7f551b5df1cf0fc5231af0bd4a9ede76143d28c0eefec3147
7
- data.tar.gz: 2cefe5dce4a9104a4631ddf044e31beace05ae790dc08182f9ad49dd2c693eb2c89bae86924677dbfa90d2965d93cd16ed4468c6140e351d0dc80fc0fcb372cd
6
+ metadata.gz: d6b3803c920b4a6d8aa0c9ae9dc9e3034558443e06d30e9ed794a49a0783471c9ad47d967263ed36680b946972522a1677dc861cf8e89c7a3a7d70e79d3244d9
7
+ data.tar.gz: 6152fe9dc91ec1d2b48512c4b23693020209c8539f786a62afaa6a36f4966847de82dcae76771332b24097617a31f8f0596a301eba984e6a18d9cea12854ccdf
data/Gemfile.lock CHANGED
@@ -113,7 +113,7 @@ GIT
113
113
  PATH
114
114
  remote: .
115
115
  specs:
116
- chef-dk (1.3.40)
116
+ chef-dk (1.3.43)
117
117
  addressable (>= 2.3.5, < 2.6)
118
118
  chef (~> 12.5)
119
119
  chef-provisioning (~> 2.0)
@@ -761,7 +761,7 @@ GEM
761
761
  tzinfo (1.2.3)
762
762
  thread_safe (~> 0.1)
763
763
  ubuntu_ami (0.4.1)
764
- unicode-display_width (1.1.3)
764
+ unicode-display_width (1.2.1)
765
765
  uuid (2.3.8)
766
766
  macaddr (~> 1.0)
767
767
  uuidtools (2.1.5)
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module ChefDK
19
- VERSION = "1.3.40"
19
+ VERSION = "1.3.43"
20
20
  end
data/tasks/version.rb CHANGED
@@ -42,6 +42,7 @@ namespace :version do
42
42
  desc "Bump patch version in lib/chef-dk/version.rb and update Gemfile*.lock conservatively to include the new version. If Gemfile has changed, this will update modified constraints as well."
43
43
  task :bump => "ci_version_bump"
44
44
 
45
+ # Can be deleted when we migrate fully to expeditor
45
46
  desc "Show the current version."
46
47
  task :show do
47
48
  puts version
@@ -55,6 +56,10 @@ namespace :version do
55
56
  end
56
57
  end
57
58
 
59
+ def version_file
60
+ File.expand_path("../../VERSION", __FILE__)
61
+ end
62
+
58
63
  def version_rb_path
59
64
  File.expand_path("../../lib/chef-dk/version.rb", __FILE__)
60
65
  end
@@ -67,6 +72,7 @@ namespace :version do
67
72
  File.expand_path("../../RELEASE_NOTES.md", __FILE__)
68
73
  end
69
74
 
75
+ # Can be deleted when we migrate fully to expeditor
70
76
  # Add 1 to the current patch version in the VERSION file, and write it back out.
71
77
  desc "Bump the patch version in lib/chef-dk/version.rb."
72
78
  task :bump_patch do
@@ -80,6 +86,7 @@ namespace :version do
80
86
  IO.write(version_rb_path, new_version_file)
81
87
  end
82
88
 
89
+ # Can be deleted when we migrate fully to expeditor
83
90
  desc "Bump the minor version in lib/chef-dk/version.rb"
84
91
  task :bump_minor do
85
92
  current_version_file = IO.read(version_rb_path)
@@ -96,6 +103,7 @@ namespace :version do
96
103
  Rake::Task["bundle:install"].invoke
97
104
  end
98
105
 
106
+ # Can be deleted when we migrate fully to expeditor
99
107
  desc "Bump the major version in lib/chef-dk/version.rb"
100
108
  task :bump_major do
101
109
  current_version_file = IO.read(version_rb_path)
@@ -112,6 +120,24 @@ namespace :version do
112
120
  Rake::Task["bundle:install"].invoke
113
121
  end
114
122
 
123
+ # Called from .expeditor/update_version.sh
124
+ desc "Propogate the version from VERSION to the necessary parts of the repo"
125
+ task :update do
126
+ version = IO.read(version_file).chomp
127
+
128
+ updated_version_file = IO.read(version_rb_path).sub(/^(\s*VERSION\s*=\s*")(\d+\.\d+\.\d+)/) do
129
+ "#{$1}#{version}"
130
+ end
131
+
132
+ updated_gemfile_lock = IO.read(gemfile_lock_path).gsub!(/^\s*(chef-dk)\s*\((= )?\S+\)\s*$/) do |line|
133
+ line.gsub(/\((= )?\d+(\.\d+)+/) { "(#{$1}#{version}" }
134
+ end
135
+
136
+ IO.write(version_rb_path, updated_version_file)
137
+ IO.write(gemfile_lock_path, updated_gemfile_lock)
138
+ end
139
+
140
+ # Can be deleted when we migrate fully to expeditor
115
141
  desc "Update the Gemfile.lock to include the current chef-dk version"
116
142
  task :update_gemfile_lock do
117
143
  if File.exist?(gemfile_lock_path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-dk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.40
4
+ version: 1.3.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel DeLeo
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-07 00:00:00.000000000 Z
13
+ date: 2017-04-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mixlib-cli