fried-schema 1.1.0 → 1.1.1

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: a615c7ea19d0244ce08a18d86d25440eaf83e189
4
- data.tar.gz: 371e26fae5f1dcd7a5b4643174a95fe3e3059013
3
+ metadata.gz: 3aebb92b3ff217d9a49edc6272d05766147d4893
4
+ data.tar.gz: 5bb8ee7a5d597a5e5d508c339fb960927f0ed5b7
5
5
  SHA512:
6
- metadata.gz: e1e686ac6471cd4b1017c3854aa90dfd614b08e61b20e2e8b81d4fc7b09ffdf26d4b911da6c4853f6ead0a16f742ec8965fd3deb7136a603db6e6b337dafa172
7
- data.tar.gz: a28e79ee31e986c34e427552766382828f028042e52d543a2557d290f2431c2d1f2be7e33ab995841265eb6366156d9b75eeae79a0deb212fe88d21e0823f552
6
+ metadata.gz: ffda1f3d86e418fb3ab798ec71b18b335c17b1176b285e8ae48a5cf5f8a075f34f57a0a06dfc23461d866bcee3dba08896b79d5cd05df7f66c81b4e849bbc865
7
+ data.tar.gz: b3b776f78aa872c695c63be03702f8f05be6a5f56ad7660e40d7038af8f48ca9a9108d3cc67c1c41e27a12db82be93d63a6efd417caf529b704aa192bc4a9b61
data/README.md CHANGED
@@ -7,7 +7,7 @@ Struct definition with type safety
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'fried-schema'
10
+ gem "fried-schema"
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -25,7 +25,12 @@ Two modules are exposed:
25
25
  - `Fried::Schema::Struct`
26
26
  - `Fried::Schema::DataEntity`
27
27
 
28
- ### Struct
28
+ You shouldn't write an `initialize` method when you use any of the above
29
+ modules. If you do, please make sure to call `super` or `super()`.
30
+
31
+ ### API
32
+
33
+ #### Struct
29
34
 
30
35
  ```ruby
31
36
  class Person
@@ -49,7 +54,7 @@ person.age # => nil
49
54
  person.name = 123 # raises TypeError
50
55
  ```
51
56
 
52
- ### DataEntity
57
+ #### DataEntity
53
58
 
54
59
  Has all the same functionality as `Fried::Schema::Struct`, in addition to
55
60
  `#to_h` and `.build`
@@ -1,5 +1,5 @@
1
1
  module Fried
2
2
  module Schema
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
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.0
4
+ version: 1.1.1
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-24 00:00:00.000000000 Z
11
+ date: 2017-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler