lapidarius 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/lib/lapidarius/gem.rb +1 -1
- data/lib/lapidarius/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff76db56666ffeb393cb550d2330e6474c35888cea31272dbf308dd2927d49d8
|
4
|
+
data.tar.gz: a4d77dac2d72edcd10c1fc65a11865f802c4eb02344612540b0bd0b4e988821a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4130674543f11ba5410bd4837f26bc52d0a938066170c7c268870b753b77ef63b865da0038f75ae655267882ba4ed451d8fa0d679823d94bd3cd24953f59cd2
|
7
|
+
data.tar.gz: c04afafc8ba7dfae4dd7066287d4638c2e942f280851347463630d9f8f29a898bac68ce6b47c2d9b738e9891e3e92ff42b7519efc5742fd9e3e017f7519a1c4f
|
data/README.md
CHANGED
@@ -34,7 +34,7 @@ This library invokes the `Gem::Commands::DependencyCommand` class recursively to
|
|
34
34
|
Both runtime and development dependencies are counted (identical dependencies are counted once), but just the former are printed on screen:
|
35
35
|
|
36
36
|
```shell
|
37
|
-
|
37
|
+
lapidarius sinatra
|
38
38
|
sinatra (2.0.0)
|
39
39
|
├── mustermann (~> 1.0)
|
40
40
|
├── rack (~> 2.0)
|
@@ -49,7 +49,7 @@ sinatra (2.0.0)
|
|
49
49
|
By default this library scans for the first version `>= 0` found at [rubygems.org](https://rubygems.org/).
|
50
50
|
In case you are interested on a specific version just specify the `-v` option:
|
51
51
|
```shell
|
52
|
-
|
52
|
+
lapidarius sinatra -v 1.4.7
|
53
53
|
sinatra (1.4.7)
|
54
54
|
├── rack (~> 1.5)
|
55
55
|
├── rack-protection (~> 1.4)
|
@@ -60,9 +60,15 @@ sinatra (1.4.7)
|
|
60
60
|
```
|
61
61
|
|
62
62
|
### Remote
|
63
|
-
By default this library scan for local gems, if
|
63
|
+
By default this library scan for local gems, warning if the gem is not found:
|
64
64
|
```shell
|
65
|
-
|
65
|
+
lapidarius roda -v 3.3.0
|
66
|
+
No gems found matching roda (= 3.0.0)
|
67
|
+
```
|
68
|
+
|
69
|
+
If you want to scan for remote gems specify the `-r` option (be aware of slowness):
|
70
|
+
```shell
|
71
|
+
lapidarius roda -v 3.3.0 -r
|
66
72
|
roda (3.3.0)
|
67
73
|
└── rack (>= 0)
|
68
74
|
|
data/lib/lapidarius/gem.rb
CHANGED
@@ -12,7 +12,7 @@ module Lapidarius
|
|
12
12
|
|
13
13
|
def self.factory(token)
|
14
14
|
token.match(/^No gems found matching/) do |m|
|
15
|
-
fail NotInstalledError, token
|
15
|
+
fail NotInstalledError, token.gsub(/\/|\^|\$/, '')
|
16
16
|
end
|
17
17
|
token.match(/Gem ([a-zA-Z0-9\-_]+)-(.+)/) do |m|
|
18
18
|
return new(name: m[1], version: m[2])
|
data/lib/lapidarius/version.rb
CHANGED