simp-rake-helpers 1.2.0 → 1.2.1

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzA4NWMyMDVjNWRkY2RiOWRkMzIwN2NiYmNhNzA3ZDZkOWY0N2IzYw==
4
+ ODk1NjE0ZDMwY2E2YzkxODJhN2M0MTBmOGMzZjJmYzNjNmYxM2NhOQ==
5
5
  data.tar.gz: !binary |-
6
- YmU0NmExYzI4YmE4ZTEwMzRhZWE2ZWU4OTBlOTkyNDliOGQ1MTRhNg==
6
+ MWQwOTA1NjEzZTEwZjEwOGMxYzU3MjA1MjY1MjJkYTZlMzZkZjI4MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjUwYjYzYmNmMGFlMDFmMGE5N2FmOTA4MGE5NmI0NzAwYTZmM2JhMGQ4MTI1
10
- YzNlNjI2NmI3MTY4OWQ1OWI1NTk3Nzg3YmZlYjBjZTRmMzY4NjkxNjk2MTE4
11
- ZDRkMmQ3YWE4OTdmNDQ1M2ZkNWVlYWUxZWI3ZmFlNDM2ZjgxMzk=
9
+ YjUzOWYxZWMyZmFiMmQxOWRhNDU0ZjcwYjgzZGZmNDdiMzg5N2RhNWZiMmNh
10
+ MDY3ZmE4NWYwN2ExZDE2YTEwZjQ2MmIyMWE2ZTY2NzUwZDA0NTA0ODVhOTYy
11
+ YjhmMzM5YzM3MGFmYTVmNzc5Yzg0NTNlZDliZjI2ZDdlZGM5OTU=
12
12
  data.tar.gz: !binary |-
13
- MzQ5MGRhZWI3Y2I0MzQ2ZTNjMTk4MGM0ZTM5YWZlZTJhYjQzODU4ZTU4OWNl
14
- MjA2OGMxNjE0ZWRjZGYxYjFjMjU4MjJmMmViZmFiMWQ3OGJlOTAwM2NhZDAx
15
- ODMzNGU2OWViNGE4ZTM3M2E2ZDVhNWI5NTk5YTQwYzg4NjZlNWM=
13
+ ODExOWRjNjQxMGQxNWNhNTQxNjUxMmNkMjBiNTE4ODlmMjc2NmUwYzg2NDdi
14
+ MGI0ZTgyMGUwZWRkMTk1MGU2ZDMwNDVhMzBmMTBjODU0NjdiZjE3YmNhZDdm
15
+ YTE1OTZjOTUxNDNhN2Q5NmU2YjBjNGI0ZWExM2UxOGVlNzZhNjA=
data/README.md CHANGED
@@ -7,6 +7,7 @@
7
7
  * [This gem is part of SIMP](#this-gem-is-part-of-simp)
8
8
  * [Features](#features)
9
9
  2. [Setup - The basics of getting started with iptables](#setup)
10
+ * [Gemfile](#gemfile)
10
11
  3. [Usage - Configuration options and additional functionality](#usage)
11
12
  * [In a Puppet Module](#in-a-puppet-module)
12
13
  * [In a Ruby Gem](#in-a-ruby-gem)
@@ -20,7 +21,6 @@
20
21
  ## Overview
21
22
  The `simp-rake-helpers` gem provides common Rake tasks to support the SIMP build process.
22
23
 
23
-
24
24
  ### This gem is part of SIMP
25
25
  This gem is part of (the build tooling for) the [System Integrity Management Platform](https://github.com/NationalSecurityAgency/SIMP), a compliance-management framework built on [Puppet](https://puppetlabs.com/).
26
26
 
@@ -31,10 +31,34 @@ This gem is part of (the build tooling for) the [System Integrity Management Pla
31
31
 
32
32
 
33
33
  ## Setup
34
- Within a project's Gemfile:
34
+
35
+ ### Gemfile
35
36
 
36
37
  ```ruby
37
- gem 'simp-rake-helpers'
38
+ # Variables:
39
+ #
40
+ # SIMP_GEM_SERVERS | a space/comma delimited list of rubygem servers
41
+ # PUPPET_VERSION | specifies the version of the puppet gem to load
42
+ puppetversion = ENV.key?('PUPPET_VERSION') ? "#{ENV['PUPPET_VERSION']}" : '~>3'
43
+ gem_sources = ENV.key?('SIMP_GEM_SERVERS') ? ENV['SIMP_GEM_SERVERS'].split(/[, ]+/) : ['https://rubygems.org']
44
+
45
+ gem_sources.each { |gem_source| source gem_source }
46
+
47
+ group :test do
48
+ gem 'puppet', puppetversion
49
+
50
+ # Something in the test suites has issues with Hiera 3.1+
51
+ # See https://tickets.puppetlabs.com/browse/HI-505
52
+ gem 'hiera', '~> 3.0.0'
53
+
54
+ # simp-rake-helpers does not suport puppet 2.7.X
55
+ if "#{ENV['PUPPET_VERSION']}".scan(/\d+/).first != '2' &&
56
+ # simp-rake-helpers and ruby 1.8.7 bomb Travis tests
57
+ # TODO: fix upstream deps (parallel in simp-rake-helpers)
58
+ RUBY_VERSION.sub(/\.\d+$/,'') != '1.8'
59
+ gem 'simp-rake-helpers'
60
+ end
61
+ end
38
62
  ```
39
63
 
40
64
 
@@ -49,7 +73,6 @@ Simp::Rake::Pupmod::Helpers.new(File.dirname(__FILE__))
49
73
  ```
50
74
 
51
75
 
52
-
53
76
  ### In a Ruby Gem
54
77
  Within the project's Rakefile:
55
78
 
@@ -222,11 +222,14 @@ module Simp::Rake::Build
222
222
  puts " (skip with `SIMP_BUILD_unpack=no`)"
223
223
  puts '='*80
224
224
  puts
225
+
226
+ Dir.glob( File.join(staging_dir, "#{target_data['flavor']}*/") ).each do |f|
227
+ FileUtils.rm_f( f , :verbose => verbose )
228
+ end
229
+
225
230
  target_data['isos'].each do |iso|
226
- puts "---- rake unpack[#{iso}]"
227
- Dir.glob( File.join(staging_dir, "#{target_data['flavor']}*/") ).each do |f|
228
- FileUtils.rm_f( f , :verbose => verbose )
229
- end
231
+ puts "---- rake unpack[#{iso},#{do_merge},#{Dir.pwd},isoinfo,#{target_data['os_version']}]"
232
+ Rake::Task['unpack'].reenable
230
233
  Rake::Task['unpack'].invoke(iso,do_merge,Dir.pwd,'isoinfo',target_data['os_version'])
231
234
  end
232
235
  else
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '1.2.0'
5
+ VERSION = '1.2.1'
6
6
  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: 1.2.0
4
+ version: 1.2.1
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: 2016-03-16 00:00:00.000000000 Z
12
+ date: 2016-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler