vanagon 0.5.6 → 0.5.7

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: 2788b73738b58776aa0bafc6d4739fc90be798bc
4
- data.tar.gz: 3613f68d912a5825df9466d7f2434c6862aa46f3
3
+ metadata.gz: 2b66b1395018a77daddbcfcaddc29f0b19481e5a
4
+ data.tar.gz: 959fb7d6e6248d02942ba0b287f39f65bc738883
5
5
  SHA512:
6
- metadata.gz: bce0bcaed54e907d75df0d746f5865680ce0533e87b1f028506cab511ca2735c2743a89f16f51e8ace3e0e09964aa8936e4337b0e0f84f0fb13a573b5a960425
7
- data.tar.gz: a76b088fd7c56a0bced77dfb5189059b68a3b6a144e806071a4116e0a6725666c1fd1a101b6b27f95e6d05e12a4e5f84ebf5c947a132734c8a680828fff2112f
6
+ metadata.gz: 4dcf74dd3a0c51d821906d3e4be702040878db7f563600f9fae257c7731fabcc2db81fcc32f23a0a04d0d649b37d3ec45a1b2d10f36521201dec3ec8715337b8
7
+ data.tar.gz: 105fce81c259facb92659190ae9f458e9962f9f34dd1107adf61b11bd864a3b942ba0e5f373f70d97c2e416e3b412999c042de9dee1ac80b7aee347172ee416d
data/README.md CHANGED
@@ -182,10 +182,12 @@ wheezy and build my project against it.
182
182
  For more detailed examples of the DSLs available, please see the
