genome-rb 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5963b94eac35dc1945565026cacafd56ddc49f30a7c84d3651003927f9eaddb
4
- data.tar.gz: 02d7cacbe02be0eabea105c8cd7d844d42a7f6e17975ecdbf992652b9614047d
3
+ metadata.gz: 86ef45c34434fe55228b2b6afd8fb499daca3281e51667991dfb82ba289cc6cf
4
+ data.tar.gz: 687149cc4b7d296411950e0261b65f9905c3ccdafadfa8a5a3592cfc6d0b3371
5
5
  SHA512:
6
- metadata.gz: e6e9b2fdee73663e1d36640ee18710fa5fc69edd9d0b39026f4235ff5bd74a02a41d9fc652f829248838546e2cb31c0fdff304fa2ade552761568c9c58bb19ff
7
- data.tar.gz: ae82cc8aa908e531d9c7ad7ad4e4581b7c79d8a0e4267a1ba0fe94ef06877e3c4a41a66ac8896bd0ce6bfa5b48f135d8052cc450c07ec8d7e4611d56c811819c
6
+ metadata.gz: 5d30436e144e010c21db260b6113cd1787f26f792ae625fe83e0311ffffd864b184d924d11fec1b1db1595f1cbdc48715a5f38d6f07daba8406a6ed3fc179b73
7
+ data.tar.gz: 9c5c6e45b893f144c9db30849fb2575684e91d228d6d4909789232fb48a05377f831ad2106eca54b03f4eeb4633ecc90d20d5f1059c31d259ef5247fb401ca31
@@ -1,3 +1,3 @@
1
1
  module GENOME
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
data/lib/genome.rb CHANGED
@@ -38,13 +38,13 @@ module GENOME
38
38
  end
39
39
 
40
40
  def self.load(_filename, _provider = '23andme')
41
- raise ProviderError, "#{_provider} is not supported." unless %w[23andme ancestry].include? _provider
41
+ raise ProviderError, "provider is not supported." unless %w[23andme ancestry].include? _provider
42
42
 
43
43
  first_line = File.open(_filename, &:readline)
44
44
  if _provider == '23andme'
45
- raise FileTypeError, "#{_filename} is not in a correct #{_provider} format" unless first_line.downcase.include? '23'.downcase
45
+ raise FileTypeError, "format is not correct" unless first_line.downcase.include? '23'.downcase
46
46
  elsif _provider == 'ancestry'
47
- raise FileTypeError, "#{_filename} is not in a correct #{_provider} format" unless first_line.downcase.include? 'ancestry'.downcase
47
+ raise FileTypeError, "format is not correct" unless first_line.downcase.include? 'ancestry'.downcase
48
48
  end
49
49
 
50
50
  genome = Genome.new(name = _filename)
@@ -61,4 +61,4 @@ module GENOME
61
61
  end
62
62
  genome
63
63
  end
64
- end
64
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genome-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Lai