gem-fast 0.0.6 → 0.0.6.1

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.
data/README.md CHANGED
@@ -1 +1,22 @@
1
- Welcome!
1
+ # Welcome!
2
+
3
+ Gem-fast, let your gem installation swing!
4
+ see this blog: [为 gem install 按上翅膀 -- gem-fast](http://www.cnblogs.com/dazuiba/archive/2010/10/28/1863904.html)
5
+
6
+ ![Screen cast](http://images.cnblogs.com/cnblogs_com/dazuiba//gem-fast-1.jpg "gem-fast")
7
+
8
+
9
+ # Known Issue:
10
+
11
+ 1. Sometimes We need to expire local cache, i.e: latest_specs.4.8.gz
12
+ 2. When user cancel an installation, local cache is hafe-downloaded, this will break the next installation
13
+ 3. check curl installation before install gem-fast.gem
14
+ I need add a pre_install_book to Gem, but Rubygems have an bug here
15
+ see: [Gem.pre_install-does-not-working-as-it-named](http://help.rubygems.org/discussions/problems/378-gempre_install-does-not-working-as-it-named)
16
+
17
+ # TODO:
18
+
19
+ * Reacting the Caching strategy
20
+
21
+ 1. change cache folder from gem/cache to somewhere else(so that we do not need sudo as least )
22
+ 2. support mtime cacheing
@@ -3,6 +3,14 @@ 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
+
7
+ #Fix issue #1
8
+ if source_uri =~/gems\.github\.com/
9
+ source_uri = "http://gems.rubyforge.org/"
10
+ end
11
+ if !source_uri =~/\/$/
12
+ source_uri = source_uri + "/"
13
+ end
6
14
  CurlUnsafeDownloadStrategy.new(source_uri + "gems/#{spec.file_name}", spec.file_name).fetch
7
15
  end
8
16
 
@@ -138,4 +146,4 @@ module GemFast
138
146
  end
139
147
  end
140
148
 
141
- end
149
+ end
@@ -1,3 +1,3 @@
1
1
  module GemFast
2
- VERSION = '0.0.6'
3
- end
2
+ VERSION = '0.0.6.1'
3
+ end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-fast
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 85
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 6
10
- version: 0.0.6
10
+ - 1
11
+ version: 0.0.6.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - dazuiba
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-10-28 00:00:00 +08:00
19
+ date: 2010-11-14 00:00:00 +08:00
19
20
  default_executable:
20
21
  dependencies: []
21
22