opt_struct 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/opt_struct/version.rb +1 -1
- data/opt_struct.gemspec +0 -4
- metadata +3 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '059614bdb1345ea6768c1c3334626dbca0ffa61ff47ada76831fa6b91817ce8a'
|
4
|
+
data.tar.gz: fb53cbccfa0d29bf3f5574fe6d4123b40118cff79161487c91409d4fc4070c60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3503358f5bc3dee6f50ab5128b5b24fabb884852f2a7cf750861a7aa13ef5c2597be0eda3b40d562fd127afe1e44586efaecdce6223208421138269384f6818
|
7
|
+
data.tar.gz: fbe2e25d299bfa1ab62c9afd9168d4b9ac609469c3613b830192810cff34ed55d4bdf84f8e4a2affa5194f20fcd71a0502e25c23feba46b4b7cdb3dcea0c1b9a
|
data/README.md
CHANGED
@@ -153,7 +153,7 @@ end
|
|
153
153
|
Passing a Hash to `.new` or `.build` is equivalent to passing the same hash to `options`
|
154
154
|
|
155
155
|
```ruby
|
156
|
-
User
|
156
|
+
User = OptStruct.new(email: nil, role: "member")
|
157
157
|
```
|
158
158
|
|
159
159
|
Default blocks can also be used and are late evaluated on the each struct instance.
|
data/lib/opt_struct/version.rb
CHANGED
data/opt_struct.gemspec
CHANGED
@@ -16,8 +16,4 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.files = `git ls-files`.split("\n").grep(/^lib/)
|
17
17
|
spec.files += %w(README.md opt_struct.gemspec)
|
18
18
|
spec.require_paths = ["lib"]
|
19
|
-
|
20
|
-
spec.add_development_dependency "bundler", ">= 1.14"
|
21
|
-
spec.add_development_dependency "rake", ">= 10.0"
|
22
|
-
spec.add_development_dependency "rspec", ">= 3.0"
|
23
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opt_struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Zulauf
|
@@ -9,49 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-10-06 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.14'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.14'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '10.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '10.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '3.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '3.0'
|
12
|
+
dependencies: []
|
55
13
|
description: Struct with support for keyword params and mixin support
|
56
14
|
email:
|
57
15
|
- carl@linkleaf.com
|
@@ -85,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
43
|
- !ruby/object:Gem::Version
|
86
44
|
version: '0'
|
87
45
|
requirements: []
|
88
|
-
rubygems_version: 3.0.
|
46
|
+
rubygems_version: 3.0.3
|
89
47
|
signing_key:
|
90
48
|
specification_version: 4
|
91
49
|
summary: The Option Struct
|