geminabox 0.2.11 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of geminabox might be problematic. Click here for more details.
- data/lib/rubygems/commands/inabox_command.rb +8 -3
- metadata +4 -4
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'uri'
|
1
2
|
require 'yaml'
|
2
3
|
|
3
4
|
class Gem::Commands::InaboxCommand < Gem::Command
|
@@ -50,10 +51,14 @@ class Gem::Commands::InaboxCommand < Gem::Command
|
|
50
51
|
end
|
51
52
|
|
52
53
|
def send_gem
|
53
|
-
|
54
|
+
# sanitize printed URL if a password is present
|
55
|
+
url = URI.parse(geminabox_host)
|
56
|
+
url_for_presentation = url.clone
|
57
|
+
url_for_presentation.password = '***' if url_for_presentation.password
|
58
|
+
|
59
|
+
say "Pushing #{File.split(@gemfile).last} to #{url_for_presentation}..."
|
54
60
|
|
55
61
|
File.open(@gemfile, "rb") do |file|
|
56
|
-
url = URI.parse(geminabox_host)
|
57
62
|
request_body, request_headers = Multipart::MultipartPost.new.prepare_query("file" => file)
|
58
63
|
|
59
64
|
proxy.start(url.host, url.port) {|con|
|
@@ -151,6 +156,6 @@ class Gem::Commands::InaboxCommand < Gem::Command
|
|
151
156
|
query = fp.collect {|p| "--" + BOUNDARY + "\r\n" + p.to_multipart }.join("") + "--" + BOUNDARY + "--"
|
152
157
|
return query, HEADER
|
153
158
|
end
|
154
|
-
end
|
159
|
+
end
|
155
160
|
end
|
156
161
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geminabox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 13
|
10
|
+
version: 0.2.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Lea
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-22 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|