]>
gitweb.fluxo.info Git - puppet-stdlib.git/log
Hunter Haugen [Thu, 18 Dec 2014 23:45:42 +0000 (15:45 -0800)]
Merge pull request #377 from petems/MODULES-1582-improve_validate_cmd
(MODULES-1582) File location placeholder
Peter Souter [Thu, 18 Dec 2014 23:08:13 +0000 (23:08 +0000)]
(MODULES-1582) Improve % detection
Avoids any validate commands that have %'s in them other than "... % ..."
Peter Souter [Tue, 9 Dec 2014 14:42:31 +0000 (14:42 +0000)]
(MODULES-1582) Specs for the new % placeholder
These specs are pretty much the same as the originals, but now check that the output has the correct replacement for file location
Peter Souter [Tue, 9 Dec 2014 14:20:31 +0000 (14:20 +0000)]
(MODULES-1582) Initial spike for % placeholder
This simply `gsub`'s the file path into where the % placeholder is.
Morgan Haskel [Wed, 17 Dec 2014 22:19:30 +0000 (14:19 -0800)]
Merge pull request #372 from poikilotherm/feature/master/validate_absolute_path_allow_arrays
Allow array of pathes in validate_absolute_path
Morgan Haskel [Wed, 17 Dec 2014 19:00:23 +0000 (11:00 -0800)]
Merge pull request #368 from rfugina/basename
Basename implementation
Rob Fugina [Mon, 17 Nov 2014 22:01:42 +0000 (16:01 -0600)]
Added basename() based on Ruby's File.basename
Based on dirname code. Includes RSpec tests and docs.
Hunter Haugen [Wed, 17 Dec 2014 17:24:51 +0000 (09:24 -0800)]
Merge pull request #374 from petems/MODULES-444-add_concat_multiple
MODULES-444-Add concat multiple
Morgan Haskel [Tue, 16 Dec 2014 18:09:08 +0000 (10:09 -0800)]
Merge pull request #373 from jbondpdx/stdlib-readme-fix
Add to Readme: Stdlib no longer ships with PE
Morgan Haskel [Tue, 16 Dec 2014 18:08:50 +0000 (10:08 -0800)]
Merge pull request #370 from jbondpdx/master
FM-1523: Added module summary to metadata.json
Morgan Haskel [Tue, 9 Dec 2014 16:23:39 +0000 (08:23 -0800)]
Merge pull request #376 from cmurphy/master
Update .travis.yml, Gemfile, Rakefile, and CONTRIBUTING.md
Colleen Murphy [Mon, 8 Dec 2014 18:33:35 +0000 (10:33 -0800)]
Update .travis.yml, Gemfile, Rakefile, and CONTRIBUTING.md
Peter Souter [Thu, 4 Dec 2014 14:34:25 +0000 (14:34 +0000)]
(MODULES-444) - Real meat of the change
This is the core change, we now go through the array and add it to the first element, instead of just two arguments.
Peter Souter [Thu, 4 Dec 2014 14:33:23 +0000 (14:33 +0000)]
(MODULES-444) Change argument restriction to < 2
Peter Souter [Thu, 4 Dec 2014 14:32:23 +0000 (14:32 +0000)]
(MODULES-444) Update docs with new functionality
Peter Souter [Thu, 4 Dec 2014 14:27:55 +0000 (14:27 +0000)]
(MODULES-444) - Check for accepting > 2 args
Peter Souter [Thu, 4 Dec 2014 14:27:38 +0000 (14:27 +0000)]
(MODULES-444) Change test to > 2 arguments
Also add extra test for just 1 argument
Peter Souter [Thu, 4 Dec 2014 14:15:33 +0000 (14:15 +0000)]
(MODULES-444) Acceptance for multiple arrays
Acceptance test to take multiple arrays for concatenation
Peter Souter [Thu, 4 Dec 2014 14:15:03 +0000 (14:15 +0000)]
(MODULES-444) Acceptance test for primitives
`concat` should be able to concat arrays and primitives
Peter Souter [Thu, 4 Dec 2014 14:12:55 +0000 (14:12 +0000)]
(MODULES-444) Add specs for new behaviour
`concat` can now take multiple arguments
jbondpdx [Tue, 25 Nov 2014 19:32:12 +0000 (11:32 -0800)]
Added a note that stdlib no longer ships with PE 3.7+
Users didn't realize we stopped shipping stdlib module with PE. I added this information to the stdlib readme.
jbondpdx [Thu, 20 Nov 2014 23:20:37 +0000 (15:20 -0800)]
FM-1523: Added module summary to metadata.json
Oliver Bertuch [Tue, 25 Nov 2014 11:45:23 +0000 (12:45 +0100)]
Allow array of pathes in validate_absolute_path
Morgan Haskel [Fri, 21 Nov 2014 21:18:27 +0000 (16:18 -0500)]
Merge pull request #371 from cyberious/SLESSupport
FM-2020 SLES Support verified
Travis Fields [Fri, 21 Nov 2014 21:09:17 +0000 (16:09 -0500)]
FM-2020 SLES Support verified
jbondpdx [Thu, 20 Nov 2014 23:20:37 +0000 (15:20 -0800)]
FM-1523: Added module summary to metadata.json
Colleen Murphy [Mon, 17 Nov 2014 20:29:23 +0000 (12:29 -0800)]
Merge pull request #367 from mhaskel/future_parser_fix
Need to convert strings and fixnums to arrays
Morgan Haskel [Fri, 14 Nov 2014 22:33:59 +0000 (14:33 -0800)]
Need to convert strings and fixnums to arrays
Hunter Haugen [Thu, 13 Nov 2014 20:27:14 +0000 (12:27 -0800)]
Merge pull request #319 from Spredzy/member_array_in_array
(MODULES-1329) Allow member to look for array
Hunter Haugen [Thu, 13 Nov 2014 18:16:21 +0000 (10:16 -0800)]
Merge pull request #365 from dalen/range-integers
Make the range function work with integers
Hunter Haugen [Wed, 12 Nov 2014 19:54:41 +0000 (11:54 -0800)]
Merge pull request #366 from mhaskel/merge_4.4.x
Merge 4.4.x
Yanis Guenane [Mon, 15 Sep 2014 18:16:52 +0000 (14:16 -0400)]
(MODULES-1329) Allow member function to look for array
Currently, the member function allows one to only find if a variable
is part of an array. Sometimes it is useful to find if an array is part
of a bigger array for validation purpose.
Erik Dalén [Wed, 12 Nov 2014 15:52:36 +0000 (16:52 +0100)]
Add range tests for numeric with step and mixed arguments
Erik Dalén [Wed, 12 Nov 2014 15:02:05 +0000 (16:02 +0100)]
Make the range function work with integers
This is needed for the future parser which actually treats numbers as
numbers and strings as strings. With this patch you can use range(1,5)
instead of having to quote them like range('1','5').
Erik Dalén [Wed, 12 Nov 2014 14:52:33 +0000 (15:52 +0100)]
(maint) Fix indentation of range function
Morgan Haskel [Wed, 12 Nov 2014 00:44:26 +0000 (16:44 -0800)]
Merge pull request #363 from hunner/fix_windows
Fix exclude windows test on ensure_package
Travis Fields [Tue, 11 Nov 2014 23:33:43 +0000 (15:33 -0800)]
Fix exclude windows test on ensure_package
Update to fix ensure_resource as well
Morgan Haskel [Tue, 11 Nov 2014 18:47:00 +0000 (10:47 -0800)]
Merge pull request #358 from hunner/fix_type
Correct type() logic
Hunter Haugen [Tue, 11 Nov 2014 18:46:01 +0000 (10:46 -0800)]
Correct type() logic
It should NOT run if the future parser is enabled
Morgan Haskel [Tue, 11 Nov 2014 01:15:11 +0000 (17:15 -0800)]
Merge pull request #357 from hunner/hasInterfaceWithLookupBug
(PUP-3597) Catch :undefined_variable when Future Parser is enabled on 3.7.x
Hunter Haugen [Tue, 11 Nov 2014 00:37:53 +0000 (16:37 -0800)]
Fix breaking out of .each loop
And some other small formatting fixes that don't belong in this patch.
Travis Fields [Mon, 3 Nov 2014 17:30:34 +0000 (09:30 -0800)]
Remove windows from ensure_package and ensure_resource testing
Travis Fields [Fri, 31 Oct 2014 06:37:00 +0000 (23:37 -0700)]
Catch :undefined_variable thrown when Future Parser is enabled with 3.7.x
Hunter Haugen [Mon, 10 Nov 2014 21:42:28 +0000 (13:42 -0800)]
Merge branch 'master' into 4.4.x
Hunter Haugen [Mon, 10 Nov 2014 21:28:04 +0000 (13:28 -0800)]
Merge pull request #356 from justinstoller/maint/master/segregate-gems
(QENG-1404) Segregate system testing gems
Justin Stoller [Mon, 10 Nov 2014 19:56:40 +0000 (11:56 -0800)]
(QENG-1404) Segregate system testing gems
Prior to this there was generic :test group.
Unfortunately Beaker will be EOL-ing support for Ruby 1.8 (a number of
Beaker's dependencies already have and pinning to older versions is
becoming costly). Once Beaker does this it will cause failures whenever
running `bundle install`.
To avoid this failure we can segregate the system testing gems, allowing
unit, lint and development to continue with
`bundle install --without system_tests`.
Morgan Haskel [Mon, 10 Nov 2014 19:43:00 +0000 (11:43 -0800)]
Merge pull request #355 from hunner/release_4.4.0
Release 4.4.0
Hunter Haugen [Mon, 10 Nov 2014 19:31:26 +0000 (11:31 -0800)]
Release 4.4.0
Summary
This release has an overhauled readme, new private manifest function,
and fixes many future parser bugs.
Features
- All new shiny README
- New `private()` function for making private manifests (yay!)
Bugfixes
- Code reuse in `bool2num()` and `zip()`
- Fix many functions to handle `generate()` no longer returning a string on new puppets
- `concat()` no longer modifies the first argument (whoops)
- strict variable support for `getvar()`, `member()`, `values_at`, and `has_interface_with()`
- `to_bytes()` handles PB and EB now
- Fix `tempfile` ruby requirement for `validate_augeas()` and `validate_cmd()`
- Fix `validate_cmd()` for windows
- Correct `validate_string()` docs to reflect non-handling of `undef`
- Fix `file_line` matching on older rubies
Morgan Haskel [Mon, 10 Nov 2014 19:10:41 +0000 (11:10 -0800)]
Merge pull request #354 from puppetlabs/4.3.x
4.3.x
Travis Fields [Fri, 7 Nov 2014 21:42:48 +0000 (13:42 -0800)]
Merge pull request #343 from zacharyalexstern/fix_to_bytes
Added correct converstions for PB and EB.
Morgan Haskel [Tue, 4 Nov 2014 23:29:25 +0000 (15:29 -0800)]
Merge pull request #350 from cyberious/modules1413
MODULES-1413 Add ability for member to take numeric objects
Travis Fields [Thu, 30 Oct 2014 05:02:13 +0000 (22:02 -0700)]
MODULES-1413 Ability to for future parser to use member with FixNum types
Travis Fields [Tue, 4 Nov 2014 22:17:03 +0000 (14:17 -0800)]
Merge branch '4.3.x'
Conflicts:
spec/acceptance/ensure_packages_spec.rb
spec/acceptance/ensure_resource_spec.rb
Morgan Haskel [Tue, 4 Nov 2014 18:48:25 +0000 (10:48 -0800)]
Merge pull request #353 from cyberious/WindowsTestIsolationFix
Fix the unless for test cases on ensure_package and ensure_resource
Travis Fields [Tue, 4 Nov 2014 18:42:34 +0000 (10:42 -0800)]
Fix the unless for test cases on ensure_package and ensure_resource
Conflicts:
spec/acceptance/ensure_packages_spec.rb
spec/acceptance/ensure_resource_spec.rb
Travis Fields [Thu, 30 Oct 2014 17:23:12 +0000 (10:23 -0700)]
Merge branch '4.3.x'
Morgan Haskel [Thu, 30 Oct 2014 17:21:36 +0000 (10:21 -0700)]
Merge pull request #349 from cyberious/4.3.x
Fix validate_cmd, previous addition of SystemCallError only works for Puppet 3.7, previous version throw different exception. Wrapping in generic Exception catch all
Travis Fields [Thu, 30 Oct 2014 03:03:07 +0000 (20:03 -0700)]
Fix validate_cmd, previous addition of SystemCallError only works for Puppet 3.7, previous version throw different exception. Wrapping in generic Exception catch all
Travis Fields [Wed, 29 Oct 2014 19:52:52 +0000 (12:52 -0700)]
Merge remote-tracking branch 'origin/4.3.x'
Morgan Haskel [Wed, 29 Oct 2014 19:42:52 +0000 (15:42 -0400)]
Merge pull request #348 from cyberious/4.3.x
Add proper exception catching of Windows errors when CreateProcess does not succeed
Travis Fields [Tue, 28 Oct 2014 23:46:16 +0000 (16:46 -0700)]
Add proper exception catching of Windows errors when CreateProcess does not succeed
Colleen Murphy [Tue, 28 Oct 2014 23:46:39 +0000 (16:46 -0700)]
Merge pull request #347 from cyberious/master
Fix issue with ensure_request
Travis Fields [Tue, 28 Oct 2014 23:43:15 +0000 (16:43 -0700)]
Add windows test exclusion to ensure_resource
Colleen Murphy [Tue, 28 Oct 2014 23:12:54 +0000 (16:12 -0700)]
Merge pull request #346 from cyberious/master
Spec_helper_acceptance fix provision section
Travis Fields [Tue, 28 Oct 2014 23:10:50 +0000 (16:10 -0700)]
Fixed a mistake where we were trying to touch a host file using the default which was not relavent to the host we were modifying
Colleen Murphy [Tue, 28 Oct 2014 22:37:46 +0000 (15:37 -0700)]
Merge pull request #345 from cyberious/master
Fix logic issue with not including windows for testing ensure_packages as ruby and gem are not on the install path
Travis Fields [Tue, 28 Oct 2014 22:35:56 +0000 (15:35 -0700)]
Fix logic issue with not including windows for testing ensure_packages as ruby and gem are not on the install path
Travis Fields [Tue, 28 Oct 2014 22:31:37 +0000 (15:31 -0700)]
Merge remote-tracking branch 'origin/4.3.x' back to master
Colleen Murphy [Tue, 28 Oct 2014 22:30:17 +0000 (15:30 -0700)]
Merge pull request #344 from cyberious/TestCaseFixes
Fix testcases for Future Parser and resolve issue with values_at in assuming that it was dealing with a string
Travis Fields [Tue, 28 Oct 2014 22:27:24 +0000 (15:27 -0700)]
Fix testcases for Future Parser and resolve issue with values_at in assuming that it was dealing with a string
Zachary Alex Stern [Tue, 28 Oct 2014 20:14:06 +0000 (13:14 -0700)]
Added correct converstions for PB and EB.
* We were converting Exabytes to bytes as Petabytes.
* Updated tests to cover ever unit.
* Added note that we're going by the old, inaccurate definitions of
Kilobytes, Megabytes, etc, in that we treat them as powers of 2.
Travis Fields [Fri, 24 Oct 2014 23:41:05 +0000 (16:41 -0700)]
Merge branch '4.3.x', add tempfile back for resource validate_cmd and validate_augeas
John Duarte [Fri, 24 Oct 2014 23:38:30 +0000 (16:38 -0700)]
Merge pull request #340 from cyberious/4.3.x
add require 'tempfile' to resolve a previously autorequired resource
Travis Fields [Fri, 24 Oct 2014 23:35:34 +0000 (16:35 -0700)]
add require 'tempfile' to resolve a previously autorequired resource
Travis Fields [Fri, 24 Oct 2014 21:30:01 +0000 (14:30 -0700)]
Merge branch '4.3.x'
Conflicts:
README.markdown
lib/puppet/parser/functions/has_interface_with.rb
Morgan Haskel [Thu, 9 Oct 2014 17:33:06 +0000 (13:33 -0400)]
Merge pull request #262 from tremble/MODULES-707
Modules 707
Hunter Haugen [Thu, 9 Oct 2014 17:10:34 +0000 (10:10 -0700)]
Merge pull request #335 from jbondpdx/stdlib-readme
DOC-248 Revised and updated readme for stdlib module
jbondpdx [Wed, 8 Oct 2014 18:42:31 +0000 (11:42 -0700)]
DOC-248 Revised and updated readme for stdlib module
Reorganized and edited stdlib module readme.
Colleen Murphy [Wed, 8 Oct 2014 18:33:10 +0000 (11:33 -0700)]
Merge pull request #334 from cyberious/WindowsHasInterfacesBug
ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing...
Travis Fields [Wed, 8 Oct 2014 17:14:10 +0000 (10:14 -0700)]
ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing us not to return some interfaces
Hunter Haugen [Wed, 24 Sep 2014 22:47:13 +0000 (15:47 -0700)]
Merge pull request #303 from bobtfish/fix_strict_variables
Fix strict_variables = true
Hunter Haugen [Tue, 23 Sep 2014 00:06:16 +0000 (17:06 -0700)]
Merge pull request #302 from 3flex/update-readme
(MODULES-927) Update readme
Tomas Doran [Fri, 18 Jul 2014 21:36:09 +0000 (14:36 -0700)]
Fix strict_variables = true
Mark Chappell [Fri, 23 May 2014 06:44:50 +0000 (08:44 +0200)]
Re-use existing str2bool code rather than doing a copy and paste
Mark Chappell [Tue, 22 Apr 2014 07:36:28 +0000 (09:36 +0200)]
(MODULES-707) chomp() fails because generate() no longer returns a string
We need to use
unless value.is_a?(String) || value.is_a?(Array)
rather than
klass = value.class
unless [String, Array].include?(klass)
because the klass version enforces type checking which is too strict, and does
not allow us to accept objects wich have extended String (or Array).
For example, generate() function now returns Puppet::Util::Execution::ProcessOutput
which is just a very simple extension of String. While this in it's self was
not intentional (PUP-2306) it is not unreasonable to cope with objects which
extend Strings
Hunter Haugen [Wed, 17 Sep 2014 16:44:51 +0000 (09:44 -0700)]
Merge pull request #320 from JimPanic/patch-2
Update docs of validate_string to reflect bug
Hunter Haugen [Tue, 16 Sep 2014 21:30:10 +0000 (14:30 -0700)]
Merge pull request #321 from cyberious/4.3.x
MODULES-1248 Fix issue with not properly counting regex matches with leg...
Travis Fields [Tue, 16 Sep 2014 17:46:19 +0000 (10:46 -0700)]
MODULES-1248 Fix issue with not properly counting regex matches with legacy versions of ruby
Travis Fields [Tue, 16 Sep 2014 20:39:21 +0000 (13:39 -0700)]
Merge pull request #322 from hunner/remove_simplecov
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.
(cherry picked from commit
a7c129b22d91fc723a8176c066a3eb96b03a2f56 )
Alexander Pánek [Tue, 16 Sep 2014 17:03:02 +0000 (19:03 +0200)]
Note that also future parser does not work
Alexander Pánek [Tue, 16 Sep 2014 15:55:26 +0000 (17:55 +0200)]
Updated docs of validate_string to reflect bug
See: https://tickets.puppetlabs.com/browse/MODULES-457
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