srcforge 1.0.0 → 1.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/HISTORY.txt +5 -1
- data/docs/README.txt +20 -7
- data/srcforge.gemspec +31 -0
- metadata +4 -2
data/HISTORY.txt
CHANGED
data/docs/README.txt
CHANGED
@@ -13,15 +13,15 @@ and verified using ruby's digest/md5.
|
|
13
13
|
|
14
14
|
|
15
15
|
Use:
|
16
|
-
srcforge
|
17
|
-
|
16
|
+
srcforge -h
|
18
17
|
to obtain a list of the latest command-line switches.
|
19
18
|
|
19
|
+
If on windows and using cygwin, use "srcforge.cmd".
|
20
20
|
|
21
21
|
|
22
22
|
Common Usage:
|
23
23
|
|
24
|
-
> srcforge
|
24
|
+
> srcforge [options] <project>
|
25
25
|
|
26
26
|
where <project> is a valid sourceforge project, as named in the
|
27
27
|
http://sourceforge.net/projects/<project>.
|
@@ -34,7 +34,10 @@ That is, .exe's or .zip's for windows, and tar.gz files for others.
|
|
34
34
|
Example 1: Downloading binaries
|
35
35
|
---------
|
36
36
|
|
37
|
-
|
37
|
+
We'll use the project SCONS ( a python makefile system ) as a simple demo.
|
38
|
+
|
39
|
+
|
40
|
+
> srcforge scons
|
38
41
|
Using proxy 127.0.0.1:8118
|
39
42
|
Connecting to sourceforge...
|
40
43
|
Files to download:
|
@@ -50,7 +53,7 @@ Downloading from 'easynews.dl.sourceforge.net':
|
|
50
53
|
Example 2: Downloading source code only
|
51
54
|
---------
|
52
55
|
|
53
|
-
> srcforge
|
56
|
+
> srcforge scons -src
|
54
57
|
Using proxy 127.0.0.1:8118
|
55
58
|
Connecting to sourceforge...
|
56
59
|
Files to download:
|
@@ -67,7 +70,7 @@ Downloading from 'easynews.dl.sourceforge.net':
|
|
67
70
|
Example 3: Downloading everything for all platforms
|
68
71
|
---------
|
69
72
|
|
70
|
-
> srcforge
|
73
|
+
> srcforge scons -all
|
71
74
|
Using proxy 127.0.0.1:8118
|
72
75
|
Connecting to sourceforge...
|
73
76
|
Files to download:
|
@@ -89,7 +92,7 @@ Downloading from 'easynews.dl.sourceforge.net':
|
|
89
92
|
Example 4: Choose what to download
|
90
93
|
---------
|
91
94
|
|
92
|
-
> srcforge
|
95
|
+
> srcforge scons -all -ch
|
93
96
|
Using proxy 127.0.0.1:8118
|
94
97
|
Connecting to sourceforge...
|
95
98
|
Files to download:
|
@@ -100,6 +103,16 @@ Files to download:
|
|
100
103
|
5) scons-local-0.96.92.tar.gz
|
101
104
|
6) scons-local-0.96.92.zip
|
102
105
|
|
106
|
+
Choose one or more files to download:
|
107
|
+
(Use '1 3 4' to toggle file or '3-5' for toggling a range)
|
108
|
+
> 1 3
|
109
|
+
1) scons-0.96.92-1.noarch.rpm *YES*
|
110
|
+
2) scons-0.96.92.tar.gz
|
111
|
+
3) scons-0.96.92.win32.exe *YES*
|
112
|
+
4) scons-0.96.92.zip
|
113
|
+
5) scons-local-0.96.92.tar.gz
|
114
|
+
6) scons-local-0.96.92.zip
|
115
|
+
|
103
116
|
Choose one or more files to download:
|
104
117
|
(Use '1 3 4' to toggle file or '3-5' for toggling a range)
|
105
118
|
>
|
data/srcforge.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
|
3
|
+
spec = Gem::Specification.new do |spec|
|
4
|
+
spec.name = "srcforge"
|
5
|
+
spec.version = '1.0.1'
|
6
|
+
spec.author = "Gonzalo Garramuno"
|
7
|
+
spec.email = 'ggarram@advance.dsl.com.ar'
|
8
|
+
spec.homepage = 'http://www.rubyforge.org/projects/srcforge/'
|
9
|
+
spec.summary = 'Download tool for files at sourceforge.net.'
|
10
|
+
spec.executables = ['srcforge']
|
11
|
+
spec.files = ['bin/srcforge', 'lib/sourceforge.rb']
|
12
|
+
spec.description = <<-EOF
|
13
|
+
This script allows you to easily automate the downloading of
|
14
|
+
the latest version of any sourceforge project (as stored up
|
15
|
+
to 31/03/2006) from any of sourceforge server by having it
|
16
|
+
parse the web pages for the project and extract the latest
|
17
|
+
release.
|
18
|
+
It supports connecting through a proxy if either the
|
19
|
+
environment variable HTTP_PROXY or http_proxy is defined.
|
20
|
+
Also, downloads can be resumed like wget, in case the
|
21
|
+
download is abruptly terminated.
|
22
|
+
If .md5 checksums are available, they will also be downloaded
|
23
|
+
and verified using ruby's digest/md5.
|
24
|
+
EOF
|
25
|
+
spec.add_dependency("narf", ">= 0.7.3")
|
26
|
+
spec.add_dependency("getopt-declare", ">= 1.12")
|
27
|
+
spec.extra_rdoc_files = ["HISTORY.txt", "srcforge.gemspec"] + Dir.glob("docs/README.txt")
|
28
|
+
spec.has_rdoc = true
|
29
|
+
spec.rubyforge_project = 'srcforge'
|
30
|
+
spec.required_ruby_version = '>= 1.8.0'
|
31
|
+
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: srcforge
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2006-05-
|
6
|
+
version: 1.0.1
|
7
|
+
date: 2006-05-19 00:00:00 -03:00
|
8
8
|
summary: Download tool for files at sourceforge.net.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -31,6 +31,7 @@ files:
|
|
31
31
|
- bin/srcforge
|
32
32
|
- lib/sourceforge.rb
|
33
33
|
- HISTORY.txt
|
34
|
+
- srcforge.gemspec
|
34
35
|
- docs/README.txt
|
35
36
|
test_files: []
|
36
37
|
|
@@ -38,6 +39,7 @@ rdoc_options: []
|
|
38
39
|
|
39
40
|
extra_rdoc_files:
|
40
41
|
- HISTORY.txt
|
42
|
+
- srcforge.gemspec
|
41
43
|
- docs/README.txt
|
42
44
|
executables:
|
43
45
|
- srcforge
|