bio 1.6.0.pre.20181210 → 2.0.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.
- checksums.yaml +4 -4
- data/.travis.yml +32 -34
- data/ChangeLog +1043 -8
- data/Gemfile +0 -2
- data/KNOWN_ISSUES.rdoc +4 -10
- data/LEGAL +0 -9
- data/README.rdoc +31 -80
- data/README_DEV.rdoc +5 -5
- data/RELEASE_NOTES.rdoc +86 -18
- data/Rakefile +0 -34
- data/appveyor.yml +15 -7
- data/bioruby.gemspec +3 -3
- data/gemfiles/Gemfile.travis-rbx +0 -2
- data/gemfiles/Gemfile.travis-ruby1.8 +0 -2
- data/gemfiles/Gemfile.travis-ruby1.9 +0 -2
- data/gemfiles/Gemfile.windows +6 -0
- data/lib/bio/appl/blast/report.rb +40 -8
- data/lib/bio/db/kegg/common.rb +14 -0
- data/lib/bio/db/kegg/genes.rb +26 -0
- data/lib/bio/db/kegg/pathway.rb +5 -11
- data/lib/bio/version.rb +3 -3
- data/test/network/bio/db/kegg/test_genes_hsa7422.rb +91 -0
- data/test/unit/bio/appl/blast/test_report.rb +4 -4
- metadata +7 -7
- data/lib/bio/appl/blast/xmlparser.rb +0 -236
- data/setup.rb +0 -1600
data/Gemfile
CHANGED
data/KNOWN_ISSUES.rdoc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
= KNOWN_ISSUES.rdoc - Known issues and bugs in BioRuby
|
2
|
-
Copyright:: Copyright (C) 2009-
|
2
|
+
Copyright:: Copyright (C) 2009-2019 Naohisa Goto <ng@bioruby.org>
|
3
3
|
License:: The Ruby License
|
4
4
|
|
5
5
|
= Known issues and bugs in BioRuby
|
@@ -12,11 +12,6 @@ they are not BioRuby's issues and/or it is very difficult to fix them.
|
|
12
12
|
|
13
13
|
== 1. Ruby version specific issues
|
14
14
|
|
15
|
-
=== Ruby 1.9.1 or later
|
16
|
-
|
17
|
-
Some classes/modules/methods still may not work or may return incorrect
|
18
|
-
results in Ruby 1.9.X, especially those not covered by the unit tests.
|
19
|
-
|
20
15
|
==== String encodings
|
21
16
|
|
22
17
|
Currently, BioRuby do not care string encodings. In some cases,
|
@@ -28,12 +23,11 @@ Encoding::CompatibilityError or "ArgumentError: invalid byte sequence in
|
|
28
23
|
==== Ruby 1.9.0
|
29
24
|
|
30
25
|
(WONT_FIX) Ruby 1.9.0 is NOT supported because it isn't a stable release.
|
31
|
-
Use Ruby 1.9.1 or later.
|
32
26
|
|
33
|
-
==== Ruby 1.
|
27
|
+
==== Ruby 1.9.1 or earlier (including Ruby 1.8.7)
|
34
28
|
|
35
|
-
(WONT_FIX) Problems observed only with Ruby 1.
|
36
|
-
fixed. Note that Ruby 1.
|
29
|
+
(WONT_FIX) Problems observed only with Ruby 1.9.1 or earlier will not be
|
30
|
+
fixed. Note that Ruby 1.9.1 or earlier is no longer supported, as described
|
37
31
|
in README.rdoc.
|
38
32
|
|
39
33
|
==== Ruby 1.8.2 or earlier
|
data/LEGAL
CHANGED
@@ -6,15 +6,6 @@ license (see the file COPYING) or public-domain except some files
|
|
6
6
|
mentioned below.
|
7
7
|
|
8
8
|
|
9
|
-
setup.rb:
|
10
|
-
|
11
|
-
Copyright (c) 2000-2006 Minero Aoki
|
12
|
-
|
13
|
-
This program is free software.
|
14
|
-
You can distribute/modify this program under the terms of
|
15
|
-
the GNU LGPL, Lesser General Public License version 2.1.
|
16
|
-
|
17
|
-
|
18
9
|
sample/any2fasta.rb:
|
19
10
|
|
20
11
|
Copyright (C) 2006 Pjotr Prins <p@bioruby.org>
|
data/README.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
= README.rdoc - README for BioRuby
|
3
3
|
Copyright:: Copyright (C) 2001-2007 Toshiaki Katayama <k@bioruby.org>,
|
4
4
|
Copyright (C) 2008 Jan Aerts <jandot@bioruby.org>
|
5
|
-
Copyright (C) 2011-
|
5
|
+
Copyright (C) 2011-2019 Naohisa Goto <ng@bioruby.org>
|
6
6
|
License:: The Ruby License
|
7
7
|
* The above statement is limited to this file. See below about BioRuby's
|
8
8
|
copyright and license.
|
@@ -10,7 +10,7 @@ License:: The Ruby License
|
|
10
10
|
|
11
11
|
= BioRuby
|
12
12
|
|
13
|
-
Copyright (C) 2001-
|
13
|
+
Copyright (C) 2001-2019 Toshiaki Katayama <k@bioruby.org>
|
14
14
|
|
15
15
|
BioRuby is an open source Ruby library for developing bioinformatics
|
16
16
|
software. Object oriented scripting language Ruby has many features
|
@@ -45,10 +45,7 @@ See RELEASE_NOTES.rdoc for news and important changes in this version.
|
|
45
45
|
README.rdoc:: This file. General information and installation procedure.
|
46
46
|
RELEASE_NOTES.rdoc:: News and important changes in this release.
|
47
47
|
KNOWN_ISSUES.rdoc:: Known issues and bugs in BioRuby.
|
48
|
-
doc/RELEASE_NOTES
|
49
|
-
doc/RELEASE_NOTES-1.4.2.rdoc:: News and incompatible changes from 1.4.1 to 1.4.2.
|
50
|
-
doc/RELEASE_NOTES-1.4.1.rdoc:: News and incompatible changes from 1.4.0 to 1.4.1.
|
51
|
-
doc/RELEASE_NOTES-1.4.0.rdoc:: News and incompatible changes from 1.3.1 to 1.4.0.
|
48
|
+
doc/RELEASE_NOTES-*.rdoc:: Release notes for old versions.
|
52
49
|
doc/Changes-1.3.rdoc:: News and incompatible changes from 1.2.1 to 1.3.0.
|
53
50
|
doc/Changes-0.7.rd:: News and incompatible changes from 0.6.4 to 1.2.1.
|
54
51
|
|
@@ -60,7 +57,7 @@ doc/Tutorial.rd.html:: HTML version of Tutorial.rd.
|
|
60
57
|
==== BioRuby development
|
61
58
|
|
62
59
|
ChangeLog:: History of changes.
|
63
|
-
doc/ChangeLog
|
60
|
+
doc/ChangeLog-*:: ChangeLog for old versions.
|
64
61
|
doc/ChangeLog-before-1.4.2:: changes before 1.4.2.
|
65
62
|
doc/ChangeLog-before-1.3.1:: changes before 1.3.1.
|
66
63
|
README_DEV.rdoc:: Describes ways to contribute to the BioRuby project, including coding styles and documentation guidelines.
|
@@ -114,9 +111,8 @@ and can be obtained by the following procedure:
|
|
114
111
|
|
115
112
|
== REQUIREMENTS
|
116
113
|
|
117
|
-
* Ruby
|
118
|
-
* Ruby 2.
|
119
|
-
* This is the final version running on Ruby 1.8, tested with Ruby1.8.7-p374.
|
114
|
+
* Ruby 2.0.0 or later -- http://www.ruby-lang.org/
|
115
|
+
* Ruby 2.4.6, 2.5.5, 2.6.3 or later is recommended.
|
120
116
|
* See KNOWN_ISSUES.rdoc for Ruby version specific problems.
|
121
117
|
|
122
118
|
|
@@ -126,14 +122,6 @@ Some optional libraries can be utilized to extend BioRuby's functionality.
|
|
126
122
|
If your needs meets the following conditions, install them by using RubyGems,
|
127
123
|
or download and install from the following web sites.
|
128
124
|
|
129
|
-
For faster parsing of the BLAST XML output format:
|
130
|
-
|
131
|
-
* {xmlparser}[https://rubygems.org/gems/xmlparser]
|
132
|
-
* For Ruby 1.8: {gem install xmlparser}[http://rubygems.org/gems/xmlparser]
|
133
|
-
* For Ruby 1.9 or later: http://www.yoshidam.net/Ruby.html#xmlparser
|
134
|
-
* In both cases, {The Expat XML Parser}[http://expat.sourceforge.net/]
|
135
|
-
and C compiler will be required.
|
136
|
-
|
137
125
|
Creating faster flatfile index using Berkley DB:
|
138
126
|
|
139
127
|
* {GitHub:ruby-bdb}[https://github.com/knu/ruby-bdb]
|
@@ -153,40 +141,6 @@ If you are using RubyGems, just type
|
|
153
141
|
Alternatively, manually download bio-X.X.X.gem from
|
154
142
|
http://bioruby.org/archive/ and install it by using gems command.
|
155
143
|
|
156
|
-
RubyGems is bundled with Ruby 1.9.1 or later. For Ruby 1.8.7 or earlier,
|
157
|
-
download and install RubyGems from http://rubygems.org/ .
|
158
|
-
|
159
|
-
=== INSTALL without RubyGems
|
160
|
-
|
161
|
-
In the bioruby source directory (such as bioruby-x.x.x/), run setup.rb
|
162
|
-
as follows:
|
163
|
-
|
164
|
-
% su
|
165
|
-
# ruby setup.rb
|
166
|
-
|
167
|
-
These simple step installs this program under the default location of
|
168
|
-
Ruby libraries. You can also install files into your favorite directory
|
169
|
-
by supplying setup.rb some options. Try "ruby setup.rb --help".
|
170
|
-
|
171
|
-
If your operating system supports 'sudo' command (such as Mac OS X),
|
172
|
-
try the following procedure instead of the above.
|
173
|
-
|
174
|
-
% sudo ruby setup.rb
|
175
|
-
|
176
|
-
For older version users: "install.rb" is now renamed to "setup.rb".
|
177
|
-
The options "config", "setup", and "install" are still available.
|
178
|
-
|
179
|
-
% ruby setup.rb config
|
180
|
-
% ruby setup.rb setup
|
181
|
-
% su
|
182
|
-
# ruby setup.rb install
|
183
|
-
|
184
|
-
You can run
|
185
|
-
|
186
|
-
% ruby setup.rb --help
|
187
|
-
|
188
|
-
for more details.
|
189
|
-
|
190
144
|
|
191
145
|
=== Running self-test
|
192
146
|
|
@@ -197,19 +151,6 @@ To run tests,
|
|
197
151
|
|
198
152
|
% ruby test/runner.rb
|
199
153
|
|
200
|
-
If you are using Ruby 1.8.x and you want to use components installed by using
|
201
|
-
RubyGems, explicit loading of RubyGems may be needed.
|
202
|
-
|
203
|
-
% ruby -rubygems test/runner.rb
|
204
|
-
|
205
|
-
Alternatively, testrb, the test runner command of ruby, can be used.
|
206
|
-
|
207
|
-
% testrb test/
|
208
|
-
|
209
|
-
With testrb, you can select tests to run, for example,
|
210
|
-
|
211
|
-
% testrb test/unit
|
212
|
-
|
213
154
|
For those familiar with Rake,
|
214
155
|
|
215
156
|
% rake test
|
@@ -253,15 +194,6 @@ You can also read other documentation in the 'doc' directory.
|
|
253
194
|
|
254
195
|
bioruby-x.x.x/doc/
|
255
196
|
|
256
|
-
=== RubyGems on Ruby 1.8.x
|
257
|
-
|
258
|
-
With RubyGems on Ruby 1.8.x, you may need to load 'rubygems' library before
|
259
|
-
using 'bio'. This may not be needed, depending on settings of Ruby.
|
260
|
-
|
261
|
-
#!/usr/bin/env ruby
|
262
|
-
require 'rubygems'
|
263
|
-
require 'bio'
|
264
|
-
|
265
197
|
|
266
198
|
== PLUGIN (Biogem)
|
267
199
|
|
@@ -274,26 +206,45 @@ Plugins (Biogems) listed below had been included in BioRuby in former days,
|
|
274
206
|
and were split to separate packages to reduce complexity and external
|
275
207
|
dependencies.
|
276
208
|
|
277
|
-
* {
|
209
|
+
* {bio-shell}[https://rubygems.org/gems/bioruby-shell]
|
210
|
+
* {bio-executables}[https://rubygems.org/gems/bioruby-executables]
|
211
|
+
* {bio-blast-xmlparser}[https://rubygems.org/gems/bioruby-blast-xmlparser]
|
212
|
+
* {bioruby-phyloxml}[https://rubygems.org/gems/bioruby-phyloxml]
|
278
213
|
* NOTE: Please uninstall bio-phyloxml, that have been created as a
|
279
214
|
preliminary trial of splitting a module in 2012 and have not been
|
280
215
|
maintained after that.
|
281
|
-
* {bio-biosql}[
|
216
|
+
* {bio-biosql}[https://rubygems.org/gems/bio-biosql]
|
217
|
+
|
218
|
+
Plugins (Biogems) listed below may be useful for running existing codes.
|
219
|
+
|
220
|
+
* {bio-old-biofetch-emulator}[https://rubygems.org/gems/bio-old-biofetch-emulator] -- Emulates deprecated BioRuby's BioFetch server by using other existing web services.
|
282
221
|
|
283
222
|
To develop your own plugin, see "Plugins" pages of BioRuby Wiki.
|
284
223
|
|
285
224
|
* http://bioruby.open-bio.org/wiki/Plugins
|
286
225
|
|
226
|
+
=== Recommended Plugins (gems)
|
227
|
+
|
228
|
+
For existing BioRuby users, it is recommended to install the following gems:
|
229
|
+
|
230
|
+
bio-shell :: If you use the BioRuby Shell.
|
231
|
+
bio-executables :: If you use br_bio* commands.
|
232
|
+
bio-old-biofetch-emulator :: If you run existing codes using BioFetch, including sample and demo codes in sample/.
|
233
|
+
bio-blast-xmlparser :: If you treat BLAST XML result files and Expat XML parser (with development files) is installed in your system.
|
234
|
+
bioruby-phyloxml :: If you use Bio::PhyloXML and Libxml2 (with developemnt files) is installed in your system.
|
235
|
+
|
236
|
+
Note that it is NOT recommended to install bio-biosql unless you have
|
237
|
+
really used Bio::SQL, because it depends on older version of ActiveRecords
|
238
|
+
and ActiveSupport that may not be run on recent Ruby versions.
|
239
|
+
|
240
|
+
|
287
241
|
== LICENSE
|
288
242
|
|
289
243
|
BioRuby can be freely distributed under the same terms as Ruby.
|
290
244
|
See the file COPYING (or COPYING.ja written in Japanese).
|
291
245
|
|
292
246
|
As written in the file COPYING, see the file LEGAL for files distributed
|
293
|
-
under different license.
|
294
|
-
developed by Minero Aoki (http://i.loveruby.net/en/projects/setup/) is
|
295
|
-
licensed under LGPL 2.1.
|
296
|
-
|
247
|
+
under different license.
|
297
248
|
|
298
249
|
== REFERENCE
|
299
250
|
|
data/README_DEV.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Copyright:: Copyright (C) 2005, 2006 Toshiaki Katayama <k@bioruby.org>
|
4
4
|
Copyright:: Copyright (C) 2006, 2008 Jan Aerts <jandot@bioruby.org>
|
5
|
-
Copyright:: Copyright (C) 2011
|
5
|
+
Copyright:: Copyright (C) 2011, 2019 Naohisa Goto <ng@bioruby.org>
|
6
6
|
|
7
7
|
= HOW TO CONTRIBUTE TO THE BIORUBY PROJECT?
|
8
8
|
|
@@ -360,16 +360,16 @@ We are mainly using Ruby MRI (Matz' Ruby Implementation, or Matz' Ruby
|
|
360
360
|
Interpreter). Please confirm that your code is running on current stable
|
361
361
|
release versions of Ruby MRI.
|
362
362
|
|
363
|
-
|
364
|
-
Note that Ruby 1.9.0 should be ignored because it was discontinued.
|
365
|
-
Ruby 1.8.5 or earlier versions can also be ignored. See README.rdoc and
|
366
|
-
RELEASE_NOTES.rdoc for recommended Ruby versions.
|
363
|
+
See README.rdoc and RELEASE_NOTES.rdoc for recommended Ruby versions.
|
367
364
|
|
368
365
|
It is welcome to support JRuby, Rubinius, etc, in addition to Ruby MRI.
|
369
366
|
|
370
367
|
Of course, it is strongly encouraged to write code that is not affected by
|
371
368
|
differences between Ruby versions and/or implementations, as far as possible.
|
372
369
|
|
370
|
+
Although we no longer support Ruby 1.8, it might be useful if your code
|
371
|
+
could also run on Ruby 1.8.7 in addition to supported Ruby versions.
|
372
|
+
|
373
373
|
= OS and ARCHITECTURE
|
374
374
|
|
375
375
|
We hope BioRuby can be run on both UNIX (and UNIX-like OS) and Microsoft
|
data/RELEASE_NOTES.rdoc
CHANGED
@@ -1,32 +1,91 @@
|
|
1
|
-
= BioRuby
|
1
|
+
= BioRuby 2.0.0 RELEASE NOTES
|
2
2
|
|
3
|
-
A lot of changes have been made to the BioRuby
|
3
|
+
A lot of changes have been made to the BioRuby 2.0.0 after the version 1.5.x
|
4
4
|
is released. This document describes important and/or incompatible changes
|
5
5
|
since the BioRuby 1.5.0 release.
|
6
6
|
|
7
7
|
For known problems, see KNOWN_ISSUES.rdoc.
|
8
8
|
|
9
|
-
==
|
9
|
+
== Features moved to separete gems
|
10
10
|
|
11
|
-
|
11
|
+
Some features are moved to separate gems because of reducing complexity
|
12
|
+
and/or to avoid external library dependency of BioRuby core.
|
12
13
|
|
13
|
-
|
14
|
+
=== BioRuby Shell is moved to "bio-shell"
|
14
15
|
|
15
|
-
|
16
|
+
BioRuby Shell is split to "bio-shell" gem.
|
16
17
|
|
17
|
-
|
18
|
-
* (tbd)
|
18
|
+
=== Executable files are moved to "bio-executables"
|
19
19
|
|
20
|
-
|
20
|
+
To avoid unexpected loading of executable files by some Rails software,
|
21
|
+
all executable commands are moved to "bio-executables" gem
|
22
|
+
(except the "bioruby" command that is included in the above "bio-shell" gem).
|
23
|
+
|
24
|
+
=== Fast BLAST XML result parser by using Expat XML Parser is moved to "bio-blast-xmlparser"
|
25
|
+
|
26
|
+
Fast BLAST XML result parser by using Expat XML Parser is split to
|
27
|
+
"bio-blast-xmlparser" gem, because of external C library dependency.
|
28
|
+
Please install "bio-blast-xmlparser" gem if possible.
|
29
|
+
If it is installed, BioRuby automatically use it.
|
30
|
+
|
31
|
+
=== Bio::PhyloXML is moved to "bioruby-phyloxml"
|
32
|
+
|
33
|
+
Bio::PhyloXML is split to "bioruby-phyloxml" gem.
|
34
|
+
|
35
|
+
NOTE: Please uninstall "bio-phyloxml" gem, that have been created as a
|
36
|
+
preliminary trial of splitting a module in 2012 and have not been
|
37
|
+
maintained after that.
|
38
|
+
|
39
|
+
=== Bio::SQL is moved to "bio-biosql"
|
40
|
+
|
41
|
+
Bio::SQL is split to "bio-biosql" gem.
|
42
|
+
|
43
|
+
|
44
|
+
== New features and improvements
|
45
|
+
|
46
|
+
=== HTTPS is used to access NCBI web services
|
47
|
+
|
48
|
+
As you may know, NCBI announced that all HTTP resources will be switched
|
49
|
+
to HTTPS on September 30, 2016. To follow the transition, all URLs for
|
50
|
+
accessing NCBI E-utilities in BioRuby are changed to use HTTPS.
|
21
51
|
|
22
|
-
|
52
|
+
In BioRuby, the following classes/modules are affected.
|
23
53
|
|
24
|
-
|
54
|
+
* Bio::NCBI::REST and descending classes
|
55
|
+
* Bio::PubMed
|
25
56
|
|
26
|
-
|
57
|
+
In some rare cases (especially when building Ruby and/or OpenSSL by yourself
|
58
|
+
from source code), Ruby does not include SSL/TLS support, or Ruby fails to
|
59
|
+
detect SSL root certificates. In such cases, you may need to reinstall or
|
60
|
+
upgrade Ruby, OpenSSL (or alternatives), and/or SSL root certificates with
|
61
|
+
appropriate configuration options. Alternatively, installing binary packages
|
62
|
+
is generally a good idea.
|
63
|
+
|
64
|
+
=== KEGG::GENES#diseases and related methods are added
|
65
|
+
|
66
|
+
The following methods are added to KEGG::GENES, contributed by @kojix2.
|
67
|
+
|
68
|
+
* networks_as_strings
|
69
|
+
* diseases_as_strings
|
70
|
+
* diseases_as_hash
|
71
|
+
* diseases
|
72
|
+
* drug_targets_as_strings
|
73
|
+
|
74
|
+
=== Pre-calculated ambiguity codon tables in Bio::CodonTable
|
75
|
+
|
76
|
+
Pre-calculated ambiguity codon tables are added, contributed by
|
77
|
+
Tomoaki NISHIYAMA.
|
78
|
+
|
79
|
+
|
80
|
+
== Bug fixes
|
81
|
+
|
82
|
+
* Fixed a parser bug in Bio::Fasta::Report, FASTA output (-m 10) parser,
|
83
|
+
contributed by William Van Etten and Mark Wilkinson via GitHub.
|
84
|
+
* HTTPS is used to access GenomeNet BLAST web service, contributed
|
85
|
+
by @ramadis via GitHub.
|
86
|
+
* Bio::AAindex documentation fix, suggested by @kojix2 via GitHub.
|
87
|
+
* Suppress warning messages in Ruby 2.4 and later.
|
27
88
|
|
28
|
-
* Fixed: (...)
|
29
|
-
* Fixed: (...)
|
30
89
|
|
31
90
|
== Incompatible changes
|
32
91
|
|
@@ -51,18 +110,27 @@ Bio::PhyloXML::Taxonomy or adding the following monkey patch may be needed.
|
|
51
110
|
In the future, Bio::Taxonomy might be added as general taxonomy data class.
|
52
111
|
The new Bio::Taxonomy might be incompatible with the current Bio::Taxonmy.
|
53
112
|
|
54
|
-
===
|
113
|
+
=== Some features are moved to separete gems
|
55
114
|
|
56
|
-
|
115
|
+
Some features are split to separete gems and removed from this "bio" gem.
|
116
|
+
See the above "Features moved to separete gems" topics for details.
|
57
117
|
|
58
118
|
== Known issues
|
59
119
|
|
60
120
|
The following issues are added or updated. See KNOWN_ISSUES.rdoc for other
|
61
121
|
already known issues.
|
62
122
|
|
63
|
-
* (tbd)
|
64
123
|
|
65
124
|
== Other important news
|
66
125
|
|
67
|
-
|
126
|
+
=== Ruby 1.8 is no longer supported
|
127
|
+
|
128
|
+
Ruby 1.8.x is no longer supported. Though unsupported, some components
|
129
|
+
may still run on Ruby 1.8.7. Please use Ruby 1.8.7 at your own risk
|
130
|
+
with this version of BioRuby.
|
131
|
+
|
132
|
+
=== Installation without RubyGems is no longer supported
|
133
|
+
|
134
|
+
Installation by using setup.rb without RubyGems is no longer supported,
|
135
|
+
and setup.rb is no longer included in BioRuby distribution.
|
68
136
|
|
data/Rakefile
CHANGED
@@ -272,36 +272,6 @@ task :"see-env" do
|
|
272
272
|
end
|
273
273
|
end
|
274
274
|
|
275
|
-
desc "DANGER: build tar and install (GNU tar needed)"
|
276
|
-
task :"tar-install" => [ :package ] do
|
277
|
-
pwd = Dir.pwd
|
278
|
-
work_in_another_directory do |dirname|
|
279
|
-
begin
|
280
|
-
# remove tar file in direname
|
281
|
-
FileUtils.remove_entry_secure(tar_filename, true)
|
282
|
-
# chdir to old pwd
|
283
|
-
chdir_with_message(pwd)
|
284
|
-
# copy (or link) tar file
|
285
|
-
safe_ln(tar_pkg_filepath, dirname)
|
286
|
-
# chdir to dirname again
|
287
|
-
chdir_with_message(dirname)
|
288
|
-
# remove a directory the tar file will contain
|
289
|
-
FileUtils.remove_entry_secure(tar_basename, true)
|
290
|
-
# extract tar
|
291
|
-
sh("tar zxvf #{tar_filename}")
|
292
|
-
# chdir to the directory
|
293
|
-
chdir_with_message(tar_basename)
|
294
|
-
# run tests
|
295
|
-
ruby("setup.rb")
|
296
|
-
ensure
|
297
|
-
# cleanup
|
298
|
-
chdir_with_message(dirname)
|
299
|
-
FileUtils.remove_entry_secure(tar_basename, true)
|
300
|
-
FileUtils.remove_entry_secure(tar_filename, true)
|
301
|
-
end
|
302
|
-
end
|
303
|
-
end
|
304
|
-
|
305
275
|
desc "test installed bioruby on system"
|
306
276
|
task :"installed-test" do
|
307
277
|
data_path = File.join(Dir.pwd, "test/data")
|
@@ -318,10 +288,6 @@ task :"installed-test" do
|
|
318
288
|
end
|
319
289
|
end
|
320
290
|
|
321
|
-
desc "DANGER: build tar, install and run test"
|
322
|
-
task :"tar-integration-test" => [ :"tar-install",
|
323
|
-
:"installed-test" ]
|
324
|
-
|
325
291
|
desc "test installed bioruby gem version #{spec.version.to_s}"
|
326
292
|
task :"gem-test" do
|
327
293
|
data_path = File.join(Dir.pwd, "test/data")
|