cgem 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/README.md +4 -2
- data/exe/cgem +9 -0
- data/lib/cgem/version.rb +1 -1
- data/lib/default.yml +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 206a514335b6e6a03e36b89a4e1c6311fc618e79
|
4
|
+
data.tar.gz: 73a345aeaef5fff0a35f5cd408c2df4f1b9148ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b41ad4e73701e131c926985a19a5d4022e43822170ec589a70d79d58a540eb894b71b9b1741d8c10bec25f523713bfbe7e8c67a9d00adc2a384718d1a376edc7
|
7
|
+
data.tar.gz: ffdc3d03f64043286b6e7a869f8753e77e92ad67aed45a347037b4857ad71fca77149a7782babe73e6c8228ff0a3644eddd12b7880b44b6f942769ae6ab0b4bd
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/exe/cgem
CHANGED
@@ -35,6 +35,15 @@ class CgemCLI < Thor
|
|
35
35
|
end
|
36
36
|
map '-v' => :version
|
37
37
|
map '--version' => :version
|
38
|
+
|
39
|
+
desc 'setup [SOURCE]', 'install by environment variable'
|
40
|
+
def setup(source = nil)
|
41
|
+
env_key = 'GEM_SOURCE'
|
42
|
+
source ||= ENV[env_key]
|
43
|
+
abort "Not specify gem source or environment variable #{env_key}" if source.nil?
|
44
|
+
abort "Please use source key in #{Cgem.gem_sources.keys}" if source.start_with?('http')
|
45
|
+
use(source)
|
46
|
+
end
|
38
47
|
end
|
39
48
|
|
40
49
|
CgemCLI.start
|
data/lib/cgem/version.rb
CHANGED
data/lib/default.yml
CHANGED