statics 1.0.1 → 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
  SHA256:
3
- metadata.gz: 9307fc0ac8c18758cad7e568a4261e78fe645c4ff177cb0a1fc05b6c7af26efb
4
- data.tar.gz: c9c4b1118a6735e776ae62477da9d9cc8b7f151b1bb1c8baffd860d5fa802150
3
+ metadata.gz: cb41b009ba55c31ad448069984deb41c507d2abf593f48eacb9aa39435b0489c
4
+ data.tar.gz: 5c46b8bd29bd1f8dbdc3cbf829b331779c8de70ddbaaf172291bd77e0a906a2f
5
5
  SHA512:
6
- metadata.gz: 9cfa64e36ae8778cb2c38942d7406c8950296532102d3bf198ffa63dbba1620220b6603cd3fe6c33eafad012f793be03599252c913b2c98246de3d5810ff4eea
7
- data.tar.gz: 2f660c2fa8b6c8ce36d5b5cac81b2809c83754b9c523693ba3eef289d470317b0a1710b96ef56030531aeb284d85fad6c09d324d401b772ca7bf9a5b5f245cc6
6
+ metadata.gz: 648d4742a3c62dbdf4f9bd1cd733cfeb4516c6e56a292f3a132124075abffe01a9c517fe650474888650faff82cc353928c9468032704524bb9e25269ba99302
7
+ data.tar.gz: de805641ebfb9c2dea4bde70ba97d6fd273f5c4419203179a9cb8a9dc306bf98963be1f392ce3f82cbc28a6554941e79334b8e8c9986a9d7ea70b936d301708c
data/README.md CHANGED
@@ -124,6 +124,8 @@ post.body #=> "Hello!"
124
124
  post.body(locale: :nl) #=> "Hallo!"
125
125
  ```
126
126
 
127
+ Check [dry-types](https://dry-rb.org/gems/dry-types) for documentation about the [built-in types](https://dry-rb.org/gems/dry-types/built-in-types/).
128
+
127
129
  ## Tests
128
130
 
129
131
  To test, run:
data/lib/statics/model.rb CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  module Statics
4
4
  class Model < Dry::Struct
5
+ module Types
6
+ include Statics::Types
7
+ end
8
+
5
9
  transform_keys(&:to_sym)
6
10
 
7
11
  defines :filename
data/lib/statics/types.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Types
4
- include Dry::Types.module
3
+ module Statics
4
+ module Types
5
+ include Dry::Types.module
6
+ end
5
7
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Statics
4
- VERSION = "1.0.1"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Crivella
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-08 00:00:00.000000000 Z
11
+ date: 2018-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-equalizer