directed-edge 0.2.2 → 0.2.3

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 CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -105,7 +105,7 @@ module DirectedEdge
105
105
  values[e.text] = {}
106
106
  e.attributes.each_attribute { |a| values[e.text][a.name] = a.value }
107
107
  end
108
- values['tags'] = values['tags'].split(',') if values.include?('tags')
108
+ values.each { |k, v| v['tags'] = v['tags'].split(',') if v.include?('tags') }
109
109
  values
110
110
  end
111
111
 
@@ -375,6 +375,7 @@ class TestDirectedEdge < Test::Unit::TestCase
375
375
  item.save
376
376
 
377
377
  related = item.related(['product'], :include_tags => true)
378
+ assert(related['product2']['tags'].is_a? Array)
378
379
  assert(related['product2']['tags'].include?('product'))
379
380
 
380
381
  target = DirectedEdge::Item.new(@database, 'product2')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: directed-edge
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Directed Edge
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-17 00:00:00 +01:00
18
+ date: 2011-02-22 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency