chgk_rating 2.2.0 → 2.2.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
  SHA256:
3
- metadata.gz: 61be2615dc148c3adab710b6a3d2fb2e2209ffff2414972101b94d3ba35ebbfe
4
- data.tar.gz: d26da02ff2a2886e0c253106c6f1096bb1572d2db8a4d5476acb149f70d18653
3
+ metadata.gz: c29ae6874afaf3aecceeb48bf0565c39f3b6e9477539dc55b27f8af30dcb04d8
4
+ data.tar.gz: c9534ce8ed794db2899ce9f56078c453c4f1ec2bd70152ed20cf7fb438f890b5
5
5
  SHA512:
6
- metadata.gz: ea945aa9897881ecea27085dc0a224d33a2a0fb029a5624e7069a4831571bae5672effc2800b5d92e53e7d89f8b6856a5e925bf5a075843b1fcbe7e1c5b8532d
7
- data.tar.gz: 52d3b312ebe06c301836562afa298de73f1a4682bd7d03057043f3883c08d23d2ece2725f2e0174291c69db0df9445c962260af255b64568c8c74c1b321ee418
6
+ metadata.gz: 76b4ce04cae4ba912d425f6f2aad741c6e638fe72cc90f469add0bbf5edde63ede65858a5c0da1e1f509f360e2210aafdaad95250296a18eee56f0c38dc76a7b
7
+ data.tar.gz: 97e23393e3bb53579b6f433cc4f8d1fe6c4e70d7a39a9b7cca34dcfe7f524e58969bfe8c8ba8497ba7c013f5a58413c9d816701507151b1d8e03258dedee09dc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.2.1 (2022-08-05)
4
+
5
+ * Fixed conversion to boolean (thanks, @L-Eugene)
6
+
3
7
  ## v2.2.0 (2022-07-07)
4
8
 
5
9
  * **Drop support for Ruby 2.4 and 2.5 (EOL)**
data/chgk_rating.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'faraday-follow_redirects', '~> 0.3'
27
27
  spec.add_dependency 'multi_json', '~> 1.15'
28
28
 
29
- spec.add_development_dependency 'codecov', '~> 0.1'
29
+ spec.add_development_dependency 'codecov', '~> 0.1'
30
30
  spec.add_development_dependency 'rake', '~> 13.0'
31
31
  spec.add_development_dependency 'rspec', '~> 3.6'
32
32
  spec.add_development_dependency 'rubocop', '~> 1.31'
@@ -38,7 +38,7 @@ module ChgkRating
38
38
  end
39
39
 
40
40
  def to_boolean
41
- ->(d) { !d.to_i.zero? }
41
+ ->(d) { d.respond_to?(:to_i) ? !d.to_i.zero? : !!d }
42
42
  end
43
43
 
44
44
  def to_binary_boolean
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChgkRating
4
- VERSION = '2.2.0'
4
+ VERSION = '2.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chgk_rating
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Krukowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-07 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubygems_version: 3.3.17
229
+ rubygems_version: 3.3.19
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Ruby interface to the competitive What? Where? When? rating API