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 +4 -4
- data/lib/yano/lenient.rb +5 -5
- data/lib/yano/version.rb +1 -1
- data/yano.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a00e7f7658bb3d0cc0897d077515de69b6d7ef5
|
4
|
+
data.tar.gz: fda1ae904eba76f5ebbb94390008c1ac6cb46318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f65933f18514044e9d6e79754441ab673b3114b54c73555e227cb33d98a77ea5299a79e3e57d309df6580bf035988c9e4c809b77c7ae6cc7aea72213cc1f457
|
7
|
+
data.tar.gz: c01fd7318b0bcfc58d2bb4f327b0aed0166591116ce2aab76032045e2ac1564565a27cd6c3797cd9cba4e0c01c956bb39ac23a6d2b61fb21e613d7f4f6a9a748
|
data/lib/yano/lenient.rb
CHANGED
@@ -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 <<
|
65
|
-
score <<
|
66
|
-
score <<
|
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 <<
|
75
|
-
score <<
|
74
|
+
score << N_MATCH[n].to_f
|
75
|
+
score << O_MATCH[o].to_f
|
76
76
|
end.reduce(:+)
|
77
77
|
end
|
78
78
|
|
data/lib/yano/version.rb
CHANGED
data/yano.gemspec
CHANGED
@@ -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.
|
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: []
|