simp-rake-helpers 5.0.1 → 5.0.2

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: 9b63691fdb25dc847e823ddf5b789d95a21157c8
4
- data.tar.gz: bdeff0ea16573bd242e5ed55f545536ec133f3ee
3
+ metadata.gz: 83f68817cfe206fc61419b4944d535d1439bf6f2
4
+ data.tar.gz: f0fa84125ad440c1441dc54009d3eba64b986ab7
5
5
  SHA512:
6
- metadata.gz: 6ee487a49c71d369b8bd84b869225341f47a819c7cc731b55c39d7d676bd3a1fc2240284cbb361d4e463b8cfb2b7eb23f9d7eaaddc16e5335cc17b864395b4f6
7
- data.tar.gz: 257269601277edba230d67b20a89d3c5ab80924669eb7b2ffe265cb423fb156c203cc3942e14b7300bd1d853809b9e2ed275efbbb37a895aebc21cd36a587890
6
+ metadata.gz: 0a5570062e493e4bac9b0c84831a57471a7d79a09176748badba18fff24701373eec0ebbf473a06cdc60af97917af48820f409457e107ae977e6c6d763b49e75
7
+ data.tar.gz: b51d7180fba3ac1e15cf96eacb67cfb55466b92c0020696e7bd40517f0ecccc7a4a4bc6644fd42900c7d061827f4b08ff15bb28e35ad78cd501f07911205d033
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 5.0.2 / 2017-10-03
2
+ * Determine the build/rpm_metadata/* files when the pkg:rpm
3
+ rake task is called, not when the rake object is constructed.
4
+ This is required for simp-doc RPM building.
5
+
1
6
  ### 5.0.1 / 2017-09-28
2
7
  * Removed rpmkeys and rpmspec from the required list of commands,
3
8
  as they are not present in CentOS 6 and are automatically
@@ -436,6 +436,13 @@ module Simp::Rake::Build
436
436
  - Set `SIMP_PKG_verbose=yes` to report file operations as they happen.
437
437
  EOM
438
438
  task :doc => [:prep] do |t,args|
439
+ # Need to make sure that the docs have the version updated
440
+ # appropriately prior to building
441
+
442
+ Dir.chdir(@build_dirs[:doc]) do
443
+ sh %{rake munge:prep}
444
+ end
445
+
439
446
  build(@build_dirs[:doc],t)
440
447
  end
441
448
 
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '5.0.1'
5
+ VERSION = '5.0.2'
6
6
  end
data/lib/simp/rake/pkg.rb CHANGED
@@ -54,6 +54,16 @@ module Simp::Rake
54
54
  'spec/fixtures/modules'
55
55
  ]
56
56
 
57
+ # This is only meant to be used to work around the case where particular
58
+ # packages need to ignore some set of artifacts that get updated out of
59
+ # band. This should not be set as a regular environment variable and
60
+ # should be fixed properly at some time in the future.
61
+ #
62
+ # Presently, this is used by simp-doc
63
+ if ENV['SIMP_INTERNAL_pkg_ignore']
64
+ @ignore_changes_list += ENV['SIMP_INTERNAL_pkg_ignore'].split(',')
65
+ end
66
+
57
67
  FileUtils.mkdir_p(@pkg_tmp_dir)
58
68
 
59
69
  local_spec = Dir.glob(File.join(@base_dir, 'build', '*.spec'))
@@ -71,15 +81,6 @@ module Simp::Rake
71
81
  FileUtils.chmod(0640, @spec_file)
72
82
  end
73
83
 
74
- # The following are required to build successful RPMs using the new
75
- # LUA-based RPM template
76
-
77
- @puppet_module_info_files = [
78
- Dir.glob(%(#{@base_dir}/build/rpm_metadata/*)),
79
- %(#{@base_dir}/CHANGELOG),
80
- %(#{@base_dir}/metadata.json)
81
- ].flatten
82
-
83
84
  ::CLEAN.include( @pkg_dir )
84
85
 
85
86
  yield self if block_given?
@@ -226,7 +227,15 @@ module Simp::Rake
226
227
  Dir.chdir(@pkg_dir) do
227
228
 
228
229
  # Copy in the materials required for the module builds
229
- @puppet_module_info_files.each do |f|
230
+ # The following are required to build successful RPMs using
231
+ # the new LUA-based RPM template
232
+ puppet_module_info_files = [
233
+ Dir.glob(%(#{@base_dir}/build/rpm_metadata/*)),
234
+ %(#{@base_dir}/CHANGELOG),
235
+ %(#{@base_dir}/metadata.json)
236
+ ].flatten
237
+
238
+ puppet_module_info_files.each do |f|
230
239
  if File.exist?(f)
231
240
  FileUtils.cp_r(f, @rpm_srcdir)
232
241
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-rake-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-28 00:00:00.000000000 Z
12
+ date: 2017-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler