Commit graph

1032 commits

Author SHA1 Message Date
Ashley Penney
fec943f441 Merge pull request #231 from apenney/32-testing
Numerous changes to update testing gems.
2014-03-18 12:34:40 -04:00
Ashley Penney
9aa28f1c10 Remove this test.
It turns out that in 3.x the refresh functionality doesn't actually
exist yet, so testing it makes no sense.
2014-03-13 11:10:01 -07:00
Ashley Penney
4a461423cc Merge pull request #234 from apenney/add-beaker
Add beaker framework.
2014-03-12 11:24:32 -07:00
Ashley Penney
9a3107fed1 Add beaker framework.
This prepares the module for beaker acceptance tests.
2014-03-12 18:22:23 +00:00
Ashley Penney
e467d8f084 Merge pull request #220 from mediatemple/fix/master/deep_merge_fix
PUP-1724 Don't modify the paramaters to deep_merge
2014-03-11 09:31:23 -07:00
Ashley Penney
6a89e1cee4 Merge pull request #221 from puphpet/hash-fix
hash example has misplaced comas
2014-03-11 09:29:46 -07:00
Ashley Penney
3feb846cf4 Ensure Gemfile retains facilities for Jenkins. 2014-03-11 09:21:37 -07:00
Ashley Penney
e6c1aa6a02 Merge pull request #233 from apenney/add-back-location
Make sure location_for is used when installing Puppet.
2014-03-10 15:22:56 -07:00
Ashley Penney
36dda7b180 Make sure location_for is used when installing Puppet. 2014-03-10 15:19:03 -07:00
Ashley Penney
e382c0db5c Merge pull request #232 from apenney/add-back-location
Readd location_for
2014-03-10 14:58:25 -07:00
Ashley Penney
0fabaa5f07 Readd location_for
location_for is used in Jenkins to transform a passed in git
repo into something usable by bundler.
2014-03-10 14:56:12 -07:00
Ashley Penney
0bf470a71b Remove pry, whoops. 2014-03-10 13:07:43 -07:00
Ashley Penney
dbb29980a1 Numerous changes to update testing gems.
This work updates a number of Gems to the latest versions (rspec,
rspec-puppet), and updates and tweaks a bunch of tests to work
with the updated gems.
2014-03-10 10:58:49 -07:00
Ashley Penney
9e1cf99ccf Merge pull request #230 from apenney/fix-testing
[WIP] Spec overhaul.
2014-03-07 19:48:40 -05:00
Ashley Penney
3854e076cc Numerous changes to update testing gems.
This work updates a number of Gems to the latest versions (rspec,
rspec-puppet), and updates and tweaks a bunch of tests to work
with the updated gems.
2014-03-08 00:42:51 +00:00
Ashley Penney
326a8fd801 Merge pull request #228 from hunner/fix_metadata
Patch metadata
2014-03-03 16:59:29 -05:00
Hunter Haugen
4f65539c2e Patch metadata 2014-03-03 13:56:13 -08:00
Ashley Penney
dce1b4e75b Merge pull request #227 from hunner/add_support
Supported Release 3.2.1
2014-03-03 15:48:41 -05:00
Hunter Haugen
b3490f6318 Supported Release 3.2.1
Summary
This is a supported release

Bugfixes
- Fixed `is_integer`/`is_float`/`is_numeric` for checking the value of
  arithmatic expressions.

Known bugs
* No known bugs
2014-03-03 12:46:16 -08:00
Hunter Haugen
fecb53d46e Merge pull request #226 from apenney/supported-metadata
[don't merge] Prepare for supported modules.
2014-03-03 10:55:28 -08:00
Ashley Penney
ff47b2e040 Prepare for supported modules. 2014-03-03 18:51:18 +00:00
Martin Foot
35bf5fd8c9 Allow concat to take non-array second parameters
Also improve and extend concat tests to lock down functionality
2014-02-21 15:48:27 +00:00
Juan Treminio
908db6d403 hash example has misplaced comas 2014-02-19 23:37:38 -06:00
Justin Burnham
c12e9afc97 PUP-1724 Don't modify the paramaters to deep_merge
Instead of modifying the first paramater of deep_merge due to the
use of the merge! function, instead use merge to return a copy of
the merged object. This allows one to continue to use the original
first parameter after the call to deep_merge.
2014-02-17 12:19:40 -08:00
Ashley Penney
ab981422a6 Merge pull request #217 from teancom/fix/master/file_line
(DOCUMENT-21) add docs for file_line to README.markdown
2014-02-11 12:51:37 -05:00
Ashley Penney
2435741ca7 Merge pull request #219 from petems/patch-1
Fix strftime documentation in README
2014-02-11 12:51:22 -05:00
Peter Souter
d4722d7af5 Fix strftime documentation in README
Markdown was barfing due to typo
2014-02-11 15:57:22 +00:00
Hunter Haugen
dacdfaac7f Merge pull request #218 from mediatemple/remove_trailing_whitespace
Remove trailing whitespace
2014-02-05 15:06:09 -08:00
Sharif Nassar
a972e0645b Remove trailing whitespace 2014-02-05 15:01:45 -08:00
Andrew Parker
5b85e7c39f Merge branch 'DavidS-broaden-pick-arguments2'
* DavidS-broaden-pick-arguments2:
  (PUP-638) Add a pick_default() function that always returns a value.
  (PUP-636) Ignore generated file
2014-01-29 09:28:48 -08:00
David Schmitt
52fcef573f (PUP-638) Add a pick_default() function that always returns a value.
This version of pick() does not error out, instead always returning at least
the last argument, even if that too has no "real" value.
2014-01-29 09:26:35 -08:00
David Schmitt
9346b108ce (PUP-636) Ignore generated file 2014-01-29 09:25:59 -08:00
Andrew Parker
a2e9d005c7 Merge pull request #215 from blkperl/add_root_home_to_mavericks
(PUP-1459) Add support for root_home on OS X 10.9
2014-01-28 10:52:58 -08:00
David Bishop
dbba655c10 (DOCUMENT-21) add docs for file_line to README.markdown
Without this, you have to look at the source file
(lib/puppet/type/file_line.rb) to know what it does. This adds that
documentation.
2014-01-25 13:30:50 -05:00
Henrik Lindberg
2c8450d830 (PUP-1195) Rephrase documentation for is_integer and is_numeric
The documentation contained references to future decisions about
functionality. 
Text rephrased for clarity.
2014-01-24 00:22:09 +01:00
Simon Effenberg
264dc9bbde (PUP-1195) Fix is_numeric/is_integer when checking non-string parameters
I expect a function called "is_numeric" or "is_integer" to check if a
variable is an integer or a number even if the variable passed by isn't
a string nor a number at all. Otherwise we should call them
is_string_a_number and is_string_an_integer and we have then to remove
the check for .is_a?(Number) and .is_a?(FixNum)

now checking also if it is a hex or octal number

improved/corrected checking for integer

* checking against Integer instead of Fixnum so that
  also Bignum is matching
* now .is_a? Integer is done first so this is quiet fast

Now many types of numerics are recognized.

1. Float/Integer values (signed or unsigned, with exponent or without)
2. octal and hex check
3. except hex numbers and the "0." in a float lower than 1 can be prefixed
   with a '0'.

whitespaces shouldn't be allowed as prefix/suffix

string representation of numbers should not contain any type of
whitespace.. the user is responsible to clean a string before checking
it..

fix documentation and added more checks

tried to be 99.9% backward compatible

* for now the decission is post poned if hex and octal numbers
  should be allowed or not (is_numeric)
* native Bignum is now also a valid integer class

fix problem with old 1.8 ruby and Hash.to_s/Array.to_s

In ruby < 1.9 array and hashes would be recognized as numeric
if they have a special format:

1.8:

  [1,2,3,4].to_s = "1234"
  {1=>2}.to_s    = "12"

1.9:

  [1,2,3,4].to_s = "[1, 2, 3, 4]"
  {1=>2}.to_s    = "{1=>2}"
2014-01-23 23:59:28 +01:00
Hunter Haugen
2cf6e3c0f3 Merge pull request #216 from ghoneycutt/enable_travis_fast_finish
Enable fast finish in Travis
2014-01-23 14:49:56 -08:00
Garrett Honeycutt
8f192a5a82 Enable fast finish in Travis
http://blog.travis-ci.com/2013-11-27-fast-finishing-builds/
2014-01-23 14:18:50 -05:00
William Van Hevelingen
fe676f0ac4 (PUP-1459) Add support for root_home on OS X 10.9
getent does not exist on 10.9 so this commit uses
dscacheutil to query the homedir for the root user.
2014-01-22 22:54:34 -08:00
Adrien Thebo
e49d356fbf Merge branch 'pull-201'
This closes GH-201.
2014-01-15 11:17:48 -08:00
Adrien Thebo
75341f01d9 (maint) Update ensure_package specs to confirm expected behavior
The previous behavior of the tests checked the behavior of the
underlying functions library when called with no arguments; this commit
updates the tests to conform to the functions API and test what happens
when a function is called with no args.
2014-01-15 11:04:03 -08:00
Adrien Thebo
686a05aea2 (maint) refactor ensure_packages for clarity 2014-01-15 11:03:49 -08:00
Tomas Doran
735db82bef Allow a single argument, rather than an array 2014-01-15 11:03:33 -08:00
Andrew Parker
01c9c3c979 Merge pull request #214 from zaphod42/maint/master/update-references-for-jira
(doc) Update to point to Jira
2013-12-26 09:36:44 -08:00
Andrew Parker
bce5b76f66 (doc) Update to point to Jira
Since we've moved from Redmine to Jira the links need to be updated so
that people know where to look for issues.

At the moment stdlib is being tracked with puppet in the PUP project.
This doesn't seem like a good, long term solution, but it is where we
are right now.
2013-12-23 15:35:08 -08:00
Adrien Thebo
b50385b623 Merge branch 'pull-209'
This closes GH-209
2013-12-20 15:04:18 -08:00
Adrien Thebo
7085472e69 (maint) Improve test coverage for prefix and suffix 2013-12-20 15:03:40 -08:00
Franco Catena
7991dd2073 Fix prefix exception message (Closes #23364) 2013-12-20 14:50:57 -08:00
Andrew Parker
799e968f5c (Maint) Update stubbing to work with facter 1.7.4
Facter 1.7.4 changed how it decides on what directory to look in for
facts.d based on the user it is running as. This stubs out that bit of
code to make it think it is running as root.
2013-12-18 14:46:54 -08:00
Andrew Parker
1cf4b04b33 Merge pull request #211 from jhoblitt/function_is_bool
(#23381) add is_bool() function
2013-12-18 10:49:39 -08:00