u-struct 0.11.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +5 -5
- data/.rubocop.yml +129 -0
- data/.rubocop_todo.yml +10 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +558 -13
- data/Gemfile +14 -3
- data/README.md +682 -16
- data/Rakefile +5 -5
- data/bin/console +3 -3
- data/bin/prepare_coverage +7 -9
- data/bin/run_ci +17 -0
- data/bin/tapioca +28 -0
- data/examples/rgb/number.rb +1 -1
- data/examples/rgb_1.rb +7 -6
- data/examples/rgb_2.rb +2 -2
- data/examples/rgb_3.rb +1 -1
- data/lib/micro/struct/factory/create_struct.rb +95 -69
- data/lib/micro/struct/factory/members.rb +1 -0
- data/lib/micro/struct/factory.rb +13 -4
- data/lib/micro/struct/features.rb +35 -16
- data/lib/micro/struct/normalize_names.rb +4 -3
- data/lib/micro/struct/version.rb +2 -1
- data/lib/micro/struct.rb +37 -5
- data/lib/u-struct.rb +2 -0
- data/rbi/micro/struct/factory/create_struct.rbi +60 -0
- data/rbi/micro/struct/factory/members.rbi +67 -0
- data/rbi/micro/struct/factory.rbi +41 -0
- data/rbi/micro/struct/features.rbi +41 -0
- data/rbi/micro/struct/normalize_names.rbi +20 -0
- data/rbi/micro/struct/version.rbi +3 -0
- data/rbi/micro/struct.rbi +68 -0
- data/sorbet/config +8 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +11 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/minitest@5.15.0.rbi +345 -0
- data/sorbet/rbi/gems/parser@3.1.0.0.rbi +1196 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +806 -0
- data/sorbet/rbi/gems/rbi@0.0.9.rbi +1602 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.8.rbi +1252 -0
- data/sorbet/rbi/gems/tapioca@0.6.2.rbi +1232 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
- data/sorbet/rbi/gems/unparser@0.6.3.rbi +8 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +199 -0
- data/sorbet/rbi/gems/yard@0.9.27.rbi +4112 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- data/u-struct.gemspec +3 -3
- metadata +38 -4
- data/bin/test +0 -8
data/u-struct.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ['Rodrigo Serradura']
|
9
9
|
spec.email = ['rodrigo.serradura@gmail.com']
|
10
10
|
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
11
|
+
spec.summary = 'Create powered Ruby structs.'
|
12
|
+
spec.description = 'Create powered Ruby structs.'
|
13
13
|
spec.homepage = 'https://github.com/serradura/u-struct'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
spec.required_ruby_version = '>= 2.2.0'
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
-
spec.files = Dir.chdir(File.expand_path(
|
23
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
24
24
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
25
|
end
|
26
26
|
spec.bindir = 'exe'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: u-struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Serradura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -47,6 +47,9 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".github/workflows/ci.yml"
|
49
49
|
- ".gitignore"
|
50
|
+
- ".rubocop.yml"
|
51
|
+
- ".rubocop_todo.yml"
|
52
|
+
- ".tool-versions"
|
50
53
|
- ".vscode/settings.json"
|
51
54
|
- CHANGELOG.md
|
52
55
|
- CODE_OF_CONDUCT.md
|
@@ -56,8 +59,9 @@ files:
|
|
56
59
|
- Rakefile
|
57
60
|
- bin/console
|
58
61
|
- bin/prepare_coverage
|
62
|
+
- bin/run_ci
|
59
63
|
- bin/setup
|
60
|
-
- bin/
|
64
|
+
- bin/tapioca
|
61
65
|
- examples/person_1.rb
|
62
66
|
- examples/person_2.rb
|
63
67
|
- examples/rgb/color.rb
|
@@ -73,6 +77,36 @@ files:
|
|
73
77
|
- lib/micro/struct/normalize_names.rb
|
74
78
|
- lib/micro/struct/version.rb
|
75
79
|
- lib/u-struct.rb
|
80
|
+
- rbi/micro/struct.rbi
|
81
|
+
- rbi/micro/struct/factory.rbi
|
82
|
+
- rbi/micro/struct/factory/create_struct.rbi
|
83
|
+
- rbi/micro/struct/factory/members.rbi
|
84
|
+
- rbi/micro/struct/features.rbi
|
85
|
+
- rbi/micro/struct/normalize_names.rbi
|
86
|
+
- rbi/micro/struct/version.rbi
|
87
|
+
- sorbet/config
|
88
|
+
- sorbet/rbi/gems/ast@2.4.2.rbi
|
89
|
+
- sorbet/rbi/gems/coderay@1.1.3.rbi
|
90
|
+
- sorbet/rbi/gems/diff-lcs@1.5.0.rbi
|
91
|
+
- sorbet/rbi/gems/docile@1.4.0.rbi
|
92
|
+
- sorbet/rbi/gems/method_source@1.0.0.rbi
|
93
|
+
- sorbet/rbi/gems/minitest@5.15.0.rbi
|
94
|
+
- sorbet/rbi/gems/parser@3.1.0.0.rbi
|
95
|
+
- sorbet/rbi/gems/pry@0.14.1.rbi
|
96
|
+
- sorbet/rbi/gems/rake@13.0.6.rbi
|
97
|
+
- sorbet/rbi/gems/rbi@0.0.9.rbi
|
98
|
+
- sorbet/rbi/gems/simplecov-html@0.12.3.rbi
|
99
|
+
- sorbet/rbi/gems/simplecov@0.21.2.rbi
|
100
|
+
- sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi
|
101
|
+
- sorbet/rbi/gems/spoom@1.1.8.rbi
|
102
|
+
- sorbet/rbi/gems/tapioca@0.6.2.rbi
|
103
|
+
- sorbet/rbi/gems/thor@1.2.1.rbi
|
104
|
+
- sorbet/rbi/gems/unparser@0.6.3.rbi
|
105
|
+
- sorbet/rbi/gems/webrick@1.7.0.rbi
|
106
|
+
- sorbet/rbi/gems/yard-sorbet@0.6.1.rbi
|
107
|
+
- sorbet/rbi/gems/yard@0.9.27.rbi
|
108
|
+
- sorbet/tapioca/config.yml
|
109
|
+
- sorbet/tapioca/require.rb
|
76
110
|
- u-struct.gemspec
|
77
111
|
homepage: https://github.com/serradura/u-struct
|
78
112
|
licenses:
|
@@ -96,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
130
|
- !ruby/object:Gem::Version
|
97
131
|
version: '0'
|
98
132
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
133
|
+
rubygems_version: 3.3.4
|
100
134
|
signing_key:
|
101
135
|
specification_version: 4
|
102
136
|
summary: Create powered Ruby structs.
|