rdf 0.3.5 → 0.3.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +1 -1
  2. data/VERSION +1 -1
  3. data/lib/rdf/format.rb +3 -3
  4. metadata +11 -11
data/README CHANGED
@@ -62,7 +62,7 @@ Examples
62
62
 
63
63
  or
64
64
 
65
- RDF::Writer.open("hello.nt") { |writer| writer << graph }
65
+ RDF::Writer.open("hello.nt") { |writer| writer << graph }
66
66
 
67
67
  ### Reading RDF data in the N-Triples format
68
68
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.5.1
@@ -95,7 +95,7 @@ module RDF
95
95
  format = case options
96
96
  when String
97
97
  # Find a format based on the file name
98
- self.for(:file_name => options)
98
+ self.for(:file_name => options) { yield if block_given? }
99
99
 
100
100
  when Hash
101
101
  case
@@ -108,7 +108,7 @@ module RDF
108
108
  content_types[mime_type]
109
109
  # Find a format based on the file name:
110
110
  when file_name = options[:file_name]
111
- self.for(:file_extension => File.extname(file_name.to_s)[1..-1])
111
+ self.for(:file_extension => File.extname(file_name.to_s)[1..-1]) { yield if block_given? }
112
112
  # Find a format based on the file extension:
113
113
  when file_ext = options[:file_extension]
114
114
  file_extensions[file_ext.to_sym]
@@ -141,7 +141,7 @@ module RDF
141
141
  format ||= @@subclasses
142
142
 
143
143
  # Return first format that has a positive detection
144
- format.detect {|f| f.detect(sample)} || format.first
144
+ format.detect {|f| f.detect(sample.to_s)} || format.first
145
145
  elsif format.is_a?(Array)
146
146
  # Otherwise, just return the first matching format
147
147
  format.first
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: 0.3.5
4
+ version: 0.3.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-02-07 00:00:00.000000000Z
14
+ date: 2012-03-14 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: addressable
18
- requirement: &2152772480 !ruby/object:Gem::Requirement
18
+ requirement: &70288181625060 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 2.2.6
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2152772480
26
+ version_requirements: *70288181625060
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: yard
29
- requirement: &2152772020 !ruby/object:Gem::Requirement
29
+ requirement: &70288181624500 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.7.5
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2152772020
37
+ version_requirements: *70288181624500
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rdf-spec
40
- requirement: &2152771560 !ruby/object:Gem::Requirement
40
+ requirement: &70288181623980 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 0.3.5
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2152771560
48
+ version_requirements: *70288181623980
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rspec
51
- requirement: &2152771100 !ruby/object:Gem::Requirement
51
+ requirement: &70288181623480 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,7 +56,7 @@ dependencies:
56
56
  version: 2.8.0
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2152771100
59
+ version_requirements: *70288181623480
60
60
  description: RDF.rb is a pure-Ruby library for working with Resource Description Framework
61
61
  (RDF) data.
62
62
  email: public-rdf-ruby@w3.org
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  requirements: []
167
167
  rubyforge_project: rdf
168
- rubygems_version: 1.8.10
168
+ rubygems_version: 1.8.17
169
169
  signing_key:
170
170
  specification_version: 3
171
171
  summary: A Ruby library for working with Resource Description Framework (RDF) data.