azdeploy 1.0.32 → 1.0.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a8147ddcc47320a4d4f85e5af9b0665805afa14
4
- data.tar.gz: 4ddce1a21bb9acb5b17607f7f1f740a1f3cf00ae
3
+ metadata.gz: 5ecdae0f8ea2256d9052a728e23a1be7485d1630
4
+ data.tar.gz: 21a71377457ac6a58a4cdb75d4fc12ffbc127add
5
5
  SHA512:
6
- metadata.gz: 2611a5fb86cdc4725627ced19aabaf091260830d575ced18bd4185c77e4e3619fd49740561e1f6006da73c793e8d7b4d624f3037b84c930870ea5c9641e97b59
7
- data.tar.gz: ecc037759a214e79a45209fe33ef3076ce119fb2b8deb8a01b29aebf485b7bdfcbd6caca8e463c28cbc0a59fd1bed7e566725128d0b783dfe1b98b797a4200fa
6
+ metadata.gz: f49f2270b4705d7f0e6283b1741f0b31fbb08cf7b85ad54cd494216c151e220125d81858157c387559511213f2f13c88c71ae8eed06939039376184cf1b27c68
7
+ data.tar.gz: 943d2e7bd697a4e59c17ff6c75feb2d762d8f1ee9760d853cc0fb47a3f7fa7f700299568e6add869d1c9864e815c6ac456f84cda048c9e1a6116140c746b830b
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'azdeploy'
3
- s.version = '1.0.32'
4
- s.date = '2015-12-17'
3
+ s.version = '1.0.33'
4
+ s.date = '2015-12-21'
5
5
  s.summary = 'Setup and scripting support for .Net project builds'
6
6
  s.description = 'Azure Deployment Gem. Provides easy setup and deployment scripting support for .Net project builds'
7
7
  s.authors = ['Suresh Batta']
8
8
  s.email = 'subatta@hotmail.com'
9
- s.files = Dir['{test,lib,docs}/**/*'] + ['azdeploy.gemspec']
9
+ s.files = Dir['{test,lib,docs,rakefile.rb}/**/*'] + ['azdeploy.gemspec']
10
10
  s.homepage = 'http://rubygems.org/gems/azdeploy'
11
11
  s.license = 'MIT'
12
12
  end
@@ -109,7 +109,7 @@ def versioning project=nil, file=nil
109
109
  # nuget (not full semver 2.0.0-rc.1 support) see http://nuget.codeplex.com/workitem/1796
110
110
  ENV["#{project}_NUGET_VERSION"] = ver.format('%M.%m.%p%s')
111
111
 
112
- revision = (ENV['BUILD_NUMBER'] || ver.patch).to_i
112
+ revision = (ENV['BUILD_COUNTER'] || ver.patch).to_i
113
113
 
114
114
  # extensible number w/ git hash
115
115
  ENV["#{project}_BUILD_VERSION"] = ver.format('%M.%m.%p%s') + ".#{commitData[0]}"
@@ -118,7 +118,7 @@ def versioning project=nil, file=nil
118
118
  ENV["#{project}_FORMAL_VERSION"] = "#{ SemVer.new(ver.major, ver.minor, revision).format '%M.%m.%p'}"
119
119
  else
120
120
  ver = SemVer.find
121
- revision = (ENV['BUILD_NUMBER'] || ver.patch).to_i
121
+ revision = (ENV['BUILD_COUNTER'] || ver.patch).to_i
122
122
  var = SemVer.new(ver.major, ver.minor, revision, ver.special)
123
123
 
124
124
  commitData = commit_data()
@@ -139,7 +139,7 @@ def versioning project=nil, file=nil
139
139
  end
140
140
  end
141
141
 
142
- desc 'Tell teamcity our decision to set the build.number environment variable'
142
+ # Tell teamcity our decision to set the build.number environment variable
143
143
  def teamcity_build_number
144
144
  platform_version = Time.new.strftime('%y.%-m.%-d') + ".#{(ENV['BUILD_NUMBER'] || '0')}"
145
145
  puts "##teamcity[buildNumber '#{platform_version}']"
@@ -221,7 +221,7 @@ def copy_runtime_artifacts(package)
221
221
  copy_output_files source, "*.*", dest
222
222
  end
223
223
 
224
- desc 'Gathers all rake files and runs the task list'
224
+ # Gathers all rake files and runs the task list
225
225
  def package rake_files_path, task_list
226
226
  if(task_list.nil?)
227
227
  puts "No task to execute"
@@ -159,6 +159,7 @@ class Transform
159
159
  node['name'] = @service_name if !node.nil?
160
160
 
161
161
  node = doc.at_css 'Certificates'
162
+
162
163
  node.replace(get_value 'Certificates_csdef') if !node.nil?
163
164
 
164
165
  node = doc.at_css 'Endpoints'
@@ -177,10 +178,12 @@ class Transform
177
178
  node.replace(get_value 'LocalResources') if !node.nil?
178
179
 
179
180
  File.write file, doc.to_xml
181
+
180
182
  }
181
183
  end
182
184
 
183
185
  def transform_cscfg
186
+
184
187
  csdef = Dir.glob '**/*.cscfg'
185
188
  csdef.each{ |file|
186
189
  doc = Nokogiri::XML(File.read file)
@@ -192,6 +195,7 @@ class Transform
192
195
  node['name'] = @service_name if !node.nil?
193
196
 
194
197
  node = doc.at_css 'Certificates'
198
+
195
199
  node.replace(get_value 'Certificates_cscfg') if !node.nil?
196
200
 
197
201
  node = doc.at_css 'ConfigurationSettings'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azdeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.32
4
+ version: 1.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suresh Batta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2015-12-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Azure Deployment Gem. Provides easy setup and deployment scripting support
14
14
  for .Net project builds