exempla-atomic 0.0.4 → 0.0.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.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/atomic/service.rb +9 -2
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 4
2
+ :patch: 5
3
3
  :major: 0
4
4
  :minor: 0
@@ -12,6 +12,11 @@ module Atomic
12
12
  workspace_node = doc.xpath('//app:workspace', NAMESPACES).first
13
13
  workspace.title = workspace_node.xpath('atom:title', NAMESPACES).first.text
14
14
  workspace_node.xpath('app:collection', NAMESPACES).each do |collection_node|
15
+ # puts "+++++++++\n"
16
+ # puts collection_node.inspect
17
+ # puts "=========\n"
18
+ # puts collection_node.xpath('//app:collection', NAMESPACES)
19
+ # puts "---------\n"
15
20
  workspace.collections << Collection.parse(collection_node)
16
21
  end
17
22
  workspace
@@ -34,8 +39,10 @@ module Atomic
34
39
  class << self
35
40
  def parse(data)
36
41
  collection = new
37
- doc = data.kind_of?(Nokogiri::XML::Element) ? data : Nokogiri.XML(data)
38
- collection_node = doc.xpath('//app:collection', NAMESPACES).first
42
+ collection_node = data.kind_of?(Nokogiri::XML::Element) ? data : Nokogiri.XML(data).xpath('//app:collection', NAMESPACES).first
43
+ # puts "*********"
44
+ # puts collection_node
45
+ # puts "*********"
39
46
  collection.href = collection_node['href']
40
47
  collection.title = collection_node.xpath('atom:title', NAMESPACES).first.text
41
48
  collection
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
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darrin Wortlehock