rss2mail 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/bin/rss2mail +17 -2
- data/lib/rss2mail/version.rb +1 -1
- data/lib/rss2mail.rb +1 -0
- metadata +13 -11
data/README
CHANGED
data/bin/rss2mail
CHANGED
@@ -29,7 +29,10 @@
|
|
29
29
|
require 'optparse'
|
30
30
|
require 'yaml'
|
31
31
|
|
32
|
-
|
32
|
+
require 'rubygems'
|
33
|
+
require 'nuggets/env/user_home'
|
34
|
+
|
35
|
+
base = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
33
36
|
$: << File.join(base, 'lib')
|
34
37
|
|
35
38
|
require 'rss2mail'
|
@@ -66,6 +69,14 @@ OptionParser.new { |opts|
|
|
66
69
|
opts.on('-D', '--debug', "Print debug output and don't send any mails") {
|
67
70
|
options[:debug] = true
|
68
71
|
}
|
72
|
+
|
73
|
+
opts.on('-h', '--help', 'Print this help message and exit') {
|
74
|
+
abort opts.to_s
|
75
|
+
}
|
76
|
+
|
77
|
+
opts.on('--version', 'Print program version and exit') {
|
78
|
+
abort "#{File.basename($0)} v#{RSS2Mail::VERSION}"
|
79
|
+
}
|
69
80
|
}.parse!
|
70
81
|
|
71
82
|
if target = ARGV.shift
|
@@ -82,7 +93,11 @@ templates = Hash.new { |h, k|
|
|
82
93
|
end
|
83
94
|
}
|
84
95
|
|
85
|
-
feeds_files = options.delete(:files) ||
|
96
|
+
feeds_files = options.delete(:files) || if File.directory?(d = File.join(ENV.user_home, '.rss2mail'))
|
97
|
+
Dir[File.join(d, '*.yaml')]
|
98
|
+
else
|
99
|
+
[File.join(base, 'feeds.yaml')]
|
100
|
+
end
|
86
101
|
|
87
102
|
feeds_files.each { |feeds_file|
|
88
103
|
feeds = begin
|
data/lib/rss2mail/version.rb
CHANGED
data/lib/rss2mail.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rss2mail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-29 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -63,32 +63,34 @@ extra_rdoc_files:
|
|
63
63
|
- ChangeLog
|
64
64
|
- README
|
65
65
|
files:
|
66
|
-
- lib/rss2mail
|
66
|
+
- lib/rss2mail.rb
|
67
67
|
- lib/rss2mail/version.rb
|
68
68
|
- lib/rss2mail/util.rb
|
69
|
+
- lib/rss2mail/rss.rb
|
69
70
|
- lib/rss2mail/feed.rb
|
70
|
-
- lib/rss2mail.rb
|
71
71
|
- bin/rss2mail
|
72
|
-
- Rakefile
|
73
72
|
- COPYING
|
74
|
-
-
|
73
|
+
- Rakefile
|
75
74
|
- README
|
75
|
+
- ChangeLog
|
76
76
|
- templates/plain.erb
|
77
77
|
- templates/html.erb
|
78
78
|
- example/feeds.yaml
|
79
79
|
has_rdoc: true
|
80
80
|
homepage: http://rss2mail.rubyforge.org/
|
81
|
+
licenses: []
|
82
|
+
|
81
83
|
post_install_message:
|
82
84
|
rdoc_options:
|
83
|
-
- --line-numbers
|
84
85
|
- --inline-source
|
85
86
|
- --title
|
86
87
|
- rss2mail Application documentation
|
87
|
-
- --main
|
88
|
-
- README
|
89
88
|
- --charset
|
90
89
|
- UTF-8
|
91
90
|
- --all
|
91
|
+
- --main
|
92
|
+
- README
|
93
|
+
- --line-numbers
|
92
94
|
require_paths:
|
93
95
|
- lib
|
94
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -106,9 +108,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
108
|
requirements: []
|
107
109
|
|
108
110
|
rubyforge_project: rss2mail
|
109
|
-
rubygems_version: 1.3.
|
111
|
+
rubygems_version: 1.3.4
|
110
112
|
signing_key:
|
111
|
-
specification_version:
|
113
|
+
specification_version: 3
|
112
114
|
summary: Send RSS feeds as e-mail
|
113
115
|
test_files: []
|
114
116
|
|