bbc_data_service 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module BBCDataService
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
@@ -86,8 +86,8 @@ module BBCDataService
86
86
  }
87
87
  if ServiceConfig[:vocabularies].size > 0
88
88
  ServiceConfig[:vocabularies].each do |v|
89
- key = v.first
90
- vocabulary[key] = v.last
89
+ key = v.keys.first
90
+ vocabulary[key] = v[key]
91
91
  end
92
92
  end
93
93
  vocabulary
@@ -39,7 +39,7 @@ describe BBCDataService::FixtureLoader do
39
39
  end
40
40
 
41
41
  it "should allow custom vocabularies" do
42
- ServiceConfig[:vocabularies] = {:domain => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/domain/")}
42
+ ServiceConfig[:vocabularies] = [{:domain => RDF::Vocabulary.new("http://www.bbc.co.uk/ontologies/domain/")}]
43
43
  object = BBCDataService::FixtureLoader.load_fixture(:custom_vocabulary)
44
44
  object.name.should == "Athletics"
45
45
  end
metadata CHANGED
@@ -1,144 +1,101 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bbc_data_service
3
- version: !ruby/object:Gem::Version
4
- hash: 5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.16
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 15
10
- version: 0.1.15
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Matthew Crouch
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-09-27 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-09-27 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: sinatra
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156207260 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 19
29
- segments:
30
- - 1
31
- - 2
32
- - 6
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.2.6
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: activemodel
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2156207260
25
+ - !ruby/object:Gem::Dependency
26
+ name: activemodel
27
+ requirement: &2156205880 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 3
47
- - 1
48
- - 0
31
+ - !ruby/object:Gem::Version
49
32
  version: 3.1.0
50
33
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: rdf-rdfxml
54
34
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2156205880
36
+ - !ruby/object:Gem::Dependency
37
+ name: rdf-rdfxml
38
+ requirement: &2156204460 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
40
+ requirements:
58
41
  - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 27
61
- segments:
62
- - 0
63
- - 3
64
- - 4
42
+ - !ruby/object:Gem::Version
65
43
  version: 0.3.4
66
44
  type: :runtime
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: rdf-json
70
45
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2156204460
47
+ - !ruby/object:Gem::Dependency
48
+ name: rdf-json
49
+ requirement: &2156203480 !ruby/object:Gem::Requirement
72
50
  none: false
73
- requirements:
51
+ requirements:
74
52
  - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 19
77
- segments:
78
- - 0
79
- - 3
80
- - 0
53
+ - !ruby/object:Gem::Version
81
54
  version: 0.3.0
82
55
  type: :runtime
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: rspec
86
56
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *2156203480
58
+ - !ruby/object:Gem::Dependency
59
+ name: rspec
60
+ requirement: &2156198340 !ruby/object:Gem::Requirement
88
61
  none: false
89
- requirements:
62
+ requirements:
90
63
  - - ~>
91
- - !ruby/object:Gem::Version
92
- hash: 23
93
- segments:
94
- - 2
95
- - 6
96
- - 0
64
+ - !ruby/object:Gem::Version
97
65
  version: 2.6.0
98
66
  type: :development
99
- version_requirements: *id005
100
- - !ruby/object:Gem::Dependency
101
- name: turn
102
67
  prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *2156198340
69
+ - !ruby/object:Gem::Dependency
70
+ name: turn
71
+ requirement: &2156197220 !ruby/object:Gem::Requirement
104
72
  none: false
105
- requirements:
73
+ requirements:
106
74
  - - ~>
107
- - !ruby/object:Gem::Version
108
- hash: 59
109
- segments:
110
- - 0
111
- - 8
112
- - 2
75
+ - !ruby/object:Gem::Version
113
76
  version: 0.8.2
114
77
  type: :development
115
- version_requirements: *id006
116
- - !ruby/object:Gem::Dependency
117
- name: rake
118
78
  prerelease: false
119
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *2156197220
80
+ - !ruby/object:Gem::Dependency
81
+ name: rake
82
+ requirement: &2156196180 !ruby/object:Gem::Requirement
120
83
  none: false
121
- requirements:
84
+ requirements:
122
85
  - - ~>
123
- - !ruby/object:Gem::Version
124
- hash: 63
125
- segments:
126
- - 0
127
- - 9
128
- - 2
86
+ - !ruby/object:Gem::Version
129
87
  version: 0.9.2
130
88
  type: :development
131
- version_requirements: *id007
89
+ prerelease: false
90
+ version_requirements: *2156196180
132
91
  description: BBC Data Service for fixture management
133
- email:
92
+ email:
134
93
  - matthew.crouch@bbc.co.uk
135
- executables:
94
+ executables:
136
95
  - bbc_data_service
137
96
  extensions: []
138
-
139
97
  extra_rdoc_files: []
140
-
141
- files:
98
+ files:
142
99
  - .gitignore
143
100
  - Gemfile
144
101
  - Rakefile
@@ -164,38 +121,29 @@ files:
164
121
  - spec/spec_helper.rb
165
122
  homepage: https://github.com/mobzilla/bbc-data-service
166
123
  licenses: []
167
-
168
124
  post_install_message:
169
125
  rdoc_options: []
170
-
171
- require_paths:
126
+ require_paths:
172
127
  - lib
173
- required_ruby_version: !ruby/object:Gem::Requirement
128
+ required_ruby_version: !ruby/object:Gem::Requirement
174
129
  none: false
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- hash: 3
179
- segments:
180
- - 0
181
- version: "0"
182
- required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
135
  none: false
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- hash: 3
188
- segments:
189
- - 0
190
- version: "0"
136
+ requirements:
137
+ - - ! '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
191
140
  requirements: []
192
-
193
141
  rubyforge_project: bbc-data-service
194
142
  rubygems_version: 1.8.10
195
143
  signing_key:
196
144
  specification_version: 3
197
145
  summary: BBC Data Service
198
- test_files:
146
+ test_files:
199
147
  - spec/fixture_loader_spec.rb
200
148
  - spec/fixtures/countries.rdf.json
201
149
  - spec/fixtures/country.rdf.json