dl 0.0.1 → 0.0.2

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.
Files changed (6) hide show
  1. data/Changelog +9 -0
  2. data/README.md +5 -0
  3. data/bin/dl +3 -0
  4. data/lib/dl/dl.rb +5 -0
  5. data/lib/dl.rb +1 -1
  6. metadata +2 -2
data/Changelog CHANGED
@@ -0,0 +1,9 @@
1
+ = 0.0.1 4/10/11
2
+
3
+ * Initial release
4
+
5
+ * Doesn't do anything, yet
6
+
7
+ = 0.0.2 4/10/11
8
+
9
+ * Actually does something, but only outputs raw data
data/README.md CHANGED
@@ -0,0 +1,5 @@
1
+ Dl is a super-simple file downloading utility, similar to wget/curl.
2
+
3
+ It doesn't do anything, yet. But you can still install it like this:
4
+
5
+ gem install dl
data/bin/dl CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+
2
3
  require 'trollop'
3
4
 
4
5
  root = File.expand_path('../../', __FILE__)
@@ -19,3 +20,5 @@ Usage:
19
20
  Where [options] are:
20
21
  EOS
21
22
  end
23
+
24
+ Dl::download ARGV[0]
data/lib/dl/dl.rb CHANGED
@@ -1,3 +1,8 @@
1
1
  module Dl
2
+ def self.download(url)
3
+ session = Patron::Session.new
2
4
 
5
+ response = session.get url
6
+ puts response.body
7
+ end
3
8
  end
data/lib/dl.rb CHANGED
@@ -3,5 +3,5 @@ require 'patron'
3
3
  require 'dl/dl'
4
4
 
5
5
  module Dl
6
- VERSION = "0.0.1"
6
+ VERSION = "0.0.2"
7
7
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dl
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mark Szymanski
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-10 00:00:00 Z
13
+ date: 2011-04-12 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: patron