monza 0.1.3 → 0.1.4
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 +4 -4
- data/lib/monza/bool_typecasting.rb +6 -1
- data/lib/monza/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da592061c2bb96fc42bc872fc447d3e0f8551045
|
|
4
|
+
data.tar.gz: ff94bdc6914cd05af4dbc91c289dd9b63b739a83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb927f816393a70df286b8fb23153989ca4af991b43571d97d44cbf2d0e2607901d944be9527564cfe7b83ae8c519ac3f4cdbba11d1ca469840bde541391ee05
|
|
7
|
+
data.tar.gz: b3b7c310b1aac9cc34beaefa0405b2d8f368b967df59c2370abda9ff05a83335dcaf3cec12a54e087b994c972a3ffe788183d0c6f08099d3dc2c7707f2822197
|
|
@@ -7,7 +7,12 @@ class String
|
|
|
7
7
|
# if using Rails empty? can be changed for blank?
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
if RUBY_VERSION >= "2.4"
|
|
11
|
+
integer_class = Object.const_get("Integer")
|
|
12
|
+
else
|
|
13
|
+
integer_class = Object.const_get("Fixnum")
|
|
14
|
+
end
|
|
15
|
+
integer_class::class_eval do
|
|
11
16
|
def to_bool
|
|
12
17
|
return true if self == 1
|
|
13
18
|
return false if self == 0
|
data/lib/monza/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: monza
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabriel Garza
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-03-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|