rubyforge 1.0.2 → 1.0.3
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/History.txt +5 -0
- data/Rakefile +3 -2
- data/lib/rubyforge.rb +3 -3
- data/lib/rubyforge/client.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
|
+
$:.unshift 'lib'
|
4
|
+
require 'rubyforge'
|
5
|
+
|
3
6
|
begin
|
4
7
|
require 'hoe'
|
5
8
|
rescue LoadError
|
@@ -8,8 +11,6 @@ rescue LoadError
|
|
8
11
|
please install it via rubygems."
|
9
12
|
end
|
10
13
|
|
11
|
-
$:.unshift 'lib'
|
12
|
-
|
13
14
|
abort "you _must_ install this gem to release it" if
|
14
15
|
ENV['VERSION'] && ENV['VERSION'] != RubyForge::VERSION
|
15
16
|
|
data/lib/rubyforge.rb
CHANGED
@@ -11,7 +11,7 @@ $TESTING = false unless defined? $TESTING
|
|
11
11
|
class RubyForge
|
12
12
|
|
13
13
|
# :stopdoc:
|
14
|
-
VERSION = '1.0.
|
14
|
+
VERSION = '1.0.3'
|
15
15
|
HOME = ENV["HOME"] || ENV["HOMEPATH"] || File::expand_path("~")
|
16
16
|
RUBYFORGE_D = File::join HOME, ".rubyforge"
|
17
17
|
CONFIG_F = File::join RUBYFORGE_D, "user-config.yml"
|
@@ -189,8 +189,8 @@ class RubyForge
|
|
189
189
|
|
190
190
|
re = %r/personal\s+page\s+for:\s+#{ Regexp.escape username }/iom
|
191
191
|
unless response =~ re
|
192
|
-
warn("%s:%d: warning: potentially failed login using %s
|
193
|
-
[__FILE__,__LINE__,username
|
192
|
+
warn("%s:%d: warning: potentially failed login using %s" %
|
193
|
+
[__FILE__, __LINE__, username]) unless $TESTING
|
194
194
|
end
|
195
195
|
|
196
196
|
response
|
data/lib/rubyforge/client.rb
CHANGED
@@ -21,7 +21,7 @@ class Net::HTTP
|
|
21
21
|
alias :old_use_ssl= :use_ssl=
|
22
22
|
def use_ssl= flag
|
23
23
|
self.old_use_ssl = flag
|
24
|
-
@ssl_context.tmp_dh_callback = proc {}
|
24
|
+
@ssl_context.tmp_dh_callback = proc {} if @ssl_context
|
25
25
|
end
|
26
26
|
end unless Net::HTTP.public_instance_methods.include? "old_use_ssl="
|
27
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyforge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-
|
14
|
+
date: 2009-02-26 00:00:00 -08:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|