simp-rake-helpers 1.0.9 → 1.0.10

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: 110e3f2af50e46dc49f2a79cf25d5296e8672414
4
- data.tar.gz: 8130ce80eb6667c8e72b3c83a67d37e81e752eb7
3
+ metadata.gz: 93def8d379879e106ff6d75e7824a955e62801a1
4
+ data.tar.gz: b1e7d9ac4a46ed7687ecbebcf27cac3d0c98248a
5
5
  SHA512:
6
- metadata.gz: b8a60728425f1d35d6f62584ecaf9a34d11080724c558b3415c1188d566dc7c03452d99e530f462635967cba81da6e84f8712e5d2c45ef531e03e27f43846770
7
- data.tar.gz: f5bba0a68c0eb1d32aac9702903e0866d067587e8754c8010aa1840c2441d624a4d87d750350b2a0840e587ba90b4a8e7868898995ed279f8cbbff2c77e30320
6
+ metadata.gz: 07e7d770569a585dbd70a1036d95c02066999e20adbd5a8d525e45891b6ff8cbe84f23d7ceeaaa726a623b2341b15f858064cadf745a366b05cc4335f668db7d
7
+ data.tar.gz: 02c7c7d0dd9dd45b6223016079f8a88cbd6511c44b8709700047d4e1d65819ab755426af3f38388e5ceeed8ac97ab22f1e08d3d1c68c68425f0688e271dedde3
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
1
  --color
2
- --format progress
2
+ --format documentation
3
3
  --require spec_helper
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 1.0.10 / 2015-07-23
2
+ * Relax dependency to allow puppet 3 or above
3
+
1
4
  ### 1.0.9 / 2015-07-15
2
5
  * Ensure that the GPG signing code works on Fedora 22 and RHEL7 and RHEL6
3
6
 
data/Gemfile CHANGED
@@ -1,3 +1,14 @@
1
- source 'https://rubygems.org'
1
+ # Variables:
2
+ #
3
+ # SIMP_GEM_SERVERS | a space/comma delimited list of rubygem servers
4
+ # PUPPET_VERSION | specifies the version of the puppet gem to load
5
+ puppetversion = ENV.key?('PUPPET_VERSION') ? "#{ENV['PUPPET_VERSION']}" : false
6
+ gem_sources = ENV.key?('SIMP_GEM_SERVERS') ? ENV['SIMP_GEM_SERVERS'].split(/[, ]+/) : ['https://rubygems.org']
7
+
8
+ gem_sources.each { |gem_source| source gem_source }
2
9
 
3
10
  gemspec
11
+
12
+ if puppetversion
13
+ gem 'puppet', puppetversion
14
+ end
data/README.md CHANGED
@@ -1,27 +1,111 @@
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
3
 
4
+
5
+ ## Work in Progress
6
+
7
+ Please excuse us as we transition this code into the public domain.
8
+
9
+ Downloads, discussion, and patches are still welcome!
3
10
  Common helper methods for SIMP Rakefiles
4
11
 