183
183
  [examples](https://github.com/puppetlabs/vanagon/tree/master/examples) directory and the YARD documentation for vanagon.
184
184
 
185
- Maintainers
185
+ ## Maintainers
186
186
  ---
187
187
  The Release Engineering team at Puppet Labs
188
188
 
189
- Support
190
- ---
191
- Please log tickets and issues at our [Issue Tracker](https://tickets.puppetlabs.com/browse/CPR). In addition there is an active #puppet-dev channel on Freenode.
189
+ Maintainer: Michael Stahnke <stahnma@puppetlabs.com>
190
+
191
+ Please log tickets and issues at our [Issue Tracker](https://tickets.puppetlabs.com/browse/CPR). Set compononent to Vanagon.
192
+
193
+ In addition there is an active #puppet-dev channel on Freenode.
@@ -176,22 +176,25 @@ class Vanagon
176
176
  # -var - Replace "SourceDir" in the @source attributes of all components with a preprocessor variable
177
177
  app_heat_flags = " -dr INSTALLDIR -v -ke -indent 2 -cg AppComponentGroup -gg -srd -t wix/filter.xslt -sreg -var var.AppSourcePath "
178
178
  app_source_path = "SourceDir/#{project.settings[:base_dir]}/#{project.settings[:company_id]}/#{project.settings[:product_id]}"
179
- appdata_heat_flags = " -dr APPDATADIR -v -ke -indent 2 -cg AppDataComponentGroup -gg -srd -t wix/filter.xslt -sreg -var var.AppDataSourcePath "
180
- appdata_source_path = "SourceDir/CommonAppDataFolder/#{project.settings[:company_id]}"
181
179
  # Candle.exe preprocessor vars are required due to the above double run of heat.exe, both runs of heat use
182
180
  # preprocessor variables
183
- candle_preprocessor = "-dAppSourcePath=\"#{app_source_path}\" -dAppDataSourcePath=\"#{appdata_source_path}\""
181
+ candle_preprocessor = "-dAppSourcePath=\"#{app_source_path}\" "
184
182
  candle_flags = "-dPlatform=#{@architecture} -arch #{@architecture} #{wix_extensions}"
185
183
  # Enable verbose mode for the moment (will be removed for production)
186
184
  # localisation flags to be added
187
185
  light_flags = "-v -cultures:en-us #{wix_extensions}"
186
+ # "Misc Dir for versions.txt, License file and Icon file"
187
+ misc_dir = "SourceDir/#{project.settings[:base_dir]}/#{project.settings[:company_id]}/#{project.settings[:product_id]}/misc"
188
188
  # Actual array of commands to be written to the Makefile
189
189
  ["mkdir -p output/#{target_dir}",
190
190
  "mkdir -p $(tempdir)/{SourceDir,wix/wixobj}",
191
191
  "#{@copy} -r wix/* $(tempdir)/wix/",
192
192
  "gunzip -c #{project.name}-#{project.version}.tar.gz | '#{@tar}' -C '$(tempdir)/SourceDir' --strip-components 1 -xf -",
193
+ "mkdir -p $(tempdir)/#{misc_dir}",
194
+ # Need to use awk here to convert to DOS format so that notepad can display file correctly.
195
+ "awk 'sub(\"$$\", \"\\r\")' $(tempdir)/SourceDir/bill-of-materials > $(tempdir)/#{misc_dir}/versions.txt",
193
196
  "cd $(tempdir); \"$$WIX/bin/heat.exe\" dir #{app_source_path} #{app_heat_flags} -out wix/#{project.name}-harvest-app.wxs",
194
- "cd $(tempdir); \"$$WIX/bin/heat.exe\" dir #{appdata_source_path} #{appdata_heat_flags} -out wix/#{project.name}-harvest-programdata.wxs",
197
+
195
198
  # Apply Candle command to all *.wxs files - generates .wixobj files in wix directory.
196
199
  # cygpath conversion is necessary as candle is unable to handle posix path specs
197
200
  # the preprocessor variables AppDataSourcePath and ApplicationSourcePath are required due to the -var input to the heat
@@ -210,7 +213,10 @@ class Vanagon
210
213
  # @return [String] name of the windows package for this project
211
214
  def msi_package_name(project)
212
215
  # Decided to use native project version in hope msi versioning doesn't have same resrictions as nuget
213
- "#{project.name}-#{project.version}.#{project.release}-#{@architecture}.msi"
216
+ # SPECIAL NOTE: as a way for us to create two side by side msis for comparison between
217
+ # pftw and vanagon, we are putting in VANAGON to the filename so the names will
218
+ # be different. When pftw is deprecated, so should this convention
219
+ "#{project.name}-#{project.version}.#{project.release}-#{@architecture}_VANAGON.msi"
214
220
  end
215
221
 
216
222
  # Method to derive the package name for the project.
@@ -406,7 +412,7 @@ class Vanagon
406
412
  # and strip off any non-digit characters.\
407
413
  #
408
414
  # @param [string] version, the original version number
409
- def windows_style_version(version)
415
+ def wix_product_version(version)
410
416
  version.split("\.").first(3).collect { |value| value.gsub(/[^0-9]/, '') }.join("\.")
411
417
  end
412
418
 
@@ -9,9 +9,6 @@
9
9
  </Directory>
10
10
  </Directory>
11
11
  </Directory>
12
- <Directory Id="CommonAppDataFolder" Name="CommonAppData">
13
- <Directory Id="APPDATADIR" Name="<%= settings[:company_id] %>"/>
14
- </Directory>
15
12
  </DirectoryRef>
16
13
  </Fragment>
17
14
  </Wix>
@@ -6,7 +6,7 @@
6
6
  Name="<%= settings[:product_name] %>"
7
7
  Language="1033"
8
8
  Codepage="1252"
9
- Version="<%= @platform.windows_style_version(@version) %>"
9
+ Version="<%= @platform.wix_product_version(@version) %>"
10
10
  Manufacturer="<%= settings[:company_name] %>" >
11
11
 
12
12
  <Package
@@ -68,13 +68,13 @@ HERE
68
68
  end
69
69
  end
70
70
 
71
- describe '#windows_style_version' do
71
+ describe '#wix_product_version' do
72
72
  it "returns first three digits only" do
73
- expect(cur_plat._platform.windows_style_version("1.0.0.1")).to eq("1.0.0")
73
+ expect(cur_plat._platform.wix_product_version("1.0.0.1")).to eq("1.0.0")
74
74
  end
75
75
 
76
76
  it "returns only numbers" do
77
- expect(cur_plat._platform.windows_style_version("1.0.g0")).to eq("1.0.0")
77
+ expect(cur_plat._platform.wix_product_version("1.0.g0")).to eq("1.0.0")
78
78
  end
79
79
  end
80
80
  describe '#generate_msi_packaging_artifacts' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanagon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -196,34 +196,35 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.2.5
199
+ rubygems_version: 2.4.6
200
200
  signing_key:
201
201
  specification_version: 3
202
202
  summary: All of your packages will fit into this van with this one simple trick.
203
203
  test_files:
204
- - spec/lib/vanagon/utilities_spec.rb
205
- - spec/lib/vanagon/platform_spec.rb
206
- - spec/lib/vanagon/component_spec.rb
207
- - spec/lib/vanagon/utilities/shell_utilities_spec.rb
208
- - spec/lib/vanagon/project_spec.rb
209
- - spec/lib/vanagon/project/dsl_spec.rb
210
- - spec/lib/vanagon/common/user_spec.rb
204
+ - spec/lib/makefile_spec.rb
211
205
  - spec/lib/vanagon/common/pathname_spec.rb
212
- - spec/lib/vanagon/platform/windows_spec.rb
213
- - spec/lib/vanagon/platform/rpm/aix_spec.rb
214
- - spec/lib/vanagon/platform/solaris_11_spec.rb
215
- - spec/lib/vanagon/platform/deb_spec.rb
216
- - spec/lib/vanagon/platform/dsl_spec.rb
217
- - spec/lib/vanagon/platform/rpm_spec.rb
218
- - spec/lib/vanagon/component/source/http_spec.rb
219
- - spec/lib/vanagon/component/source/git_spec.rb
206
+ - spec/lib/vanagon/common/user_spec.rb
220
207
  - spec/lib/vanagon/component/dsl_spec.rb
221
- - spec/lib/vanagon/component/source_spec.rb
222
208
  - spec/lib/vanagon/component/rules_spec.rb
223
- - spec/lib/vanagon/engine/local_spec.rb
209
+ - spec/lib/vanagon/component/source/git_spec.rb
210
+ - spec/lib/vanagon/component/source/http_spec.rb
211
+ - spec/lib/vanagon/component/source_spec.rb
212
+ - spec/lib/vanagon/component_spec.rb
213
+ - spec/lib/vanagon/engine/base_spec.rb
224
214
  - spec/lib/vanagon/engine/docker_spec.rb
225
- - spec/lib/vanagon/engine/pooler_spec.rb
226
215
  - spec/lib/vanagon/engine/hardware_spec.rb
227
- - spec/lib/vanagon/engine/base_spec.rb
216
+ - spec/lib/vanagon/engine/local_spec.rb
217
+ - spec/lib/vanagon/engine/pooler_spec.rb
228
218
  - spec/lib/vanagon/optparse_spec.rb
229
- - spec/lib/makefile_spec.rb
219
+ - spec/lib/vanagon/platform/deb_spec.rb
220
+ - spec/lib/vanagon/platform/dsl_spec.rb
221
+ - spec/lib/vanagon/platform/rpm/aix_spec.rb
222
+ - spec/lib/vanagon/platform/rpm_spec.rb
223
+ - spec/lib/vanagon/platform/solaris_11_spec.rb
224
+ - spec/lib/vanagon/platform/windows_spec.rb
225
+ - spec/lib/vanagon/platform_spec.rb
226
+ - spec/lib/vanagon/project/dsl_spec.rb
227
+ - spec/lib/vanagon/project_spec.rb
228
+ - spec/lib/vanagon/utilities/shell_utilities_spec.rb
229
+ - spec/lib/vanagon/utilities_spec.rb
230
+ has_rdoc: