feed_yamlizer 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.
- data/README.markdown +6 -1
- data/Rakefile +28 -0
- data/lib/feed_yamlizer/version.rb +1 -1
- metadata +4 -3
data/README.markdown
CHANGED
@@ -3,5 +3,10 @@
|
|
3
3
|
feed_yamlizer converts feeds into Ruby hashes and also processes feed entries
|
4
4
|
into plain text.
|
5
5
|
|
6
|
-
|
6
|
+
Basic usage
|
7
|
+
|
8
|
+
ruby -I lib bin/feed2yaml < test/ars.xml
|
9
|
+
ruby -I lib bin/feed2yaml 'http://feeds.arstechnica.com/arstechnica/index/'
|
10
|
+
TEST=1 ruby -I lib bin/feed2yaml 'http://feeds.arstechnica.com/arstechnica/index/'
|
7
11
|
|
12
|
+
More usage intructions to come.
|
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'bundler'
|
4
|
+
Bundler::GemHelper.install_tasks
|
5
|
+
|
6
|
+
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib')
|
7
|
+
|
8
|
+
desc "git push and rake release bumped version"
|
9
|
+
task :bumped do
|
10
|
+
puts `git push && rake release`
|
11
|
+
Rake::Task["web"].execute
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "Run tests"
|
15
|
+
task :test do
|
16
|
+
$:.unshift File.expand_path("test")
|
17
|
+
require 'test_helper'
|
18
|
+
Dir.chdir("test") do
|
19
|
+
Dir['*_test.rb'].each do |x|
|
20
|
+
puts "requiring #{x}"
|
21
|
+
require x
|
22
|
+
end
|
23
|
+
end
|
24
|
+
MiniTest::Unit.autorun
|
25
|
+
end
|
26
|
+
|
27
|
+
task :default => :test
|
28
|
+
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Choi
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-14 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- .gitignore
|
70
70
|
- MIT-LICENSE.txt
|
71
71
|
- README.markdown
|
72
|
+
- Rakefile
|
72
73
|
- bin/feed2yaml
|
73
74
|
- feed_yamlizer.gemspec
|
74
75
|
- lib/feed_yamlizer.rb
|