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 +4 -4
- data/README.md +1 -1
- data/lib/rearmed/monkey_patches/array.rb +2 -2
- data/lib/rearmed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 655eb84524a9f275d93c2e181f271ccba6847a51
|
4
|
+
data.tar.gz: 169038a57f8db2da2ef4e8815426116624404c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) ||
|
17
|
+
self.delete_at(self.index(item) || self.length)
|
18
18
|
else
|
19
19
|
self.delete_at(0)
|
20
20
|
end
|
data/lib/rearmed/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|