fluffy_barbarian 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fluffy_barbarian/index.rb +1 -1
- data/lib/fluffy_barbarian/version.rb +1 -1
- data/test/index_test.rb +8 -5
- metadata +3 -3
data/test/index_test.rb
CHANGED
@@ -2,31 +2,34 @@ require File.join(File.dirname(__FILE__), "test_helper")
|
|
2
2
|
|
3
3
|
describe "FluffyBarbarian::Index, parsing" do
|
4
4
|
[
|
5
|
-
["# Mmm pie\n 2009 10 01, 2010 04 12\n tags: brazil, sao paulo",
|
5
|
+
["# Mmm pie\n 2009 10 01, 2010 04 12\n tags: brazil, sao paulo\n categories: food",
|
6
6
|
[
|
7
7
|
{ :title => "Mmm pie", :autoslug => "mmm-pie", :slug => "mmm-pie",
|
8
8
|
:url => "/2009/10/01/mmm-pie",
|
9
9
|
:happened_on => "2009-10-01", :written_on => "2010-04-12",
|
10
|
-
:tags => ["brazil", "sao paulo"]
|
10
|
+
:tags => ["brazil", "sao paulo"],
|
11
|
+
:categories => ["food"] }
|
11
12
|
]
|
12
13
|
],
|
13
14
|
|
14
|
-
["# Mmm more pie\n 2009 10 15 \n pie: brazil, sao paulo \nslug: moar-pie",
|
15
|
+
["# Mmm more pie\n 2009 10 15 \n pie: brazil, sao paulo \nslug: moar-pie\n categories: food, moar",
|
15
16
|
[
|
16
17
|
{ :title => "Mmm more pie", :autoslug => "mmm-more-pie", :slug => "moar-pie",
|
17
18
|
:url => "/2009/10/15/moar-pie",
|
18
19
|
:happened_on => "2009-10-15", :written_on => "2009-10-15",
|
20
|
+
:categories => ["food", "moar"],
|
19
21
|
:pie => "brazil, sao paulo" }
|
20
22
|
]
|
21
23
|
],
|
22
24
|
|
23
|
-
["# Mmm pie\n 2009 10 01, 2010 04 12\n tags:
|
25
|
+
["# Mmm pie\n 2009 10 01, 2010 04 12\n tags: sao paulo\n categories: no way, jose\n" +
|
24
26
|
"# Mmm more pie\n 2009 10 15 \n pie: brazil , sao paulo",
|
25
27
|
[
|
26
28
|
{ :title => "Mmm pie", :slug => "mmm-pie", :autoslug => "mmm-pie",
|
27
29
|
:url => "/2009/10/01/mmm-pie",
|
28
30
|
:happened_on => "2009-10-01", :written_on => "2010-04-12",
|
29
|
-
:tags => ["
|
31
|
+
:tags => ["sao paulo"],
|
32
|
+
:categories => ["no way", "jose"]},
|
30
33
|
|
31
34
|
{ :title => "Mmm more pie", :slug => "mmm-more-pie", :autoslug => "mmm-more-pie",
|
32
35
|
:url => "/2009/10/15/mmm-more-pie",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluffy_barbarian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Cristi Balan
|