rdf 1.1.16.1 → 1.1.17

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.
@@ -607,7 +607,7 @@ module RDF
607
607
  #
608
608
  # @yield statement
609
609
  # @yieldparam [RDF::Statement]
610
- def each_statement(&block)
610
+ def each_statement
611
611
  attributes.reject {|p| p == :vocab}.each do |prop, values|
612
612
  prop = RDF::Vocabulary.expand_pname(prop) unless prop.is_a?(Symbol)
613
613
  next unless prop
@@ -646,7 +646,7 @@ module RDF
646
646
  v = RDF::Vocabulary.expand_pname(value)
647
647
  value = v.valid? ? v : RDF::Literal(value)
648
648
  end
649
- block.call RDF::Statement(self, prop, value)
649
+ yield RDF::Statement(self, prop, value)
650
650
  rescue KeyError
651
651
  # Skip things eroneously defined in the vocabulary
652
652
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.16.1
4
+ version: 1.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arto Bendiken
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-09-26 00:00:00.000000000 Z
13
+ date: 2015-10-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: link_header