value_semantics 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/lib/value_semantics/version.rb +1 -1
- data/value_semantics.gemspec +4 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f845f722bb8928d4f16aa9ea89942c69ea5ad3cb42d87dfaa4b7969c9cb88a2
|
4
|
+
data.tar.gz: dc6a772c529849b5e4928ae5f50b3d8cdc38a5e9700a32a2e8920115eaa2e93a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f3303f40479363e698b7df06b2e0284813cae0080cd0bdb9e27508d93f1baedadc35116f7c6058c789c3cb1de8bd8ae880aadfdb7c719f54edc01735b6ea87a
|
7
|
+
data.tar.gz: 3c4a07fab7ddab35fb127d29aa9c0eb17ef396c68f6d2e9a784218f6af7b356014280ecdb399a0f77a0575f4a9ceed0314676da99d29bf654ded719f72ed55c1
|
data/README.md
CHANGED
@@ -5,15 +5,15 @@
|
|
5
5
|
ValueSemantics
|
6
6
|
==============
|
7
7
|
|
8
|
-
|
8
|
+
A gem for making value classes.
|
9
9
|
|
10
|
-
Generates modules that provide value semantics for a given set of attributes.
|
11
|
-
|
12
|
-
|
10
|
+
Generates modules that provide [conventional value semantics](https://github.com/zverok/good-value-object) for a given set of attributes.
|
11
|
+
The behaviour is similar to an immutable `Struct` class,
|
12
|
+
plus extensible, lightweight validation and coercion.
|
13
13
|
|
14
14
|
These are intended for internal use, as opposed to validating user input like ActiveRecord.
|
15
|
-
Invalid or missing attributes cause an exception
|
16
|
-
not an error message intended for
|
15
|
+
Invalid or missing attributes cause an exception for developers,
|
16
|
+
not an error message intended for application users.
|
17
17
|
|
18
18
|
|
19
19
|
Defining and Creating Value Objects
|
@@ -321,6 +321,7 @@ Or install it yourself as:
|
|
321
321
|
Bug reports and pull requests are welcome on GitHub at:
|
322
322
|
https://github.com/tomdalling/value_semantics
|
323
323
|
|
324
|
+
Keep in mind that this gem aims to be as close to 100% backwards compatible as possible.
|
324
325
|
|
325
326
|
## License
|
326
327
|
|
data/value_semantics.gemspec
CHANGED
@@ -9,13 +9,11 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Tom Dalling"]
|
10
10
|
spec.email = [["tom", "@", "tomdalling.com"].join]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
12
|
+
spec.summary = %q{Makes value classes, with lightweight validation and coercion.}
|
13
13
|
spec.description = %q{
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
Provides the behaviour of an immutable struct-like value class,
|
18
|
-
with light-weight validation and coercion.
|
14
|
+
Generates modules that provide conventional value semantics for a given set of attributes.
|
15
|
+
The behaviour is similar to an immutable `Struct` class,
|
16
|
+
plus extensible, lightweight validation and coercion.
|
19
17
|
}
|
20
18
|
spec.homepage = "https://github.com/tomdalling/value_semantics"
|
21
19
|
spec.license = "MIT"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: value_semantics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Dalling
|
@@ -94,10 +94,9 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
description: "\n
|
98
|
-
|
99
|
-
|
100
|
-
validation and coercion.\n "
|
97
|
+
description: "\n Generates modules that provide conventional value semantics for
|
98
|
+
a given set of attributes.\n The behaviour is similar to an immutable `Struct`
|
99
|
+
class,\n plus extensible, lightweight validation and coercion.\n "
|
101
100
|
email:
|
102
101
|
- tom@tomdalling.com
|
103
102
|
executables: []
|
@@ -135,8 +134,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
134
|
- !ruby/object:Gem::Version
|
136
135
|
version: '0'
|
137
136
|
requirements: []
|
138
|
-
|
137
|
+
rubyforge_project:
|
138
|
+
rubygems_version: 2.7.7
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
|
-
summary:
|
141
|
+
summary: Makes value classes, with lightweight validation and coercion.
|
142
142
|
test_files: []
|