fetcher 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/History.markdown ADDED
@@ -0,0 +1,3 @@
1
+ ### 0.1 / 2012-06-02
2
+
3
+ * Everything is new. First release
data/Manifest.txt ADDED
@@ -0,0 +1,7 @@
1
+ History.markdown
2
+ Manifest.txt
3
+ README.markdown
4
+ Rakefile
5
+ bin/fetch
6
+ lib/fetcher.rb
7
+ lib/fetcher/runner.rb
data/README.markdown ADDED
@@ -0,0 +1,33 @@
1
+ # fetcher - Fetch Text Documents or Binary Blobs via HTTP, HTTPS
2
+
3
+ * [geraldb.github.com/fetcher](http://geraldb.github.com/fetcher)
4
+
5
+ ## Description
6
+
7
+ TBD
8
+
9
+ ## Usage
10
+
11
+ require 'fetcher'
12
+
13
+ Fetcher.new.copy( '/tmp/hoe.html', 'http://geraldb.github.com/rubybook/hoe.html' )
14
+
15
+ ## Install
16
+
17
+ Just install the gem:
18
+
19
+ $ gem install fetcher
20
+
21
+
22
+ ## Real World Usage
23
+
24
+ The [`slideshow`](http://slideshow.rubyforge.org) (also known as Slide Show (S9)) gem
25
+ that lets you create slide shows
26
+ and author slides in plain text using a wiki-style markup language that's easy-to-write and easy-to-read
27
+ ships with the `fetcher` gem.
28
+
29
+
30
+ ## License
31
+
32
+ The `fetcher` scripts are dedicated to the public domain.
33
+ Use it as you please with no restrictions whatsoever.
data/Rakefile ADDED
@@ -0,0 +1,20 @@
1
+ require 'hoe'
2
+ require './lib/fetcher.rb'
3
+
4
+ Hoe.spec 'fetcher' do
5
+
6
+ self.version = Fetcher::VERSION
7
+
8
+ self.summary = 'fetcher - Fetch Text Documents or Binary Blobs via HTTP, HTTPS'
9
+ self.description = summary
10
+
11
+ self.urls = ['http://geraldb.github.com/fetcher']
12
+
13
+ self.author = 'Gerald Bauer'
14
+ self.email = 'webslideshow@googlegroups.com'
15
+
16
+ # switch extension to .markdown for gihub formatting
17
+ self.readme_file = 'README.markdown'
18
+ self.history_file = 'History.markdown'
19
+
20
+ end
data/bin/fetch ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ###################
4
+ # == DEV TIPS:
5
+ #
6
+ # For local testing run like:
7
+ #
8
+ # ruby -Ilib bin/fetch
9
+ #
10
+ # Set the executable bit in Linux. Example:
11
+ #
12
+ # % chmod a+x bin/markdown
13
+ #
14
+
15
+ require 'fetcher'
16
+
17
+ Fetcher.main
data/lib/fetcher.rb ADDED
@@ -0,0 +1,46 @@
1
+ ###
2
+ # NB: for local testing run like:
3
+ #
4
+ # 1.8.x: ruby -Ilib -rrubygems lib/fetcher.rb
5
+ # 1.9.x: ruby -Ilib lib/fetcher.rb
6
+
7
+ # core and stlibs
8
+
9
+ require 'yaml'
10
+ require 'pp'
11
+ require 'logger'
12
+ require 'optparse'
13
+ require 'fileutils'
14
+
15
+
16
+ # our own code
17
+
18
+ require 'fetcher/runner'
19
+
20
+
21
+ module Fetcher
22
+
23
+ VERSION = '0.0.1'
24
+
25
+ # version string for generator meta tag (includes ruby version)
26
+ def self.banner
27
+ "Fetcher #{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
28
+ end
29
+
30
+ def self.main
31
+
32
+ # allow env variable to set RUBYOPT-style default command line options
33
+ # e.g. -o site
34
+ fetcheropt = ENV[ 'FETCHEROPT' ]
35
+
36
+ args = []
37
+ args += fetcheropt.split if fetcheropt
38
+ args += ARGV.dup
39
+
40
+ Runner.new.run(args)
41
+ end
42
+
43
+ end # module Fetcher
44
+
45
+
46
+ Fetcher.main if __FILE__ == $0
@@ -0,0 +1,13 @@
1
+
2
+ module Fetcher
3
+
4
+ class Runner
5
+
6
+ def run(args)
7
+ puts "hello from Runner.run"
8
+ end
9
+
10
+ end
11
+
12
+ end # module Fetcher
13
+
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fetcher
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Gerald Bauer
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-06-02 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rdoc
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 19
29
+ segments:
30
+ - 3
31
+ - 10
32
+ version: "3.10"
33
+ type: :development
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: hoe
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ hash: 7
44
+ segments:
45
+ - 3
46
+ - 0
47
+ version: "3.0"
48
+ type: :development
49
+ version_requirements: *id002
50
+ description: fetcher - Fetch Text Documents or Binary Blobs via HTTP, HTTPS
51
+ email: webslideshow@googlegroups.com
52
+ executables:
53
+ - fetch
54
+ extensions: []
55
+
56
+ extra_rdoc_files:
57
+ - Manifest.txt
58
+ files:
59
+ - History.markdown
60
+ - Manifest.txt
61
+ - README.markdown
62
+ - Rakefile
63
+ - bin/fetch
64
+ - lib/fetcher.rb
65
+ - lib/fetcher/runner.rb
66
+ homepage: http://geraldb.github.com/fetcher
67
+ licenses: []
68
+
69
+ post_install_message:
70
+ rdoc_options:
71
+ - --main
72
+ - README.markdown
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ hash: 3
81
+ segments:
82
+ - 0
83
+ version: "0"
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
92
+ version: "0"
93
+ requirements: []
94
+
95
+ rubyforge_project: fetcher
96
+ rubygems_version: 1.8.24
97
+ signing_key:
98
+ specification_version: 3
99
+ summary: fetcher - Fetch Text Documents or Binary Blobs via HTTP, HTTPS
100
+ test_files: []
101
+