lightrdf 0.2.5 → 0.2.6

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.6 2011-03-16
2
+
3
+ * Fix in graph consistency when building a graph from triples
4
+
1
5
  === 0.2.5 2011-03-16
2
6
 
3
7
  * Added pool of instantiated objects
@@ -41,7 +41,7 @@ module RDF
41
41
  end
42
42
  def triples= triples
43
43
  self.clear
44
- triples.each { |s, p, o| self[s][p] += [o.is_a?(Symbol) ? Node(o) : o] }
44
+ triples.each { |s, p, o| self[s][p] += [o.is_a?(Symbol) ? self[o] : o] }
45
45
  end
46
46
  def select &block
47
47
  values.select &block
data/lib/lightrdf.rb CHANGED
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module RDF
5
- VERSION = '0.2.5'
5
+ VERSION = '0.2.6'
6
6
  end
7
7
 
8
8
  require 'rubygems'
data/lightrdf.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{lightrdf}
5
- s.version = "0.2.5"
5
+ s.version = "0.2.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jose Ignacio"]
@@ -95,6 +95,7 @@ class TestLightRDF < Test::Unit::TestCase
95
95
  a.foaf::weblog = Node('http://www.awesomeweblogfordummies.com')
96
96
  g = RDF::Graph.new a.triples
97
97
  assert g[Node('ex:bob')].foaf::weblog?(Node('http://www.awesomeweblogfordummies.com'))
98
+ assert_equal 1, [g[Node('ex:bob')].graph.object_id, g[Node('ex:bob')].foaf::weblog.map(&:graph).map(&:object_id)].flatten.uniq.size
98
99
  end
99
100
 
100
101
  def test_graph_merge
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jose Ignacio