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 +8 -8
- data/Changelog.md +4 -0
- data/lib/geminabucket/remote_fetcher.rb +9 -2
- data/lib/geminabucket/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzVjZDZmZThjMzQwY2ViM2JjMmM3NGIxYTNmMWQ2NGYxZWZlZTZiNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yjg2ZmQ1ZGY4NDlmNTk2NjQwYTUyNjhlMTljZGM5OTZkYTc3ZDllYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDFkNjYyYjA4MWIwN2E4NzYwM2Y0MTc0NzcyYTY3ZmYyYTE5YWEzZGZlMDJh
|
10
|
+
NWI1OWUwNDkyMWNiYjcwMmM2MjVhNDMzOWE3NjJlYjhmNzFiNWJiZThkMmNk
|
11
|
+
M2EzMTJlODUyMGRiZTdlMDQxYjc2MGUxN2I4NjA4NWViN2E2YTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTc0YTBlMDIyNjU4MDM2MDFjYjA0OGJjNDJkOGIxNGY2NTA4NmJhYmYwOTkx
|
14
|
+
M2YxYmM0NWZjMTQ2OGJiOThkYTJmZDQzNjA4ZjI0ODIxNWM4YWVmNDgzYWE1
|
15
|
+
MjI2NDg1MTE2ODhhMGJjNmViYmUwZTg4N2VhZmFjZDVhMTlmODI=
|
data/Changelog.md
CHANGED
@@ -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
|
data/lib/geminabucket/version.rb
CHANGED