chsource 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb34ca284c81bbacefa93466a288e234212b7280
4
- data.tar.gz: ccf0010aeb04f7806b7b5c40b9f161501f9939b6
3
+ metadata.gz: 5c4fe89a473eb70d48b2090fb68ad6b75aa4db7e
4
+ data.tar.gz: 9fa72506cfd0e5ab745c436658e167299d795c70
5
5
  SHA512:
6
- metadata.gz: 4b5f62ed49be30ab557da738aac31a742f5ad1137e9a2bfd729c53dec024476f215710c85bfe9f5778459d53bbbeed0f8bd02f8a98e2dab0fbb73bb1710eaba8
7
- data.tar.gz: e116a5d7a4d690222a606faec06625717238c9a8dc2e2660af27d7cf303de57dadb10fabc8967ecff8e216fbc7b0d140d00938186f3c8ccb604d9e0d1e65fa05
6
+ metadata.gz: f2a20558eeba32e9e828676dcb8a52f02fc6257df8df2bd9ef77d78bb725180088a1afdaddb7dc1c0b5f73860c08ee1115683211cc65489906c785280d1377aa
7
+ data.tar.gz: 469b9b6ea89d70b5ba53aa7a480c7da83daa4c436656742ce7af90f34e8a4ca41a51eb555929fa6ce9bdd1d82741e98248aded02cfdf30e61d3f756dbfbafbcd
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Chsource
2
2
 
3
- Change Gemfile to use 3rd party sources quickly.
3
+ Make Gemfile to use 3rd party sources quickly.
4
4
 
5
5
  ![screen](http://ww2.sinaimg.cn/large/a4a89ff1jw1e7vljjfibxj20ds02pdga.jpg)
6
6
 
@@ -17,7 +17,7 @@ Usage: chsource SOURCE
17
17
 
18
18
  Examples:
19
19
  $ chsource taobao => source 'http://ruby.taobao.org'
20
- $ chsource gzruby => source 'http://gems.gzruby.com
20
+ $ chsource gzruby => source 'http://gems.gzruby.org
21
21
  $ chsource tsinghua => source 'http://mirrors.tuna.tsinghua.edu.cn/rubygems'
22
22
  $ chsource rubygems => source 'http://rubygems.org'
23
23
 
data/lib/chsource/cli.rb CHANGED
@@ -14,7 +14,7 @@ module Chsource
14
14
  end
15
15
 
16
16
  def self.no_gem_file
17
- if Dir.glob('Gemfile').size == 0
17
+ if !File.exist? 'Gemfile'
18
18
  puts "\e[31mCan't find Gemfile in current directory\e[0m"
19
19
  true
20
20
  else
@@ -32,7 +32,7 @@ module Chsource
32
32
 
33
33
  opts.separator "Examples:"
34
34
  opts.separator " $ chsource taobao => source 'http://ruby.taobao.org'"
35
- opts.separator " $ chsource gzruby => source 'http://gems.gzruby.com"
35
+ opts.separator " $ chsource gzruby => source 'http://gems.gzruby.org"
36
36
  opts.separator " $ chsource tsinghua => source 'http://mirrors.tuna.tsinghua.edu.cn/rubygems'"
37
37
  opts.separator " $ chsource rubygems => source 'http://rubygems.org'"
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Chsource
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chsource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hao Wei