runapi-core 0.3.1 → 0.3.2

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: cb5369d4bc3ec00ba92341e7151b7e1d62b6972ef3e84fd35474638da86a9926
4
- data.tar.gz: ed1fe305dba138db597e86e31421312bf0a017d9c3ed1564b0e44044a9a537a0
3
+ metadata.gz: d16404092e6b56b65c68e9a2bc73d3b1dd686a7439434c2d7250b92b17068e51
4
+ data.tar.gz: f8442835f9a376a13fb72f3f59c6440a5bfec1fc060c4611305b1e97f85f5255
5
5
  SHA512:
6
- metadata.gz: 7c885608b3f52f9e5ab11937e032149a164a781c8f413e19d394484a7b6576b622afd82c2c152ed52ca5ff67c389f9ee40d28aef174f7553947fd888c204a1cb
7
- data.tar.gz: b0af7a1272a3f69003bb4fa80ca4848511f847dcd7a5a1e1c5678b358c90313962312ddc4f7a0f870a32de801cf2e5af94e33879fec14084ecf1b36e920be8ed
6
+ metadata.gz: df3d5a910d5af119187a0cd3b4764c09fd10f9b6eed1e7cf3b3c71593538ae7f656cdc7fe97c413a24efbff1056b00d367af8c7f17a2af6b58df072c5d1dc008
7
+ data.tar.gz: 9671bd2644931b671609b96fdce9a2982f914a381502b3e88858e3f9de54b05681861f091e7950a875aa385723a5782ec8db1d8087f6edd7a0e482997c97b93a
@@ -149,7 +149,9 @@ module RunApi
149
149
 
150
150
  def enum_value_allowed?(enum, value)
151
151
  enum.any? do |allowed|
152
- if allowed.is_a?(Numeric)
152
+ if allowed == true || allowed == false
153
+ value == allowed
154
+ elsif allowed.is_a?(Numeric)
153
155
  value.is_a?(Numeric) && value == allowed
154
156
  elsif value.is_a?(Numeric)
155
157
  allowed == value
@@ -2,7 +2,7 @@
2
2
 
3
3
  module RunApi
4
4
  module Core
5
- VERSION = "0.3.1"
5
+ VERSION = "0.3.2"
6
6
  end
7
7
 
8
8
  VERSION = Core::VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - RunAPI
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 4.0.17
87
+ rubygems_version: 4.0.10
88
88
  specification_version: 4
89
89
  summary: RunAPI Core Ruby SDK
90
90
  test_files: []