vls 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vls.rb +4 -9
- data/lib/vls/version.rb +1 -1
- data/vls.gemspec +1 -1
- 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: 49807930b088f5cbdaf31ee88f7a50f8eb8abf4a
|
4
|
+
data.tar.gz: 11fb65032cc71370bd6abfda51d7ee7ac85fb171
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64273d1ec85e5548a1be5ebea8a421138c3638ff99cf4b0cdf5dbf281be803b33a1484b52dbea86a3c64757c6f54524df1783a28874f9db6ed52d7d1e8aa1971
|
7
|
+
data.tar.gz: 7380182a82d6060ad986898935fd03ffd616b39a10f7f023d90a85f1e80addec2d585bf56189b96acf6ca70c84b4d8b1d73b2fa560d6df3f34e22b026110a1c3
|
data/lib/vls.rb
CHANGED
@@ -35,15 +35,10 @@ module VersionLS
|
|
35
35
|
#<br>Returns
|
36
36
|
#* An array of module objects.
|
37
37
|
def self.modules(filter)
|
38
|
-
|
39
|
-
select do |mod|
|
40
|
-
mod.const_defined?("VERSION") &&
|
41
|
-
mod.name.partition(filter)[1] != ""
|
42
|
-
end.
|
43
|
-
sort do |first, second|
|
44
|
-
first.name <=> second.name
|
45
|
-
end
|
38
|
+
regex = Regexp.new(filter)
|
46
39
|
|
47
|
-
|
40
|
+
ObjectSpace.each_object(Module)
|
41
|
+
.select {|mod| mod.const_defined?("VERSION") && mod.name =~ regex}
|
42
|
+
.sort {|first, second| first.name <=> second.name}
|
48
43
|
end
|
49
44
|
end
|
data/lib/vls/version.rb
CHANGED
data/vls.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.description = VersionLS::DESCRIPTION
|
13
13
|
spec.summary = "A version listing utility."
|
14
|
-
spec.homepage = "
|
14
|
+
spec.homepage = "https://github.com/PeterCamilleri/vls"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(tests)/}) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Camilleri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,7 +60,7 @@ files:
|
|
60
60
|
- rakefile.rb
|
61
61
|
- reek.txt
|
62
62
|
- vls.gemspec
|
63
|
-
homepage:
|
63
|
+
homepage: https://github.com/PeterCamilleri/vls
|
64
64
|
licenses:
|
65
65
|
- MIT
|
66
66
|
metadata: {}
|