inci_score 4.1.4 → 4.1.5

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
  SHA256:
3
- metadata.gz: 81748de653f3df8bca12f42b32322214040c71f4b943bbea225e12f8683e35f2
4
- data.tar.gz: aa461eb90bc58f31a55bd6263cab0a64b1cb22f7ffde4fec202531df6710bbc7
3
+ metadata.gz: eedaa61b1f912c5ee5209f3721437bd51798a80e33550cf1c999fa8a63f61acb
4
+ data.tar.gz: 83a0fd809370736dddba478bb6c3799a463bc88e9ece65598c8ff3f197693912
5
5
  SHA512:
6
- metadata.gz: 5592961b10ec6bbef156e83358c880776cba5ffdd00c5ec42c804f7acf86cf7a9ebf832cda9da4345e670ab139d3682e787aedf272db5cf2469fc5afedcff86e
7
- data.tar.gz: 560ef5d1da9749a4adfaae809fd04d2efa9ec56dd1e2ab9b39644d950c35b335fc412dda6d72adfa9bb033877a6cb41d7052d9a75a7a38dacd9ab6ebd1c510b8
6
+ metadata.gz: b0ba727bbf55f5d1627ed1889eb1d81a559d51759f575dbdc2cab62b7299839f130caf9d0d2c6d12e94b1301c56bf3c6e0795ebfea9ea84c76bd38a472b6da98
7
+ data.tar.gz: 8f0f697b513ab4f5f30619bb2c3619b82b1ed699ac4c610d3760bb134af28fa83b53b3a4ae75cb2d36ec054fa6c28570037826aaa1b39dcedc72cc6e29660851
@@ -21,7 +21,6 @@ module InciScore
21
21
  Response.new(components: components,
22
22
  unrecognized: unrecognized,
23
23
  score: score,
24
- valid: valid?,
25
24
  precision: precision)
26
25
  end
27
26
 
@@ -4,19 +4,18 @@ require 'oj'
4
4
 
5
5
  module InciScore
6
6
  class Response
7
- attr_reader :components, :score, :unrecognized, :valid, :precision
7
+ attr_reader :components, :score, :unrecognized, :precision
8
8
 
9
9
  def initialize(options = {})
10
10
  @components = options.fetch(:components) { [] }
11
11
  @score = options.fetch(:score) { 0.0 }
12
12
  @unrecognized = options.fetch(:unrecognized) { [] }
13
- @valid = options.fetch(:valid) { false }
14
13
  @precision = options.fetch(:precision) { 0 }
15
14
  freeze
16
15
  end
17
16
 
18
17
  def to_json
19
- data = { components: components.map(&:to_h), unrecognized: unrecognized, score: score, valid: valid, precision: precision }.freeze
18
+ data = { components: components.map(&:to_h), unrecognized: unrecognized, score: score, precision: precision }.freeze
20
19
  Oj.dump(data, mode: :compat)
21
20
  end
22
21
 
@@ -24,8 +23,6 @@ module InciScore
24
23
  %Q{
25
24
  TOTAL SCORE:
26
25
  \t#{score}
27
- VALID STATE:
28
- \t#{valid}
29
26
  PRECISION:
30
27
  \t#{precision}
31
28
  COMPONENTS:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InciScore
4
- VERSION = '4.1.4'
4
+ VERSION = '4.1.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inci_score
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.4
4
+ version: 4.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - costajob