cgem 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6e75d7d205180d6206282c24ed1522da0e18238
4
- data.tar.gz: d05ec1cd287ed251965dbb4e9774da25c645fc7c
3
+ metadata.gz: 0005d8546a07aeb3607798da5ed6440499ced780
4
+ data.tar.gz: 618b8d3cc95b79d76f437d0c4eabe96034cb8a4e
5
5
  SHA512:
6
- metadata.gz: 5e506c54ef07016a9c29a22aa021dc8a7f19273d47b157a409d3ddd56f631b17888673c2eca0a197c83cad39ed8815512c94909c6750ea4a48ba6d5d01a6b966
7
- data.tar.gz: c6ac6ad26708df84a2e503e8bcde21ea15288b3f93e41ed64bc685835b756922ece6ba4576464822895051426ca49f67043a90f8a893517386780d7ab2879268
6
+ metadata.gz: 55fd5727ff6ddc55d3f86da95ea63dbcde2238a009b11fd4da232f3583eea1a842a0caa549691fd95a5ffcb82a253a3083e10223cbdfde5daba9b61e4d4741d6
7
+ data.tar.gz: b149c8df383415fbeae3c810ad73778357261ed4e3af27317edbcfae0281913d31d3e18b922887f2c71c04f4eeb0553e6d15908d1a320d9b38f83bed18a51cac
data/README.md CHANGED
@@ -11,8 +11,11 @@ Install it yourself as:
11
11
  ## Usage
12
12
 
13
13
  ```bash
14
- cgem rchina
15
- cgem rubygems
14
+ cgem help
15
+ cgem use rchina
16
+ cgem use rubygems
17
+ cgem list
18
+ cgem
16
19
  ```
17
20
 
18
21
  ## Development
data/exe/cgem CHANGED
@@ -10,6 +10,8 @@ class CgemCLI < Thor
10
10
  def list
11
11
  puts Cgem.gem_sources
12
12
  end
13
+ map ls: :list
14
+ map '-l' => :list
13
15
 
14
16
  desc 'use SOURCE_KEY', 'use specified gem source'
15
17
  def use(source_key)
@@ -48,7 +48,7 @@ module Cgem
48
48
  if File.exists?(dot_gemrc)
49
49
  settings = YAML.load(File.read(dot_gemrc))
50
50
  end
51
- settings[:sources] = "#{source.chomp('/')}/"
51
+ settings[:sources] = ["#{source.chomp('/')}/"]
52
52
  File.write(dot_gemrc, settings.to_yaml)
53
53
  end
54
54
 
@@ -1,3 +1,3 @@
1
1
  module Cgem
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruijian Cao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-04 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler