value_semantics 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -3
- data/CHANGELOG.md +5 -0
- data/lib/value_semantics.rb +4 -4
- data/lib/value_semantics/version.rb +1 -1
- data/value_semantics.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f122fa566277c213c7eb2a31b38af94d4287b1688d91da91bd5eea8044a041ba
|
4
|
+
data.tar.gz: 371bc15f0cc7449042b19d5064e4a28f76ec1d6c0aae2c64622adf3252621045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7ebe03be2de318e43027cc4d27ed737111654a5d74c0646f62691076e0f51938eb55966a3f04105f4a4c86d242a0134ca3f5fafa27089aedd4c51f2fb45abd9
|
7
|
+
data.tar.gz: ac4e7a9f938e0bd9193d4260a8c211db6a05554463b6312a6409499a8d22c7a34b281093cf2c487676fefd58915b21027a47c99a75619fb2b80c457672ced57e
|
data/.travis.yml
CHANGED
@@ -4,14 +4,15 @@ script: bin/test
|
|
4
4
|
# test old Ruby versions WITHOUT mutation testing
|
5
5
|
rvm:
|
6
6
|
- 2.3.8
|
7
|
-
- 2.4.
|
8
|
-
- 2.5.
|
7
|
+
- 2.4.10
|
8
|
+
- 2.5.8
|
9
|
+
- 2.6.6
|
9
10
|
env: MUTATION_TEST=false
|
10
11
|
|
11
12
|
# test the latest Ruby version WITH mutation testing
|
12
13
|
matrix:
|
13
14
|
include:
|
14
|
-
- rvm: 2.
|
15
|
+
- rvm: 2.7.1
|
15
16
|
env: MUTATION_TEST=true
|
16
17
|
|
17
18
|
# deploy gem on tagged commits, on the latest Ruby version only
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ Notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
|
9
|
+
## [3.2.1] - 2020-07-11
|
10
|
+
### Fixed
|
11
|
+
- Fix warnings new to Ruby 2.7 about keyword arguments
|
12
|
+
|
8
13
|
## [3.2.0] - 2019-09-30
|
9
14
|
### Added
|
10
15
|
- `ValueSemantics::Struct`, a convenience for creating a new class and mixing
|
data/lib/value_semantics.rb
CHANGED
@@ -294,13 +294,13 @@ module ValueSemantics
|
|
294
294
|
ArrayOf.new(element_validator)
|
295
295
|
end
|
296
296
|
|
297
|
-
def def_attr(*args)
|
298
|
-
__attributes << Attribute.define(*args)
|
297
|
+
def def_attr(*args, **kwargs)
|
298
|
+
__attributes << Attribute.define(*args, **kwargs)
|
299
299
|
end
|
300
300
|
|
301
|
-
def method_missing(name, *args)
|
301
|
+
def method_missing(name, *args, **kwargs)
|
302
302
|
if respond_to_missing?(name)
|
303
|
-
def_attr(name, *args)
|
303
|
+
def_attr(name, *args, **kwargs)
|
304
304
|
else
|
305
305
|
super
|
306
306
|
end
|
data/value_semantics.gemspec
CHANGED
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
|
-
spec.add_development_dependency "bundler", "
|
29
|
-
spec.add_development_dependency "rspec", "~> 3.7
|
28
|
+
spec.add_development_dependency "bundler", ">= 1.15"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.7"
|
30
30
|
spec.add_development_dependency "mutant-rspec"
|
31
31
|
spec.add_development_dependency "yard"
|
32
32
|
spec.add_development_dependency "byebug"
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: value_semantics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Dalling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.15'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.15'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.7
|
33
|
+
version: '3.7'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.7
|
40
|
+
version: '3.7'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mutant-rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|