dna_hamming 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 81bcb6bf114e8e389235bbc7eedae4790f6f536f
4
- data.tar.gz: d4c18fa9ebdde8bdf0bd4ec35e9b3f29046e6656
3
+ metadata.gz: ada9d4ab2ff0c382c825d531e81f8aac1dd5b222
4
+ data.tar.gz: 4f21fe056ba3e905da0e6d863584a0905f1ddd96
5
5
  SHA512:
6
- metadata.gz: 31913141f8c7a964962b27e63c959b2b0cc27e6ad4ce1cf452c928ee9f0a2054a6db4b94eba24242954474d9df84e9f6f2cc213ca90d54c0dfd76d6c7cf5ece2
7
- data.tar.gz: 86e158a39b148ba38cd5da06b5a6b12a9c765afef43459d6cd206855441b1173f0f0d965d491473bc78b668f832b2aae812f56769af7d832c6752bab08bdd50c
6
+ metadata.gz: 9a69a460051be3ac7b75866a918e672169b1e93f0f5778793e4d7fdee0dada9024b19d25acc24af5c577d489a9006d6bd9628bd917052d8b0519573f1eae440b
7
+ data.tar.gz: 139a983d52f780a058fc6f77351584c13223e2ce90527073a139b5881bb3ca1d03dd98d030e697d283018743cdedeb6f80a17464fc8725e76cd6821b5ff03362
@@ -4,7 +4,7 @@ module Hamming
4
4
  count_the_distance(pair)
5
5
  end
6
6
 
7
- private
7
+ module_function
8
8
  def self.count_the_distance(pair)
9
9
  pair.entries.map(&:chars).inject(:zip).select{|a,b| a!=b}.count
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module DNAHamming
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dna_hamming
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark