Skip to content

Commit 89bceb2

Browse files
committed
Merge branch 'master' of git://github.com/puppetlabs/puppetlabs-stdlib
2 parents 0c622b2 + bebecd3 commit 89bceb2

32 files changed

+953
-87
lines changed

.gemspec

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# -*- encoding: utf-8 -*-
3+
4+
Gem::Specification.new do |s|
5+
s.name = "puppetmodule-stdlib"
6+
7+
s.version = "4.0.2"
8+
9+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10+
s.authors = ["Puppet Labs"]
11+
s.date = "2013-04-12"
12+
s.description = [ 'This Gem format of the stdlib module is intended to make',
13+
'it easier for _module authors_ to resolve dependencies',
14+
'using a Gemfile when running automated testing jobs like',
15+
'Travis or Jenkins. The recommended best practice for',
16+
'installation by end users is to use the `puppet module',
17+
'install` command to install stdlib from the [Puppet',
18+
'Forge](http://forge.puppetlabs.com/puppetlabs/stdlib).' ].join(' ')
19+
s.email = "[email protected]"
20+
s.executables = []
21+
s.files = [ 'CHANGELOG', 'CONTRIBUTING.md', 'Gemfile', 'LICENSE', 'Modulefile',
22+
'README.markdown', 'README_DEVELOPER.markdown', 'RELEASE_PROCESS.markdown',
23+
'Rakefile', 'spec/spec.opts' ]
24+
s.files += Dir['lib/**/*.rb'] + Dir['manifests/**/*.pp'] + Dir['tests/**/*.pp'] + Dir['spec/**/*.rb']
25+
s.homepage = "http://forge.puppetlabs.com/puppetlabs/stdlib"
26+
s.rdoc_options = ["--title", "Puppet Standard Library Development Gem", "--main", "README.markdown", "--line-numbers"]
27+
s.require_paths = ["lib"]
28+
s.rubyforge_project = "puppetmodule-stdlib"
29+
s.rubygems_version = "1.8.24"
30+
s.summary = "This gem provides a way to make the standard library available for other module spec testing tasks."
31+
32+
if s.respond_to? :specification_version then
33+
s.specification_version = 3
34+
35+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
36+
else
37+
end
38+
else
39+
end
40+
end

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pkg/
22
.DS_Store
33
metadata.json
44
coverage/
5-
vendor/
6-
.bundle/
5+
spec/fixtures/
76
Gemfile.lock
7+
.bundle/
8+
vendor/bundle/

.travis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
language: ruby
22
bundler_args: --without development
3-
script: "bundle exec rake spec SPEC_OPTS='--format documentation'"
3+
script: "bundle exec rake spec SPEC_OPTS='--color --format documentation'"
44
rvm:
5-
- 1.9.3
65
- 1.8.7
6+
- 1.9.3
7+
- 2.0.0
78
- ruby-head
89
env:
9-
- PUPPET_GEM_VERSION="~> 2.7"
1010
- PUPPET_GEM_VERSION=">= 3.0.0"
1111
matrix:
1212
allow_failures:
13+
- rvm: 2.0.0
1314
- rvm: ruby-head
14-
exclude:
15-
- rvm: 1.9.3
16-
env: PUPPET_GEM_VERSION="~> 2.7"
17-
- rvm: ruby-head
15+
include:
16+
- rvm: 1.8.7
1817
env: PUPPET_GEM_VERSION="~> 2.7"
1918
notifications:
2019
email: false

CHANGELOG

