struct-initializer 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/struct/initializer/{autoinclude.rb → core_ext.rb} +0 -0
- data/lib/struct/initializer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8e0441fb9f81b6bd8b903e29ba20b216d05aefefdcd460d74505e92f4583589
|
4
|
+
data.tar.gz: d892f8b866e6a11825e11c41fb5b2ead791d09eaec3b04c1396d0dd90d504b2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be43ada8f8a68e266d45f5a9dab6d3de213f6c5a78ba0d2b421a522974461edcc24d03be762cddc53b32e96144d8ce094f800bfafbe4b0626fb2859210756bd
|
7
|
+
data.tar.gz: 3f38bab472f65f74ff77a3041ba871c690d629de163af5889ec577edc197688b4ad962d1de5f37ae96a979d5ffef6dfcfd88dea1bec08d08fb403830e22a9352
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -39,15 +39,15 @@ class Greeter
|
|
39
39
|
end
|
40
40
|
```
|
41
41
|
|
42
|
-
### Auto-include
|
42
|
+
### Auto-include via Object core extension
|
43
43
|
|
44
44
|
If you want `struct` available on any object automatically, change the require to:
|
45
45
|
|
46
46
|
```ruby
|
47
|
-
gem "struct-initializer", require: "struct/initializer/
|
47
|
+
gem "struct-initializer", require: "struct/initializer/core_ext"
|
48
48
|
```
|
49
49
|
|
50
|
-
This extends `Object` with the `struct` macro, so
|
50
|
+
This extends `Object` itself with the `struct` macro, so `extend Struct::Initializer` from above isn't needed.
|
51
51
|
|
52
52
|
## Development
|
53
53
|
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: struct-initializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Timm Hansen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest-sprint
|
@@ -38,7 +38,7 @@ files:
|
|
38
38
|
- README.md
|
39
39
|
- Rakefile
|
40
40
|
- lib/struct/initializer.rb
|
41
|
-
- lib/struct/initializer/
|
41
|
+
- lib/struct/initializer/core_ext.rb
|
42
42
|
- lib/struct/initializer/version.rb
|
43
43
|
- struct-initializer.gemspec
|
44
44
|
homepage: https://github.com/kaspth/struct-initializer
|