simp-rake-helpers 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzE5MjQzNGIzOTcwMmFlNDE3MzhlNDdjMDM1NzhkOTc1OWRkMzdkZQ==
4
+ NTg4Yzk3Zjk0ZWYzYzE3YzJiNTZhOTllNjQxZTUwZmIzYzllYThmZQ==
5
5
  data.tar.gz: !binary |-
6
- YWUzYmVlMmFjNzNmMGIzYmNmMDZkNjlkNDk4MjI5NDg3ZGQ0OTU1Yg==
6
+ ZTk4MmFhODMyMjMwZjA0YjZjZTYyY2I0YTU4MTY0OTVmNWQyYzRmMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTA3ZWEyZjIzYzkxYzU4MjZkZWJmMTM1M2YzMDU2ZTVmMzdhNjEzYTFiYjM5
10
- NGM1MDNlMzlhYmJmMjFiZTcyOGUxZjg2YzRlMWVhZTk2MjMzOTA1Y2RkNjIx
11
- YWJhYTM0ZTA5MmQ0MDFkZmFhZTBmZDAyNzdjZDA1NWI2MjNkMjM=
9
+ N2VjNmRhZDFmM2NlODgyMWQ2OTQwMWU1MDg0NjZjNGMzNTA3ZjQyOTAzNWI5
10
+ OTYwMTc2ZTQyNTczYjJmNWM0ZWIyMDg2YmJlYjU2ZmRlNjAzMzE4OGViZWE5
11
+ YjU4MDg3NjU2OWNjMjQyOWRhYjliYjQzOThiZjIyNmM1MDYxZTA=
12
12
  data.tar.gz: !binary |-
13
- ZDkwNmRjMjEyMTBiZDEwMjgyN2IxYTRmZmFmMjZlYTNjMTJjMTI5ZDA2MDM3
14
- NjZlYmU5OTI5NGExOGMyN2YxNDhkMjM0MmRkNzMyN2RmZWUyYzE5MGRlM2Yy
15
- NDc4OTM3OGVkYWZmZjcxYjQzYTQwNjVjZDBmZTE1NmJhN2M5Yjg=
13
+ Nzc5NWVjZGE5OWVlMGY5ZTE3ZTc2MzQ5N2JiYWQzYTU2NjY3OWRmZmI3ODVk
14
+ MjdhNDhhNDU4OTA4MTk1MjczMTBkNWE2N2U4NjI3Nzk1NTRhMWQwMjE0MmI1
15
+ YzJkNGM4ZDMwNjE4MDIyODQyYjY1NWIwOThkZmIxZDI5YzAxZjg=
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # simp-rake-helpers
2
- [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) [![Build Status](https://travis-ci.org/simp/rubygems-simp-rake-helpers.svg?branch=master)](https://travis-ci.org/simp/rubygems-simp-rake-helpers)
2
+ [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) [![Build Status](https://travis-ci.org/simp/rubygem-simp-rake-helpers.svg?branch=master)](https://travis-ci.org/simp/rubygems-simp-rake-helpers)
3
3
 
4
4
  #### Table of Contents
5
5
 
6
6
  1. [Overview](#overview)
7
7
  * [This gem is part of SIMP](#this-gem-is-part-of-simp)
8
8
  * [Features](#features)
9
- 2. [Setup - The basics of getting started with iptables](#setup)
9
+ 2. [Setup - The basics of getting started with simp-rake-helpers](#setup)
10
10
  * [Gemfile](#gemfile)
11
11
  3. [Usage - Configuration options and additional functionality](#usage)
12
12
  * [In a Puppet Module](#in-a-puppet-module)
@@ -26,8 +26,10 @@ This gem is part of (the build tooling for) the [System Integrity Management Pla
26
26
 
27
27
 
28
28
  ### Features
29
- * supports multithreaded mock operations
30
- * RPM packaging and signing
29
+ * Provides rake tasks for Puppet modules:
30
+ * supports multithreaded mock operations
31
+ * RPM packaging and signing
32
+ * Fully automatic ISO build
31
33
 
32
34
 
33
35
  ## Setup
@@ -3,7 +3,8 @@ require 'rake/tasklib'
3
3
  module Simp; end
4
4
  module Simp::Rake
5
5
  class Fixtures < ::Rake::TaskLib
6
- def initialize
6
+ def initialize( dir )
7
+ @base_dir = dir
7
8
  ###::CLEAN.include( '.fixtures.yml.local' )
8
9
  define
9
10
  end
@@ -37,7 +38,7 @@ module Simp::Rake
37
38
 
38
39
  desc 'generate .fixtures.yml.local formm the entries in .fixtures.yml'
39
40
  task :generate do
40
- pwd = File.expand_path(File.dirname(__FILE__))
41
+ pwd = File.expand_path(@base_dir)
41
42
  _f = YAML.load_file(File.join(pwd,'.fixtures.yml'))
42
43
  _l = fixtures_yml_local( _f )
43
44
  _o = File.join(pwd,'.fixtures.yml.local')
@@ -50,8 +51,13 @@ module Simp::Rake
50
51
  desc "check for missing .fixture modules"
51
52
  task :diff do
52
53
  require 'yaml'
53
- pwd = File.expand_path(File.dirname(__FILE__))
54
+ pwd = File.expand_path(@base_dir)
54
55
  _f = YAML.load_file(File.join(pwd,'.fixtures.yml'))
56
+
57
+ unless File.file?(File.join(pwd,'.fixtures.yml.local'))
58
+ fail "ERROR: Can't diff fixtures without a `.fixtures.yml.local` file"
59
+ end
60
+
55
61
  _fl = YAML.load_file(File.join(pwd,'.fixtures.yml.local'))
56
62
 
57
63
  # reduce modules
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '2.0.1'
5
+ VERSION = '2.0.2'
6
6
  end
@@ -5,12 +5,13 @@ module Simp; end
5
5
  module Simp::Rake; end
6
6
  class Simp::Rake::Helpers
7
7
 
8
+ # dir = top-level of project,
8
9
  def initialize( dir = Dir.pwd )
9
10
  Simp::Rake::Pkg.new( dir ) do | t |
10
11
  t.clean_list << "#{t.base_dir}/spec/fixtures/hieradata/hiera.yaml"
11
12
  end
12
13
 
13
- Simp::Rake::Fixtures.new
14
+ Simp::Rake::Fixtures.new( dir )
14
15
  end
15
16
 
16
17
  end
@@ -6,6 +6,7 @@ require 'puppet-lint/tasks/puppet-lint'
6
6
  require 'simp/rake/pkg'
7
7
  require 'simp/rake/beaker'
8
8
  require 'parallel_tests/cli'
9
+ require 'simp/rake/fixtures'
9
10
 
10
11
  module Simp; end
11
12
  module Simp::Rake; end
@@ -48,6 +49,8 @@ class Simp::Rake::Pupmod::Helpers < ::Rake::TaskLib
48
49
  config.ignore_paths = PuppetLint.configuration.ignore_paths
49
50
  end
50
51
 
52
+ Simp::Rake::Fixtures.new( @base_dir )
53
+
51
54
  Simp::Rake::Pkg.new( @base_dir ) do | t |
52
55
  t.clean_list << "#{t.base_dir}/spec/fixtures/hieradata/hiera.yaml"
53
56
  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: 2.0.1
4
+ version: 2.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: 2016-04-05 00:00:00.000000000 Z
12
+ date: 2016-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler