iq_rdf 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 388a43724e78bc9037169308e7dc83ded4993e61
4
- data.tar.gz: 8eea3d5d7312f380b9bc2a9b66ef3ed0d4e9a70a
3
+ metadata.gz: 985cc8b02831cc489803bb8ab8bf17ad1ea0bec3
4
+ data.tar.gz: 61fbb6c02a8a8a8a13d1151ee2bbef74a2e8e784
5
5
  SHA512:
6
- metadata.gz: 690cbe8e61e9784ed98b0b4b8424bae1d43e1ea50a0c265d4915bc2fb12a2c3218f0345a8729ea63ed8845d2013692c0d6cd1e577bc71c5a8437cc16e33aad51
7
- data.tar.gz: 3cac63b15bc7624fa16eb0a8eab974347daaefa161a77ce32014eac63be1d1df9d911c0f3e318d04808a1865478751d105a2ff9ffba54a45e4e44984575e7190
6
+ metadata.gz: '096d438f95afe8be17afdc28b9517d3cd3ea82fb2766c9667c597c8c1f55c70c83caa63f8391da86977d835eac5357840f92c2da57148ef9b29a44e901a07349'
7
+ data.tar.gz: '034199d8c6b497b5b1944e63798cfa49f38de8e2abb9d4394f01498fb972851bd47cadf0111317e463675a8fae3dc968a1810489711a57a03197e0401523b2c3'
@@ -31,6 +31,8 @@ Gem::Specification.new do |s|
31
31
  s.add_dependency "builder"
32
32
  s.add_dependency "activesupport"
33
33
 
34
+ s.add_development_dependency "minitest"
35
+
34
36
  s.files = %w(LICENSE README.md Rakefile iq_rdf.gemspec) + Dir.glob("{lib,rails,test}/**/*")
35
37
  s.test_files = Dir.glob("{test}/**/*")
36
38
  s.executables = Dir.glob("{bin}/**/*")
@@ -17,16 +17,16 @@ def IqRdf.rails_template(template)
17
17
  document = IqRdf::Document.new()
18
18
  #{template.source}
19
19
  if params[:format].to_s == "ttl"
20
- controller.response.headers["Content-Type"] ||= 'text/turtle'
20
+ controller.response.headers["Content-Type"] ||= 'text/turtle;charset=utf-8'
21
21
  document.to_turtle
22
22
  elsif params[:format].to_s == "nt"
23
- controller.response.headers["Content-Type"] ||= 'text/plain'
23
+ controller.response.headers["Content-Type"] ||= 'text/plain;charset=utf-8'
24
24
  document.to_ntriples
25
25
  elsif params[:format].to_s == "rdf"
26
- controller.response.headers["Content-Type"] ||= 'application/xml+rdf'
26
+ controller.response.headers["Content-Type"] ||= 'application/xml+rdf;charset=utf-8'
27
27
  document.to_xml
28
28
  else # Default => turtle
29
- controller.response.headers["Content-Type"] ||= 'text/turtle'
29
+ controller.response.headers["Content-Type"] ||= 'text/turtle;charset=utf-8'
30
30
  document.to_turtle
31
31
  end
32
32
  EOV
@@ -54,6 +54,6 @@ module ActionView
54
54
  ActionView::Template.register_template_handler('iqrdf', ActionView::TemplateHandlers::IqRdf)
55
55
 
56
56
  end
57
-
57
+
58
58
 
59
59
  end
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module IqRdf
16
- VERSION = "0.1.15"
16
+ VERSION = "0.1.16"
17
17
  end
@@ -16,16 +16,16 @@ $LOAD_PATH << File.dirname(__FILE__)
16
16
 
17
17
  require 'test_helper'
18
18
 
19
- class IqRdfTest < Test::Unit::TestCase
19
+ class IqRdfTest < Minitest::Test
20
20
 
21
21
  def test_namespace_definitions
22
- assert_raise(URI::InvalidURIError) { IqRdf::Document.new(12345) }
22
+ assert_raises(URI::InvalidURIError) { IqRdf::Document.new(12345) }
23
23
 
24
24
  document = IqRdf::Document.new("http://default-namespace.com/")
