vls 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vls.rb +4 -9
  3. data/lib/vls/version.rb +1 -1
  4. data/vls.gemspec +1 -1
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39afadab4a5367cdce6232f5a156619a460331bc
4
- data.tar.gz: 5ac07e1189712e666441b61a9ba278ea7d27b1e2
3
+ metadata.gz: 49807930b088f5cbdaf31ee88f7a50f8eb8abf4a
4
+ data.tar.gz: 11fb65032cc71370bd6abfda51d7ee7ac85fb171
5
5
  SHA512:
6
- metadata.gz: 103eb4375e8491df6ae5ca52c14ddb7c46fe6c9ca8d1b3d4cfa8054b83f459cf8b770742b183ed4326c9b5d7e7d1829f173f3eab9677d232bf07bf54eac991bf
7
- data.tar.gz: 6e8b5cb1904e3a92c899e6c9d04b1e177a23a5a87bb9b8565a205aff0c9a1a6de718f3bf62148e4e469dc76296216cf060aaa807c62c8dca3a86ecf31a38b897
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
- mods = ObjectSpace.each_object(Module).
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
- mods
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
@@ -1,5 +1,5 @@
1
1
  module VersionLS
2
- STRING = VERSION = "0.4.0"
2
+ STRING = VERSION = "0.4.1"
3
3
 
4
4
  DESCRIPTION = "A CLI and Rails console utility that lists the versions of " +
5
5
  "modules used by the specified gems/ruby files or Rails project."
@@ -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 = "http://teuthida-technologies.com/"
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.0
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-08 00:00:00.000000000 Z
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: http://teuthida-technologies.com/
63
+ homepage: https://github.com/PeterCamilleri/vls
64
64
  licenses:
65
65
  - MIT
66
66
  metadata: {}