flannel 0.1.4 → 0.1.5

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/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 4
3
+ :patch: 5
4
4
  :major: 0
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.1.4"
8
+ s.version = "0.1.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"]
@@ -1,4 +1,4 @@
1
- require 'shears'
1
+ #require 'shears'
2
2
 
3
3
 
4
4
  module Flannel
@@ -1,5 +1,5 @@
1
- require 'square'
2
- require 'stripe'
1
+ #require 'square'
2
+ #require 'stripe'
3
3
 
4
4
  module Flannel
5
5
  class Shears
@@ -1,4 +1,4 @@
1
- require 'wrappable'
1
+ #require 'wrappable'
2
2
 
3
3
  module Flannel
4
4
  class Square
@@ -1,5 +1,5 @@
1
- require 'wrappable'
2
- require 'feed_parser'
1
+ #require 'wrappable'
2
+ #require 'feed_parser'
3
3
 
4
4
  module Flannel
5
5
  class Stripe
data/lib/flannel.rb CHANGED
@@ -1,4 +1,9 @@
1
1
  require 'flannel/cutting_board'
2
+ require 'flannel/wrappable'
3
+ require 'flannel/square'
4
+ require 'flannel/shears'
5
+ require 'flannel/stripe'
6
+ require 'flannel/feed_parser'
2
7
 
3
8
  module Flannel
4
9
  def self.quilt markup, params={}
data/test/stripe_test.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'test_helper'
2
- require 'stripe'
2
+ #require 'stripe'
3
3
 
4
4
  class StripeTest < Test::Unit::TestCase
5
5
  context "basic operations" do
@@ -23,24 +23,29 @@ class StripeTest < Test::Unit::TestCase
23
23
  context "building wiki links" do
24
24
  setup do
25
25
  wiki_link = lambda { |keyword| "http://www.example.com/foo/#{keyword}"}
26
- @stripe = Flannel::Stripe.stitch "the -roof is on fire>", :wiki_link => wiki_link
26
+ @stripe = Flannel::Stripe.stitch "the -roof is on fire>", :wiki_link =>
27
+ wiki_link
27
28
  end
28
29
 
29
30
  should "build wiki links based on a lambda" do
30
- assert_equal "http://www.example.com/foo/cheese", @stripe.wiki_link("cheese")
31
+ assert_equal "http://www.example.com/foo/cheese",
32
+ @stripe.wiki_link("cheese")
31
33
  end
32
34
 
33
35
  should "find and replace wiki link markup" do
34
- assert_equal 'the <a href="http://www.example.com/foo/roof-is-on-fire">roof is on fire</a>', @stripe.to_h
36
+ assert_equal 'the <a href="http://www.example.com/foo/roof-is-on-fire">roof is on fire</a>',
37
+ @stripe.to_h
35
38
  end
36
39
 
37
40
  should "permalink topics when making wiki links" do
38
- assert_equal "http://www.example.com/foo/cheese-tastes-good", @stripe.wiki_link("cheese tastes good")
41
+ assert_equal "http://www.example.com/foo/cheese-tastes-good",
42
+ @stripe.wiki_link("cheese tastes good")
39
43
  end
40
44
 
41
45
  should "not be greedy in matching" do
42
46
  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
47
+ assert_equal 'a <a href="foo">foo</a> and a <a href="bar">bar</a>.',
48
+ stripe.build_wiki_links
44
49
  end
45
50
  end
46
51
 
@@ -69,12 +74,14 @@ class StripeTest < Test::Unit::TestCase
69
74
  assert_equal 'red, - green >, refactor', stripe.to_h
70
75
  end
71
76
 
72
- should "not replace surrounded by - and > with a wiki link if spaced on right" do
77
+ should "not replace surrounded by - and > with a wiki link if spaced on
78
+ right" do
73
79
  stripe = Flannel::Stripe.stitch("red, -green >, refactor")
74
80
  assert_equal 'red, -green >, refactor', stripe.to_h
75
81
  end
76
82
 
77
- should "not replace surrounded by - and > with a wiki link if spaced on left" do
83
+ should "not replace surrounded by - and > with a wiki link if spaced on
84
+ left" do
78
85
  stripe = Flannel::Stripe.stitch("red, - green>, refactor")
79
86
  assert_equal 'red, - green>, refactor', stripe.to_h
80
87
  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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamal Hansen