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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a2d224b5bd2a1dc52a33ec80ef9ee26d91975c1
4
- data.tar.gz: 4b6d3ad8d728849725c85395b30d68812dc026c6
3
+ metadata.gz: 7333782eaae52f82638bd82f741a1ac2cdec49af
4
+ data.tar.gz: 1fc1b09cee6edfd7f350d049a4a9d13905d649fc
5
5
  SHA512:
6
- metadata.gz: c09cb4f5408a425d3f0df9f1df14a98da347838baf5b6d28b5e2e434b7b18706391ee9f0f1ce6505c600e0dc0446b743f36b66d16518178d49cabf6924318d55
7
- data.tar.gz: a138d6f5ff0cdf6d80901d5d52c960dcb5e44c94d15b6456b75ef0cc99aa8d7a1b1d1426ae9cd9ee6d8617fb91fe9e53f8ab456aea3d7b3ea5d9b4458dec7c10
6
+ metadata.gz: 2b37702ea08e4b0a9a63ad35670c50411c223f1db8425d63cebaee6dc09d9a631e11a0ec08b138fee87ceff1cbfefd981829fd5e770db7a439db6954237ab44b
7
+ data.tar.gz: fb4662a8024047f6269fd4fbc921fad75b289ce32f54061bebbd4409341b05933db16e32fba6dfe5f1079ab0c60dc675f5119d5dfc38304f89e35185e764f82c
data/.travis.yml CHANGED
@@ -3,3 +3,6 @@ rvm:
3
3
  - 2.1.8
4
4
  - 2.2.0
5
5
  before_install: gem install bundler -v 1.11.2
6
+ addons:
7
+ code_climate:
8
+ repo_token: 1afbd216b9257514ff1afcaa7b8a121bc83e5238b4c3c6f4dad80107c4ea487d
@@ -1,3 +1,3 @@
1
1
  module Iteraptor
2
- VERSION = "0.3.4"
2
+ VERSION = '0.3.5'
3
3
  end
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 { |c| is_a? c }
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? { |c| e.is_a? c }
105
+ [Iteraptor, Enumerable].none?(&e.method(:is_a?))
106
106
  end
107
107
  end
108
108
 
109
- require "iteraptor/greedy"
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
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-05-18 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler