fluffy_barbarian 0.0.1 → 0.0.2

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.
@@ -104,7 +104,7 @@ module FluffyBarbarian
104
104
  parts = line.split(":").tidy
105
105
  key = parts[0].to_sym
106
106
  case key
107
- when :tags
107
+ when :tags, :categories
108
108
  meta[key] = parts[1].split(",").tidy
109
109
  when :location
110
110
  # can be
@@ -1,3 +1,3 @@
1
1
  module FluffyBarbarian
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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: brazil, sao paulo\n\n" +
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 => ["brazil", "sao paulo"] },
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cristi Balan