lightrdf 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.3.5 2011-03-24
2
+
3
+ * New method RDF::Node#proxy, that returns a NodeProxy.
4
+ * Fix in RDF::Node#==.
5
+
1
6
  === 0.3.4 2011-03-23
2
7
 
3
8
  * Fix in all_triples method. It crashed if the node had empty literals.
data/lib/lightrdf/node.rb CHANGED
@@ -91,7 +91,11 @@ module RDF
91
91
 
92
92
  def bnode?
93
93
  ID.bnode?(id)
94
- end
94
+ end
95
+
96
+ def proxy
97
+ graph.node(self)
98
+ end
95
99
  end
96
100
  end
97
101
 
@@ -37,7 +37,7 @@ module RDF
37
37
 
38
38
  # Equality method delegated to node
39
39
  def == other_node
40
- @node.eql? other_node.node
40
+ eql? other_node
41
41
  end
42
42
  # Equality method delegated to node
43
43
  def eql? other_node
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.3.4'
5
+ VERSION = '0.3.5'
6
6
  end
7
7
 
8
8
  require 'rubygems'
data/lightrdf.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{lightrdf}
5
- s.version = "0.3.4"
5
+ s.version = "0.3.5"
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"]
9
- s.date = %q{2011-03-23}
9
+ s.date = %q{2011-03-24}
10
10
  s.default_executable = %q{yarfp}
11
11
  s.description = %q{RDF library}
12
12
  s.email = %q{joseignacio.fernandez@gmail.com}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 4
9
- version: 0.3.4
8
+ - 5
9
+ version: 0.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jose Ignacio
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-23 00:00:00 +01:00
17
+ date: 2011-03-24 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency