opentox-ruby-api-wrapper 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +13 -14
- data/VERSION +1 -1
- data/lib/environment.rb +2 -1
- metadata +112 -35
data/Rakefile
CHANGED
@@ -9,13 +9,12 @@ begin
|
|
9
9
|
gem.description = %Q{Ruby wrapper for the OpenTox REST API (http://www.opentox.org)}
|
10
10
|
gem.email = "helma@in-silico.ch"
|
11
11
|
gem.homepage = "http://github.com/helma/opentox-ruby-api-wrapper"
|
12
|
-
gem.authors = ["Christoph Helma"]
|
12
|
+
gem.authors = ["Christoph Helma, Martin Guetlein"]
|
13
|
+
# dependencies
|
13
14
|
[ "sinatra",
|
14
15
|
"emk-sinatra-url-for",
|
15
16
|
"sinatra-respond_to",
|
16
17
|
"sinatra-static-assets",
|
17
|
-
"dm-more",
|
18
|
-
"dm-core",
|
19
18
|
"rest-client",
|
20
19
|
"rack",
|
21
20
|
"rack-contrib",
|
@@ -23,20 +22,20 @@ begin
|
|
23
22
|
"nokogiri",
|
24
23
|
"rubyzip",
|
25
24
|
"builder",
|
26
|
-
"do_mysql",
|
27
|
-
"data_objects",
|
28
25
|
"roo",
|
29
26
|
"spreadsheet",
|
30
27
|
"google-spreadsheet-ruby",
|
31
|
-
"tmail"
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
28
|
+
"tmail"
|
29
|
+
].each { |dep| gem.add_dependency dep }
|
30
|
+
[ "dm-core",
|
31
|
+
'dm-serializer',
|
32
|
+
'dm-timestamps',
|
33
|
+
'dm-types',
|
34
|
+
'dm-migrations',
|
35
|
+
"dm-mysql-adapter"
|
36
|
+
].each {|dep| gem.add_dependency dep, ">= 1" }
|
37
|
+
gem.add_dependency "haml", ">=3"
|
38
|
+
['cucumber','jeweler'].each { |dep| gem.add_development_dependency dep }
|
40
39
|
gem.files = FileList["[A-Z]*", "{bin,generators,lib,test}/**/*", 'lib/jeweler/templates/.gitignore']
|
41
40
|
gem.files.include %w(lib/tasks/owl.rb, lib/environment.rb, lib/algorithm.rb, lib/compound.rb, lib/dataset.rb, lib/model.rb, lib/utils.rb, lib/validation.rb, lib/templates/*)
|
42
41
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.6
|
data/lib/environment.rb
CHANGED
@@ -24,7 +24,7 @@ end
|
|
24
24
|
|
25
25
|
# database
|
26
26
|
if @@config[:database]
|
27
|
-
['dm-core', 'dm-serializer', 'dm-timestamps', 'dm-types'].each{|lib| require lib }
|
27
|
+
['dm-core', 'dm-serializer', 'dm-timestamps', 'dm-types', 'dm-migrations' ].each{|lib| require lib }
|
28
28
|
case @@config[:database][:adapter]
|
29
29
|
when /sqlite/i
|
30
30
|
db_dir = File.join(basedir, "db")
|
@@ -106,6 +106,7 @@ end
|
|
106
106
|
|
107
107
|
logfile = "#{LOG_DIR}/#{ENV["RACK_ENV"]}.log"
|
108
108
|
LOGGER = MyLogger.new(logfile,'daily') # daily rotation
|
109
|
+
LOGGER.level = Logger::WARN if ENV["RACK_ENV"] == 'production'
|
109
110
|
|
110
111
|
#LOGGER = MyLogger.new(STDOUT)
|
111
112
|
#LOGGER.datetime_format = "%Y-%m-%d %H:%M:%S "
|
metadata
CHANGED
@@ -1,29 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentox-ruby-api-wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 5
|
8
|
-
-
|
9
|
-
version: 1.5.
|
9
|
+
- 6
|
10
|
+
version: 1.5.6
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
|
-
- Christoph Helma
|
13
|
+
- Christoph Helma, Martin Guetlein
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-06-15 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: sinatra
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
version: "0"
|
@@ -33,9 +36,11 @@ dependencies:
|
|
33
36
|
name: emk-sinatra-url-for
|
34
37
|
prerelease: false
|
35
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
36
40
|
requirements:
|
37
41
|
- - ">="
|
38
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
39
44
|
segments:
|
40
45
|
- 0
|
41
46
|
version: "0"
|
@@ -45,9 +50,11 @@ dependencies:
|
|
45
50
|
name: sinatra-respond_to
|
46
51
|
prerelease: false
|
47
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
48
54
|
requirements:
|
49
55
|
- - ">="
|
50
56
|
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
51
58
|
segments:
|
52
59
|
- 0
|
53
60
|
version: "0"
|
@@ -57,230 +64,296 @@ dependencies:
|
|
57
64
|
name: sinatra-static-assets
|
58
65
|
prerelease: false
|
59
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
60
68
|
requirements:
|
61
69
|
- - ">="
|
62
70
|
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
63
72
|
segments:
|
64
73
|
- 0
|
65
74
|
version: "0"
|
66
75
|
type: :runtime
|
67
76
|
version_requirements: *id004
|
68
77
|
- !ruby/object:Gem::Dependency
|
69
|
-
name:
|
78
|
+
name: rest-client
|
70
79
|
prerelease: false
|
71
80
|
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
83
|
- - ">="
|
74
84
|
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
75
86
|
segments:
|
76
87
|
- 0
|
77
88
|
version: "0"
|
78
89
|
type: :runtime
|
79
90
|
version_requirements: *id005
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
92
|
+
name: rack
|
82
93
|
prerelease: false
|
83
94
|
requirement: &id006 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
84
96
|
requirements:
|
85
97
|
- - ">="
|
86
98
|
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
87
100
|
segments:
|
88
101
|
- 0
|
89
102
|
version: "0"
|
90
103
|
type: :runtime
|
91
104
|
version_requirements: *id006
|
92
105
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
106
|
+
name: rack-contrib
|
94
107
|
prerelease: false
|
95
108
|
requirement: &id007 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
96
110
|
requirements:
|
97
111
|
- - ">="
|
98
112
|
- !ruby/object:Gem::Version
|
113
|
+
hash: 3
|
99
114
|
segments:
|
100
115
|
- 0
|
101
116
|
version: "0"
|
102
117
|
type: :runtime
|
103
118
|
version_requirements: *id007
|
104
119
|
- !ruby/object:Gem::Dependency
|
105
|
-
name: rack
|
120
|
+
name: rack-flash
|
106
121
|
prerelease: false
|
107
122
|
requirement: &id008 !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
108
124
|
requirements:
|
109
125
|
- - ">="
|
110
126
|
- !ruby/object:Gem::Version
|
127
|
+
hash: 3
|
111
128
|
segments:
|
112
129
|
- 0
|
113
130
|
version: "0"
|
114
131
|
type: :runtime
|
115
132
|
version_requirements: *id008
|
116
133
|
- !ruby/object:Gem::Dependency
|
117
|
-
name:
|
134
|
+
name: nokogiri
|
118
135
|
prerelease: false
|
119
136
|
requirement: &id009 !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
120
138
|
requirements:
|
121
139
|
- - ">="
|
122
140
|
- !ruby/object:Gem::Version
|
141
|
+
hash: 3
|
123
142
|
segments:
|
124
143
|
- 0
|
125
144
|
version: "0"
|
126
145
|
type: :runtime
|
127
146
|
version_requirements: *id009
|
128
147
|
- !ruby/object:Gem::Dependency
|
129
|
-
name:
|
148
|
+
name: rubyzip
|
130
149
|
prerelease: false
|
131
150
|
requirement: &id010 !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
132
152
|
requirements:
|
133
153
|
- - ">="
|
134
154
|
- !ruby/object:Gem::Version
|
155
|
+
hash: 3
|
135
156
|
segments:
|
136
157
|
- 0
|
137
158
|
version: "0"
|
138
159
|
type: :runtime
|
139
160
|
version_requirements: *id010
|
140
161
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
162
|
+
name: builder
|
142
163
|
prerelease: false
|
143
164
|
requirement: &id011 !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
144
166
|
requirements:
|
145
167
|
- - ">="
|
146
168
|
- !ruby/object:Gem::Version
|
169
|
+
hash: 3
|
147
170
|
segments:
|
148
171
|
- 0
|
149
172
|
version: "0"
|
150
173
|
type: :runtime
|
151
174
|
version_requirements: *id011
|
152
175
|
- !ruby/object:Gem::Dependency
|
153
|
-
name:
|
176
|
+
name: roo
|
154
177
|
prerelease: false
|
155
178
|
requirement: &id012 !ruby/object:Gem::Requirement
|
179
|
+
none: false
|
156
180
|
requirements:
|
157
181
|
- - ">="
|
158
182
|
- !ruby/object:Gem::Version
|
183
|
+
hash: 3
|
159
184
|
segments:
|
160
185
|
- 0
|
161
186
|
version: "0"
|
162
187
|
type: :runtime
|
163
188
|
version_requirements: *id012
|
164
189
|
- !ruby/object:Gem::Dependency
|
165
|
-
name:
|
190
|
+
name: spreadsheet
|
166
191
|
prerelease: false
|
167
192
|
requirement: &id013 !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
168
194
|
requirements:
|
169
195
|
- - ">="
|
170
196
|
- !ruby/object:Gem::Version
|
197
|
+
hash: 3
|
171
198
|
segments:
|
172
199
|
- 0
|
173
200
|
version: "0"
|
174
201
|
type: :runtime
|
175
202
|
version_requirements: *id013
|
176
203
|
- !ruby/object:Gem::Dependency
|
177
|
-
name:
|
204
|
+
name: google-spreadsheet-ruby
|
178
205
|
prerelease: false
|
179
206
|
requirement: &id014 !ruby/object:Gem::Requirement
|
207
|
+
none: false
|
180
208
|
requirements:
|
181
209
|
- - ">="
|
182
210
|
- !ruby/object:Gem::Version
|
211
|
+
hash: 3
|
183
212
|
segments:
|
184
213
|
- 0
|
185
214
|
version: "0"
|
186
215
|
type: :runtime
|
187
216
|
version_requirements: *id014
|
188
217
|
- !ruby/object:Gem::Dependency
|
189
|
-
name:
|
218
|
+
name: tmail
|
190
219
|
prerelease: false
|
191
220
|
requirement: &id015 !ruby/object:Gem::Requirement
|
221
|
+
none: false
|
192
222
|
requirements:
|
193
223
|
- - ">="
|
194
224
|
- !ruby/object:Gem::Version
|
225
|
+
hash: 3
|
195
226
|
segments:
|
196
227
|
- 0
|
197
228
|
version: "0"
|
198
229
|
type: :runtime
|
199
230
|
version_requirements: *id015
|
200
231
|
- !ruby/object:Gem::Dependency
|
201
|
-
name:
|
232
|
+
name: dm-core
|
202
233
|
prerelease: false
|
203
234
|
requirement: &id016 !ruby/object:Gem::Requirement
|
235
|
+
none: false
|
204
236
|
requirements:
|
205
237
|
- - ">="
|
206
238
|
- !ruby/object:Gem::Version
|
239
|
+
hash: 1
|
207
240
|
segments:
|
208
|
-
-
|
209
|
-
version: "
|
241
|
+
- 1
|
242
|
+
version: "1"
|
210
243
|
type: :runtime
|
211
244
|
version_requirements: *id016
|
212
245
|
- !ruby/object:Gem::Dependency
|
213
|
-
name:
|
246
|
+
name: dm-serializer
|
214
247
|
prerelease: false
|
215
248
|
requirement: &id017 !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
216
250
|
requirements:
|
217
251
|
- - ">="
|
218
252
|
- !ruby/object:Gem::Version
|
253
|
+
hash: 1
|
219
254
|
segments:
|
220
|
-
-
|
221
|
-
version: "
|
255
|
+
- 1
|
256
|
+
version: "1"
|
222
257
|
type: :runtime
|
223
258
|
version_requirements: *id017
|
224
259
|
- !ruby/object:Gem::Dependency
|
225
|
-
name:
|
260
|
+
name: dm-timestamps
|
226
261
|
prerelease: false
|
227
262
|
requirement: &id018 !ruby/object:Gem::Requirement
|
263
|
+
none: false
|
228
264
|
requirements:
|
229
265
|
- - ">="
|
230
266
|
- !ruby/object:Gem::Version
|
267
|
+
hash: 1
|
231
268
|
segments:
|
232
|
-
-
|
233
|
-
version: "
|
269
|
+
- 1
|
270
|
+
version: "1"
|
234
271
|
type: :runtime
|
235
272
|
version_requirements: *id018
|
236
273
|
- !ruby/object:Gem::Dependency
|
237
|
-
name:
|
274
|
+
name: dm-types
|
238
275
|
prerelease: false
|
239
276
|
requirement: &id019 !ruby/object:Gem::Requirement
|
277
|
+
none: false
|
240
278
|
requirements:
|
241
279
|
- - ">="
|
242
280
|
- !ruby/object:Gem::Version
|
281
|
+
hash: 1
|
243
282
|
segments:
|
244
|
-
-
|
245
|
-
version: "
|
283
|
+
- 1
|
284
|
+
version: "1"
|
246
285
|
type: :runtime
|
247
286
|
version_requirements: *id019
|
248
287
|
- !ruby/object:Gem::Dependency
|
249
|
-
name:
|
288
|
+
name: dm-migrations
|
250
289
|
prerelease: false
|
251
290
|
requirement: &id020 !ruby/object:Gem::Requirement
|
291
|
+
none: false
|
252
292
|
requirements:
|
253
293
|
- - ">="
|
254
294
|
- !ruby/object:Gem::Version
|
295
|
+
hash: 1
|
255
296
|
segments:
|
256
|
-
-
|
257
|
-
version: "
|
297
|
+
- 1
|
298
|
+
version: "1"
|
258
299
|
type: :runtime
|
259
300
|
version_requirements: *id020
|
260
301
|
- !ruby/object:Gem::Dependency
|
261
|
-
name:
|
302
|
+
name: dm-mysql-adapter
|
262
303
|
prerelease: false
|
263
304
|
requirement: &id021 !ruby/object:Gem::Requirement
|
305
|
+
none: false
|
264
306
|
requirements:
|
265
307
|
- - ">="
|
266
308
|
- !ruby/object:Gem::Version
|
309
|
+
hash: 1
|
310
|
+
segments:
|
311
|
+
- 1
|
312
|
+
version: "1"
|
313
|
+
type: :runtime
|
314
|
+
version_requirements: *id021
|
315
|
+
- !ruby/object:Gem::Dependency
|
316
|
+
name: haml
|
317
|
+
prerelease: false
|
318
|
+
requirement: &id022 !ruby/object:Gem::Requirement
|
319
|
+
none: false
|
320
|
+
requirements:
|
321
|
+
- - ">="
|
322
|
+
- !ruby/object:Gem::Version
|
323
|
+
hash: 5
|
324
|
+
segments:
|
325
|
+
- 3
|
326
|
+
version: "3"
|
327
|
+
type: :runtime
|
328
|
+
version_requirements: *id022
|
329
|
+
- !ruby/object:Gem::Dependency
|
330
|
+
name: cucumber
|
331
|
+
prerelease: false
|
332
|
+
requirement: &id023 !ruby/object:Gem::Requirement
|
333
|
+
none: false
|
334
|
+
requirements:
|
335
|
+
- - ">="
|
336
|
+
- !ruby/object:Gem::Version
|
337
|
+
hash: 3
|
267
338
|
segments:
|
268
339
|
- 0
|
269
340
|
version: "0"
|
270
341
|
type: :development
|
271
|
-
version_requirements: *
|
342
|
+
version_requirements: *id023
|
272
343
|
- !ruby/object:Gem::Dependency
|
273
344
|
name: jeweler
|
274
345
|
prerelease: false
|
275
|
-
requirement: &
|
346
|
+
requirement: &id024 !ruby/object:Gem::Requirement
|
347
|
+
none: false
|
276
348
|
requirements:
|
277
349
|
- - ">="
|
278
350
|
- !ruby/object:Gem::Version
|
351
|
+
hash: 3
|
279
352
|
segments:
|
280
353
|
- 0
|
281
354
|
version: "0"
|
282
355
|
type: :development
|
283
|
-
version_requirements: *
|
356
|
+
version_requirements: *id024
|
284
357
|
description: Ruby wrapper for the OpenTox REST API (http://www.opentox.org)
|
285
358
|
email: helma@in-silico.ch
|
286
359
|
executables:
|
@@ -330,23 +403,27 @@ rdoc_options:
|
|
330
403
|
require_paths:
|
331
404
|
- lib
|
332
405
|
required_ruby_version: !ruby/object:Gem::Requirement
|
406
|
+
none: false
|
333
407
|
requirements:
|
334
408
|
- - ">="
|
335
409
|
- !ruby/object:Gem::Version
|
410
|
+
hash: 3
|
336
411
|
segments:
|
337
412
|
- 0
|
338
413
|
version: "0"
|
339
414
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
415
|
+
none: false
|
340
416
|
requirements:
|
341
417
|
- - ">="
|
342
418
|
- !ruby/object:Gem::Version
|
419
|
+
hash: 3
|
343
420
|
segments:
|
344
421
|
- 0
|
345
422
|
version: "0"
|
346
423
|
requirements: []
|
347
424
|
|
348
425
|
rubyforge_project:
|
349
|
-
rubygems_version: 1.3.
|
426
|
+
rubygems_version: 1.3.7
|
350
427
|
signing_key:
|
351
428
|
specification_version: 3
|
352
429
|
summary: Ruby wrapper for the OpenTox REST API
|