smart_types 0.1.0.alpha2 → 0.1.0.alpha3

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: dcb0ae0383bdc9445db3ea63c4aa54bb6bfb733ae0d092a35454eb1c5892849d
4
- data.tar.gz: 5d15ac45b21a85e965feb00f45419d125638578941eee86a56cb9088f60249fe
3
+ metadata.gz: fc4e623d3f8d313b11dbd7e483989b3f2b94904a9e3a1ec27edb85095fdc418b
4
+ data.tar.gz: 3514c7ecfcd83963744f66ce92dfd648bd680b61ad34aaf4c2b0a9207cd842ad
5
5
  SHA512:
6
- metadata.gz: a9ac3108ef4bdc56cd6618312b56e78eb328461e54ef9bcd09ef9daf7f808b121dfb7d3e196596455eebcdaf69a4426fcfa5066d1f584c74138114cade5e8770
7
- data.tar.gz: 6ca41544a3c80c8573971f63135224d67c21b72ba5c4cbd0137086a6a1f5edd5d736708178472dd009c4e648d37527e3e8416af008d17120dbd26d3a6b8c299c
6
+ metadata.gz: a21d4a5a20575cba14a000440c6da87aab465b2aa7c02b2697f13c422fc3c6dbe873c4b2d0fcfec1e5ee182db7a356b8ca0f3bf7beae0f5787b10610d4a3bfca
7
+ data.tar.gz: 80c82999c44edab7225b5169cbff0586254c5d817efbfb4c5df4f6906f0b794280dd52c7342fe732b30a6b339c96cf24b40d8c79915a679b87fca9e91a3ac6fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smart_types (0.1.0.alpha)
4
+ smart_types (0.1.0.alpha3)
5
5
  smart_engine (~> 0.5)
6
6
 
7
7
  GEM
@@ -6,4 +6,8 @@ SmartCore::Types::Value.define_type(:Boolean) do |type|
6
6
  type.define_checker do |value|
7
7
  value.is_a?(::TrueClass) || value.is_a?(::FalseClass)
8
8
  end
9
+
10
+ type.define_caster do |value|
11
+ !!value
12
+ end
9
13
  end
@@ -7,6 +7,6 @@ module SmartCore
7
7
  # @api public
8
8
  # @since 0.1.0
9
9
  # @version 0.1.0
10
- VERSION = '0.1.0.alpha2'
10
+ VERSION = '0.1.0.alpha3'
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha2
4
+ version: 0.1.0.alpha3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-22 00:00:00.000000000 Z
11
+ date: 2020-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smart_engine