rubyforge 0.0.0 → 0.0.1
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/bin/rubyforge +61 -31
- metadata +2 -2
data/bin/rubyforge
CHANGED
|
@@ -29,15 +29,15 @@ $VERBOSE = nil
|
|
|
29
29
|
MODES
|
|
30
30
|
|
|
31
31
|
setup()
|
|
32
|
-
initializes your
|
|
33
|
-
|
|
32
|
+
initializes your .rubyforge directory. you need to run this first before
|
|
33
|
+
doing anything else.
|
|
34
34
|
|
|
35
35
|
example :
|
|
36
36
|
#{ PROGRAM } setup
|
|
37
37
|
|
|
38
38
|
login()
|
|
39
|
-
sends username and password from
|
|
40
|
-
options) and stores login cookie in
|
|
39
|
+
sends username and password from config.yml (or --username/--password
|
|
40
|
+
options) and stores login cookie in cookie.dat. this is required for
|
|
41
41
|
subsquent operations work.
|
|
42
42
|
|
|
43
43
|
example :
|
|
@@ -53,7 +53,7 @@ $VERBOSE = nil
|
|
|
53
53
|
|
|
54
54
|
notes :
|
|
55
55
|
in order to use group_ids by name, rather than number, you must edit the
|
|
56
|
-
rubyforge[group_ids] translation table in your
|
|
56
|
+
rubyforge[group_ids] translation table in your config.yml.
|
|
57
57
|
|
|
58
58
|
add_release(group_id, package_id, release_name, userfile)
|
|
59
59
|
release a file as release_name under the specified group_id and
|
|
@@ -67,7 +67,7 @@ $VERBOSE = nil
|
|
|
67
67
|
notes :
|
|
68
68
|
in order to use group_ids and package_ids by name, rather than number,
|
|
69
69
|
you must edit the rubyforge[group_ids] and rubyforge[package_ids]
|
|
70
|
-
translation tables in your
|
|
70
|
+
translation tables in your config.yml.
|
|
71
71
|
|
|
72
72
|
delete_package(group_id, package_name)
|
|
73
73
|
deletes a package and all it's files.
|
|
@@ -76,6 +76,34 @@ $VERBOSE = nil
|
|
|
76
76
|
#{ PROGRAM } delete_package codeforpeople.com traits
|
|
77
77
|
#{ PROGRAM } delete_package 1024 traits
|
|
78
78
|
|
|
79
|
+
NOTES
|
|
80
|
+
|
|
81
|
+
- you can determine the group_id and package_id of projects and packages by
|
|
82
|
+
|
|
83
|
+
login ->
|
|
84
|
+
my page tab ->
|
|
85
|
+
select a project link from 'my projects' ->
|
|
86
|
+
files tab ->
|
|
87
|
+
admin link (not the admin tab!) ->
|
|
88
|
+
|
|
89
|
+
now you'll be at page listing your packages in this project.
|
|
90
|
+
near the bottom you'll see links to 'add a release' or 'edit a
|
|
91
|
+
release' - hover over the url and you'll notice the query
|
|
92
|
+
string, which looks something like
|
|
93
|
+
|
|
94
|
+
?package_id=1242&group_id=1024
|
|
95
|
+
|
|
96
|
+
and that's what you need to know
|
|
97
|
+
|
|
98
|
+
TODO
|
|
99
|
+
|
|
100
|
+
- scrape rubyforge to auto-configure group_id and package_ids.
|
|
101
|
+
- objectify the script. it's procedural butchery attm.
|
|
102
|
+
- add error checking. this requires screen scraping to see of an operation
|
|
103
|
+
succeeded since 200 is returned from rubyforge even for failed operations
|
|
104
|
+
and only the html text reveals the status.
|
|
105
|
+
- add more functionality.
|
|
106
|
+
|
|
79
107
|
OPTIONS
|
|
80
108
|
|
|
81
109
|
global :
|
|
@@ -148,31 +176,33 @@ $VERBOSE = nil
|
|
|
148
176
|
# mapping file exts to rubyforge ids
|
|
149
177
|
#
|
|
150
178
|
type_ids :
|
|
151
|
-
.deb
|
|
152
|
-
.rpm
|
|
153
|
-
.zip
|
|
154
|
-
.bz2
|
|
155
|
-
.gz
|
|
156
|
-
.src.zip
|
|
157
|
-
.src.bz2
|
|
158
|
-
.src.
|
|
159
|
-
.src.
|
|
160
|
-
.src
|
|
161
|
-
.
|
|
162
|
-
.
|
|
163
|
-
.
|
|
164
|
-
.
|
|
165
|
-
.
|
|
166
|
-
.
|
|
167
|
-
.
|
|
168
|
-
.
|
|
169
|
-
.
|
|
170
|
-
.
|
|
171
|
-
.
|
|
172
|
-
.
|
|
173
|
-
.
|
|
174
|
-
.
|
|
175
|
-
.
|
|
179
|
+
.deb : 1000
|
|
180
|
+
.rpm : 2000
|
|
181
|
+
.zip : 3000
|
|
182
|
+
.bz2 : 3100
|
|
183
|
+
.gz : 3110
|
|
184
|
+
.src.zip : 5000
|
|
185
|
+
.src.bz2 : 5010
|
|
186
|
+
.src.tar.bz2 : 5010
|
|
187
|
+
.src.gz : 5020
|
|
188
|
+
.src.tar.gz : 5020
|
|
189
|
+
.src.rpm : 5100
|
|
190
|
+
.src : 5900
|
|
191
|
+
.jpg : 8000
|
|
192
|
+
.txt : 8100
|
|
193
|
+
.text : 8100
|
|
194
|
+
.htm : 8200
|
|
195
|
+
.html : 8200
|
|
196
|
+
.pdf : 8300
|
|
197
|
+
.oth : 9999
|
|
198
|
+
.ebuild : 1300
|
|
199
|
+
.exe : 1100
|
|
200
|
+
.dmg : 1200
|
|
201
|
+
.tar.gz : 5000
|
|
202
|
+
.tgz : 5000
|
|
203
|
+
.gem : 1400
|
|
204
|
+
.pgp : 8150
|
|
205
|
+
.sig : 8150
|
|
176
206
|
#
|
|
177
207
|
# map processor names to rubyforge ids
|
|
178
208
|
#
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: rubyforge
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.0.
|
|
7
|
-
date: 2005-11-
|
|
6
|
+
version: 0.0.1
|
|
7
|
+
date: 2005-11-09 00:00:00.000000 -07:00
|
|
8
8
|
summary: rubyforge
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|