bacterial-annotator 0.1.3 → 0.1.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ba_prodigal +20 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 746fa68fef3d2d9c1c6df6fef95c354a818e55e1
4
- data.tar.gz: e0bbb9f28e87ef0daaf745e1eba9c1bf215d1f63
3
+ metadata.gz: 35daa78965e345c7989b43cdd020075f923ea6e3
4
+ data.tar.gz: e4e6b3a695f113d93f7d2a9922b065cebf43daba
5
5
  SHA512:
6
- metadata.gz: 0cd5f9a866b7f5bff37cd176ba941a11bf59fb51cba37f626da458b38ae9cb1acc03693848f0b1d7bbf276580f1b252c9ea3040cd4098ff61e3a6c4086a0ca1c
7
- data.tar.gz: 35fe32dcca6c1a5f5316718fb48b5fa38fbb69069a06230595b1c024e654ba3319122183260dcc6beb6c93083c9c75a1784e845a0b2c6f94e18aab61c93ff918
6
+ metadata.gz: a761119f830c438235ab2bd36e3547277d70fe1652e3f3c4c13137213dddb7e9e8ca7a607bf6185bdccd7f5f8c2fcced53074ebf7e63e69d5e37403a5180a701
7
+ data.tar.gz: b77ecffa01a1d32f36c4c3fd7f0c4c81be356fcb30fa62410b80e572f43ae78005d4822e487214a1d6b3b7be6e4ff2bd2786e79fc86b7917787b999133a6192d
data/bin/ba_prodigal CHANGED
@@ -15,16 +15,33 @@ ROOT_path = File.dirname(__FILE__)
15
15
  # Install prodigal on the user system
16
16
  def installProdigal
17
17
 
18
+ # begin
19
+ # resp = open("https://github.com/hyattpd/Prodigal/releases/download/v2.6.2/prodigal.linux")
20
+ # open("#{ROOT_path}/prodigal.linux", "wb") do |file|
21
+ # file.write(resp.read)
22
+ # end
23
+ # File.chmod(0755, "#{ROOT_path}/prodigal.linux")
24
+ # rescue
25
+ # abort "Problem installing Prodigal, aborting"
26
+ # end
27
+
18
28
  begin
19
- resp = open("https://github.com/hyattpd/Prodigal/releases/download/v2.6.2/prodigal.linux")
20
- open("#{ROOT_path}/prodigal.linux", "wb") do |file|
29
+ resp = open("https://github.com/hyattpd/Prodigal/archive/v2.6.2.tar.gz")
30
+ open("#{ROOT_path}/v2.6.2.tar.gz", "wb") do |file|
21
31
  file.write(resp.read)
22
32
  end
33
+ Dir.chdir("#{ROOT_path}/")
34
+ `tar xvf v2.6.2.tar.gz; rm v2.6.2.tar.gz`
35
+ Dir.chdir("#{ROOT_path}/Prodigal-2.6.2")
36
+ `make`
37
+ `cp #{ROOT_path}/Prodigal-2.6.2/prodigal #{ROOT_path}/prodigal.linux`
23
38
  File.chmod(0755, "#{ROOT_path}/prodigal.linux")
39
+ # Dir.chir("#{ROOT_path}")
40
+ # File.chmod(0755, "#{ROOT_path}/prodigal.linux")
24
41
  rescue
25
42
  abort "Problem installing Prodigal, aborting"
26
43
  end
27
-
44
+
28
45
  end
29
46
 
30
47
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bacterial-annotator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Deraspe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bio