dl 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/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg/
data/Changelog ADDED
File without changes
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :rubygems
2
+
3
+ gem "patron"
4
+ gem "trollop"
data/Gemfile.lock ADDED
@@ -0,0 +1,10 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ patron (0.4.11)
5
+
6
+ PLATFORMS
7
+ ruby
8
+
9
+ DEPENDENCIES
10
+ patron
data/README.md ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require 'bundler'
2
+
3
+ Bundler::GemHelper.install_tasks
data/bin/dl ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ require 'trollop'
3
+
4
+ root = File.expand_path('../../', __FILE__)
5
+ lib = "#{root}/lib"
6
+ $:.unshift lib unless $:.include?(lib)
7
+
8
+ require 'dl'
9
+
10
+ opts = Trollop::options do
11
+ version "dl #{Dl::VERSION} (c) 2011 Mark Szymanski"
12
+ banner <<-EOS
13
+ dl is an extremely simplified version of wget/curl, written in Ruby.
14
+
15
+ Usage:
16
+
17
+ dl [options] <url>
18
+
19
+ Where [options] are:
20
+ EOS
21
+ end
data/dl.gemspec ADDED
@@ -0,0 +1,20 @@
1
+ root = File.expand_path('../', __FILE__)
2
+ lib = "#{root}/lib"
3
+ $:.unshift lib unless $:.include?(lib)
4
+
5
+ require 'dl'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'dl'
9
+ s.version = Dl::VERSION
10
+ s.homepage = 'http://github.com/mrman208/dl'
11
+ s.executables = ["dl"]
12
+ s.summary = "A simple tool to download files, almost like wget or curl. But much simpler."
13
+ s.files = `git ls-files`.split("\n")
14
+ s.authors = ["Mark Szymanski"]
15
+ s.email = "mrman208@me.com"
16
+ s.rubyforge_project = s.name
17
+
18
+ s.add_dependency "patron"
19
+ s.add_dependency "trollop"
20
+ end
data/lib/dl/dl.rb ADDED
@@ -0,0 +1,3 @@
1
+ module Dl
2
+
3
+ end
data/lib/dl.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'patron'
2
+
3
+ require 'dl/dl'
4
+
5
+ module Dl
6
+ VERSION = "0.0.1"
7
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dl
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Mark Szymanski
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-04-10 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: patron
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: trollop
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ description:
38
+ email: mrman208@me.com
39
+ executables:
40
+ - dl
41
+ extensions: []
42
+
43
+ extra_rdoc_files: []
44
+
45
+ files:
46
+ - .gitignore
47
+ - Changelog
48
+ - Gemfile
49
+ - Gemfile.lock
50
+ - README.md
51
+ - Rakefile
52
+ - bin/dl
53
+ - dl.gemspec
54
+ - lib/dl.rb
55
+ - lib/dl/dl.rb
56
+ homepage: http://github.com/mrman208/dl
57
+ licenses: []
58
+
59
+ post_install_message:
60
+ rdoc_options: []
61
+
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
76
+ requirements: []
77
+
78
+ rubyforge_project: dl
79
+ rubygems_version: 1.7.1
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: A simple tool to download files, almost like wget or curl. But much simpler.
83
+ test_files: []
84
+