oslc 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/oslc.rb +10 -3
  2. data/lib/oslc/version.rb +1 -1
  3. metadata +2 -8
@@ -19,14 +19,17 @@ module Oslc
19
19
  VALUE_TYPES = {
20
20
  'Boolean' => 'http://www.w3.org/2001/XMLSchema#boolean',
21
21
  'DateTime' => 'http://www.w3.org/2001/XMLSchema#dateTime',
22
+ 'Time' => 'http://www.w3.org/2001/XMLSchema#time',
22
23
  'Decimal' => 'http://www.w3.org/2001/XMLSchema#decimal',
23
24
  'Double' => 'http://www.w3.org/2001/XMLSchema#double',
24
25
  'Float' => 'http://www.w3.org/2001/XMLSchema#float',
25
26
  'String' => 'http://www.w3.org/2001/XMLSchema#string',
26
- 'Integer' => 'http://www.w3.org/2001/XMLSchema#int',
27
+ 'Integer' => 'http://www.w3.org/2001/XMLSchema#integer',
27
28
  'Date' => 'http://www.w3.org/2001/XMLSchema#dateTime',
28
- 'Literal' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral',
29
- 'Resource' => 'http://open-services.net/ns/core#Resource'
29
+ 'XMLLiteral'=> 'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral',
30
+ 'Resource' => 'http://open-services.net/ns/core#Resource',
31
+ 'LocalResource' => 'http://open-services.net/ns/core#LocalResource',
32
+ 'Either' => 'http://open-services.net/ns/core#AnyResource'
30
33
  }
31
34
 
32
35
  class << self
@@ -36,5 +39,9 @@ module Oslc
36
39
  prefixes = [prefixes].flatten
37
40
  NAMESPACES.select{|key| prefixes.include? key}
38
41
  end
42
+
43
+ def core_domains
44
+ [:rm, :cm, :qm, :asset]
45
+ end
39
46
  end
40
47
  end
@@ -1,3 +1,3 @@
1
1
  module Oslc
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oslc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-30 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -72,18 +72,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
72
  - - ! '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
- segments:
76
- - 0
77
- hash: 958141672323716588
78
75
  required_rubygems_version: !ruby/object:Gem::Requirement
79
76
  none: false
80
77
  requirements:
81
78
  - - ! '>='
82
79
  - !ruby/object:Gem::Version
83
80
  version: '0'
84
- segments:
85
- - 0
86
- hash: 958141672323716588
87
81
  requirements: []
88
82
  rubyforge_project:
89
83
  rubygems_version: 1.8.24