smithy 2.0.0.pre0 → 2.0.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/smithy-ruby +1 -4
- data/lib/smithy/command.rb +68 -0
- data/lib/smithy/generators/base.rb +19 -0
- data/lib/smithy/generators/client.rb +106 -0
- data/lib/smithy/generators/schema.rb +61 -0
- data/lib/smithy/generators.rb +29 -0
- data/lib/smithy/model/flattener.rb +114 -0
- data/lib/smithy/model/operation_parser.rb +42 -0
- data/lib/smithy/model/rbs.rb +57 -0
- data/lib/smithy/model/service_index.rb +51 -0
- data/lib/smithy/model/service_parser.rb +74 -0
- data/lib/smithy/model/shape.rb +49 -0
- data/lib/smithy/model/structure_parser.rb +43 -0
- data/lib/smithy/model/yard.rb +100 -0
- data/lib/smithy/model.rb +54 -0
- data/lib/smithy/plan.rb +79 -3
- data/lib/smithy/templates/client/auth_parameters.erb +29 -0
- data/lib/smithy/templates/client/auth_parameters_rbs.erb +14 -0
- data/lib/smithy/templates/client/auth_plugin.erb +115 -0
- data/lib/smithy/templates/client/auth_resolver.erb +16 -0
- data/lib/smithy/templates/client/auth_resolver_rbs.erb +5 -0
- data/lib/smithy/templates/client/client.erb +142 -0
- data/lib/smithy/templates/client/client_rbs.erb +29 -0
- data/lib/smithy/templates/client/customizations.erb +3 -0
- data/lib/smithy/templates/client/endpoint_parameters.erb +65 -0
- data/lib/smithy/templates/client/endpoint_parameters_rbs.erb +13 -0
- data/lib/smithy/templates/client/endpoint_plugin.erb +58 -0
- data/lib/smithy/templates/client/endpoint_provider.erb +15 -0
- data/lib/smithy/templates/client/endpoint_provider_rbs.erb +5 -0
- data/lib/smithy/templates/client/endpoint_provider_spec.erb +70 -0
- data/lib/smithy/templates/client/errors.erb +69 -0
- data/lib/smithy/templates/client/errors_rbs.erb +17 -0
- data/lib/smithy/templates/client/gemspec.erb +17 -0
- data/lib/smithy/templates/client/module.erb +22 -0
- data/lib/smithy/templates/client/module_rbs.erb +7 -0
- data/lib/smithy/templates/client/paginators.erb +33 -0
- data/lib/smithy/templates/client/protocol_spec.erb +144 -0
- data/lib/smithy/templates/client/rubocop_yml.erb +33 -0
- data/lib/smithy/templates/client/schema.erb +76 -0
- data/lib/smithy/templates/client/schema_rbs.erb +13 -0
- data/lib/smithy/templates/client/spec_helper.erb +10 -0
- data/lib/smithy/templates/client/types.erb +64 -0
- data/lib/smithy/templates/client/types_rbs.erb +47 -0
- data/lib/smithy/templates/client/waiters.erb +42 -0
- data/lib/smithy/util/hash_formatter.rb +124 -0
- data/lib/smithy/util/underscore.rb +18 -0
- data/lib/smithy/util.rb +9 -0
- data/lib/smithy/views/client/auth_parameter.rb +29 -0
- data/lib/smithy/views/client/auth_parameters.rb +23 -0
- data/lib/smithy/views/client/auth_parameters_rbs.rb +23 -0
- data/lib/smithy/views/client/auth_plugin.rb +35 -0
- data/lib/smithy/views/client/auth_resolver.rb +125 -0
- data/lib/smithy/views/client/auth_resolver_rbs.rb +19 -0
- data/lib/smithy/views/client/client.rb +208 -0
- data/lib/smithy/views/client/client_rbs.rb +231 -0
- data/lib/smithy/views/client/customizations.rb +10 -0
- data/lib/smithy/views/client/endpoint_parameter.rb +156 -0
- data/lib/smithy/views/client/endpoint_parameters.rb +43 -0
- data/lib/smithy/views/client/endpoint_parameters_rbs.rb +28 -0
- data/lib/smithy/views/client/endpoint_plugin.rb +27 -0
- data/lib/smithy/views/client/endpoint_provider.rb +241 -0
- data/lib/smithy/views/client/endpoint_provider_rbs.rb +19 -0
- data/lib/smithy/views/client/endpoint_provider_spec.rb +137 -0
- data/lib/smithy/views/client/errors.rb +88 -0
- data/lib/smithy/views/client/errors_rbs.rb +12 -0
- data/lib/smithy/views/client/gemspec.rb +36 -0
- data/lib/smithy/views/client/module.rb +107 -0
- data/lib/smithy/views/client/module_rbs.rb +20 -0
- data/lib/smithy/views/client/operation_examples.rb +157 -0
- data/lib/smithy/views/client/paginators.rb +108 -0
- data/lib/smithy/views/client/plugin.rb +29 -0
- data/lib/smithy/views/client/plugin_list.rb +57 -0
- data/lib/smithy/views/client/protocol_spec.rb +254 -0
- data/lib/smithy/views/client/request_response_example.rb +179 -0
- data/lib/smithy/views/client/rubocop_yml.rb +19 -0
- data/lib/smithy/views/client/schema.rb +356 -0
- data/lib/smithy/views/client/schema_rbs.rb +84 -0
- data/lib/smithy/views/client/shape_to_hash.rb +99 -0
- data/lib/smithy/views/client/spec_helper.rb +19 -0
- data/lib/smithy/views/client/types.rb +293 -0
- data/lib/smithy/views/client/types_rbs.rb +67 -0
- data/lib/smithy/views/client/waiters.rb +82 -0
- data/lib/smithy/views/client.rb +47 -0
- data/lib/smithy/views/view.rb +30 -0
- data/lib/smithy/views.rb +9 -0
- data/lib/smithy/weld.rb +109 -0
- data/lib/smithy/welds/auth/anonymous_auth.rb +31 -0
- data/lib/smithy/welds/auth/http_api_key_auth.rb +34 -0
- data/lib/smithy/welds/auth/http_basic_auth.rb +34 -0
- data/lib/smithy/welds/auth/http_bearer_auth.rb +34 -0
- data/lib/smithy/welds/auth/http_digest_auth.rb +34 -0
- data/lib/smithy/welds/plugins.rb +54 -0
- data/lib/smithy/welds/rpc_v2_cbor.rb +20 -0
- data/lib/smithy/welds/rubocop.rb +33 -0
- data/lib/smithy/welds/transforms/default_endpoint_rules.json +35 -0
- data/lib/smithy/welds/transforms/default_endpoint_tests.json +24 -0
- data/lib/smithy/welds/transforms/endpoints.rb +68 -0
- data/lib/smithy/welds/transforms/synthetic_input_output.rb +60 -0
- data/lib/smithy/welds.rb +29 -0
- data/lib/smithy.rb +33 -2
- metadata +144 -9
metadata
CHANGED
@@ -1,18 +1,58 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smithy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
10
|
+
date: 2025-06-26 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: railties
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '8.0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '8.0'
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rubocop
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: smithy-client
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - '='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.0.0.pre1
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - '='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.0.0.pre1
|
13
54
|
description: Smithy is a code generation toolkit for creating Client and Server SDKs
|
14
55
|
from Smithy models.
|
15
|
-
email:
|
16
56
|
executables:
|
17
57
|
- smithy-ruby
|
18
58
|
extensions: []
|
@@ -22,12 +62,108 @@ files:
|
|
22
62
|
- VERSION
|
23
63
|
- bin/smithy-ruby
|
24
64
|
- lib/smithy.rb
|
65
|
+
- lib/smithy/command.rb
|
66
|
+
- lib/smithy/generators.rb
|
67
|
+
- lib/smithy/generators/base.rb
|
68
|
+
- lib/smithy/generators/client.rb
|
69
|
+
- lib/smithy/generators/schema.rb
|
70
|
+
- lib/smithy/model.rb
|
71
|
+
- lib/smithy/model/flattener.rb
|
72
|
+
- lib/smithy/model/operation_parser.rb
|
73
|
+
- lib/smithy/model/rbs.rb
|
74
|
+
- lib/smithy/model/service_index.rb
|
75
|
+
- lib/smithy/model/service_parser.rb
|
76
|
+
- lib/smithy/model/shape.rb
|
77
|
+
- lib/smithy/model/structure_parser.rb
|
78
|
+
- lib/smithy/model/yard.rb
|
25
79
|
- lib/smithy/plan.rb
|
80
|
+
- lib/smithy/templates/client/auth_parameters.erb
|
81
|
+
- lib/smithy/templates/client/auth_parameters_rbs.erb
|
82
|
+
- lib/smithy/templates/client/auth_plugin.erb
|
83
|
+
- lib/smithy/templates/client/auth_resolver.erb
|
84
|
+
- lib/smithy/templates/client/auth_resolver_rbs.erb
|
85
|
+
- lib/smithy/templates/client/client.erb
|
86
|
+
- lib/smithy/templates/client/client_rbs.erb
|
87
|
+
- lib/smithy/templates/client/customizations.erb
|
88
|
+
- lib/smithy/templates/client/endpoint_parameters.erb
|
89
|
+
- lib/smithy/templates/client/endpoint_parameters_rbs.erb
|
90
|
+
- lib/smithy/templates/client/endpoint_plugin.erb
|
91
|
+
- lib/smithy/templates/client/endpoint_provider.erb
|
92
|
+
- lib/smithy/templates/client/endpoint_provider_rbs.erb
|
93
|
+
- lib/smithy/templates/client/endpoint_provider_spec.erb
|
94
|
+
- lib/smithy/templates/client/errors.erb
|
95
|
+
- lib/smithy/templates/client/errors_rbs.erb
|
96
|
+
- lib/smithy/templates/client/gemspec.erb
|
97
|
+
- lib/smithy/templates/client/module.erb
|
98
|
+
- lib/smithy/templates/client/module_rbs.erb
|
99
|
+
- lib/smithy/templates/client/paginators.erb
|
100
|
+
- lib/smithy/templates/client/protocol_spec.erb
|
101
|
+
- lib/smithy/templates/client/rubocop_yml.erb
|
102
|
+
- lib/smithy/templates/client/schema.erb
|
103
|
+
- lib/smithy/templates/client/schema_rbs.erb
|
104
|
+
- lib/smithy/templates/client/spec_helper.erb
|
105
|
+
- lib/smithy/templates/client/types.erb
|
106
|
+
- lib/smithy/templates/client/types_rbs.erb
|
107
|
+
- lib/smithy/templates/client/waiters.erb
|
108
|
+
- lib/smithy/util.rb
|
109
|
+
- lib/smithy/util/hash_formatter.rb
|
110
|
+
- lib/smithy/util/underscore.rb
|
111
|
+
- lib/smithy/views.rb
|
112
|
+
- lib/smithy/views/client.rb
|
113
|
+
- lib/smithy/views/client/auth_parameter.rb
|
114
|
+
- lib/smithy/views/client/auth_parameters.rb
|
115
|
+
- lib/smithy/views/client/auth_parameters_rbs.rb
|
116
|
+
- lib/smithy/views/client/auth_plugin.rb
|
117
|
+
- lib/smithy/views/client/auth_resolver.rb
|
118
|
+
- lib/smithy/views/client/auth_resolver_rbs.rb
|
119
|
+
- lib/smithy/views/client/client.rb
|
120
|
+
- lib/smithy/views/client/client_rbs.rb
|
121
|
+
- lib/smithy/views/client/customizations.rb
|
122
|
+
- lib/smithy/views/client/endpoint_parameter.rb
|
123
|
+
- lib/smithy/views/client/endpoint_parameters.rb
|
124
|
+
- lib/smithy/views/client/endpoint_parameters_rbs.rb
|
125
|
+
- lib/smithy/views/client/endpoint_plugin.rb
|
126
|
+
- lib/smithy/views/client/endpoint_provider.rb
|
127
|
+
- lib/smithy/views/client/endpoint_provider_rbs.rb
|
128
|
+
- lib/smithy/views/client/endpoint_provider_spec.rb
|
129
|
+
- lib/smithy/views/client/errors.rb
|
130
|
+
- lib/smithy/views/client/errors_rbs.rb
|
131
|
+
- lib/smithy/views/client/gemspec.rb
|
132
|
+
- lib/smithy/views/client/module.rb
|
133
|
+
- lib/smithy/views/client/module_rbs.rb
|
134
|
+
- lib/smithy/views/client/operation_examples.rb
|
135
|
+
- lib/smithy/views/client/paginators.rb
|
136
|
+
- lib/smithy/views/client/plugin.rb
|
137
|
+
- lib/smithy/views/client/plugin_list.rb
|
138
|
+
- lib/smithy/views/client/protocol_spec.rb
|
139
|
+
- lib/smithy/views/client/request_response_example.rb
|
140
|
+
- lib/smithy/views/client/rubocop_yml.rb
|
141
|
+
- lib/smithy/views/client/schema.rb
|
142
|
+
- lib/smithy/views/client/schema_rbs.rb
|
143
|
+
- lib/smithy/views/client/shape_to_hash.rb
|
144
|
+
- lib/smithy/views/client/spec_helper.rb
|
145
|
+
- lib/smithy/views/client/types.rb
|
146
|
+
- lib/smithy/views/client/types_rbs.rb
|
147
|
+
- lib/smithy/views/client/waiters.rb
|
148
|
+
- lib/smithy/views/view.rb
|
149
|
+
- lib/smithy/weld.rb
|
150
|
+
- lib/smithy/welds.rb
|
151
|
+
- lib/smithy/welds/auth/anonymous_auth.rb
|
152
|
+
- lib/smithy/welds/auth/http_api_key_auth.rb
|
153
|
+
- lib/smithy/welds/auth/http_basic_auth.rb
|
154
|
+
- lib/smithy/welds/auth/http_bearer_auth.rb
|
155
|
+
- lib/smithy/welds/auth/http_digest_auth.rb
|
156
|
+
- lib/smithy/welds/plugins.rb
|
157
|
+
- lib/smithy/welds/rpc_v2_cbor.rb
|
158
|
+
- lib/smithy/welds/rubocop.rb
|
159
|
+
- lib/smithy/welds/transforms/default_endpoint_rules.json
|
160
|
+
- lib/smithy/welds/transforms/default_endpoint_tests.json
|
161
|
+
- lib/smithy/welds/transforms/endpoints.rb
|
162
|
+
- lib/smithy/welds/transforms/synthetic_input_output.rb
|
26
163
|
homepage: https://github.com/smithy-lang/smithy-ruby
|
27
164
|
licenses:
|
28
165
|
- Apache-2.0
|
29
166
|
metadata: {}
|
30
|
-
post_install_message:
|
31
167
|
rdoc_options: []
|
32
168
|
require_paths:
|
33
169
|
- lib
|
@@ -35,15 +171,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
171
|
requirements:
|
36
172
|
- - ">="
|
37
173
|
- !ruby/object:Gem::Version
|
38
|
-
version: '3.
|
174
|
+
version: '3.3'
|
39
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
176
|
requirements:
|
41
177
|
- - ">="
|
42
178
|
- !ruby/object:Gem::Version
|
43
179
|
version: '0'
|
44
180
|
requirements: []
|
45
|
-
rubygems_version: 3.
|
46
|
-
signing_key:
|
181
|
+
rubygems_version: 3.6.2
|
47
182
|
specification_version: 4
|
48
183
|
summary: An SDK code generator for Smithy API models
|
49
184
|
test_files: []
|