flannel 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 2
4
- :patch: 4
4
+ :patch: 5
5
5
  :build:
data/flannel.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flannel}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jamal Hansen"]
@@ -3,8 +3,8 @@ require 'open-uri'
3
3
 
4
4
  module Flannel
5
5
  class FeedParser
6
- def initialize params={}
7
- @cache = params[:cache] if params
6
+ def initialize cache
7
+ @cache = cache
8
8
  end
9
9
 
10
10
  def sub_feeds(url)
@@ -10,13 +10,6 @@ class HtmlFormatterTest < Test::Unit::TestCase
10
10
  should "return html fragment with format" do
11
11
  assert_equal "<p>foo</p>", @formatter.do('foo', :paragraph)
12
12
  end
13
-
14
- context "building wiki links" do
15
- should "not be greedy in matching" do
16
- result = @formatter.do "a -foo> and a -bar>.", :paragraph
17
- assert_equal '<p>a <a href="foo">foo</a> and a <a href="bar">bar</a>.</p>', result
18
- end
19
- end
20
13
 
21
14
  context "subdirectories" do
22
15
  should "handle subdirectories and not display directory info" do
@@ -75,6 +68,11 @@ class HtmlFormatterTest < Test::Unit::TestCase
75
68
  should "replace odd characters with dashes" do
76
69
  assert_equal "get-the-box", @formatter.permalink("get the @#)(* box")
77
70
  end
71
+
72
+ should "not be greedy in matching" do
73
+ result = @formatter.do "a -foo> and a -bar>.", :paragraph
74
+ assert_equal '<p>a <a href="foo">foo</a> and a <a href="bar">bar</a>.</p>', result
75
+ end
78
76
  end
79
77
  end
80
78
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flannel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamal Hansen