Lines changed: 81 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,84 @@
1-
2012-11-28 - Peter Meier <[email protected]> - 3.2.0
2-
* Add reject() function (a79b2cd)
1+
2013-04-12 - Jeff McCune <[email protected]> - 4.0.2
2+
* Update user information in gemspec to make the intent of the Gem clear.
3+
4+
2013-04-11 - Jeff McCune <[email protected]> - 4.0.1
5+
* Fix README function documentation (ab3e30c)
6+
7+
2013-04-11 - Jeff McCune <[email protected]> - 4.0.0
8+
* stdlib 4.0 drops support with Puppet 2.7
9+
* stdlib 4.0 preserves support with Puppet 3
10+
11+
2013-04-11 - Jeff McCune <[email protected]> - 4.0.0
12+
* Add ability to use puppet from git via bundler (9c5805f)
13+
14+
2013-04-10 - Jeff McCune <[email protected]> - 4.0.0
15+
* (maint) Make stdlib usable as a Ruby GEM (e81a45e)
16+
17+
2013-04-10 - Erik Dalén <[email protected]> - 4.0.0
18+
* Add a count function (f28550e)
19+
20+
2013-03-31 - Amos Shapira <[email protected]> - 4.0.0
21+
* (#19998) Implement any2array (7a2fb80)
22+
23+
2013-03-29 - Steve Huff <[email protected]> - 4.0.0
24+
* (19864) num2bool match fix (8d217f0)
25+
26+
2013-03-20 - Erik Dalén <[email protected]> - 4.0.0
27+
* Allow comparisons of Numeric and number as String (ff5dd5d)
28+
29+
2013-03-26 - Richard Soderberg <[email protected]> - 4.0.0
30+
* add suffix function to accompany the prefix function (88a93ac)
31+
32+
2013-03-19 - Kristof Willaert <[email protected]> - 4.0.0
33+
* Add floor function implementation and unit tests (0527341)
34+
35+
2012-04-03 - Eric Shamow <[email protected]> - 4.0.0
36+
* (#13610) Add is_function_available to stdlib (961dcab)
37+
38+
2012-12-17 - Justin Lambert <[email protected]> - 4.0.0
39+
* str2bool should return a boolean if called with a boolean (5d5a4d4)
40+
41+
2012-10-23 - Uwe Stuehler <[email protected]> - 4.0.0
42+
* Fix number of arguments check in flatten() (e80207b)
43+
44+
2013-03-11 - Jeff McCune <[email protected]> - 4.0.0
45+
* Add contributing document (96e19d0)
46+
47+
2013-03-04 - Raphaël Pinson <[email protected]> - 4.0.0
48+
* Add missing documentation for validate_augeas and validate_cmd to README.markdown (a1510a1)
49+
50+
2013-02-14 - Joshua Hoblitt <[email protected]> - 4.0.0
51+
* (#19272) Add has_element() function (95cf3fe)
52+
53+
2013-02-07 - Raphaël Pinson <[email protected]> - 4.0.0
54+
* validate_cmd(): Use Puppet::Util::Execution.execute when available (69248df)
55+
56+
2012-12-06 - Raphaël Pinson <[email protected]> - 4.0.0
57+
* Add validate_augeas function (3a97c23)
58+
59+
2012-12-06 - Raphaël Pinson <[email protected]> - 4.0.0
60+
* Add validate_cmd function (6902cc5)
61+
62+
2013-01-14 - David Schmitt <[email protected]> - 4.0.0
63+
* Add geppetto project definition (b3fc0a3)
64+
65+
2013-01-02 - Jaka Hudoklin <[email protected]> - 4.0.0
66+
* Add getparam function to get defined resource parameters (20e0e07)
67+
68+
2013-01-05 - Jeff McCune <[email protected]> - 4.0.0
69+
* (maint) Add Travis CI Support (d082046)
70+
71+
2012-12-04 - Jeff McCune <[email protected]> - 4.0.0
72+
* Clarify that stdlib 3 supports Puppet 3 (3a6085f)
73+
74+
2012-11-30 - Erik Dalén <[email protected]> - 4.0.0
75+
* maint: style guideline fixes (7742e5f)
76+
77+
2012-11-09 - James Fryman <[email protected]> - 4.0.0
78+
* puppet-lint cleanup (88acc52)
79+
80+
2012-11-06 - Joe Julian <[email protected]> - 4.0.0
81+
* Add function, uriescape, to URI.escape strings. Redmine #17459 (fd52b8d)
382

483
2012-09-18 - Chad Metcalf <[email protected]> - 3.2.0
584
* Add an ensure_packages function. (8a8c09e)

CONTRIBUTING.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# How to contribute
2+
3+
Third-party patches are essential for keeping stdlib great. We simply can't
4+
access the huge number of platforms and myriad configurations for running
5+
stdlib. We want to keep it as easy as possible to contribute changes that
6+
get things working in your environment. There are a few guidelines that we
7+
need contributors to follow so that we can have a chance of keeping on
8+
top of things.
9+
10+
## Getting Started
11+
12+
* Make sure you have a [Redmine account](http://projects.puppetlabs.com)
13+
* Make sure you have a [GitHub account](https://github.com/signup/free)
14+
* Submit a ticket for your issue, assuming one does not already exist.
15+
* Clearly describe the issue including steps to reproduce when it is a bug.
16+
* Make sure you fill in the earliest version that you know has the issue.
17+
* Fork the repository on GitHub
18+
19+
## Making Changes
20+
21+
* Create a topic branch from where you want to base your work.
22+
* This is usually the master branch.
23+
* Only target release branches if you are certain your fix must be on that
24+
branch.
25+
* To quickly create a topic branch based on master; `git branch
26+
fix/master/my_contribution master` then checkout the new branch with `git
27+
checkout fix/master/my_contribution`. Please avoid working directly on the
28+
`master` branch.
29+
* Make commits of logical units.
30+
* Check for unnecessary whitespace with `git diff --check` before committing.
31+
* Make sure your commit messages are in the proper format.
32+
33+
````
34+
(#99999) Make the example in CONTRIBUTING imperative and concrete
35+
36+
Without this patch applied the example commit message in the CONTRIBUTING
37+
document is not a concrete example. This is a problem because the
38+
contributor is left to imagine what the commit message should look like
39+
based on a description rather than an example. This patch fixes the
40+
problem by making the example concrete and imperative.
41+
42+
The first line is a real life imperative statement with a ticket number
43+
from our issue tracker. The body describes the behavior without the patch,
44+
why this is a problem, and how the patch fixes the problem when applied.
45+
````
46+
47+
* Make sure you have added the necessary tests for your changes.
48+
* Run _all_ the tests to assure nothing else was accidentally broken.
49+
50+
## Submitting Changes
51+
52+
* Sign the [Contributor License Agreement](http://links.puppetlabs.com/cla).
53+
* Push your changes to a topic branch in your fork of the repository.
54+
* Submit a pull request to the repository in the puppetlabs organization.
55+
* Update your Redmine ticket to mark that you have submitted code and are ready for it to be reviewed.
56+
* Include a link to the pull request in the ticket
57+
58+
# Additional Resources
59+
60+
* [More information on contributing](http://links.puppetlabs.com/contribute-to-puppet)
61+
* [Bug tracker (Redmine)](http://projects.puppetlabs.com)
62+
* [Contributor License Agreement](http://links.puppetlabs.com/cla)
63+
* [General GitHub documentation](http://help.github.com/)
64+
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
65+
* #puppet-dev IRC channel on freenode.org

Gemfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
1-
source :rubygems
1+
source "https://rubygems.org"
2+
3+
def location_for(place, fake_version = nil)
4+
mdata = /^(git:[^#]*)#(.*)/.match(place)
5+
if mdata
6+
[fake_version, { :git => mdata[1], :branch => mdata[2], :require => false }].compact
7+
elsif place =~ /^file:\/\/(.*)/
8+
['>= 0', { :path => File.expand_path(mdata[1]), :require => false }]
9+
else
10+
[place, { :require => false }]
11+
end
12+
end
213

314
group :development do
415
gem 'watchr'
516
end
617

718
group :development, :test do
819
gem 'rake'
20+
gem 'puppetmodule-stdlib', ">= 1.0.0", :path => File.expand_path("..", __FILE__)
921
gem 'rspec', "~> 2.11.0", :require => false
1022
gem 'mocha', "~> 0.10.5", :require => false
1123
gem 'puppetlabs_spec_helper', :require => false
1224
gem 'rspec-puppet', :require => false
1325
end
1426

1527
if puppetversion = ENV['PUPPET_GEM_VERSION']
16-
gem 'puppet', puppetversion, :require => false
28+
gem 'puppet', *location_for(puppetversion)
1729
else
1830
gem 'puppet', :require => false
1931
end

Modulefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name 'puppetlabs-stdlib'
2-
version '3.2.0'
3-
source 'git://github.com/puppetlabs/puppetlabs-stdlib'
2+
version '4.0.2'
3+
source 'git://github.com/puppetlabs/puppetlabs-stdlib.git'
44
author 'puppetlabs'
55
license 'Apache 2.0'
66
summary 'Puppet Module Standard Library'

0 commit comments

Comments
 (0)