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 +4 -4
- data/README.md +3 -0
- data/lib/fried/schema/struct.rb +2 -0
- data/lib/fried/schema/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: b3cfb4822db15c6d31a1e5778169260f3211cb46
|
4
|
+
data.tar.gz: d8bf67c8722815aa065b41199260a02823a7d7ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/fried/schema/struct.rb
CHANGED
@@ -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
|
data/lib/fried/schema/version.rb
CHANGED
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:
|
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
|
+
date: 2017-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|