vls 0.2.0 → 0.3.0

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/bin/vls +0 -1
  3. data/lib/vls.rb +6 -1
  4. data/lib/vls/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 156b76c9d3fad33f88da4cb78eaeed04accca5fa
4
- data.tar.gz: 072dfd6ef6fe6d5ab72a5631f67393e7f1e84f4d
3
+ metadata.gz: 81d673c1c6e738320a8e6646567125284428f281
4
+ data.tar.gz: 542f4e44b0343e72221aa51682ecdc2757da2ae3
5
5
  SHA512:
6
- metadata.gz: e8147e9c43b2f44073541e3e152eb303ebd956065b15bfed8218682b58c0d0258f10d51212d50e5717d43b9652ce0b230dd6370811e51010e505f308793ebf0c
7
- data.tar.gz: cf350d5e982db2116474bab259d516cd38248f96b732ca70604bdcd79f104f053ffb7d5a8f3f5bf65ffbdcc63dd6ffe6473c96e197d2db296f1dadf334af3816
6
+ metadata.gz: 24247c19e7e81287520c072aac8eff9d5b7ad989d1960937fab71e2a4e624a3fa000112e1b64a17b461a38e47a19dcad00013c58113090c96519388bd3dbd92b
7
+ data.tar.gz: 2947a4d7bc1e6c23a629f7a2efeef3f0035adc3d5fdea662370973badf092024fe9fd84eb8a654b2501029491ac90a3c4a3ed77bcf1fd01dd4aed01cd7713770
data/bin/vls CHANGED
@@ -27,7 +27,6 @@ else
27
27
  end
28
28
  rescue LoadError, StandardError => error
29
29
  puts "Error loading #{pkg}, #{error.message}"
30
- puts Dir.getwd
31
30
  no_good = true
32
31
  end
33
32
  end
data/lib/vls.rb CHANGED
@@ -7,7 +7,12 @@ module VersionLS
7
7
  #Execute the core of the vls command and return an array of
8
8
  #[module, version] arrays.
9
9
  def self.vls
10
- modules.map { |mod| [mod, mod.const_get(:VERSION)] }
10
+ modules.map do |mod|
11
+ version = mod.const_get(:VERSION)
12
+ version = version::STRING if version.is_a?(Module)
13
+
14
+ [mod, version]
15
+ end
11
16
  end
12
17
 
13
18
  #Get a list of modules that have VERSION info.
@@ -1,3 +1,3 @@
1
1
  module VersionLS
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri