ncbi-taxonomy 0.2.9 → 0.2.11

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/lib/ncbi_taxonomy_update.rb +8 -8
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 058fab962da5db20bbf8aa23d10bf267ee7ea381
4
- data.tar.gz: 4385346d384f897d2897223de781e00034567f98
3
+ metadata.gz: 927fee0b32e8a3664ca445a6b7f17de0de265a88
4
+ data.tar.gz: 112683d6b58e993f6a62bbd3d8901fa97a41a35d
5
5
  SHA512:
6
- metadata.gz: 10be41c36945bf6ee95c68e42abe96684bb361e6f792c5f30a5f553487a86827ac818965093bb59e84ce1727921614995cf46993c2e416d368ed6373c0d34821
7
- data.tar.gz: e46e5b937e3859d7658f1877cb44766f4059b875b1d398b7c609ba9486cbd95caf308e6316830e36d274b8386ebd82c226d4a5e1cc41b40e7a6d16176ec61665
6
+ metadata.gz: 101f8a73f55b9294ac4b8b97cd54f0c2e0049bef2490fdfe80a966f83a6eaf6b5d2095937248416ea2ca09df4dc65e0fd3dac60cfbd0c74297f11a43942b07ed
7
+ data.tar.gz: 80cec6af65bb1e7c1ce32cbc11d230dcf62ade6bf8b9914bb094814286f8e8c199cc078fd084feb58da71de07fb7c6d46b23b1819331bbf5d56c0c24accd0de8
@@ -5,7 +5,7 @@ require 'fileutils'
5
5
  # Actually this software does not use this table. Therefore, this error can be ignored.
6
6
  # Later, I should fix this.
7
7
 
8
- class Update
8
+ class Update
9
9
  def initialize
10
10
  @home_dir = Dir.home
11
11
  @work_dir = @home_dir + "/.ncbi_taxonomy"
@@ -53,13 +53,13 @@ class Update
53
53
  end
54
54
 
55
55
  def download_md5
56
- `curl -s ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz.md5 > taxdump.tar.gz.md5 2>/dev/null`
56
+ `curl -s https://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz.md5 > taxdump.tar.gz.md5 2>/dev/null`
57
57
  end
58
-
58
+
59
59
  def download_dump
60
- `curl -s ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz 2>/dev/null | tar zxf - `
60
+ `curl -s https://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz 2>/dev/null | tar zxf - `
61
61
  end
62
-
62
+
63
63
  # substitute some characters
64
64
  def substitution
65
65
  Dir.entries(@work_dir).each do |file|
@@ -90,7 +90,7 @@ class Update
90
90
  self.load_db
91
91
  self.release
92
92
  end
93
-
93
+
94
94
  def load_db
95
95
  sql = <<EOF
96
96
  PRAGMA page_size=4096;
@@ -142,7 +142,7 @@ name_class VARCHAR(255)
142
142
  CREATE TABLE nodes (
143
143
  tax_id BIGINT,
144
144
  parent_tax_id BIGINT,
145
- rank VARCHAR(64),
145
+ rank VARCHAR(64),
146
146
  embl_code VARCHAR(64),
147
147
  division_id INTEGER,
148
148
  inherited_div_flag BOOLEAN,
@@ -172,7 +172,7 @@ CREATE INDEX nodes_idx ON nodes(tax_id,parent_tax_id,rank,embl_code,division_id,
172
172
  .import merged.dmp.trim merged
173
173
  .import names.dmp.trim names
174
174
  .import nodes.dmp.trim nodes
175
-
175
+
176
176
  EOF
177
177
  `echo "#{sql}" | sqlite3 #{@taxdb} < /dev/stdin`
178
178
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncbi-taxonomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seok-Won Kim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-20 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -61,9 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  requirements: []
63
63
  rubyforge_project:
64
- rubygems_version: 2.2.2
64
+ rubygems_version: 2.6.10
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: NCBI Taxonomy search using local repository
68
68
  test_files: []
69
- has_rdoc: