myexperiment-rest 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -1
- data/README +2 -2
- data/Rakefile +3 -3
- metadata +7 -50
- data/doc/rdoc/CHANGES.html +0 -168
- data/doc/rdoc/LICENSE.html +0 -127
- data/doc/rdoc/MyExperimentREST.html +0 -271
- data/doc/rdoc/MyExperimentREST/MyExperimentIOData.html +0 -319
- data/doc/rdoc/MyExperimentREST/MyExperimentUser.html +0 -405
- data/doc/rdoc/MyExperimentREST/MyExperimentWorkflow.html +0 -369
- data/doc/rdoc/MyExperimentREST/SessionCookie.html +0 -216
- data/doc/rdoc/MyExperimentREST/Urls.html +0 -175
- data/doc/rdoc/MyExperimentREST/User.html +0 -262
- data/doc/rdoc/MyExperimentREST/Workflow.html +0 -271
- data/doc/rdoc/README.html +0 -145
- data/doc/rdoc/created.rid +0 -9
- data/doc/rdoc/images/brick.png +0 -0
- data/doc/rdoc/images/brick_link.png +0 -0
- data/doc/rdoc/images/bug.png +0 -0
- data/doc/rdoc/images/bullet_black.png +0 -0
- data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
- data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
- data/doc/rdoc/images/date.png +0 -0
- data/doc/rdoc/images/find.png +0 -0
- data/doc/rdoc/images/loadingAnimation.gif +0 -0
- data/doc/rdoc/images/macFFBgHack.png +0 -0
- data/doc/rdoc/images/package.png +0 -0
- data/doc/rdoc/images/page_green.png +0 -0
- data/doc/rdoc/images/page_white_text.png +0 -0
- data/doc/rdoc/images/page_white_width.png +0 -0
- data/doc/rdoc/images/plugin.png +0 -0
- data/doc/rdoc/images/ruby.png +0 -0
- data/doc/rdoc/images/tag_green.png +0 -0
- data/doc/rdoc/images/wrench.png +0 -0
- data/doc/rdoc/images/wrench_orange.png +0 -0
- data/doc/rdoc/images/zoom.png +0 -0
- data/doc/rdoc/index.html +0 -142
- data/doc/rdoc/js/darkfish.js +0 -116
- data/doc/rdoc/js/jquery.js +0 -32
- data/doc/rdoc/js/quicksearch.js +0 -114
- data/doc/rdoc/js/thickbox-compressed.js +0 -10
- data/doc/rdoc/lib/myexperiment-rest/authentication_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest/constants_rb.html +0 -52
- data/doc/rdoc/lib/myexperiment-rest/user_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest/workflow_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest_rb.html +0 -64
- data/doc/rdoc/rdoc.css +0 -763
data/CHANGES
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
= Changes log for the MyExperiment via REST Gem
|
2
2
|
|
3
|
+
== Version 0.3.4
|
4
|
+
* Changed dependencies from ~> to >=
|
5
|
+
|
3
6
|
== Version 0.3.3
|
4
7
|
* Fixed bug when acquiring information from versions other than the newest
|
5
8
|
|
@@ -39,4 +42,4 @@
|
|
39
42
|
|
40
43
|
== Version 0.2.5
|
41
44
|
* Abstracted the TavernaWorkflow class better so that it can be properly reused.
|
42
|
-
* API slightly changed; added input_type ([T2_FLOW | MY_EXPERIMENT])
|
45
|
+
* API slightly changed; added input_type ([T2_FLOW | MY_EXPERIMENT])
|
data/README
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
= MyExperiment Interaction via REST
|
2
2
|
|
3
3
|
Authors:: Konstantinos Karasavvas
|
4
|
-
Gem Version:: 0.3.
|
4
|
+
Gem Version:: 0.3.4
|
5
5
|
Contact:: mailto:kostas.karasavvas@nbic.nl
|
6
6
|
Licence:: MIT (See LICENCE or http://www.opensource.org/licenses/mit-license)
|
7
|
-
Copyright:: (c)
|
7
|
+
Copyright:: (c) 2012 Netherlands Bioinformatics Centre, The Netherlands
|
8
8
|
|
9
9
|
|
10
10
|
== Description
|
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ require 'rdoc/task'
|
|
7
7
|
|
8
8
|
spec = Gem::Specification.new do |s|
|
9
9
|
s.name = 'myexperiment-rest'
|
10
|
-
s.version = '0.3.
|
10
|
+
s.version = '0.3.4'
|
11
11
|
s.extra_rdoc_files = ['README', 'LICENSE', 'CHANGES']
|
12
12
|
s.summary = 'This is a simple library to access data on myExperiment via its REST API.'
|
13
13
|
s.description = 'This is a simple library to access data on myExperiment via its REST API. Currently supports a subset of the workflow information available.'
|
@@ -17,8 +17,8 @@ spec = Gem::Specification.new do |s|
|
|
17
17
|
s.files = %w(LICENSE README CHANGES Rakefile) + Dir.glob("{bin,lib,doc,spec}/**/*")
|
18
18
|
s.require_path = "lib"
|
19
19
|
s.bindir = "bin"
|
20
|
-
s.add_dependency 'rest-client', '
|
21
|
-
s.add_dependency 'libxml-ruby', '
|
20
|
+
s.add_dependency 'rest-client', '>= 1.6.3'
|
21
|
+
s.add_dependency 'libxml-ruby', '>= 2.2.2'
|
22
22
|
end
|
23
23
|
|
24
24
|
Gem::PackageTask.new(spec) do |p|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myexperiment-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Konstantinos Karasavvas
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-05-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rest-client
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
hash: 9
|
29
29
|
segments:
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
hash: 3
|
45
45
|
segments:
|
@@ -70,49 +70,6 @@ files:
|
|
70
70
|
- lib/myexperiment-rest/user.rb
|
71
71
|
- lib/myexperiment-rest/authentication.rb
|
72
72
|
- lib/myexperiment-rest/constants.rb
|
73
|
-
- doc/rdoc/rdoc.css
|
74
|
-
- doc/rdoc/LICENSE.html
|
75
|
-
- doc/rdoc/index.html
|
76
|
-
- doc/rdoc/js/jquery.js
|
77
|
-
- doc/rdoc/js/thickbox-compressed.js
|
78
|
-
- doc/rdoc/js/darkfish.js
|
79
|
-
- doc/rdoc/js/quicksearch.js
|
80
|
-
- doc/rdoc/MyExperimentREST.html
|
81
|
-
- doc/rdoc/README.html
|
82
|
-
- doc/rdoc/lib/myexperiment-rest/constants_rb.html
|
83
|
-
- doc/rdoc/lib/myexperiment-rest/authentication_rb.html
|
84
|
-
- doc/rdoc/lib/myexperiment-rest/user_rb.html
|
85
|
-
- doc/rdoc/lib/myexperiment-rest/workflow_rb.html
|
86
|
-
- doc/rdoc/lib/myexperiment-rest_rb.html
|
87
|
-
- doc/rdoc/created.rid
|
88
|
-
- doc/rdoc/CHANGES.html
|
89
|
-
- doc/rdoc/images/find.png
|
90
|
-
- doc/rdoc/images/bug.png
|
91
|
-
- doc/rdoc/images/bullet_toggle_minus.png
|
92
|
-
- doc/rdoc/images/wrench.png
|
93
|
-
- doc/rdoc/images/bullet_black.png
|
94
|
-
- doc/rdoc/images/macFFBgHack.png
|
95
|
-
- doc/rdoc/images/page_white_text.png
|
96
|
-
- doc/rdoc/images/ruby.png
|
97
|
-
- doc/rdoc/images/bullet_toggle_plus.png
|
98
|
-
- doc/rdoc/images/loadingAnimation.gif
|
99
|
-
- doc/rdoc/images/brick.png
|
100
|
-
- doc/rdoc/images/zoom.png
|
101
|
-
- doc/rdoc/images/tag_green.png
|
102
|
-
- doc/rdoc/images/page_green.png
|
103
|
-
- doc/rdoc/images/brick_link.png
|
104
|
-
- doc/rdoc/images/wrench_orange.png
|
105
|
-
- doc/rdoc/images/date.png
|
106
|
-
- doc/rdoc/images/page_white_width.png
|
107
|
-
- doc/rdoc/images/package.png
|
108
|
-
- doc/rdoc/images/plugin.png
|
109
|
-
- doc/rdoc/MyExperimentREST/User.html
|
110
|
-
- doc/rdoc/MyExperimentREST/Urls.html
|
111
|
-
- doc/rdoc/MyExperimentREST/MyExperimentWorkflow.html
|
112
|
-
- doc/rdoc/MyExperimentREST/MyExperimentUser.html
|
113
|
-
- doc/rdoc/MyExperimentREST/MyExperimentIOData.html
|
114
|
-
- doc/rdoc/MyExperimentREST/Workflow.html
|
115
|
-
- doc/rdoc/MyExperimentREST/SessionCookie.html
|
116
73
|
homepage:
|
117
74
|
licenses: []
|
118
75
|
|
@@ -142,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
99
|
requirements: []
|
143
100
|
|
144
101
|
rubyforge_project:
|
145
|
-
rubygems_version: 1.
|
102
|
+
rubygems_version: 1.8.19
|
146
103
|
signing_key:
|
147
104
|
specification_version: 3
|
148
105
|
summary: This is a simple library to access data on myExperiment via its REST API.
|
data/doc/rdoc/CHANGES.html
DELETED
@@ -1,168 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
-
<head>
|
7
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
|
-
|
9
|
-
<title>File: CHANGES [myexperiment-rest Docs]</title>
|
10
|
-
|
11
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
-
|
13
|
-
<script src="./js/jquery.js" type="text/javascript"
|
14
|
-
charset="utf-8"></script>
|
15
|
-
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
-
charset="utf-8"></script>
|
17
|
-
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
-
charset="utf-8"></script>
|
19
|
-
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
-
charset="utf-8"></script>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body class="file">
|
24
|
-
<div id="metadata">
|
25
|
-
<div id="home-metadata">
|
26
|
-
<div id="home-section" class="section">
|
27
|
-
<h3 class="section-header">
|
28
|
-
<a href="./index.html">Home</a>
|
29
|
-
<a href="./index.html#classes">Classes</a>
|
30
|
-
<a href="./index.html#methods">Methods</a>
|
31
|
-
</h3>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="project-metadata">
|
36
|
-
|
37
|
-
|
38
|
-
<div id="fileindex-section" class="section project-section">
|
39
|
-
<h3 class="section-header">Files</h3>
|
40
|
-
<ul>
|
41
|
-
|
42
|
-
<li class="file"><a href="./CHANGES.html">CHANGES</a></li>
|
43
|
-
|
44
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
45
|
-
|
46
|
-
<li class="file"><a href="./README.html">README</a></li>
|
47
|
-
|
48
|
-
</ul>
|
49
|
-
</div>
|
50
|
-
|
51
|
-
|
52
|
-
<div id="classindex-section" class="section project-section">
|
53
|
-
<h3 class="section-header">Class Index
|
54
|
-
<span class="search-toggle"><img src="./images/find.png"
|
55
|
-
height="16" width="16" alt="[+]"
|
56
|
-
title="show/hide quicksearch" /></span></h3>
|
57
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
58
|
-
<fieldset>
|
59
|
-
<legend>Quicksearch</legend>
|
60
|
-
<input type="text" name="quicksearch" value=""
|
61
|
-
class="quicksearch-field" />
|
62
|
-
</fieldset>
|
63
|
-
</form>
|
64
|
-
|
65
|
-
<ul class="link-list">
|
66
|
-
|
67
|
-
<li><a href="./MyExperimentREST.html">MyExperimentREST</a></li>
|
68
|
-
|
69
|
-
<li><a href="./MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
|
70
|
-
|
71
|
-
<li><a href="./MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
|
72
|
-
|
73
|
-
<li><a href="./MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
|
74
|
-
|
75
|
-
<li><a href="./MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
|
76
|
-
|
77
|
-
<li><a href="./MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
|
78
|
-
|
79
|
-
<li><a href="./MyExperimentREST/User.html">MyExperimentREST::User</a></li>
|
80
|
-
|
81
|
-
<li><a href="./MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
85
|
-
</div>
|
86
|
-
|
87
|
-
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="documentation">
|
92
|
-
|
93
|
-
<h1>Changes log for the MyExperiment via REST Gem</h1>
|
94
|
-
|
95
|
-
<h2>Version 0.3.3</h2>
|
96
|
-
<ul><li>
|
97
|
-
<p>Fixed bug when acquiring information from versions other than the newest</p>
|
98
|
-
</li></ul>
|
99
|
-
|
100
|
-
<h2>Version 0.3.2</h2>
|
101
|
-
<ul><li>
|
102
|
-
<p>Updated to libxml-ruby 2.2.2</p>
|
103
|
-
</li></ul>
|
104
|
-
|
105
|
-
<h2>Version 0.3.1</h2>
|
106
|
-
<ul><li>
|
107
|
-
<p>Renamed xml_uri to content_uri</p>
|
108
|
-
</li><li>
|
109
|
-
<p>added simple session cookie authentication</p>
|
110
|
-
</li></ul>
|
111
|
-
|
112
|
-
<h2>Version 0.3.0</h2>
|
113
|
-
<ul><li>
|
114
|
-
<p>Added User class to acquire myExperiment’s user resource</p>
|
115
|
-
</li><li>
|
116
|
-
<p>Added a constants.rb file</p>
|
117
|
-
</li><li>
|
118
|
-
<p>XML parsing of sub-objects is done on the specific elements now and not
|
119
|
-
from the main doc</p>
|
120
|
-
</li><li>
|
121
|
-
<p>REST call is outside the XML parsing objects</p>
|
122
|
-
</li><li>
|
123
|
-
<p>Renamed populate_workflow with parse</p>
|
124
|
-
</li><li>
|
125
|
-
<p>Added from_uri and other from_ methods to retrieve data</p>
|
126
|
-
</li><li>
|
127
|
-
<p>Renamed TavernaWorkflow to MyExperimentWorkflow</p>
|
128
|
-
</li><li>
|
129
|
-
<p>Added MyExperimentUser class</p>
|
130
|
-
</li><li>
|
131
|
-
<p>Removed input_type – it was unrelated to the library!</p>
|
132
|
-
</li></ul>
|
133
|
-
|
134
|
-
<h2>Version 0.2.8</h2>
|
135
|
-
<ul><li>
|
136
|
-
<p>Added user information for workflow</p>
|
137
|
-
</li></ul>
|
138
|
-
|
139
|
-
<h2>Version 0.2.7</h2>
|
140
|
-
<ul><li>
|
141
|
-
<p>Minor clean up of get_workflow_data.rb and documentation.</p>
|
142
|
-
</li><li>
|
143
|
-
<p>Added libxml-ruby dependency in gem specification.</p>
|
144
|
-
</li></ul>
|
145
|
-
|
146
|
-
<h2>Version 0.2.6</h2>
|
147
|
-
<ul><li>
|
148
|
-
<p>Added rest-client dependency version in gem specification.</p>
|
149
|
-
</li></ul>
|
150
|
-
|
151
|
-
<h2>Version 0.2.5</h2>
|
152
|
-
<ul><li>
|
153
|
-
<p>Abstracted the TavernaWorkflow class better so that it can be properly
|
154
|
-
reused.</p>
|
155
|
-
</li><li>
|
156
|
-
<p>API slightly changed; added input_type ([T2_FLOW | MY_EXPERIMENT])</p>
|
157
|
-
</li></ul>
|
158
|
-
|
159
|
-
</div>
|
160
|
-
|
161
|
-
<div id="validator-badges">
|
162
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
163
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
164
|
-
Rdoc Generator</a> 2</small>.</p>
|
165
|
-
</div>
|
166
|
-
</body>
|
167
|
-
</html>
|
168
|
-
|
data/doc/rdoc/LICENSE.html
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
-
<head>
|
7
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
|
-
|
9
|
-
<title>File: LICENSE [myexperiment-rest Docs]</title>
|
10
|
-
|
11
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
-
|
13
|
-
<script src="./js/jquery.js" type="text/javascript"
|
14
|
-
charset="utf-8"></script>
|
15
|
-
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
-
charset="utf-8"></script>
|
17
|
-
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
-
charset="utf-8"></script>
|
19
|
-
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
-
charset="utf-8"></script>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body class="file">
|
24
|
-
<div id="metadata">
|
25
|
-
<div id="home-metadata">
|
26
|
-
<div id="home-section" class="section">
|
27
|
-
<h3 class="section-header">
|
28
|
-
<a href="./index.html">Home</a>
|
29
|
-
<a href="./index.html#classes">Classes</a>
|
30
|
-
<a href="./index.html#methods">Methods</a>
|
31
|
-
</h3>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="project-metadata">
|
36
|
-
|
37
|
-
|
38
|
-
<div id="fileindex-section" class="section project-section">
|
39
|
-
<h3 class="section-header">Files</h3>
|
40
|
-
<ul>
|
41
|
-
|
42
|
-
<li class="file"><a href="./CHANGES.html">CHANGES</a></li>
|
43
|
-
|
44
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
45
|
-
|
46
|
-
<li class="file"><a href="./README.html">README</a></li>
|
47
|
-
|
48
|
-
</ul>
|
49
|
-
</div>
|
50
|
-
|
51
|
-
|
52
|
-
<div id="classindex-section" class="section project-section">
|
53
|
-
<h3 class="section-header">Class Index
|
54
|
-
<span class="search-toggle"><img src="./images/find.png"
|
55
|
-
height="16" width="16" alt="[+]"
|
56
|
-
title="show/hide quicksearch" /></span></h3>
|
57
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
58
|
-
<fieldset>
|
59
|
-
<legend>Quicksearch</legend>
|
60
|
-
<input type="text" name="quicksearch" value=""
|
61
|
-
class="quicksearch-field" />
|
62
|
-
</fieldset>
|
63
|
-
</form>
|
64
|
-
|
65
|
-
<ul class="link-list">
|
66
|
-
|
67
|
-
<li><a href="./MyExperimentREST.html">MyExperimentREST</a></li>
|
68
|
-
|
69
|
-
<li><a href="./MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
|
70
|
-
|
71
|
-
<li><a href="./MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
|
72
|
-
|
73
|
-
<li><a href="./MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
|
74
|
-
|
75
|
-
<li><a href="./MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
|
76
|
-
|
77
|
-
<li><a href="./MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
|
78
|
-
|
79
|
-
<li><a href="./MyExperimentREST/User.html">MyExperimentREST::User</a></li>
|
80
|
-
|
81
|
-
<li><a href="./MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
85
|
-
</div>
|
86
|
-
|
87
|
-
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="documentation">
|
92
|
-
|
93
|
-
<h2>myexperiment-rest</h2>
|
94
|
-
|
95
|
-
<p>The MIT License</p>
|
96
|
-
|
97
|
-
<p>Copyright © 2010 - Netherlands Bioinformatics Centre</p>
|
98
|
-
|
99
|
-
<p>Permission is hereby granted, free of charge, to any person obtaining a
|
100
|
-
copy of this software and associated documentation files (the
|
101
|
-
“Software”), to deal in the Software without restriction, including
|
102
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
103
|
-
distribute, sublicense, and/or sell copies of the Software, and to permit
|
104
|
-
persons to whom the Software is furnished to do so, subject to the
|
105
|
-
following conditions:</p>
|
106
|
-
|
107
|
-
<p>The above copyright notice and this permission notice shall be included in
|
108
|
-
all copies or substantial portions of the Software.</p>
|
109
|
-
|
110
|
-
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
111
|
-
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
112
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
113
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
114
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
115
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
116
|
-
DEALINGS IN THE SOFTWARE.</p>
|
117
|
-
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div id="validator-badges">
|
121
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
122
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
123
|
-
Rdoc Generator</a> 2</small>.</p>
|
124
|
-
</div>
|
125
|
-
</body>
|
126
|
-
</html>
|
127
|
-
|
@@ -1,271 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
-
|
8
|
-
<title>Module: MyExperimentREST</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
-
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
-
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
-
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body id="top" class="module">
|
19
|
-
|
20
|
-
<div id="metadata">
|
21
|
-
<div id="home-metadata">
|
22
|
-
<div id="home-section" class="section">
|
23
|
-
<h3 class="section-header">
|
24
|
-
<a href="./index.html">Home</a>
|
25
|
-
<a href="./index.html#classes">Classes</a>
|
26
|
-
<a href="./index.html#methods">Methods</a>
|
27
|
-
</h3>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div id="file-metadata">
|
32
|
-
<div id="file-list-section" class="section">
|
33
|
-
<h3 class="section-header">In Files</h3>
|
34
|
-
<div class="section-body">
|
35
|
-
<ul>
|
36
|
-
|
37
|
-
<li><a href="./lib/myexperiment-rest_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
-
class="thickbox" title="lib/myexperiment-rest.rb">lib/myexperiment-rest.rb</a></li>
|
39
|
-
|
40
|
-
<li><a href="./lib/myexperiment-rest/workflow_rb.html?TB_iframe=true&height=550&width=785"
|
41
|
-
class="thickbox" title="lib/myexperiment-rest/workflow.rb">lib/myexperiment-rest/workflow.rb</a></li>
|
42
|
-
|
43
|
-
<li><a href="./lib/myexperiment-rest/user_rb.html?TB_iframe=true&height=550&width=785"
|
44
|
-
class="thickbox" title="lib/myexperiment-rest/user.rb">lib/myexperiment-rest/user.rb</a></li>
|
45
|
-
|
46
|
-
<li><a href="./lib/myexperiment-rest/authentication_rb.html?TB_iframe=true&height=550&width=785"
|
47
|
-
class="thickbox" title="lib/myexperiment-rest/authentication.rb">lib/myexperiment-rest/authentication.rb</a></li>
|
48
|
-
|
49
|
-
<li><a href="./lib/myexperiment-rest/constants_rb.html?TB_iframe=true&height=550&width=785"
|
50
|
-
class="thickbox" title="lib/myexperiment-rest/constants.rb">lib/myexperiment-rest/constants.rb</a></li>
|
51
|
-
|
52
|
-
</ul>
|
53
|
-
</div>
|
54
|
-
</div>
|
55
|
-
|
56
|
-
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div id="class-metadata">
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<!-- Namespace Contents -->
|
66
|
-
<div id="namespace-list-section" class="section">
|
67
|
-
<h3 class="section-header">Namespace</h3>
|
68
|
-
<ul class="link-list">
|
69
|
-
|
70
|
-
<li><span class="type">MODULE</span> <a href="MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
|
71
|
-
|
72
|
-
<li><span class="type">CLASS</span> <a href="MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
|
73
|
-
|
74
|
-
<li><span class="type">CLASS</span> <a href="MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
|
75
|
-
|
76
|
-
<li><span class="type">CLASS</span> <a href="MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
|
77
|
-
|
78
|
-
<li><span class="type">CLASS</span> <a href="MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
|
79
|
-
|
80
|
-
<li><span class="type">CLASS</span> <a href="MyExperimentREST/User.html">MyExperimentREST::User</a></li>
|
81
|
-
|
82
|
-
<li><span class="type">CLASS</span> <a href="MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
|
83
|
-
|
84
|
-
</ul>
|
85
|
-
</div>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<!-- Method Quickref -->
|
90
|
-
<div id="method-list-section" class="section">
|
91
|
-
<h3 class="section-header">Methods</h3>
|
92
|
-
<ul class="link-list">
|
93
|
-
|
94
|
-
<li><a href="#method-c-get_myexperiment_data">::get_myexperiment_data</a></li>
|
95
|
-
|
96
|
-
</ul>
|
97
|
-
</div>
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
</div>
|
102
|
-
|
103
|
-
<div id="project-metadata">
|
104
|
-
|
105
|
-
|
106
|
-
<div id="fileindex-section" class="section project-section">
|
107
|
-
<h3 class="section-header">Files</h3>
|
108
|
-
<ul>
|
109
|
-
|
110
|
-
<li class="file"><a href="./CHANGES.html">CHANGES</a></li>
|
111
|
-
|
112
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
113
|
-
|
114
|
-
<li class="file"><a href="./README.html">README</a></li>
|
115
|
-
|
116
|
-
</ul>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
|
120
|
-
<div id="classindex-section" class="section project-section">
|
121
|
-
<h3 class="section-header">Class/Module Index
|
122
|
-
<span class="search-toggle"><img src="./images/find.png"
|
123
|
-
height="16" width="16" alt="[+]"
|
124
|
-
title="show/hide quicksearch" /></span></h3>
|
125
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
126
|
-
<fieldset>
|
127
|
-
<legend>Quicksearch</legend>
|
128
|
-
<input type="text" name="quicksearch" value=""
|
129
|
-
class="quicksearch-field" />
|
130
|
-
</fieldset>
|
131
|
-
</form>
|
132
|
-
|
133
|
-
<ul class="link-list">
|
134
|
-
|
135
|
-
<li><a href="./MyExperimentREST.html">MyExperimentREST</a></li>
|
136
|
-
|
137
|
-
<li><a href="./MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
|
138
|
-
|
139
|
-
<li><a href="./MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
|
140
|
-
|
141
|
-
<li><a href="./MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
|
142
|
-
|
143
|
-
<li><a href="./MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
|
144
|
-
|
145
|
-
<li><a href="./MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
|
146
|
-
|
147
|
-
<li><a href="./MyExperimentREST/User.html">MyExperimentREST::User</a></li>
|
148
|
-
|
149
|
-
<li><a href="./MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
|
150
|
-
|
151
|
-
</ul>
|
152
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
|
156
|
-
</div>
|
157
|
-
</div>
|
158
|
-
|
159
|
-
<div id="documentation">
|
160
|
-
<h1 class="module">MyExperimentREST</h1>
|
161
|
-
|
162
|
-
<div id="description" class="description">
|
163
|
-
|
164
|
-
<p>require ‘rest_client’</p>
|
165
|
-
|
166
|
-
</div><!-- description -->
|
167
|
-
|
168
|
-
|
169
|
-
<div id="5Buntitled-5D" class="documentation-section">
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
<!-- Methods -->
|
179
|
-
|
180
|
-
<div id="public-class-method-details" class="method-section section">
|
181
|
-
<h3 class="section-header">Public Class Methods</h3>
|
182
|
-
|
183
|
-
|
184
|
-
<div id="get_myexperiment_data-method" class="method-detail ">
|
185
|
-
<a name="method-c-get_myexperiment_data"></a>
|
186
|
-
|
187
|
-
|
188
|
-
<div class="method-heading">
|
189
|
-
<span class="method-name">get_myexperiment_data</span><span
|
190
|
-
class="method-args">(resource_url, params)</span>
|
191
|
-
<span class="method-click-advice">click to toggle source</span>
|
192
|
-
</div>
|
193
|
-
|
194
|
-
|
195
|
-
<div class="method-description">
|
196
|
-
|
197
|
-
<p>Get information from myExperiment using the REST API. Resources supported
|
198
|
-
currently are <tt>WORKFLOW_URL</tt>“+ and <tt>USER_URL</tt>.</p>
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
<div class="method-source-code" id="get_myexperiment_data-source">
|
203
|
-
<pre>
|
204
|
-
<span class="ruby-comment"># File lib/myexperiment-rest.rb, line 15</span>
|
205
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_myexperiment_data</span>(<span class="ruby-identifier">resource_url</span>, <span class="ruby-identifier">params</span>)
|
206
|
-
<span class="ruby-keyword">case</span> <span class="ruby-identifier">resource_url</span>
|
207
|
-
|
208
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Urls</span><span class="ruby-operator">::</span><span class="ruby-constant">WORKFLOW_URL</span>
|
209
|
-
<span class="ruby-identifier">rest_params</span> = { <span class="ruby-value">:params</span> =<span class="ruby-operator">></span> {<span class="ruby-string">'id'</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{params[:id]}"</span>,
|
210
|
-
<span class="ruby-string">'elements'</span> =<span class="ruby-operator">></span> <span class="ruby-string">'title,description,content-uri,components,uploader'</span>}
|
211
|
-
}
|
212
|
-
|
213
|
-
<span class="ruby-comment"># if version is not empty use that one -- otherwise it returns the current version</span>
|
214
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:version</span>] <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">params</span>[<span class="ruby-value">:version</span>].<span class="ruby-identifier">empty?</span>
|
215
|
-
<span class="ruby-identifier">rest_params</span>[<span class="ruby-value">:params</span>][<span class="ruby-string">'version'</span>] = <span class="ruby-node">"#{params[:version]}"</span>
|
216
|
-
<span class="ruby-keyword">end</span>
|
217
|
-
|
218
|
-
<span class="ruby-comment"># if session cookie is not empty it uses simple cookie auth (not secure -- used for demos)</span>
|
219
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">:session_cookie</span>]
|
220
|
-
<span class="ruby-identifier">rest_params</span>[<span class="ruby-value">:cookies</span>] = <span class="ruby-identifier">params</span>[<span class="ruby-value">:session_cookie</span>]
|
221
|
-
<span class="ruby-keyword">end</span>
|
222
|
-
|
223
|
-
|
224
|
-
<span class="ruby-comment"># Get workflow resource information</span>
|
225
|
-
<span class="ruby-keyword">begin</span>
|
226
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">"#{Urls::MYEXPERIMENT_URL}/#{Urls::WORKFLOW_URL}"</span>, <span class="ruby-identifier">rest_params</span>)
|
227
|
-
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
228
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-string">"REST call to acquire workflow resource failed!\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">e</span>
|
229
|
-
<span class="ruby-keyword">end</span>
|
230
|
-
|
231
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Urls</span><span class="ruby-operator">::</span><span class="ruby-constant">USER_URL</span>
|
232
|
-
<span class="ruby-keyword">begin</span>
|
233
|
-
<span class="ruby-comment"># Get user resource information</span>
|
234
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">"#{Urls::MYEXPERIMENT_URL}/#{Urls::USER_URL}"</span>,
|
235
|
-
{<span class="ruby-value">:params</span> =<span class="ruby-operator">></span> {<span class="ruby-string">'id'</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{params[:id]}"</span> } } )
|
236
|
-
<span class="ruby-identifier">response</span>
|
237
|
-
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
238
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-string">"REST call to acquire user resource failed!\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">e</span>
|
239
|
-
<span class="ruby-keyword">end</span>
|
240
|
-
|
241
|
-
<span class="ruby-keyword">else</span>
|
242
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-string">"This is not a supported resource type!\n"</span>
|
243
|
-
<span class="ruby-keyword">end</span>
|
244
|
-
|
245
|
-
<span class="ruby-keyword">end</span></pre>
|
246
|
-
</div><!-- get_myexperiment_data-source -->
|
247
|
-
|
248
|
-
</div>
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
</div><!-- get_myexperiment_data-method -->
|
254
|
-
|
255
|
-
|
256
|
-
</div><!-- public-class-method-details -->
|
257
|
-
|
258
|
-
</div><!-- 5Buntitled-5D -->
|
259
|
-
|
260
|
-
|
261
|
-
</div><!-- documentation -->
|
262
|
-
|
263
|
-
<div id="validator-badges">
|
264
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
265
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
266
|
-
Rdoc Generator</a> 2</small>.</p>
|
267
|
-
</div>
|
268
|
-
|
269
|
-
</body>
|
270
|
-
</html>
|
271
|
-
|