iteraptor 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/lib/iteraptor/version.rb +1 -1
- data/lib/iteraptor.rb +3 -3
- 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: 7333782eaae52f82638bd82f741a1ac2cdec49af
|
4
|
+
data.tar.gz: 1fc1b09cee6edfd7f350d049a4a9d13905d649fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b37702ea08e4b0a9a63ad35670c50411c223f1db8425d63cebaee6dc09d9a631e11a0ec08b138fee87ceff1cbfefd981829fd5e770db7a439db6954237ab44b
|
7
|
+
data.tar.gz: fb4662a8024047f6269fd4fbc921fad75b289ce32f54061bebbd4409341b05933db16e32fba6dfe5f1079ab0c60dc675f5119d5dfc38304f89e35185e764f82c
|
data/.travis.yml
CHANGED
data/lib/iteraptor/version.rb
CHANGED
data/lib/iteraptor.rb
CHANGED
@@ -10,7 +10,7 @@ module Iteraptor
|
|
10
10
|
%i(cada mapa).each do |m|
|
11
11
|
define_method m do |root = nil, parent = nil, &λ|
|
12
12
|
return enum_for(m, root, parent) unless λ
|
13
|
-
send_to = [Hash, Array, Enumerable].detect
|
13
|
+
send_to = [Hash, Array, Enumerable].detect(&method(:is_a?))
|
14
14
|
send_to && send("#{m}_in_#{send_to.name.downcase}", root || self, parent, &λ)
|
15
15
|
end
|
16
16
|
end
|
@@ -102,8 +102,8 @@ module Iteraptor
|
|
102
102
|
##############################################################################
|
103
103
|
### helpers
|
104
104
|
def leaf? e
|
105
|
-
[Iteraptor, Enumerable].none?
|
105
|
+
[Iteraptor, Enumerable].none?(&e.method(:is_a?))
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
require
|
109
|
+
require 'iteraptor/greedy'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iteraptor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksei Matiushkin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|