5
- ## Features
12
+ #### Table of Contents
13
+
14
+ 1. [Overview](#overview)
15
+ * [This gem is part of SIMP](#this-gem-is-part-of-simp)
16
+ * [Features](#features)
17
+ 2. [Setup - The basics of getting started with iptables](#setup)
18
+ 3. [Usage - Configuration options and additional functionality](#usage)
19
+ 4. [Reference - An under-the-hood peek at what the gem is doing and how](#reference)
20
+ 5. [Limitations - OS compatibility, etc.](#limitations)
21
+ 6. [Development - Guide for contributing to the module](#development)
22
+ * [License](#license)
23
+ * [History](#history)
24
+
25
+
26
+ ## Overview
27
+ The `simp-rake-helpers` gem provides common Rake tasks to support the SIMP build process.
28
+
29
+
30
+ ### This gem is part of SIMP
31
+ 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/).
32
+
33
+
34
+ ### Features
6
35
  * supports multithreaded mock operations
36
+ * RPM packaging and signing
37
+
38
+
39
+ ## Setup
40
+ Within a project's Gemfile:
41
+
42
+ ```ruby
43
+ gem 'simp-rake-helpers'
44
+ ```
7
45
 
8
46
 
9
47
  ## Usage
48
+ Within a project's Rakefile:
49
+
10
50
  ```ruby
11
51
  require 'simp/rake/helpers'
12
52
  ```
13
53
 
14
- ## Requirements
15
- * SIMP source
54
+ To see the extra rake tasks:
55
+
56
+ ```sh
57
+ bunde exec rake -T
58
+ ```
59
+
60
+ ## Reference
61
+
62
+ ### simp/rake/rpm
63
+
64
+ #### rake pkg:rpm[chroot,unique,snapshot_release]
65
+ Builds an RPM to package the current SIMP project.
66
+
67
+ **NOTE**: Building RPMs requires a working Mock setup (http://fedoraproject.org/wiki/Projects/Mock)
68
+
69
+ ##### Parameters
70
+
71
+ * **:chroot** - The Mock chroot configuration to use. See the '--root' option in mock(1)."
72
+ * **:unique** - Whether or not to build the RPM in a unique Mock environment. This can be very useful for parallel builds of all modules.
73
+ * **:snapshot_release** - Add snapshot_release (date and time) to rpm version. Rpm spec file must have macro for this to work.
74
+
75
+
76
+ #### rake pkg:scrub[chroot,unique]
77
+
78
+ Scrub the current SIMP project's mock build directory.
79
+
80
+
81
+ #### rake pkg:srpm[chroot,unique,snapshot_release]
82
+ Build the pupmod-simp-iptables SRPM. Building RPMs requires a working Mock setup (http://fedoraproject.org/wiki/Projects/Mock)
83
+
84
+ **NOTE**: Building RPMs requires a working Mock setup (http://fedoraproject.org/wiki/Projects/Mock)
85
+
86
+ ##### Parameters
87
+
88
+ * **:chroot** - The Mock chroot configuration to use. See the '--root' option in mock(1)."
89
+ * **:unique** - Whether or not to build the SRPM in a unique Mock environment. This can be very useful for parallel builds of all modules.
90
+ * **:snapshot_release** - Add snapshot_release (date and time) to rpm version. The RPM spec file must support macros for this to work.
91
+
92
+ #### rake pkg:tar[snapshot_release]
93
+
94
+ ##### Parameters
95
+
96
+ Build the pupmod-simp-iptables tar package
97
+ * :snapshot_release - Add snapshot_release (date and time) to rpm version, rpm spec file must have macro for this to work.
98
+
99
+ ## Limitations
16
100
 
17
101
 
18
- ## Install
19
- * sudo gem install simp-rake-helpers
102
+ ## Development
20
103
 
104
+ Please see the [SIMP Contribution Guidelines](https://simp-project.atlassian.net/wiki/display/SD/Contributing+to+SIMP).
21
105
 
22
- ## License
106
+ ### License
23
107
  See [LICENSE](LICENSE)
24
108
 
25
109
 
26
- ## History
110
+ ### History
27
111
  See [CHANGELOG.md](CHANGELOG.md)
@@ -2,6 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '1.0.9'
6
- require 'simp/rake/pkg'
5
+ VERSION = '1.0.10'
7
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.0.9
4
+ version: 1.0.10
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: 2015-07-17 00:00:00.000000000 Z
12
+ date: 2015-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -57,14 +57,14 @@ dependencies:
57
57
  name: puppet
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '3'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '3'
70
70
  - !ruby/object:Gem::Dependency
@@ -260,7 +260,7 @@ homepage: https://github.com/simp/rubygem-simp-rake-helpers
260
260
  licenses:
261
261
  - Apache-2.0
262
262
  metadata:
263
- issue_tracker: https://github.com/simp/rubygem-simp-rake-helpers/issues
263
+ issue_tracker: https://simp-project.atlassian.net
264
264
  post_install_message:
265
265
  rdoc_options: []
266
266
  require_paths: