moxie-columbus 0.1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ HTTP/1.0 302 Moved Temporarily
2
+ Date: Thu, 26 Mar 2009 01:18:38 GMT
3
+ Server: Apache
4
+ X-FB-Host: chi-write6
5
+ Location: http://feeds2.feedburner.com/railstips
6
+ Content-Length: 0
7
+ P3P: CP="ALL DSP COR NID CUR OUR NOR"
8
+ Keep-Alive: timeout=30, max=100
9
+ Connection: keep-alive
10
+ Content-Type: text/plain; charset=UTF-8
11
+
data/test/link_test.rb ADDED
@@ -0,0 +1,40 @@
1
+ require 'test_helper'
2
+
3
+ class LinkTest < Test::Unit::TestCase
4
+ context "Initialization" do
5
+ setup do
6
+ @link = Columbus::Link.new('http://railstips.org', 'http://feeds.feedburner.com/railstips', 'Railstips')
7
+ end
8
+
9
+ should "accept a url" do
10
+ @link.url.should == 'http://railstips.org'
11
+ end
12
+
13
+ should "accept an href" do
14
+ @link.href.should == 'http://feeds.feedburner.com/railstips'
15
+ end
16
+
17
+ should "accept a title" do
18
+ @link.title.should == 'Railstips'
19
+ end
20
+ end
21
+
22
+ should "have clean_title" do
23
+ link = Columbus::Link.new
24
+ link.title = " Foo\n"
25
+ link.clean_title.should == "Foo"
26
+ end
27
+
28
+ context "absolute url" do
29
+ should "be href if href is absolute" do
30
+ link = Columbus::Link.new('http://railstips.org', 'http://railstips.org/feed/atom.xml')
31
+ link.absolute_url.should == 'http://railstips.org/feed/atom.xml'
32
+ end
33
+
34
+ should "be url plus href if href is root relative" do
35
+ link = Columbus::Link.new('http://railstips.org', '/feed/atom.xml')
36
+ link.absolute_url.should == 'http://railstips.org/feed/atom.xml'
37
+ end
38
+ end
39
+
40
+ end
@@ -0,0 +1,17 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+ require 'matchy'
5
+ require 'fakeweb'
6
+
7
+ FakeWeb.allow_net_connect = false
8
+
9
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
10
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
11
+ require 'columbus'
12
+
13
+ class Test::Unit::TestCase
14
+ def fixture_file(file)
15
+ File.read(File.join(File.dirname(__FILE__), 'fixtures', file))
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: moxie-columbus
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - John Nunemaker
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-01-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: moxie-columbus
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: shoulda
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: jeweler
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: fakeweb
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: jnunemaker-matchy
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ description:
95
+ email: nunemaker@gmail.com
96
+ executables: []
97
+ extensions: []
98
+ extra_rdoc_files:
99
+ - LICENSE
100
+ - README.rdoc
101
+ files:
102
+ - Gemfile
103
+ - Gemfile.lock
104
+ - LICENSE
105
+ - README.rdoc
106
+ - Rakefile
107
+ - VERSION
108
+ - examples/all.rb
109
+ - examples/primary.rb
110
+ - lib/columbus.rb
111
+ - lib/columbus/feed.rb
112
+ - lib/columbus/link.rb
113
+ - lib/columbus/redirect_follower.rb
114
+ - moxie-columbus.gemspec
115
+ - test/columbus_test.rb
116
+ - test/feed_test.rb
117
+ - test/fixtures/railsquicktips.html
118
+ - test/fixtures/railstips.html
119
+ - test/fixtures/railstips_feedburner.html
120
+ - test/fixtures/railstips_redirect
121
+ - test/link_test.rb
122
+ - test/test_helper.rb
123
+ homepage: http://github.com/jnunemaker/columbus
124
+ licenses: []
125
+ post_install_message:
126
+ rdoc_options: []
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ segments:
136
+ - 0
137
+ hash: 3345851625715443402
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubyforge_project: columbus
146
+ rubygems_version: 1.8.25
147
+ signing_key:
148
+ specification_version: 3
149
+ summary: Autodiscovers feeds from urls
150
+ test_files: []