wf4ever-transformation-client 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
== Usage ==
|
4
4
|
Require the gem
|
5
|
-
require 'transformation-client'
|
5
|
+
require 'wf4ever/transformation-client'
|
6
6
|
|
7
7
|
To create a job:
|
8
8
|
uri = Wf4Ever::TransformationClient.create_job(service-uri, resource-uri, format-uri, ro-uri, oauth-token)
|
9
9
|
|
10
10
|
To check the status of a job
|
11
|
-
status = Wf4Ever::TransformationClient.check_job(uri)
|
11
|
+
status = Wf4Ever::TransformationClient.check_job(uri)["status"]
|
12
12
|
|
13
13
|
To cancel a job
|
14
14
|
Wf4Ever::TransformationClient.cancel_job(uri)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
File without changes
|
data/test/helper.rb
CHANGED
@@ -3,15 +3,13 @@ require 'helper'
|
|
3
3
|
class TestTransformationClient < Test::Unit::TestCase
|
4
4
|
|
5
5
|
SERVICE_URI = "http://sandbox.wf4ever-project.org/wf-ro/jobs"
|
6
|
-
T2FLOW_FORMAT = "
|
6
|
+
T2FLOW_FORMAT = "application/vnd.taverna.t2flow+xml"
|
7
7
|
OAUTH_TOKEN = "47d5423c-b507-4e1c-8"
|
8
|
+
RESOURCE = "http://www.myexperiment.org/workflows/2470/download/_untitled__947103.t2flow?version=2"
|
9
|
+
RO = "http://sandbox.wf4ever-project.org/rodl/ROs/FinnsTest/"
|
8
10
|
|
9
11
|
def test_can_create
|
10
|
-
uri = Wf4Ever::TransformationClient.create_job(SERVICE_URI,
|
11
|
-
"http://www.myexperiment.org/workflows/2470/download/_untitled__947103.t2flow?version=2",
|
12
|
-
T2FLOW_FORMAT,
|
13
|
-
"http://sandbox.wf4ever-project.org/rodl/ROs/FinnsTest/",
|
14
|
-
OAUTH_TOKEN)
|
12
|
+
uri = Wf4Ever::TransformationClient.create_job(SERVICE_URI, RESOURCE, T2FLOW_FORMAT, RO, OAUTH_TOKEN)
|
15
13
|
assert_not_nil uri
|
16
14
|
end
|
17
15
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "wf4ever-transformation-client"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Finn Bacall"]
|
@@ -23,10 +23,9 @@ Gem::Specification.new do |s|
|
|
23
23
|
"README.rdoc",
|
24
24
|
"Rakefile",
|
25
25
|
"VERSION",
|
26
|
-
"lib/transformation-client.rb",
|
26
|
+
"lib/wf4ever/transformation-client.rb",
|
27
27
|
"test/helper.rb",
|
28
28
|
"test/test_transformation-client.rb",
|
29
|
-
"transformation-client.gemspec",
|
30
29
|
"wf4ever-transformation-client.gemspec"
|
31
30
|
]
|
32
31
|
s.homepage = "http://github.com/fbacall/transformation-client"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wf4ever-transformation-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -73,10 +73,9 @@ files:
|
|
73
73
|
- README.rdoc
|
74
74
|
- Rakefile
|
75
75
|
- VERSION
|
76
|
-
- lib/transformation-client.rb
|
76
|
+
- lib/wf4ever/transformation-client.rb
|
77
77
|
- test/helper.rb
|
78
78
|
- test/test_transformation-client.rb
|
79
|
-
- transformation-client.gemspec
|
80
79
|
- wf4ever-transformation-client.gemspec
|
81
80
|
homepage: http://github.com/fbacall/transformation-client
|
82
81
|
licenses:
|
@@ -93,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
92
|
version: '0'
|
94
93
|
segments:
|
95
94
|
- 0
|
96
|
-
hash:
|
95
|
+
hash: 1061969085
|
97
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
97
|
none: false
|
99
98
|
requirements:
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "transformation-client"
|
8
|
-
s.version = "0.1.0"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Finn Bacall"]
|
12
|
-
s.date = "2012-09-25"
|
13
|
-
s.description = "Client to interact with Wf4ever's RO Transformation Service"
|
14
|
-
s.email = "finn.bacall@cs.man.ac.uk"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
"Gemfile",
|
22
|
-
"LICENSE.txt",
|
23
|
-
"README.rdoc",
|
24
|
-
"Rakefile",
|
25
|
-
"VERSION",
|
26
|
-
"lib/transformation-client.rb",
|
27
|
-
"test/helper.rb",
|
28
|
-
"test/test_transformation-client.rb"
|
29
|
-
]
|
30
|
-
s.homepage = "http://github.com/fbacall/transformation-client"
|
31
|
-
s.licenses = ["MIT"]
|
32
|
-
s.require_paths = ["lib"]
|
33
|
-
s.rubygems_version = "1.8.24"
|
34
|
-
s.summary = "Client to interact with Wf4ever's RO Transformation Service"
|
35
|
-
|
36
|
-
if s.respond_to? :specification_version then
|
37
|
-
s.specification_version = 3
|
38
|
-
|
39
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
40
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
41
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.1.5"])
|
42
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
43
|
-
else
|
44
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
45
|
-
s.add_dependency(%q<bundler>, ["~> 1.1.5"])
|
46
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
47
|
-
end
|
48
|
-
else
|
49
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
50
|
-
s.add_dependency(%q<bundler>, ["~> 1.1.5"])
|
51
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|