vls 0.3.9 → 0.3.10

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/irbt.rb +18 -0
  3. data/lib/vls/version.rb +1 -1
  4. data/rakefile.rb +5 -0
  5. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a49330c044d7aa59a618e24eca4597b38c108eb1
4
- data.tar.gz: c3b7881265f7145f9ec409abf3cf9587a5ee394c
3
+ metadata.gz: f9d77aa8d282ad2c1a0d2553f6462067fd5b9e4f
4
+ data.tar.gz: 4748293fe59a54ce4b7cdfec31f9556f93ef7589
5
5
  SHA512:
6
- metadata.gz: 7a539421b278ebf477a63b4b5aa7ef1a1a82c2c52a7ffd44db89001cc269d80fcbf66704d3c09a206ab1290849310c87f59142607b186574cf45b62575c69cf5
7
- data.tar.gz: 3498cae24049d6fbdc58eb3df300470411b9739cb1433eced7306d97cecb6f2723a7bff1df4a8c753a0a59d0372ea2d1ef1e1fef929939a1b8af003e14b06994
6
+ metadata.gz: a99428a8ade549271202e0fa7ec7f10bbd0b910d92a4fc816da2227d2ef5d833b897e95e011d2e525c1a3b512b07fb947b9aa56d51d66da8597f75cd6c5bb89b
7
+ data.tar.gz: 48a34937a414d3729df68859842b097f77e791f73300bcd08b2aa941929a4b1f90eaf4e463919db79090ad6e4d46612934adc69207bc3c05e3645015609d7ae1
data/irbt.rb ADDED
@@ -0,0 +1,18 @@
1
+ # coding: utf-8
2
+ # An IRB + vls test bed
3
+
4
+ require 'irb'
5
+
6
+ puts "Starting an IRB console with vls loaded."
7
+
8
+ if ARGV[0] == 'local'
9
+ require_relative 'lib/vls'
10
+ puts "vls loaded locally: #{VersionLS::VERSION}"
11
+
12
+ ARGV.shift
13
+ else
14
+ require 'vls'
15
+ puts "vls loaded from gem: #{VersionLS::VERSION}"
16
+ end
17
+
18
+ IRB.start
@@ -1,5 +1,5 @@
1
1
  module VersionLS
2
- STRING = VERSION = "0.3.9"
2
+ STRING = VERSION = "0.3.10"
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."
@@ -33,6 +33,11 @@ task :reek do |t|
33
33
  `reek --no-color lib bin > reek.txt`
34
34
  end
35
35
 
36
+ desc "Fire up an IRB session with vls preloaded."
37
+ task :console do
38
+ system "ruby irbt.rb local"
39
+ end
40
+
36
41
  desc "What version of vls is this?"
37
42
  task :vers do |t|
38
43
  puts
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.3.9
4
+ version: 0.3.10
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-07-18 00:00:00.000000000 Z
11
+ date: 2016-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,7 @@ files:
52
52
  - LICENSE.txt
53
53
  - README.md
54
54
  - bin/vls
55
+ - irbt.rb
55
56
  - lib/vls.rb
56
57
  - lib/vls/monkey_patch.rb
57
58
  - lib/vls/version.rb