| Age | Commit message (Collapse) | Author | 
 | 
(MODULES-1329) Allow member to look for array
 | 
 | 
Make the range function work with integers
 | 
 | 
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.
 | 
 | 
 | 
 | 
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').
 | 
 | 
Update to fix ensure_resource as well
 | 
 | 
It should NOT run if the future parser is enabled
 | 
 | 
 | 
 | 
4.3.x
 | 
 | 
Added correct converstions for PB and EB.
 | 
 | 
MODULES-1413 Add ability for member to take numeric objects
 | 
 | 
 | 
 | 
Conflicts:
	spec/acceptance/ensure_packages_spec.rb
	spec/acceptance/ensure_resource_spec.rb
 | 
 | 
Conflicts:
	spec/acceptance/ensure_packages_spec.rb
	spec/acceptance/ensure_resource_spec.rb
 | 
 | 
 | 
 | 
3.7, previous version throw different exception.  Wrapping in generic Exception catch all
 | 
 | 
 | 
 | 
which was not relavent to the host we were modifying
 | 
 | 
ruby and gem are not on the install path
 | 
 | 
 | 
 | 
that it was dealing with a string
 | 
 | 
* 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.
 | 
 | 
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
 | 
 | 
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)
 | 
 | 
 | 
 | 
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.
 | 
 | 
 | 
 | 
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.
 | 
 | 
These functions take advantage of IP fact information and AIX does not
appear to support dynamic interface detection in facter.
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
Add windows support and work around issue with SCP_TO on windows systems
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
Augeas isn't present on windows
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
- 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
 | 
 | 
 | 
 | 
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
 |