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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +5 -5
  3. data/.rubocop.yml +129 -0
  4. data/.rubocop_todo.yml +10 -0
  5. data/.tool-versions +1 -0
  6. data/CHANGELOG.md +558 -13
  7. data/Gemfile +14 -3
  8. data/README.md +682 -16
  9. data/Rakefile +5 -5
  10. data/bin/console +3 -3
  11. data/bin/prepare_coverage +7 -9
  12. data/bin/run_ci +17 -0
  13. data/bin/tapioca +28 -0
  14. data/examples/rgb/number.rb +1 -1
  15. data/examples/rgb_1.rb +7 -6
  16. data/examples/rgb_2.rb +2 -2
  17. data/examples/rgb_3.rb +1 -1
  18. data/lib/micro/struct/factory/create_struct.rb +95 -69
  19. data/lib/micro/struct/factory/members.rb +1 -0
  20. data/lib/micro/struct/factory.rb +13 -4
  21. data/lib/micro/struct/features.rb +35 -16
  22. data/lib/micro/struct/normalize_names.rb +4 -3
  23. data/lib/micro/struct/version.rb +2 -1
  24. data/lib/micro/struct.rb +37 -5
  25. data/lib/u-struct.rb +2 -0
  26. data/rbi/micro/struct/factory/create_struct.rbi +60 -0
  27. data/rbi/micro/struct/factory/members.rbi +67 -0
  28. data/rbi/micro/struct/factory.rbi +41 -0
  29. data/rbi/micro/struct/features.rbi +41 -0
  30. data/rbi/micro/struct/normalize_names.rbi +20 -0
  31. data/rbi/micro/struct/version.rbi +3 -0
  32. data/rbi/micro/struct.rbi +68 -0
  33. data/sorbet/config +8 -0
  34. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  35. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  36. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +11 -0
  37. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  38. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  39. data/sorbet/rbi/gems/minitest@5.15.0.rbi +345 -0
  40. data/sorbet/rbi/gems/parser@3.1.0.0.rbi +1196 -0
  41. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  42. data/sorbet/rbi/gems/rake@13.0.6.rbi +806 -0
  43. data/sorbet/rbi/gems/rbi@0.0.9.rbi +1602 -0
  44. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  45. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  46. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  47. data/sorbet/rbi/gems/spoom@1.1.8.rbi +1252 -0
  48. data/sorbet/rbi/gems/tapioca@0.6.2.rbi +1232 -0
  49. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  50. data/sorbet/rbi/gems/unparser@0.6.3.rbi +8 -0
  51. data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
  52. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +199 -0
  53. data/sorbet/rbi/gems/yard@0.9.27.rbi +4112 -0
  54. data/sorbet/tapioca/config.yml +13 -0
  55. data/sorbet/tapioca/require.rb +4 -0
  56. data/u-struct.gemspec +3 -3
  57. metadata +38 -4
  58. data/bin/test +0 -8
@@ -0,0 +1,13 @@
1
+ gem:
2
+ # Add your `gem` command parameters here:
3
+ #
4
+ # exclude:
5
+ # - gem_name
6
+ # doc: true
7
+ # workers: 5
8
+ dsl:
9
+ # Add your `dsl` command parameters here:
10
+ #
11
+ # exclude:
12
+ # - SomeGeneratorName
13
+ # workers: 5
@@ -0,0 +1,4 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ # Add your extra requires here (`bin/tapioca require` can be used to boostrap this list)
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 = %q{Create powered Ruby structs.}
12
- spec.description = %q{Create powered Ruby structs.}
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('..', __FILE__)) do
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: 0.11.0
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: 2021-12-19 00:00:00.000000000 Z
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/test
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.2.22
133
+ rubygems_version: 3.3.4
100
134
  signing_key:
101
135
  specification_version: 4
102
136
  summary: Create powered Ruby structs.
data/bin/test DELETED
@@ -1,8 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -e
4
-
5
- rm Gemfile.lock
6
-
7
- bundle update
8
- bundle exec rake test