]>
gitweb.fluxo.info Git - puppet-stdlib.git/log
Angel L. Mateo [Tue, 2 Sep 2014 09:35:42 +0000 (11:35 +0200)]
Check if file exists before loading with loadyaml. If not, return nil
Ashley Penney [Thu, 28 Aug 2014 22:32:56 +0000 (18:32 -0400)]
Merge pull request #313 from mhaskel/spec_updates
Update spec_helper for more consistency
Morgan Haskel [Thu, 28 Aug 2014 22:30:39 +0000 (18:30 -0400)]
Update spec_helper for more consistency
Ashley Penney [Wed, 6 Aug 2014 16:43:21 +0000 (12:43 -0400)]
Merge pull request #308 from hunner/remove_cov
Remove simplecov
Hunter Haugen [Tue, 5 Aug 2014 18:28:18 +0000 (11:28 -0700)]
Remove simplecov
simplecov 0.9 dropped ruby 1.8 support, and stdlib is one of the oddball
modules that uses it. So we could probably just remove it and be okay.
Hunter Haugen [Tue, 5 Aug 2014 17:55:58 +0000 (10:55 -0700)]
Merge branch '4.3.x'
Ashley Penney [Thu, 31 Jul 2014 19:01:20 +0000 (15:01 -0400)]
Merge pull request #306 from hunner/fix_concat
(MODULES-1195) Rebase of #202
Spencer Krum [Wed, 20 Nov 2013 04:11:08 +0000 (20:11 -0800)]
Introduce test for array destruction
It was discovered that the concat array modifies the arrays passed to it
as an argument as a side effect. This test will ensure that doesn't
happen again.
Colleen Murphy [Wed, 20 Nov 2013 04:24:46 +0000 (20:24 -0800)]
Concatenate arrays without modifying the first array
Hunter Haugen [Wed, 16 Jul 2014 21:07:39 +0000 (14:07 -0700)]
Merge pull request #300 from trlinkin/file_line_docs
(MODULES-1221) Add file_line autorequire documentation
Thomas Linkin [Wed, 16 Jul 2014 15:39:23 +0000 (11:39 -0400)]
(MODULES-1221) Add file_line autorequire documentation
This commit adds additional documentation to the file_line resource
explaining how it will autorequire file resources when present.
Ashley Penney [Mon, 14 Jul 2014 22:56:14 +0000 (18:56 -0400)]
Merge pull request #298 from hunner/release_4.3.1
Release 4.3.1
Hunter Haugen [Mon, 14 Jul 2014 22:55:06 +0000 (15:55 -0700)]
Release 4.3.1
Summary
This supported release updates the metadata.json to work around upgrade
behavior of the PMT.
Bugfixes
- Synchronize metadata.json with PMT-generated metadata to pass
checksums
Ashley Penney [Mon, 14 Jul 2014 22:52:13 +0000 (18:52 -0400)]
Merge pull request #297 from hunner/fix_metadata
Correct metadata.json to match checksum
Hunter Haugen [Mon, 14 Jul 2014 22:51:21 +0000 (15:51 -0700)]
Correct metadata.json to match checksum
Ashley Penney [Tue, 8 Jul 2014 20:47:28 +0000 (16:47 -0400)]
Merge pull request #296 from hunner/case_aix
AIX has no facter network support
Hunter Haugen [Tue, 8 Jul 2014 20:45:36 +0000 (13:45 -0700)]
AIX has no facter network support
These functions take advantage of IP fact information and AIX does not
appear to support dynamic interface detection in facter.
Hunter Haugen [Mon, 30 Jun 2014 19:08:57 +0000 (12:08 -0700)]
Merge pull request #295 from cmurphy/master
Synchronize .travis.yml
Ashley Penney [Fri, 27 Jun 2014 19:35:00 +0000 (15:35 -0400)]
Merge pull request #294 from hunner/release_4.3.0
Release 4.3.0
Hunter Haugen [Fri, 27 Jun 2014 19:30:27 +0000 (12:30 -0700)]
Release 4.3.0
Summary:
This release is the first supported release of the stdlib 4 series. It
emains backwards-compatible with the stdlib 3 series. It adds two new
unctions, one bugfix, and many testin
Features:
- New `bool2str()` function
- New `camalcase()` function
Bugfixes:
- Fix `has_interface_with()` when interfaces fact is nil
Colleen Murphy [Fri, 27 Jun 2014 17:55:25 +0000 (10:55 -0700)]
Synchronize .travis.yml
Colleen Murphy [Fri, 27 Jun 2014 17:03:48 +0000 (10:03 -0700)]
Update .sync.yml to support new .travis.yml configs
Morgan Haskel [Thu, 26 Jun 2014 20:57:10 +0000 (16:57 -0400)]
Merge pull request #293 from hunner/fix_chop
Gotta single quote yer typewriter buttons
Hunter Haugen [Thu, 26 Jun 2014 20:55:57 +0000 (13:55 -0700)]
Gotta single quote yer typewriter buttons
Hunter Haugen [Thu, 26 Jun 2014 20:18:03 +0000 (13:18 -0700)]
Merge pull request #292 from hunner/fix_rm
Need quotes for spaces in path
Hunter Haugen [Thu, 26 Jun 2014 20:17:07 +0000 (13:17 -0700)]
Need quotes for spaces in path
Hunter Haugen [Thu, 26 Jun 2014 20:13:19 +0000 (13:13 -0700)]
Merge pull request #291 from hunner/no_network_win
has_ip_network doesn't work on windows either
Hunter Haugen [Thu, 26 Jun 2014 20:12:39 +0000 (13:12 -0700)]
has_ip_network doesn't work on windows either
Ashley Penney [Thu, 26 Jun 2014 18:00:40 +0000 (14:00 -0400)]
Merge pull request #290 from cmurphy/master
Start synchronizing module files
Colleen Murphy [Thu, 26 Jun 2014 01:00:57 +0000 (18:00 -0700)]
Sync files
Colleen Murphy [Wed, 25 Jun 2014 16:32:54 +0000 (09:32 -0700)]
Add configuration file for modulesync
https://github.com/puppetlabs/modulesync
Travis Fields [Wed, 25 Jun 2014 17:41:07 +0000 (10:41 -0700)]
Merge pull request #289 from hunner/disable_tests
Disable windows network stuff and quote path
Hunter Haugen [Wed, 25 Jun 2014 17:16:06 +0000 (10:16 -0700)]
Disable windows network stuff and quote path
Hunter Haugen [Wed, 25 Jun 2014 00:10:31 +0000 (17:10 -0700)]
Merge pull request #288 from hunner/rotate_slash
Not enough escape velocity
Hunter Haugen [Tue, 24 Jun 2014 22:03:58 +0000 (15:03 -0700)]
Not enough escape velocity
Hunter Haugen [Tue, 24 Jun 2014 19:03:32 +0000 (12:03 -0700)]
Merge pull request #287 from hunner/rotate
Fix pe facts and slashes
Hunter Haugen [Tue, 24 Jun 2014 18:37:34 +0000 (11:37 -0700)]
Fix pe facts and slashes
Ashley Penney [Tue, 24 Jun 2014 17:28:32 +0000 (13:28 -0400)]
Merge pull request #286 from hunner/33meta
stdlib 4 isn't compatible with PE 3.2
Hunter Haugen [Tue, 24 Jun 2014 17:27:25 +0000 (10:27 -0700)]
stdlib 4 isn't compatible with PE 3.2
Morgan Haskel [Tue, 24 Jun 2014 13:11:19 +0000 (09:11 -0400)]
Merge pull request #284 from cyberious/has_interface_fix
Increase resilience if lookup var comes back with nil object
Morgan Haskel [Tue, 24 Jun 2014 13:10:25 +0000 (09:10 -0400)]
Merge pull request #285 from cyberious/4.3.x
Fixed fqdn,getparam and has_interface_with spec tests
Travis Fields [Tue, 24 Jun 2014 06:27:59 +0000 (23:27 -0700)]
Fixed fqdn,getparam and has_interface_with spec tests
Travis Fields [Tue, 24 Jun 2014 05:47:03 +0000 (22:47 -0700)]
Increase resilience if lookup var comes back with nil object
Hunter Haugen [Tue, 24 Jun 2014 01:58:37 +0000 (18:58 -0700)]
Merge pull request #283 from cyberious/4.3.x
Add windows support and work around issue with SCP_TO on windows systems
Travis Fields [Tue, 24 Jun 2014 00:24:08 +0000 (17:24 -0700)]
Removed platform check for facts.d mkdir
Travis Fields [Mon, 23 Jun 2014 23:59:46 +0000 (16:59 -0700)]
Add windows support and work around issue with SCP_TO on windows systems
Travis Fields [Mon, 23 Jun 2014 23:18:08 +0000 (16:18 -0700)]
Merge pull request #282 from hunner/rm_modulefile
Remove Modulefile; use metadata.json
Hunter Haugen [Mon, 23 Jun 2014 23:17:23 +0000 (16:17 -0700)]
Remove Modulefile; use metadata.json
Travis Fields [Mon, 23 Jun 2014 22:14:51 +0000 (15:14 -0700)]
Merge pull request #281 from hunner/win_loadyaml
Windows needs a tmpdir path
Hunter Haugen [Mon, 23 Jun 2014 22:13:29 +0000 (15:13 -0700)]
Windows needs a tmpdir path
Travis Fields [Mon, 23 Jun 2014 20:51:33 +0000 (13:51 -0700)]
Merge pull request #280 from hunner/win_aug
Augeas isn't present on windows
Hunter Haugen [Mon, 23 Jun 2014 20:47:34 +0000 (13:47 -0700)]
Augeas isn't present on windows
Travis Fields [Mon, 23 Jun 2014 20:46:59 +0000 (13:46 -0700)]
Merge pull request #279 from hunner/osx_interface
OS X also has lo0 and can't manage user homedirs
Hunter Haugen [Mon, 23 Jun 2014 20:45:06 +0000 (13:45 -0700)]
OS X also has lo0 and can't manage user homedirs
Morgan Haskel [Fri, 20 Jun 2014 23:40:26 +0000 (19:40 -0400)]
Merge pull request #278 from cyberious/4.3.x
Add windows Nodesets and remove Beaker from Gemfile
Travis Fields [Fri, 20 Jun 2014 23:39:15 +0000 (16:39 -0700)]
Add windows Nodesets and remove Beaker from Gemfile
Hunter Haugen [Fri, 20 Jun 2014 20:51:29 +0000 (13:51 -0700)]
Merge pull request #277 from hunner/update_ensure
Patch ensure_* tests
Hunter Haugen [Fri, 20 Jun 2014 17:41:43 +0000 (10:41 -0700)]
Patch ensure_* tests
Hunter Haugen [Thu, 19 Jun 2014 23:25:16 +0000 (16:25 -0700)]
Merge branch 'master' into 4.3.x
Travis Fields [Thu, 19 Jun 2014 22:42:27 +0000 (15:42 -0700)]
Merge pull request #276 from hunner/fm_1587
(FM-1587) Fix test issues on solaris 10
Hunter Haugen [Thu, 19 Jun 2014 22:38:23 +0000 (15:38 -0700)]
(FM-1587) Fix test issues on solaris 10
- ensure_packages fails because Error: Sun packages must specify a package source
- ensure_resource fails for the same reason
- get_module_path fails because the modulepath is different
- has_interface_with fails because the interface is lo0 not lo
Ashley Penney [Wed, 18 Jun 2014 14:02:07 +0000 (10:02 -0400)]
Merge pull request #270 from raphink/dev/private
Add private() function
Raphaël Pinson [Tue, 10 Jun 2014 15:23:42 +0000 (17:23 +0200)]
Add private() function
Morgan Haskel [Thu, 5 Jun 2014 20:16:34 +0000 (16:16 -0400)]
Merge pull request #268 from apenney/rspec3
Rspec3 changes
Ashley Penney [Wed, 4 Jun 2014 18:38:37 +0000 (14:38 -0400)]
Convert specs to RSpec 2.99.0 syntax with Transpec
This conversion is done by Transpec 2.2.1 with the following command:
transpec spec/functions
* 345 conversions
from: obj.should
to: expect(obj).to
* 122 conversions
from: == expected
to: eq(expected)
* 85 conversions
from: lambda { }.should
to: expect { }.to
* 22 conversions
from: be_true
to: be_truthy
* 16 conversions
from: be_false
to: be_falsey
* 11 conversions
from: pending
to: skip
* 9 conversions
from: it { should ... }
to: it { is_expected.to ... }
* 5 conversions
from: =~ [1, 2]
to: match_array([1, 2])
* 2 conversions
from: =~ /pattern/
to: match(/pattern/)
* 2 conversions
from: obj.should_not
to: expect(obj).not_to
For more details: https://github.com/yujinakayama/transpec#supported-conversions
Ashley Penney [Wed, 4 Jun 2014 18:37:45 +0000 (14:37 -0400)]
Convert specs to RSpec 2.99.0 syntax with Transpec
This conversion is done by Transpec 2.2.1 with the following command:
transpec spec/unit
* 53 conversions
from: obj.should
to: expect(obj).to
* 19 conversions
from: == expected
to: eq(expected)
* 5 conversions
from: lambda { }.should
to: expect { }.to
* 2 conversions
from: be_true
to: be_truthy
For more details: https://github.com/yujinakayama/transpec#supported-conversions
Ashley Penney [Wed, 4 Jun 2014 18:15:14 +0000 (14:15 -0400)]
Prepare a 4.2.2 release.
Morgan Haskel [Tue, 3 Jun 2014 18:53:04 +0000 (14:53 -0400)]
Merge pull request #265 from apenney/fix-tests
Further fixes to tests for 14.04.
Morgan Haskel [Tue, 3 Jun 2014 18:53:04 +0000 (14:53 -0400)]
Merge pull request #265 from apenney/fix-tests
Further fixes to tests for 14.04.
Ashley Penney [Tue, 3 Jun 2014 18:52:10 +0000 (14:52 -0400)]
Further fixes to tests for 14.04.
Morgan Haskel [Tue, 3 Jun 2014 15:13:35 +0000 (11:13 -0400)]
Merge pull request #264 from apenney/fixes-for-tests
Fixes for PE3.3.
Morgan Haskel [Tue, 3 Jun 2014 15:13:35 +0000 (11:13 -0400)]
Merge pull request #264 from apenney/fixes-for-tests
Fixes for PE3.3.
Ashley Penney [Tue, 3 Jun 2014 15:11:08 +0000 (11:11 -0400)]
Fixes for PE3.3.
Ashley Penney [Fri, 16 May 2014 01:48:40 +0000 (21:48 -0400)]
Merge pull request #258 from mckern/enhancement/master/camelcasedembools
(MODULES-905) Narrow the confinement in bool2str
Ryan McKern [Thu, 15 May 2014 23:45:02 +0000 (16:45 -0700)]
(MODULES-905) Extend spec tests for bool2str
The extended spec tests validate that the common types of values
that could be passed to bool2str() are rejected.
Ryan McKern [Thu, 15 May 2014 22:01:14 +0000 (15:01 -0700)]
(MODULES-905) Narrow the confinement in bool2str
Previously, bool2str() accepted a broad array of boolean values and
bare strings, without any attempt to validate that the strings in any
way resembled "true" or "false" (or any of the other values bool2num()
accepts). This commit narrows the input confinement to TrueClass and
FalseClass, which means that bool2str() will only interpolate
strict boolean values now.
Ashley Penney [Thu, 15 May 2014 21:31:28 +0000 (17:31 -0400)]
Merge pull request #257 from apenney/revert-before
Revert "Merge pull request #256 from stbenjam/2571-before"
Ashley Penney [Thu, 15 May 2014 21:28:59 +0000 (17:28 -0400)]
Revert "Merge pull request #256 from stbenjam/2571-before"
This reverts commit
8499ebdb7f892f2623295058649c67a5553d4732 , reversing
changes made to
08b00d9229961d7b3c3cba997bfb35c8d47e4c4b .
Ashley Penney [Thu, 15 May 2014 21:03:18 +0000 (17:03 -0400)]
Merge pull request #255 from mckern/enhancement/master/camelcasedembools
(MODULES-905) Add bool2str() and camelcase() for string manipulation
Ashley Penney [Thu, 15 May 2014 18:59:37 +0000 (14:59 -0400)]
Claim PE3.3 support.
Ashley Penney [Thu, 15 May 2014 17:31:23 +0000 (13:31 -0400)]
Merge pull request #256 from stbenjam/2571-before
(PUP-2571) add 'before' functionality to file_line
Ashley Penney [Wed, 14 May 2014 20:37:48 +0000 (16:37 -0400)]
Prepare a 4.3.0 release.
Stephen Benjamin [Wed, 14 May 2014 18:33:57 +0000 (20:33 +0200)]
(PUP-2571) add 'before' functionality to file_line
file_line supports adding lines after a match, but there are use cases when
having "before" would be useful. For example, in Debian-based OS's, the last
line of /etc/rc.local is "exit 0" it's an incredible pain to deal with
that scenario today.
This commit adds a 'before' parameter to the file_line type, and implements
it for the ruby provider.
Ryan McKern [Tue, 13 May 2014 22:33:49 +0000 (15:33 -0700)]
(maint) Add bool2str & camelcase spec tests
Ryan McKern [Tue, 13 May 2014 22:01:44 +0000 (15:01 -0700)]
(MODULES-905) Add bool2str() and camelcase() for string manipulation
Python likes to have its constants Capitalized, and the capitalize
function only understands strings... so I shave a yak.
bool2str will convert a boolean to its equivalent string value,
and camelcase extends on uppercase & downcase to convert an underscore
delimited string into a camelcased string.
Ashley Penney [Fri, 9 May 2014 23:15:17 +0000 (19:15 -0400)]
Merge pull request #254 from apenney/421
Prepare a 4.2.1 release.
Ashley Penney [Fri, 9 May 2014 14:57:32 +0000 (16:57 +0200)]
Prepare a 4.2.1 release.
Ashley Penney [Thu, 8 May 2014 22:44:30 +0000 (18:44 -0400)]
Merge pull request #252 from hunner/release_4.2.0
Release - 4.2.0
Hunter Haugen [Thu, 8 May 2014 22:18:36 +0000 (15:18 -0700)]
Release - 4.2.0
Summary
========
This release adds many new functions and fixes, and continues to be backwards compatible with stdlib 3.x
Features
-------
- New `base64()` function
- New `deep_merge()` function
- New `delete_undef_values()` function
- New `delete_values()` function
- New `difference()` function
- New `intersection()` function
- New `is_bool()` function
- New `pick_default()` function
- New `union()` function
- New `validate_ipv4_address` function
- New `validate_ipv6_address` function
- Update `ensure_packages()` to take an option hash as a second parameter.
- Update `range()` to take an optional third argument for range step
- Update `validate_slength()` to take an optional third argument for minimum length
- Update `file_line` resource to take `after` and `multiple` attributes
Bugfixes
--------
- Correct `is_string`, `is_domain_name`, `is_array`, `is_float`, and `is_function_available` for parsing odd types such as bools and hashes.
- Allow facts.d facts to contain `=` in the value
- Fix `root_home` fact on darwin systems
- Fix `concat()` to work with a second non-array argument
- Fix `floor()` to work with integer strings
- Fix `is_integer()` to return true if passed integer strings
- Fix `is_numeric()` to return true if passed integer strings
- Fix `merge()` to work with empty strings
- Fix `pick()` to raise the correct error type
- Fix `uriescape()` to use the default URI.escape list
- Add/update unit & acceptance tests.
Ashley Penney [Thu, 8 May 2014 22:16:05 +0000 (18:16 -0400)]
Merge pull request #251 from hunner/fix_tests
Fix the stdlib functions that fail tests
Hunter Haugen [Thu, 8 May 2014 21:43:06 +0000 (14:43 -0700)]
Fix the stdlib functions that fail tests
Ashley Penney [Thu, 8 May 2014 17:58:53 +0000 (13:58 -0400)]
Merge pull request #250 from hunner/move_unit
Move unit tests to spec/functions
Hunter Haugen [Thu, 8 May 2014 17:47:24 +0000 (10:47 -0700)]
Move unit tests to spec/functions
rspec-puppet matchers are defined for tests which exist in
spec/functions, but the function unit tests lived in
spec/unit/puppet/parser/functions. This moves them to the correct place
for using rspec-puppet
Ashley Penney [Wed, 7 May 2014 22:03:57 +0000 (18:03 -0400)]
Merge pull request #247 from hunner/more_tests
Adding more spec coverage
Hunter Haugen [Wed, 7 May 2014 17:09:32 +0000 (10:09 -0700)]
Add mode +x to spec .rb files
Hunter Haugen [Wed, 7 May 2014 17:09:21 +0000 (10:09 -0700)]
Move the 4 misplaced tests
Hunter Haugen [Wed, 7 May 2014 01:48:59 +0000 (18:48 -0700)]
Adding more spec coverage
Hunter Haugen [Wed, 7 May 2014 16:53:30 +0000 (09:53 -0700)]
Merge pull request #248 from averi/master
Add the missing shebangs and fix the wrong ones
Andrea Veri [Wed, 7 May 2014 09:49:25 +0000 (11:49 +0200)]
Add the missing shebangs and fix the wrong ones for rpmlint to stop complaining loudly
Hunter Haugen [Fri, 2 May 2014 21:15:52 +0000 (14:15 -0700)]
Merge pull request #246 from hunner/update_build_csv
Update build_csv to understand contexts