vls 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/vls +9 -1
  3. data/lib/vls/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb8fe6dd16265afd16a80dc8e247f38c1af14749
4
- data.tar.gz: 08ca63f18aff58296f241af031c092e9461bc476
3
+ metadata.gz: 156b76c9d3fad33f88da4cb78eaeed04accca5fa
4
+ data.tar.gz: 072dfd6ef6fe6d5ab72a5631f67393e7f1e84f4d
5
5
  SHA512:
6
- metadata.gz: df438ac82ba7e11e032dd31c94cf2a317fc3a5b7909b63093eb9487d886d9598915b29ca405aafec0ef89c4df36d48c69217765b18800d85ecfb6e63f28e14cf
7
- data.tar.gz: 1fd6664a183cf0afd143d53f0796ef5e4f30909b910147ec3116ab4c2ae49e02184a0337ca6d7cb98ab81be23ebc98ec40298b208760b2bc6ada55f53ffe5183
6
+ metadata.gz: e8147e9c43b2f44073541e3e152eb303ebd956065b15bfed8218682b58c0d0258f10d51212d50e5717d43b9652ce0b230dd6370811e51010e505f308793ebf0c
7
+ data.tar.gz: cf350d5e982db2116474bab259d516cd38248f96b732ca70604bdcd79f104f053ffb7d5a8f3f5bf65ffbdcc63dd6ffe6473c96e197d2db296f1dadf334af3816
data/bin/vls CHANGED
@@ -12,14 +12,22 @@ if ARGV.empty?
12
12
  puts "Usage template:"
13
13
  puts "$ vls <names>"
14
14
  puts " <names> are gems/files to be required before modules are listed."
15
+ puts
16
+ puts "Note:"
17
+ puts " To specify a file instead of a gem, a '.rb' extension is required."
15
18
  else
16
19
  no_good = false
17
20
 
18
21
  ARGV.each do |pkg|
19
22
  begin
20
- require pkg
23
+ if pkg.downcase.end_with?('.rb')
24
+ require Dir.getwd + '/' + pkg
25
+ else
26
+ require pkg
27
+ end
21
28
  rescue LoadError, StandardError => error
22
29
  puts "Error loading #{pkg}, #{error.message}"
30
+ puts Dir.getwd
23
31
  no_good = true
24
32
  end
25
33
  end
data/lib/vls/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VersionLS
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.0
4
+ version: 0.2.0
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-05-10 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler