color_contrast_calc 0.6.0 → 0.6.1

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: 5fd16bbd48389db33f0f8cca8b247ff7d5f9a2b9722d8ec75bc700eda5a3ad31
4
- data.tar.gz: ce493824b5a6fa1103a475073ca00bbd92e0b738863cfd338ebf6b2f8f419fd5
3
+ metadata.gz: 7f14c1b61fcfcbab962811f5d6c2bee98841b5fc88aedbe3cdcb1f66747c7735
4
+ data.tar.gz: 60c833fd6e0374f319172ff40307f496f3d3e31b7ae7e77b01105f2283855776
5
5
  SHA512:
6
- metadata.gz: 7174b51afe73c2a632afa7d583e8f60a738891fb4f5a7e5c5deb5c50b849f7236fbf14440be3a94f80d3c077c0ad6a79d886ab8de7c3a30524c6184e98658741
7
- data.tar.gz: 595e1f552a82d94bad86b93c7a5cf656634bdfb23cc88885789b850f142f09f5f5d673135c5658516b40267deb2fe2863f35a318c31304285e3921ce40e71e76
6
+ metadata.gz: 2406be8e787bc8730cc4297429f37081a21cfde4acd5fc82f53703eccce10f0d1868ce8072ee4f592c2ea7a4a8372c4ca7bdfa97a6866b4d632f30b7c2a49675
7
+ data.tar.gz: 226e05b5b73f8f19e7589bed424cb1eb6c14dabfa1b87b2b8e1db84c646ce4110ad3cbd93970746a9df1d8df41fa5286801fea849168ac260e76724d55ab4cca
data/README.md CHANGED
@@ -75,7 +75,7 @@ red
75
75
 
76
76
  To calculate the contrast ratio between two colors, a class method of `ColorContrastCalc`, `.contrast_ratio()` is available.
77
77
 
78
- For example, if you want calculate the contrast ratio between yellow and black at the command line, you can do as follows:
78
+ For example, if you want to calculate the contrast ratio between yellow and black at the command line, you can do as follows:
79
79
 
80
80
  ```bash
81
81
  $ ruby -rcolor_contrast_calc -e 'puts ColorContrastCalc.contrast_ratio("#ff0", "#000")'
@@ -212,6 +212,8 @@ module ColorContrastCalc
212
212
  private_class_method :read_unit!
213
213
 
214
214
  def self.read_comma!(scanner, parsed_value)
215
+ skip_spaces!(scanner)
216
+
215
217
  return parsed_value if read_close_paren!(scanner)
216
218
 
217
219
  read_token!(scanner, TokenRe::COMMA)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ColorContrastCalc
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: color_contrast_calc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HASHIMOTO, Naoki