redress 0.4.0 → 0.4.1
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 -3
- data/lib/redress/identity.rb +1 -1
- data/lib/redress/types.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e9932ab0a49884022ac9b826536b72e5f8294252af2c9a4322152de15919d4a
|
4
|
+
data.tar.gz: f182b8dc2352cf774a5e1117bfe82dc9ee8f9319bf9a28516165683d353d5b13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107beeb6d2f81812cdfee470d300f7556960c73ea5a00cd414509bb4dc7679615134679d6b362aa6cbaac03b6faee2f36b35e51d7428441a91afa3a1aaf8328b
|
7
|
+
data.tar.gz: 7000bfc7c0c64df258b16bcdfb80b380e68f8e09e0cff2c9e6493481d817df5981ece134c2c27bba1aee776e7f30d12871a82a87254641610a630695b476de0c
|
data/README.md
CHANGED
@@ -63,9 +63,9 @@ class SimpleForm < ApplicationForm
|
|
63
63
|
mimic :user
|
64
64
|
|
65
65
|
define_schema do
|
66
|
-
attribute :nickname, Redress::Types::Strict::String.default(
|
67
|
-
attribute :name,
|
68
|
-
attribute :email,
|
66
|
+
attribute :nickname, Redress::Types::Strict::String.default('superman')
|
67
|
+
attribute :name, Redress::Types::StrippedString
|
68
|
+
attribute :email, Redress::Types::StrippedString
|
69
69
|
attribute :name_with_email, String
|
70
70
|
attribute :age, Redress::Types::Coercible::Integer
|
71
71
|
atttibute :terms_of_service, Redress::Types::Bool
|
data/lib/redress/identity.rb
CHANGED
data/lib/redress/types.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Galeta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|