25
25
 
26
- assert_raise(ArgumentError) { document.namespaces :nohash }
27
- assert_raise(ArgumentError) { document.namespaces "wrong" => "http://www.innoq.com/" }
28
- assert_raise(URI::InvalidURIError) { document.namespaces :correct => 12 }
26
+ assert_raises(ArgumentError) { document.namespaces :nohash }
27
+ assert_raises(ArgumentError) { document.namespaces "wrong" => "http://www.innoq.com/" }
28
+ assert_raises(URI::InvalidURIError) { document.namespaces :correct => 12 }
29
29
 
30
30
  document.namespaces :innoq => "http://www.innoq.com/"
31
31
  document.namespaces :uba => "http://www.uba.de/"
@@ -52,7 +52,7 @@ class IqRdfTest < Test::Unit::TestCase
52
52
  def test_disallow_nested_definitions
53
53
  IqRdf::Document.new('http://www.umweltprobenbank.de/').namespaces :foaf => 'http://xmlns.com/foaf/0.1/'
54
54
 
55
- assert_raise(ArgumentError) {IqRdf::testemann.Foaf::knows(IqRdf::testefrau.Foaf::knows(IqRdf::someone_else)) }
55
+ assert_raises(ArgumentError) {IqRdf::testemann.Foaf::knows(IqRdf::testefrau.Foaf::knows(IqRdf::someone_else)) }
56
56
  end
57
57
 
58
58
  end
@@ -18,7 +18,7 @@ $LOAD_PATH << File.dirname(__FILE__)
18
18
 
19
19
  require 'test_helper'
20
20
 
21
- class NTriplesTest < Test::Unit::TestCase
21
+ class NTriplesTest < Minitest::Test
22
22
 
23
23
  def test_basics
24
24
  document = IqRdf::Document.new('http://example.org/')
@@ -13,8 +13,9 @@
13
13
  # limitations under the License.
14
14
 
15
15
  require 'rubygems'
16
- require 'test/unit'
17
16
 
18
17
  $LOAD_PATH << File.join(File.dirname(__FILE__), "../lib")
19
18
 
20
19
  require 'iq_rdf'
20
+
21
+ require 'minitest/autorun'
@@ -16,7 +16,7 @@ $LOAD_PATH << File.dirname(__FILE__)
16
16
 
17
17
  require 'test_helper'
18
18
 
19
- class TurtleTest < Test::Unit::TestCase
19
+ class TurtleTest < Minitest::Test
20
20
 
21
21
  def test_basic_turtle_output
22
22
  document = IqRdf::Document.new('http://www.test.de/', :lang => :de)
@@ -42,7 +42,7 @@ rdf
42
42
  def test_full_uri_subject_turtle_output
43
43
  document = IqRdf::Document.new('http://www.test.de/')
44
44
 
45
- assert_raise RuntimeError do
45
+ assert_raises RuntimeError do
46
46
  IqRdf::build_full_uri_subject("bla")
47
47
  end
48
48
 
@@ -16,7 +16,7 @@ $LOAD_PATH << File.dirname(__FILE__)
16
16
 
17
17
  require 'test_helper'
18
18
 
19
- class XmlTest < Test::Unit::TestCase
19
+ class XmlTest < Minitest::Test
20
20
 
21
21
  def test_basic_xml_output
22
22
  document = IqRdf::Document.new('http://www.test.de/', :lang => :de)
@@ -40,7 +40,7 @@ rdf
40
40
  def test_full_uri_subject_xml_output
41
41
  document = IqRdf::Document.new('http://www.test.de/')
42
42
 
43
- assert_raise RuntimeError do
43
+ assert_raises RuntimeError do
44
44
  IqRdf::build_full_uri_subject("bla")
45
45
  end
46
46
 
@@ -195,7 +195,7 @@ rdf
195
195
  end
196
196
 
197
197
  def test_full_uri_predicates
198
- assert_raise RuntimeError do
198
+ assert_raises RuntimeError do
199
199
  document = IqRdf::Document.new('http://www.test.de/')
200
200
  document << IqRdf::testemann.build_full_uri_predicate(URI.parse("http://www.test.org/12"), 42)
201
201
  document.to_xml
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iq_rdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Till Schulte-Coerne
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-27 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
15
22
  version_requirements: !ruby/object:Gem::Requirement
16
23
  requirements:
17
- - - '>='
24
+ - - ">="
18
25
  - !ruby/object:Gem::Version
19
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: builder
20
29
  requirement: !ruby/object:Gem::Requirement
21
30
  requirements:
22
- - - '>='
31
+ - - ">="
23
32
  - !ruby/object:Gem::Version
24
33
  version: '0'
25
- prerelease: false
26
34
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: builder
35
+ prerelease: false
29
36
  version_requirements: !ruby/object:Gem::Requirement
30
37
  requirements:
31
- - - '>='
38
+ - - ">="
32
39
  - !ruby/object:Gem::Version
33
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
34
43
  requirement: !ruby/object:Gem::Requirement
35
44
  requirements:
36
- - - '>='
45
+ - - ">="
37
46
  - !ruby/object:Gem::Version
38
47
  version: '0'
39
- prerelease: false
40
48
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- name: activesupport
49
+ prerelease: false
43
50
  version_requirements: !ruby/object:Gem::Requirement
44
51
  requirements:
45
- - - '>='
52
+ - - ">="
46
53
  - !ruby/object:Gem::Version
47
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
48
57
  requirement: !ruby/object:Gem::Requirement
49
58
  requirements:
50
- - - '>='
59
+ - - ">="
51
60
  - !ruby/object:Gem::Version
52
61
  version: '0'
62
+ type: :development
53
63
  prerelease: false
54
- type: :runtime
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: IqRdf - A builder like rdf library for ruby and rails
56
70
  email:
57
71
  - till.schulte-coerne@innoq.com
@@ -70,17 +84,17 @@ files:
70
84
  - lib/iq_rdf/collection.rb
71
85
  - lib/iq_rdf/document.rb
72
86
  - lib/iq_rdf/literal.rb
87
+ - lib/iq_rdf/literal/boolean.rb
88
+ - lib/iq_rdf/literal/numeric.rb
89
+ - lib/iq_rdf/literal/string.rb
90
+ - lib/iq_rdf/literal/uri.rb
73
91
  - lib/iq_rdf/namespace.rb
74
92
  - lib/iq_rdf/node.rb
75
93
  - lib/iq_rdf/predicate.rb
76
94
  - lib/iq_rdf/predicate_namespace.rb
95
+ - lib/iq_rdf/rails/iq_rdf.rb
77
96
  - lib/iq_rdf/uri.rb
78
97
  - lib/iq_rdf/version.rb
79
- - lib/iq_rdf/literal/boolean.rb
80
- - lib/iq_rdf/literal/numeric.rb
81
- - lib/iq_rdf/literal/string.rb
82
- - lib/iq_rdf/literal/uri.rb
83
- - lib/iq_rdf/rails/iq_rdf.rb
84
98
  - rails/init.rb
85
99
  - test/iq_rdf_test.rb
86
100
  - test/ntriples_test.rb
@@ -90,24 +104,24 @@ files:
90
104
  homepage: http://github.com/innoq/iq_rdf
91
105
  licenses: []
92
106
  metadata: {}
93
- post_install_message:
107
+ post_install_message:
94
108
  rdoc_options: []
95
109
  require_paths:
96
110
  - lib
97
111
  required_ruby_version: !ruby/object:Gem::Requirement
98
112
  requirements:
99
- - - '>='
113
+ - - ">="
100
114
  - !ruby/object:Gem::Version
101
115
  version: '0'
102
116
  required_rubygems_version: !ruby/object:Gem::Requirement
103
117
  requirements:
104
- - - '>='
118
+ - - ">="
105
119
  - !ruby/object:Gem::Version
106
120
  version: '0'
107
121
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.1.9
110
- signing_key:
122
+ rubyforge_project:
123
+ rubygems_version: 2.6.11
124
+ signing_key:
111
125
  specification_version: 4
112
126
  summary: IqRdf - A builder like rdf library for ruby and rails
113
127
  test_files: