rubyforge 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/rubyforge.rb +6 -6
- metadata +3 -3
data/History.txt
CHANGED
data/lib/rubyforge.rb
CHANGED
@@ -25,7 +25,7 @@ end
|
|
25
25
|
class RubyForge
|
26
26
|
|
27
27
|
# :stopdoc:
|
28
|
-
VERSION = "0.3.
|
28
|
+
VERSION = "0.3.2"
|
29
29
|
HOME = ENV["HOME"] || ENV["HOMEPATH"] || File::expand_path("~")
|
30
30
|
RUBYFORGE_D = File::join HOME, ".rubyforge"
|
31
31
|
CONFIG_F = File::join RUBYFORGE_D, "config.yml"
|
@@ -98,10 +98,10 @@ class RubyForge
|
|
98
98
|
html = URI.parse("http://rubyforge.org/frs/?group_id=#{group_id}").read
|
99
99
|
|
100
100
|
package = nil
|
101
|
-
html.scan(/<h3
|
101
|
+
html.scan(/<h3>[^<]+|release_id=\d+">[^>]+|filemodule_id=\d+/).each do |s|
|
102
102
|
case s
|
103
|
-
when /<h3>([
|
104
|
-
package = $1
|
103
|
+
when /<h3>([^<]+)/ then
|
104
|
+
package = $1.strip
|
105
105
|
when /release_id=(\d+)">([^<]+)/ then
|
106
106
|
data["release_ids"][package][$2] = $1.to_i
|
107
107
|
when /filemodule_id=(\d+)/ then
|
@@ -172,7 +172,7 @@ class RubyForge
|
|
172
172
|
|
173
173
|
group_id = lookup "group", group_id
|
174
174
|
package_id = lookup "package", package_id
|
175
|
-
userfile = open userfile
|
175
|
+
userfile = open userfile, 'rb'
|
176
176
|
release_date = @config["release_date"]
|
177
177
|
type_id = @config["type_id"]
|
178
178
|
processor_id = @config["processor_id"]
|
@@ -241,7 +241,7 @@ class RubyForge
|
|
241
241
|
|
242
242
|
page = "/frs/admin/editrelease.php?group_id=#{group_id}&release_id=#{release_id}&package_id=#{package_id}"
|
243
243
|
|
244
|
-
userfile = open userfile
|
244
|
+
userfile = open userfile, 'rb'
|
245
245
|
|
246
246
|
type_id ||= userfile.path[%r|\.[^\./]+$|]
|
247
247
|
type_id = lookup "type", type_id
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0.7
|
3
3
|
specification_version: 1
|
4
4
|
name: rubyforge
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2006-
|
6
|
+
version: 0.3.2
|
7
|
+
date: 2006-11-29 00:00:00 -08:00
|
8
8
|
summary: A simplistic script which automates a limited set of rubyforge operations
|
9
9
|
require_paths:
|
10
10
|
- lib
|