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 +4 -4
- data/lib/luigi/version.rb +1 -1
- data/lib/luigi_projects_list.rb +4 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7c9e11a53583d998ce70157f7ddf70bc1fc49ea
|
4
|
+
data.tar.gz: 04da2af0523134cb264adf2542435ac70a1ed5c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a19074269300514ddd1ee3b03f9daea9258c066e200b891fcabcbda156bdd63402f9ed2bdc6ae7092dd7da321ed7e1f1051d92cc9fae14a4eef0b54df31c44d
|
7
|
+
data.tar.gz: 904cfcfb34f2393cb7b40a24ed50fa15837af553cc6932fa497920c9c2f7c9fc5cf74c941f616c0184c02c5eeb74178c86ac1519f54fc0040e4e94601a41213f
|
data/lib/luigi/version.rb
CHANGED
data/lib/luigi_projects_list.rb
CHANGED
@@ -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
|
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
|
+
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-
|
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.
|
150
|
+
rubygems_version: 2.5.1
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: luigi - a plumber
|