flannel 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :build:
3
3
  :major: 0
4
4
  :minor: 1
5
- :patch: 0
5
+ :patch: 1
data/flannel.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flannel}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
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"]
12
- s.date = %q{2009-12-29}
12
+ s.date = %q{2009-12-31}
13
13
  s.email = %q{jamal.hansen@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
data/lib/stripe.rb CHANGED
@@ -36,7 +36,7 @@ module Flannel
36
36
 
37
37
  def build_wiki_links
38
38
  return @weave if preformatted
39
- @weave.gsub(/-\w(.*)\w>/) { |match| %{<a href="#{wiki_link match}">#{match[1..-2]}</a>}}
39
+ @weave.gsub(/-\w(.*?)\w>/) { |match| %{<a href="#{wiki_link match}">#{match[1..-2]}</a>}}
40
40
  end
41
41
 
42
42
  def to_h
data/test/stripe_test.rb CHANGED
@@ -37,6 +37,11 @@ class StripeTest < Test::Unit::TestCase
37
37
  should "permalink topics when making wiki links" do
38
38
  assert_equal "http://www.example.com/foo/cheese-tastes-good", @stripe.wiki_link("cheese tastes good")
39
39
  end
40
+
41
+ should "not be greedy in matching" do
42
+ stripe = Flannel::Stripe.stitch("a -foo> and a -bar>.")
43
+ assert_equal 'a <a href="foo">foo</a> and a <a href="bar">bar</a>.', stripe.build_wiki_links
44
+ end
40
45
  end
41
46
 
42
47
  context "no lambda is provided" do
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamal Hansen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-29 00:00:00 -06:00
12
+ date: 2009-12-31 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency