gem-fast 0.0.6.1 → 0.0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,13 +3,15 @@ module GemFast
3
3
 
4
4
  def download(spec, source_uri, install_dir = Gem.dir)
5
5
  return super unless scheme_supported?(source_uri)
6
-
6
+ source_uri = source_uri.to_s
7
7
  #Fix issue #1
8
8
  if source_uri =~/gems\.github\.com/
9
9
  source_uri = "http://gems.rubyforge.org/"
10
10
  end
11
- if !source_uri =~/\/$/
12
- source_uri = source_uri + "/"
11
+
12
+ if source_uri =~/\/$/
13
+ else
14
+ source_uri << "/"
13
15
  end
14
16
  CurlUnsafeDownloadStrategy.new(source_uri + "gems/#{spec.file_name}", spec.file_name).fetch
15
17
  end
@@ -1,3 +1,3 @@
1
1
  module GemFast
2
- VERSION = '0.0.6.1'
2
+ VERSION = '0.0.6.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-fast
3
3
  version: !ruby/object:Gem::Version
4
- hash: 85
4
+ hash: 83
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 6
10
- - 1
11
- version: 0.0.6.1
10
+ - 2
11
+ version: 0.0.6.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - dazuiba
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-14 00:00:00 +08:00
19
+ date: 2010-11-21 00:00:00 +08:00
20
20
  default_executable:
21
21
  dependencies: []
22
22