yano 0.1.2 → 0.1.3

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: 0eef8fde3dc03253986288b4ed13828b99c78e87
4
- data.tar.gz: 43e61e6f3a764d6a02306b6504f930d58c5bef80
3
+ metadata.gz: 3a00e7f7658bb3d0cc0897d077515de69b6d7ef5
4
+ data.tar.gz: fda1ae904eba76f5ebbb94390008c1ac6cb46318
5
5
  SHA512:
6
- metadata.gz: 59d8e147c8c6122d030a95e66772d421aa9ac1d60a38c45fca3783e2764828cf3403484d80ebcb96c6a3d83e03a8ea5609c2e91708e5e999b067f2d3a7a33537
7
- data.tar.gz: 238ed850ec188535acd3b26a9f265a9e5b4ac351dba0cce1651d127303dab23a3883225b3d47cdbf4714306e307ab8adbe8103c93acd0fd5c68d06a18227e753
6
+ metadata.gz: 3f65933f18514044e9d6e79754441ab673b3114b54c73555e227cb33d98a77ea5299a79e3e57d309df6580bf035988c9e4c809b77c7ae6cc7aea72213cc1f457
7
+ data.tar.gz: c01fd7318b0bcfc58d2bb4f327b0aed0166591116ce2aab76032045e2ac1564565a27cd6c3797cd9cba4e0c01c956bb39ac23a6d2b61fb21e613d7f4f6a9a748
@@ -61,9 +61,9 @@ module Yano
61
61
  def self.get_yes_match_score(val)
62
62
  y, e, s = val[0], val[1], val[2]
63
63
  [].tap do |score|
64
- score << (Y_MATCH.key?(y) ? Y_MATCH[y] : 0)
65
- score << (E_MATCH.key?(e) ? E_MATCH[e] : 0)
66
- score << (S_MATCH.key?(s) ? S_MATCH[s] : 0)
64
+ score << Y_MATCH[y].to_f
65
+ score << E_MATCH[e].to_f
66
+ score << S_MATCH[s].to_f
67
67
  end.reduce(:+)
68
68
  end
69
69
 
@@ -71,8 +71,8 @@ module Yano
71
71
  n, o = val[0], val[1]
72
72
 
73
73
  [].tap do |score|
74
- score << (N_MATCH.key?(n) ? N_MATCH[n] : 0)
75
- score << (O_MATCH.key?(o) ? O_MATCH[o] : 0)
74
+ score << N_MATCH[n].to_f
75
+ score << O_MATCH[o].to_f
76
76
  end.reduce(:+)
77
77
  end
78
78
 
@@ -1,3 +1,3 @@
1
1
  module Yano
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Nick Palaniuk"]
10
10
  spec.email = ["npalaniuk@gmail.com"]
11
11
 
12
- spec.summary = %q{Parse yes/no values, useful for CLI prompts}
13
- spec.description = %q{Parse yes/no values}
12
+ spec.summary = %q{Parse yes/no like values, useful for CLI prompts}
13
+ spec.description = %q{Parse yes/no like values}
14
14
  spec.homepage = "https://github.com/nikkypx/yano"
15
15
  spec.license = "MIT"
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Palaniuk
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
- description: Parse yes/no values
27
+ description: Parse yes/no like values
28
28
  email:
29
29
  - npalaniuk@gmail.com
30
30
  executables: []
@@ -64,5 +64,5 @@ rubyforge_project:
64
64
  rubygems_version: 2.5.1
65
65
  signing_key:
66
66
  specification_version: 4
67
- summary: Parse yes/no values, useful for CLI prompts
67
+ summary: Parse yes/no like values, useful for CLI prompts
68
68
  test_files: []