iq_rdf 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
data/lib/iq_rdf.rb CHANGED
@@ -81,7 +81,7 @@ module IqRdf
81
81
  if RUBY_VERSION < "1.9"
82
82
  self.const_defined?(klass_name) ? self.const_get(klass_name) : self.const_set(klass_name, Class.new(IqRdf::Namespace))
83
83
  else
84
- self.const_defined?(klass_name) ? self.const_get(klass_name) : self.const_set(klass_name, Class.new(IqRdf::Namespace))
84
+ self.const_defined?(klass_name, false) ? self.const_get(klass_name, false) : self.const_set(klass_name, Class.new(IqRdf::Namespace))
85
85
  end
86
86
  end
87
87
 
@@ -48,7 +48,7 @@ module IqRdf
48
48
 
49
49
  def self.find_namespace_class(token)
50
50
  klass_name = self.class_name(token)
51
- if IqRdf.const_defined?(klass_name) && IqRdf.const_get(klass_name) < IqRdf::Namespace # Ruby 1.9 is polluting namespaces
51
+ if (RUBY_VERSION < "1.9" ? IqRdf.const_defined?(klass_name) : IqRdf.const_defined?(klass_name, false))
52
52
  IqRdf.const_get(klass_name)
53
53
  else
54
54
  nil
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module IqRdf
16
- VERSION = "0.1.12"
16
+ VERSION = "0.1.13"
17
17
  end
data/test/iq_rdf_test.rb CHANGED
@@ -29,12 +29,14 @@ class IqRdfTest < Test::Unit::TestCase
29
29
 
30
30
  document.namespaces :innoq => "http://www.innoq.com/"
31
31
  document.namespaces :uba => "http://www.uba.de/"
32
+ document.namespaces :kernel => "http://potential-collision.com/"
32
33
 
33
34
  IqRdf::Innoq::uri_prefix
34
35
 
35
36
  assert_equal("http://default-namespace.com/", IqRdf::uri_prefix.to_s)
36
37
  assert_equal("http://www.innoq.com/", IqRdf::Innoq::uri_prefix.to_s)
37
38
  assert_equal("http://www.uba.de/", IqRdf::Uba::uri_prefix.to_s)
39
+ assert_equal("http://potential-collision.com/", IqRdf::Kernel::uri_prefix.to_s)
38
40
 
39
41
  end
40
42
 
metadata CHANGED
@@ -1,55 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iq_rdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Till Schulte-Coerne
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-11-29 00:00:00.000000000 Z
12
+ date: 2013-12-02 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: builder
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: activesupport
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  description: IqRdf - A builder like rdf library for ruby and rails
@@ -89,26 +96,33 @@ files:
89
96
  - test/xml_test.rb
90
97
  homepage: http://github.com/innoq/iq_rdf
91
98
  licenses: []
92
- metadata: {}
93
99
  post_install_message:
94
100
  rdoc_options: []
95
101
  require_paths:
96
102
  - lib
97
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
+ none: false
98
105
  requirements:
99
- - - '>='
106
+ - - ! '>='
100
107
  - !ruby/object:Gem::Version
101
108
  version: '0'
109
+ segments:
110
+ - 0
111
+ hash: -3899584830229943406
102
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
103
114
  requirements:
104
- - - '>='
115
+ - - ! '>='
105
116
  - !ruby/object:Gem::Version
106
117
  version: '0'
118
+ segments:
119
+ - 0
120
+ hash: -3899584830229943406
107
121
  requirements: []
108
122
  rubyforge_project:
109
- rubygems_version: 2.0.3
123
+ rubygems_version: 1.8.23
110
124
  signing_key:
111
- specification_version: 4
125
+ specification_version: 3
112
126
  summary: IqRdf - A builder like rdf library for ruby and rails
113
127
  test_files:
114
128
  - test/iq_rdf_test.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: fd960bbb4300cd34a14a36d26bcc626f6b876433
4
- data.tar.gz: 8e33531c579111188e0a497a9f9315629e8b23cf
5
- SHA512:
6
- metadata.gz: 01c41e39063401936dc1c60f4161e3737c2ea1233cd7575a413eb60d52c454f2df6f6cac42202ba220a0a65c04858f2c6f426f41f79140d70e387ab747f45493
7
- data.tar.gz: 94b8a2dd418f6b3d1647a653a7d056becc73b828f764a1621b6b40ffd92fe277b0b0aa542fcb7b0bd357d8d017bbaaa8549a7a683a3007cc371859a72307cef7