exempla-atomic 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/atomic/entry.rb +1 -1
- data/spec/atomic/entry_spec.rb +7 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/atomic/entry.rb
CHANGED
@@ -36,7 +36,7 @@ module Atomic
|
|
36
36
|
else
|
37
37
|
throw("Unknown Content Type: #{content_node.children.first.name}")
|
38
38
|
end
|
39
|
-
entry.content[:data] = {content_node.children.first.name => content_hash}
|
39
|
+
entry.content[:data] = {content_node.children.first.name.to_sym => content_hash}
|
40
40
|
else
|
41
41
|
entry.content[:data] = content_node.inner_html
|
42
42
|
end
|
data/spec/atomic/entry_spec.rb
CHANGED
@@ -40,6 +40,13 @@ describe Atomic::Entry do
|
|
40
40
|
@entry.id.should == 'tag:example.org,2003:3.2397'
|
41
41
|
@entry.categories.size.should == 2
|
42
42
|
@entry.content.should_not be_nil
|
43
|
+
puts "Content: #{@entry.content.inspect}"
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should handle the announcements extension" do
|
47
|
+
@entry.content[:data].should_not be_nil
|
48
|
+
puts "Data: #{@entry.content[:data].inspect}"
|
49
|
+
@entry.content[:data][:announcement].should_not be_nil
|
43
50
|
end
|
44
51
|
|
45
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exempla-atomic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darrin Wortlehock
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-20 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|