anncrsnp 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df3b35d3c6ad4be13a93609b60fd4bd7b18bbfea
4
- data.tar.gz: 591b04ad6ffe428bd8ba7da5a9ab853de2df6c00
3
+ metadata.gz: 9a5b68efa127fe9ae6c1b409daa38ee22236068b
4
+ data.tar.gz: 4714dfd569a2568ddf055e346747de2bd03a5057
5
5
  SHA512:
6
- metadata.gz: 32a2f6749b78c144f3358c6e8e4f474ce75b060f01848ece7deb13e474fedc86555004e77c8c7cd105deb0722039cb936072fa59cde87a5e9a70c6f847766763
7
- data.tar.gz: 968f82b2586edbf0a89527b119f0585923da86796fc910321c9401d9a98f0f729d2f3e5bbda4e5f7abbfdda530f4b474578038215db6920c367545412cf0d367
6
+ metadata.gz: a73bd75040ddf05079ba4555c9769ae45a41610520ae42827fda4f9e6ba45807b79501b947c1dd3d1dd9addc032107c8ac56ae047edba9ba9040534af906de8d
7
+ data.tar.gz: 874fb9ec1a453b33451d7d44710ec114de44bf5ba1c8701d1f17622a4222c96259f75bfb12e51a5b226ff835b6da492c82e67791a3553ed77c8289557d63f770
data/README.md CHANGED
@@ -37,7 +37,7 @@ For further RVM installation, please visit https://rvm.io/
37
37
 
38
38
  ### Windows
39
39
 
40
- If you have no Ruby installed, we recommend you to install Ruby using RubyInstaller (http://rubyinstaller.org/downloads/). Check before your Windows version.
40
+ To use AnNCR-SNP in your Windows system, you can install Ruby using RubyInstaller (http://rubyinstaller.org/downloads/), but taking into consideration that Ruby version must be lower than 2.3 and x64. You can download this concrete version: http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.2.5-x64.exe
41
41
 
42
42
  During the installation, you have to mark all available options before continuing (Install Td/Tk support, Add Ruby executables to your PATH, Associate .rb and .rbw files with this Ruby installation).
43
43
 
data/bin/grdbfinder.rb CHANGED
@@ -8,8 +8,8 @@ require 'optparse'
8
8
  require 'dataset'
9
9
  require 'sqlite3'
10
10
  require 'benchmark'
11
- require 'net/http'
12
11
  require 'zip'
12
+ require 'open-uri'
13
13
 
14
14
  ######################################################################################################################
15
15
  ## METHODS
@@ -347,15 +347,11 @@ def download_database(database_path)
347
347
  out_path = File.dirname(database_path)
348
348
  puts "Downloading database in #{out_path}, please be patient..."
349
349
  zip_path = File.join(out_path, 'database.zip')
350
- f = File.open(zip_path, 'w')
351
- Net::HTTP.start("bio-267-data.uma.es") do |http|
352
- http.request_get('/database.zip') do |resp|
353
- resp.read_body do |segment|
354
- f.write(segment)
355
- end
350
+ File.open(zip_path, "wb") do |saved_file|
351
+ open("http://bio-267-data.uma.es/database.zip", "rb") do |read_file|
352
+ saved_file.write(read_file.read)
356
353
  end
357
354
  end
358
- f.close
359
355
  puts "Decompressing database..."
360
356
  Zip::File.open(zip_path) do |zip_file|
361
357
  zip_file.each do |entry|
@@ -1,3 +1,3 @@
1
1
  module Anncrsnp
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anncrsnp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elena Rojano
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-22 00:00:00.000000000 Z
12
+ date: 2016-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler