rubyforge 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/rubyforge +61 -31
  2. metadata +2 -2
data/bin/rubyforge CHANGED
@@ -29,15 +29,15 @@ $VERBOSE = nil
29
29
  MODES
30
30
 
31
31
  setup()
32
- initializes your #{ RUBYFORGE_D } directory. you need to run this first
33
- before doing anything else.
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 #{ CONFIG_F } (or --username/--password
40
- options) and stores login cookie in #{ COOKIE_F }. this is required for
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 #{ CONFIG_F }.
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 #{ CONFIG_F }.
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 : 1000
152
- .rpm : 2000
153
- .zip : 3000
154
- .bz2 : 3100
155
- .gz : 3110
156
- .src.zip : 5000
157
- .src.bz2 : 5010
158
- .src.gz : 5020
159
- .src.rpm : 5100
160
- .src : 5900
161
- .jpg : 8000
162
- .txt : 8100
163
- .text : 8100
164
- .htm : 8200
165
- .html : 8200
166
- .pdf : 8300
167
- .oth : 9999
168
- .ebuild : 1300
169
- .exe : 1100
170
- .dmg : 1200
171
- .tar.gz : 5000
172
- .tgz : 5000
173
- .gem : 1400
174
- .pgp : 8150
175
- .sig : 8150
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.0
7
- date: 2005-11-06 00:00:00.000000 -07:00
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