cgem 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/cgem +10 -0
- data/lib/cgem.rb +5 -2
- data/lib/cgem/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6a2bc830f03d5efb9fff5532162453121f58d3f465dd3c9f12d28b068964491
|
4
|
+
data.tar.gz: a57ad0e275decf5d965cea3fb7b66acbef2ef04fe384e9266662c21c066a2cb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2e46a54b7f7a175d2ca9dedbaeb427ad3870b208874e79a8ed3473130fa391607a91ff918358c88a33bfa222a8834bf7f761a53cfed3426f8bb0eabb9222100
|
7
|
+
data.tar.gz: af2204fee4a4fa59a140aadc9cec0cc99d194b9594862680b36eb8fe821fd23386ad163b86f8d8574943396c706f1b3948643140e56f3219011141700ef5fb9f
|
data/exe/cgem
CHANGED
@@ -49,6 +49,16 @@ class CgemCLI < Thor
|
|
49
49
|
abort "Please use source key in #{Cgem.gem_sources.keys}" if source.start_with?('http')
|
50
50
|
use(source)
|
51
51
|
end
|
52
|
+
|
53
|
+
desc 'path', 'show current cgem sources path'
|
54
|
+
def path
|
55
|
+
puts Cgem.sources_path
|
56
|
+
end
|
57
|
+
|
58
|
+
desc 'paths', 'show all supported cgem sources path in order'
|
59
|
+
def paths
|
60
|
+
pp Cgem.sources_paths
|
61
|
+
end
|
52
62
|
end
|
53
63
|
|
54
64
|
CgemCLI.start
|
data/lib/cgem.rb
CHANGED
@@ -17,8 +17,11 @@ module Cgem
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def sources_path
|
20
|
-
|
21
|
-
|
20
|
+
sources_paths.find { |p| File.exists?(p) }
|
21
|
+
end
|
22
|
+
|
23
|
+
def sources_paths
|
24
|
+
[env_sources_path, dot_sources_path, default_sources_path].compact
|
22
25
|
end
|
23
26
|
|
24
27
|
def env_sources_path
|
data/lib/cgem/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruijian Cao
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|