geminabucket 0.0.3 → 0.0.4

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTU5NmQxM2U3MWNiN2M4ZGM2ZDQ2Zjk0NjQ5ZTkyM2YyOTg2ZTkxYw==
4
+ NzVjZDZmZThjMzQwY2ViM2JjMmM3NGIxYTNmMWQ2NGYxZWZlZTZiNA==
5
5
  data.tar.gz: !binary |-
6
- NjZkNjY2NTA3MjUzZmUxNjYyZTM3NDcwMDA0MmNmNmViZjUxNjczYw==
6
+ Yjg2ZmQ1ZGY4NDlmNTk2NjQwYTUyNjhlMTljZGM5OTZkYTc3ZDllYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmMyNGZmYWQ2OGE1MjAyMjJjMzAwODA3M2Q5MmRmOTUwMDUzY2Y5ZDk5YzVl
10
- MTU5YzRlZDc5MGZhY2FhMzQ3N2NmMzM4ODI5YmQxOTQ2OGM5NTAwNDJiYmEx
11
- ZjFjMGIxMWVkNGNiNTZiZmViNTc1ZDI0OTY0YmI0OGFiNGI0OGM=
9
+ ZDFkNjYyYjA4MWIwN2E4NzYwM2Y0MTc0NzcyYTY3ZmYyYTE5YWEzZGZlMDJh
10
+ NWI1OWUwNDkyMWNiYjcwMmM2MjVhNDMzOWE3NjJlYjhmNzFiNWJiZThkMmNk
11
+ M2EzMTJlODUyMGRiZTdlMDQxYjc2MGUxN2I4NjA4NWViN2E2YTI=
12
12
  data.tar.gz: !binary |-
13
- YWFiZjA5MTY5Y2QzODI4Njg1MmUyNGYwZTc5MzIwMTU0MTI3ODFhMjI0NTY3
14
- NzVmNzM3MWIzNDMxMjNiMjczYzE1ZTUwMWI5M2E5MDQ1YmU0MzkwYWZjOTMz
15
- NDk0MTlhNmRmMzEzZDI3YzMyY2I0Mzg4NTNkN2EwMDMxYTNjODc=
13
+ ZTc0YTBlMDIyNjU4MDM2MDFjYjA0OGJjNDJkOGIxNGY2NTA4NmJhYmYwOTkx
14
+ M2YxYmM0NWZjMTQ2OGJiOThkYTJmZDQzNjA4ZjI0ODIxNWM4YWVmNDgzYWE1
15
+ MjI2NDg1MTE2ODhhMGJjNmViYmUwZTg4N2VhZmFjZDVhMTlmODI=
data/Changelog.md CHANGED
@@ -1,4 +1,8 @@
1
1
 
2
+ ### 0.0.4 (2013-06-26)
3
+
4
+ * support for rubygems 1.8.3
5
+
2
6
  ### 0.0.3 (2013-06-26)
3
7
 
4
8
  * fix Rakefile
@@ -59,9 +59,16 @@ class Geminabucket::RemoteFetcher < Gem::RemoteFetcher
59
59
  say "Downloading gem #{gem_file_name}" if Gem.configuration.really_verbose
60
60
  remote_gem_path = source_uri + "gems/#{gem_file_name}"
61
61
 
62
- # this method will eventually dispatch to #fetch_s3
63
- self.cache_update_path remote_gem_path, local_gem_path
64
62
 
63
+ if self.respond_to? :cache_update_path
64
+ self.cache_update_path remote_gem_path, local_gem_path
65
+ else
66
+ # compatible with rubygems 1.8.3
67
+ gem = self.fetch_path remote_gem_path
68
+ File.open local_gem_path, 'wb' do |fp|
69
+ fp.write gem
70
+ end
71
+ end
65
72
 
66
73
  rescue Gem::RemoteFetcher::FetchError
67
74
  raise if spec.original_platform == spec.platform
@@ -17,5 +17,5 @@
17
17
 
18
18
 
19
19
  module Geminabucket
20
- VERSION = "0.0.3"
20
+ VERSION = "0.0.4"
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabucket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Midon