fried-schema 1.1.1 → 2.0.0

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
  SHA1:
3
- metadata.gz: 3aebb92b3ff217d9a49edc6272d05766147d4893
4
- data.tar.gz: 5bb8ee7a5d597a5e5d508c339fb960927f0ed5b7
3
+ metadata.gz: b3cfb4822db15c6d31a1e5778169260f3211cb46
4
+ data.tar.gz: d8bf67c8722815aa065b41199260a02823a7d7ab
5
5
  SHA512:
6
- metadata.gz: ffda1f3d86e418fb3ab798ec71b18b335c17b1176b285e8ae48a5cf5f8a075f34f57a0a06dfc23461d866bcee3dba08896b79d5cd05df7f66c81b4e849bbc865
7
- data.tar.gz: b3b776f78aa872c695c63be03702f8f05be6a5f56ad7660e40d7038af8f48ca9a9108d3cc67c1c41e27a12db82be93d63a6efd417caf529b704aa192bc4a9b61
6
+ metadata.gz: aec8560a85fc82ff3e63ee7ea844f33a97e96609c63b5c8d7048f48647fd3e5f4cf19cc1b8250dfe0fb0f8cf58e8cf49dadfa0fe0010af4f6d388390a7ece47f
7
+ data.tar.gz: e1bcb3622ebaf51ffeabcfc43d0ab28a972b1ae4c8a683cbc71af20514399e96c8036d52bea0b4c9f130d38e8096e07d81938dae82d31d0f46ed2e16606d3ad7
data/README.md CHANGED
@@ -28,6 +28,9 @@ Two modules are exposed:
28
28
  You shouldn't write an `initialize` method when you use any of the above
29
29
  modules. If you do, please make sure to call `super` or `super()`.
30
30
 
31
+ All type-checking is performed using `Fried::Typings::Is`, which uses just
32
+ `#is_a?` under the hood.
33
+
31
34
  ### API
32
35
 
33
36
  #### Struct
@@ -1,4 +1,5 @@
1
1
  require "fried/core"
2
+ require "fried/typings"
2
3
  require "fried/schema/attribute/definition"
3
4
  require "fried/schema/attribute/define_methods"
4
5
  require "fried/schema/definition"
@@ -41,6 +42,7 @@ module Fried::Schema
41
42
  klass.instance_eval do
42
43
  include Initializer
43
44
  extend ClassMethods
45
+ include ::Fried::Typings
44
46
  end
45
47
  end
46
48
  end
@@ -1,5 +1,5 @@
1
1
  module Fried
2
2
  module Schema
3
- VERSION = "1.1.1"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fried-schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fire-Dragon-DoL
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-25 00:00:00.000000000 Z
11
+ date: 2017-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler