luigi 1.1.4 → 1.1.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: 79a4ab6ccec8c2f0a8b8734f685c05f2121e2b97
4
- data.tar.gz: 106b6c2b20b9d421304a8cb9a6f4e5ed6abe4974
3
+ metadata.gz: e7c9e11a53583d998ce70157f7ddf70bc1fc49ea
4
+ data.tar.gz: 04da2af0523134cb264adf2542435ac70a1ed5c2
5
5
  SHA512:
6
- metadata.gz: ffa7d0882d64d2571b7e942424e2fd7623ad6d5d623a63adecd02b4cabe93c94c3fc96d99d6f33f70fe6ccae1ead03072ba52acb593bc441994f1ef882729606
7
- data.tar.gz: cd8437c1404b2b77227e8f32324ba6d5a9eccff3b04f776b8f5578135a5d12a2e2f1d9f14bb1f93fd269aacb5d5353c5149cafe9c89abea6ad6dee5569efb9c1
6
+ metadata.gz: 2a19074269300514ddd1ee3b03f9daea9258c066e200b891fcabcbda156bdd63402f9ed2bdc6ae7092dd7da321ed7e1f1051d92cc9fae14a4eef0b54df31c44d
7
+ data.tar.gz: 904cfcfb34f2393cb7b40a24ed50fa15837af553cc6932fa497920c9c2f7c9fc5cf74c941f616c0184c02c5eeb74178c86ac1519f54fc0040e4e94601a41213f
@@ -1,3 +1,3 @@
1
1
  module Luigi
2
- VERSION = '1.1.4'
2
+ VERSION = '1.1.5'
3
3
  end
@@ -10,15 +10,14 @@ class LuigiProjectsList < Array
10
10
 
11
11
 
12
12
  def lookup_by_anything thing, value
13
- project_class = self[0].class
14
- raise "#{project_class} does not implement #{thing.to_s}()" unless project_class.instance_methods.include? thing
15
13
  raise "#{thing}" unless [:name, :date, :index].include? thing
16
14
 
17
- selection = self.map{|project|
18
- project if project.method(thing).call.to_s.downcase.include? value.to_s.downcase
15
+ selection = self.map{|project|
16
+ if project.instance_methods.includes? thing and project.method(thing).call.to_s.downcase.include? value.to_s.downcase
17
+ project
18
+ end
19
19
  }
20
20
  selection.select{|p|p}
21
-
22
21
  end
23
22
 
24
23
  def lookup_by_index index
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luigi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hendrik Sollich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.4.8
150
+ rubygems_version: 2.5.1
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: luigi - a plumber