rearmed 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b89bebeea7547a401cc55438789b46e09e82177
4
- data.tar.gz: eb9048e4ee97652b778d424422969c3e73e6924e
3
+ metadata.gz: 655eb84524a9f275d93c2e181f271ccba6847a51
4
+ data.tar.gz: 169038a57f8db2da2ef4e8815426116624404c13
5
5
  SHA512:
6
- metadata.gz: 2d5d35e487207fe314f491965e7d9732b675da554dc49657dca0850aba11507aa681d50c3b75c3fde090c20f75edbf763f654363a239087a682c47e700f7a4f3
7
- data.tar.gz: ad301662615d17735b59308291751a728ffa4fc24c306cb21c676c2b6fa0b9a37650f37f349b08272597bc92615b384ba41f1fb2cc8e64427380892e0c7912f8
6
+ metadata.gz: 839a0b61155017c46bc0152afaf6479f6e9d2deb46f511fd84d686566adc354f279910401f7eff39b72d877e662b9a185ba04cea77f39e97959eaec6292b6f62
7
+ data.tar.gz: cf24351c3bffc5e675a19e48c93f741559129c9d20e5596e0957dce6edaaa274e624ee779d579116a4078ad2868602414bde5780f3cc5ac9ade483bd8d706d62
data/README.md CHANGED
@@ -77,7 +77,7 @@ my_var.in?(1,2,3) # or with splat arguments
77
77
  # or without monkey patch: Rearmed.valid_integer?('123')
78
78
 
79
79
  '123.123'.valid_float?
80
- # or without monkey patch: Rearmed.valid_float?('123')
80
+ # or without monkey patch: Rearmed.valid_float?('123.123')
81
81
 
82
82
  'true'.to_bool
83
83
  # or without monkey patch: Rearmed.to_bool('true')
@@ -12,9 +12,9 @@ Array.module_eval do
12
12
  if block_given? && !no_arg_passed
13
13
  raise BothArgAndBlockError
14
14
  elsif block_given?
15
- self.delete_at(self.index{|x| yield(x)})
15
+ self.delete_at(self.index{|x| yield(x)} || self.length)
16
16
  elsif item || !no_arg_passed
17
- self.delete_at(self.index(item) || array.length)
17
+ self.delete_at(self.index(item) || self.length)
18
18
  else
19
19
  self.delete_at(0)
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Rearmed
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rearmed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-18 00:00:00.000000000 Z
11
+ date: 2016-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake