gemfather-stable 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +145 -0
- data/bin/gemfather +6 -0
- data/gem_template/%app_name%.gemspec.tt +32 -0
- data/gem_template/.gitignore.tt +26 -0
- data/gem_template/.rubocop-rspec.yml.tt +38 -0
- data/gem_template/.rubocop-ruby.yml.tt +54 -0
- data/gem_template/.rubocop.yml.tt +11 -0
- data/gem_template/Gemfile.tt +17 -0
- data/gem_template/Makefile.tt +21 -0
- data/gem_template/README.md.tt +180 -0
- data/gem_template/Rakefile.tt +6 -0
- data/gem_template/bin/console.tt +21 -0
- data/gem_template/bin/generate.tt +6 -0
- data/gem_template/bin/rubocop.tt +29 -0
- data/gem_template/lib/%app_name%.rb.tt +25 -0
- data/gem_template/lib/%app_short_name%/client.rb.tt +18 -0
- data/gem_template/lib/%app_short_name%/http_errors.rb.tt +20 -0
- data/gem_template/lib/%app_short_name%/railtie.rb.tt +5 -0
- data/gem_template/lib/%app_short_name%/version.rb.tt +5 -0
- data/gem_template/log/.keep.tt +0 -0
- data/gem_template/spec/spec_helper.rb.tt +35 -0
- data/lib/api_generator/client/config.rb +57 -0
- data/lib/api_generator/client/connection.rb +149 -0
- data/lib/api_generator/commands/generate.rb +56 -0
- data/lib/api_generator/helpers/utils.rb +56 -0
- data/lib/api_generator/middleware/error_code_middleware.rb +43 -0
- data/lib/api_generator/middleware/error_handler_middleware.rb +26 -0
- data/lib/api_generator/middleware/handle_unsuccessful_request_middleware.rb +36 -0
- data/lib/api_generator/middleware/http_errors.rb +21 -0
- data/lib/api_generator/middleware/raise_error_base.rb +11 -0
- data/lib/api_generator/middleware/raise_error_dsl.rb +36 -0
- data/lib/api_generator/middleware.rb +4 -0
- data/lib/api_generator/models/base.rb +15 -0
- data/lib/api_generator/models/data.rb +16 -0
- data/lib/api_generator/pagination/dsl.rb +32 -0
- data/lib/api_generator/pagination/limit_offset_relation.rb +24 -0
- data/lib/api_generator/pagination/page_relation.rb +21 -0
- data/lib/api_generator/pagination/relation.rb +114 -0
- data/lib/api_generator/pagination.rb +2 -0
- data/lib/api_generator/railtie.rb +24 -0
- data/lib/api_generator/services/base_create.rb +56 -0
- data/lib/api_generator/services/create_api.rb +87 -0
- data/lib/api_generator/services/create_model.rb +69 -0
- data/lib/api_generator/services/create_scaffold.rb +53 -0
- data/lib/api_generator/services/gemfather.rb +81 -0
- data/lib/api_generator/version.rb +3 -0
- data/lib/api_generator.rb +18 -0
- data/templates/api/action.erb +10 -0
- data/templates/api/action_paginate.erb +10 -0
- data/templates/api/api_module.erb +11 -0
- data/templates/api/include_helpers.erb +9 -0
- data/templates/api/include_namespace.erb +1 -0
- data/templates/api/path.erb +1 -0
- data/templates/models/request.erb +11 -0
- data/templates/models/response.erb +11 -0
- data/templates/specs/api_spec.erb +15 -0
- data/templates/specs/request_spec.erb +12 -0
- data/templates/specs/response_spec.erb +12 -0
- metadata +229 -0
metadata
ADDED
@@ -0,0 +1,229 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gemfather-stable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Domclick Ruby Team and Daniil Kachur
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-09-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '6.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '6.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: dry-configurable
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.11'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.17'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2'
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0.17'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '2'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: faraday_middleware
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0.13'
|
68
|
+
- - "<"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '2'
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.13'
|
78
|
+
- - "<"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '2'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: hashie
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '3.0'
|
88
|
+
- - "<"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '5'
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '3.0'
|
98
|
+
- - "<"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '5'
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: thor
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0.14'
|
108
|
+
- - "<"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.0'
|
111
|
+
type: :runtime
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.14'
|
118
|
+
- - "<"
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '2.0'
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: zeitwerk
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '2.2'
|
128
|
+
type: :runtime
|
129
|
+
prerelease: false
|
130
|
+
version_requirements: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - "~>"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '2.2'
|
135
|
+
description: Library that helps to generate high-quality API clients
|
136
|
+
email:
|
137
|
+
executables:
|
138
|
+
- gemfather
|
139
|
+
extensions: []
|
140
|
+
extra_rdoc_files: []
|
141
|
+
files:
|
142
|
+
- README.md
|
143
|
+
- bin/gemfather
|
144
|
+
- gem_template/%app_name%.gemspec.tt
|
145
|
+
- gem_template/.gitignore.tt
|
146
|
+
- gem_template/.rubocop-rspec.yml.tt
|
147
|
+
- gem_template/.rubocop-ruby.yml.tt
|
148
|
+
- gem_template/.rubocop.yml.tt
|
149
|
+
- gem_template/Gemfile.tt
|
150
|
+
- gem_template/Makefile.tt
|
151
|
+
- gem_template/README.md.tt
|
152
|
+
- gem_template/Rakefile.tt
|
153
|
+
- gem_template/bin/console.tt
|
154
|
+
- gem_template/bin/generate.tt
|
155
|
+
- gem_template/bin/rubocop.tt
|
156
|
+
- gem_template/lib/%app_name%.rb.tt
|
157
|
+
- gem_template/lib/%app_short_name%/client.rb.tt
|
158
|
+
- gem_template/lib/%app_short_name%/http_errors.rb.tt
|
159
|
+
- gem_template/lib/%app_short_name%/railtie.rb.tt
|
160
|
+
- gem_template/lib/%app_short_name%/version.rb.tt
|
161
|
+
- gem_template/log/.keep.tt
|
162
|
+
- gem_template/spec/spec_helper.rb.tt
|
163
|
+
- lib/api_generator.rb
|
164
|
+
- lib/api_generator/client/config.rb
|
165
|
+
- lib/api_generator/client/connection.rb
|
166
|
+
- lib/api_generator/commands/generate.rb
|
167
|
+
- lib/api_generator/helpers/utils.rb
|
168
|
+
- lib/api_generator/middleware.rb
|
169
|
+
- lib/api_generator/middleware/error_code_middleware.rb
|
170
|
+
- lib/api_generator/middleware/error_handler_middleware.rb
|
171
|
+
- lib/api_generator/middleware/handle_unsuccessful_request_middleware.rb
|
172
|
+
- lib/api_generator/middleware/http_errors.rb
|
173
|
+
- lib/api_generator/middleware/raise_error_base.rb
|
174
|
+
- lib/api_generator/middleware/raise_error_dsl.rb
|
175
|
+
- lib/api_generator/models/base.rb
|
176
|
+
- lib/api_generator/models/data.rb
|
177
|
+
- lib/api_generator/pagination.rb
|
178
|
+
- lib/api_generator/pagination/dsl.rb
|
179
|
+
- lib/api_generator/pagination/limit_offset_relation.rb
|
180
|
+
- lib/api_generator/pagination/page_relation.rb
|
181
|
+
- lib/api_generator/pagination/relation.rb
|
182
|
+
- lib/api_generator/railtie.rb
|
183
|
+
- lib/api_generator/services/base_create.rb
|
184
|
+
- lib/api_generator/services/create_api.rb
|
185
|
+
- lib/api_generator/services/create_model.rb
|
186
|
+
- lib/api_generator/services/create_scaffold.rb
|
187
|
+
- lib/api_generator/services/gemfather.rb
|
188
|
+
- lib/api_generator/version.rb
|
189
|
+
- templates/api/action.erb
|
190
|
+
- templates/api/action_paginate.erb
|
191
|
+
- templates/api/api_module.erb
|
192
|
+
- templates/api/include_helpers.erb
|
193
|
+
- templates/api/include_namespace.erb
|
194
|
+
- templates/api/path.erb
|
195
|
+
- templates/models/request.erb
|
196
|
+
- templates/models/response.erb
|
197
|
+
- templates/specs/api_spec.erb
|
198
|
+
- templates/specs/request_spec.erb
|
199
|
+
- templates/specs/response_spec.erb
|
200
|
+
homepage: https://github.com/DDKatch/gemfather/tree/stable
|
201
|
+
licenses:
|
202
|
+
- MIT
|
203
|
+
metadata:
|
204
|
+
bug_tracker_uri: https://github.com/DDKatch/gemfather/tree/stable/issues
|
205
|
+
changelog_uri: https://github.com/DDKatch/gemfather/tree/stable/blob/main/CHANGELOG.md
|
206
|
+
documentation_uri: https://github.com/DDKatch/gemfather/tree/stable/blob/main/README.md
|
207
|
+
homepage_uri: https://github.com/DDKatch/gemfather/tree/stable
|
208
|
+
source_code_uri: https://github.com/DDKatch/gemfather/tree/stable
|
209
|
+
rubygems_mfa_required: 'true'
|
210
|
+
post_install_message:
|
211
|
+
rdoc_options: []
|
212
|
+
require_paths:
|
213
|
+
- lib
|
214
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
215
|
+
requirements:
|
216
|
+
- - ">="
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '2.7'
|
219
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
requirements: []
|
225
|
+
rubygems_version: 3.4.10
|
226
|
+
signing_key:
|
227
|
+
specification_version: 4
|
228
|
+
summary: 'Gemfather: API client generator'
|
229
|
+
test_files: []
|