trailblazer-endpoint 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES.md +3 -0
  3. data/Gemfile +16 -0
  4. data/README.md +11 -0
  5. data/Rakefile +10 -0
  6. data/lib/trailblazer-endpoint.rb +1 -0
  7. data/lib/trailblazer/endpoint.rb +133 -0
  8. data/lib/trailblazer/endpoint/adapter.rb +197 -0
  9. data/lib/trailblazer/endpoint/builder.rb +56 -0
  10. data/lib/trailblazer/endpoint/protocol.rb +122 -0
  11. data/lib/trailblazer/endpoint/rails.rb +27 -0
  12. data/lib/trailblazer/endpoint/version.rb +5 -0
  13. data/test/adapter/api_test.rb +78 -0
  14. data/test/adapter/representable_test.rb +7 -0
  15. data/test/adapter/web_test.rb +40 -0
  16. data/test/benchmark/skill_resolver_benchmark.rb +43 -0
  17. data/test/docs/controller_test.rb +92 -0
  18. data/test/docs/endpoint_test.rb +54 -0
  19. data/test/endpoint_test.rb +908 -0
  20. data/test/rails-app/.gitignore +21 -0
  21. data/test/rails-app/Gemfile +17 -0
  22. data/test/rails-app/Gemfile.lock +157 -0
  23. data/test/rails-app/README.md +24 -0
  24. data/test/rails-app/Rakefile +6 -0
  25. data/test/rails-app/app/controllers/application_controller.rb +3 -0
  26. data/test/rails-app/app/controllers/songs_controller.rb +26 -0
  27. data/test/rails-app/app/models/application_record.rb +3 -0
  28. data/test/rails-app/app/models/concerns/.keep +0 -0
  29. data/test/rails-app/config.ru +5 -0
  30. data/test/rails-app/config/application.rb +15 -0
  31. data/test/rails-app/config/boot.rb +3 -0
  32. data/test/rails-app/config/database.yml +25 -0
  33. data/test/rails-app/config/environment.rb +5 -0
  34. data/test/rails-app/config/environments/development.rb +54 -0
  35. data/test/rails-app/config/environments/production.rb +86 -0
  36. data/test/rails-app/config/environments/test.rb +42 -0
  37. data/test/rails-app/config/initializers/application_controller_renderer.rb +6 -0
  38. data/test/rails-app/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/rails-app/config/initializers/cookies_serializer.rb +5 -0
  40. data/test/rails-app/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/test/rails-app/config/initializers/inflections.rb +16 -0
  42. data/test/rails-app/config/initializers/mime_types.rb +4 -0
  43. data/test/rails-app/config/initializers/new_framework_defaults.rb +24 -0
  44. data/test/rails-app/config/initializers/session_store.rb +3 -0
  45. data/test/rails-app/config/initializers/wrap_parameters.rb +14 -0
  46. data/test/rails-app/config/locales/en.yml +23 -0
  47. data/test/rails-app/config/routes.rb +6 -0
  48. data/test/rails-app/config/secrets.yml +22 -0
  49. data/test/rails-app/db/seeds.rb +7 -0
  50. data/test/rails-app/log/.keep +0 -0
  51. data/test/rails-app/test/controllers/.keep +0 -0
  52. data/test/rails-app/test/controllers/songs_controller_test.rb +156 -0
  53. data/test/rails-app/test/fixtures/.keep +0 -0
  54. data/test/rails-app/test/fixtures/files/.keep +0 -0
  55. data/test/rails-app/test/helpers/.keep +0 -0
  56. data/test/rails-app/test/integration/.keep +0 -0
  57. data/test/rails-app/test/mailers/.keep +0 -0
  58. data/test/rails-app/test/models/.keep +0 -0
  59. data/test/rails-app/test/test_helper.rb +10 -0
  60. data/test/rails-app/tmp/.keep +0 -0
  61. data/test/rails-app/vendor/assets/javascripts/.keep +0 -0
  62. data/test/rails-app/vendor/assets/stylesheets/.keep +0 -0
  63. data/test/test_helper.rb +34 -0
  64. data/trailblazer-endpoint.gemspec +26 -0
  65. metadata +236 -0
metadata ADDED
@@ -0,0 +1,236 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trailblazer-endpoint
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nick Sutterer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: trailblazer-activity-dsl-linear
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.9
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 0.4.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.2.9
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 0.4.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: minitest
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: trailblazer-developer
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ description: Endpoints handle authentication, policies, run your domain operation
90
+ and set up the rendering.
91
+ email:
92
+ - apotonick@gmail.com
93
+ executables: []
94
+ extensions: []
95
+ extra_rdoc_files: []
96
+ files:
97
+ - CHANGES.md
98
+ - Gemfile
99
+ - README.md
100
+ - Rakefile
101
+ - lib/trailblazer-endpoint.rb
102
+ - lib/trailblazer/endpoint.rb
103
+ - lib/trailblazer/endpoint/adapter.rb
104
+ - lib/trailblazer/endpoint/builder.rb
105
+ - lib/trailblazer/endpoint/protocol.rb
106
+ - lib/trailblazer/endpoint/rails.rb
107
+ - lib/trailblazer/endpoint/version.rb
108
+ - test/adapter/api_test.rb
109
+ - test/adapter/representable_test.rb
110
+ - test/adapter/web_test.rb
111
+ - test/benchmark/skill_resolver_benchmark.rb
112
+ - test/docs/controller_test.rb
113
+ - test/docs/endpoint_test.rb
114
+ - test/endpoint_test.rb
115
+ - test/rails-app/.gitignore
116
+ - test/rails-app/Gemfile
117
+ - test/rails-app/Gemfile.lock
118
+ - test/rails-app/README.md
119
+ - test/rails-app/Rakefile
120
+ - test/rails-app/app/controllers/application_controller.rb
121
+ - test/rails-app/app/controllers/songs_controller.rb
122
+ - test/rails-app/app/models/application_record.rb
123
+ - test/rails-app/app/models/concerns/.keep
124
+ - test/rails-app/config.ru
125
+ - test/rails-app/config/application.rb
126
+ - test/rails-app/config/boot.rb
127
+ - test/rails-app/config/database.yml
128
+ - test/rails-app/config/environment.rb
129
+ - test/rails-app/config/environments/development.rb
130
+ - test/rails-app/config/environments/production.rb
131
+ - test/rails-app/config/environments/test.rb
132
+ - test/rails-app/config/initializers/application_controller_renderer.rb
133
+ - test/rails-app/config/initializers/backtrace_silencers.rb
134
+ - test/rails-app/config/initializers/cookies_serializer.rb
135
+ - test/rails-app/config/initializers/filter_parameter_logging.rb
136
+ - test/rails-app/config/initializers/inflections.rb
137
+ - test/rails-app/config/initializers/mime_types.rb
138
+ - test/rails-app/config/initializers/new_framework_defaults.rb
139
+ - test/rails-app/config/initializers/session_store.rb
140
+ - test/rails-app/config/initializers/wrap_parameters.rb
141
+ - test/rails-app/config/locales/en.yml
142
+ - test/rails-app/config/routes.rb
143
+ - test/rails-app/config/secrets.yml
144
+ - test/rails-app/db/seeds.rb
145
+ - test/rails-app/log/.keep
146
+ - test/rails-app/test/controllers/.keep
147
+ - test/rails-app/test/controllers/songs_controller_test.rb
148
+ - test/rails-app/test/fixtures/.keep
149
+ - test/rails-app/test/fixtures/files/.keep
150
+ - test/rails-app/test/helpers/.keep
151
+ - test/rails-app/test/integration/.keep
152
+ - test/rails-app/test/mailers/.keep
153
+ - test/rails-app/test/models/.keep
154
+ - test/rails-app/test/test_helper.rb
155
+ - test/rails-app/tmp/.keep
156
+ - test/rails-app/vendor/assets/javascripts/.keep
157
+ - test/rails-app/vendor/assets/stylesheets/.keep
158
+ - test/test_helper.rb
159
+ - trailblazer-endpoint.gemspec
160
+ homepage: http://trailblazer.to/gems/operation/endpoint.html
161
+ licenses:
162
+ - LGPL-3.0
163
+ metadata: {}
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ requirements: []
179
+ rubyforge_project:
180
+ rubygems_version: 2.7.3
181
+ signing_key:
182
+ specification_version: 4
183
+ summary: Endpoints handle authentication, policies, run your domain operation and
184
+ set up the rendering.
185
+ test_files:
186
+ - test/adapter/api_test.rb
187
+ - test/adapter/representable_test.rb
188
+ - test/adapter/web_test.rb
189
+ - test/benchmark/skill_resolver_benchmark.rb
190
+ - test/docs/controller_test.rb
191
+ - test/docs/endpoint_test.rb
192
+ - test/endpoint_test.rb
193
+ - test/rails-app/.gitignore
194
+ - test/rails-app/Gemfile
195
+ - test/rails-app/Gemfile.lock
196
+ - test/rails-app/README.md
197
+ - test/rails-app/Rakefile
198
+ - test/rails-app/app/controllers/application_controller.rb
199
+ - test/rails-app/app/controllers/songs_controller.rb
200
+ - test/rails-app/app/models/application_record.rb
201
+ - test/rails-app/app/models/concerns/.keep
202
+ - test/rails-app/config.ru
203
+ - test/rails-app/config/application.rb
204
+ - test/rails-app/config/boot.rb
205
+ - test/rails-app/config/database.yml
206
+ - test/rails-app/config/environment.rb
207
+ - test/rails-app/config/environments/development.rb
208
+ - test/rails-app/config/environments/production.rb
209
+ - test/rails-app/config/environments/test.rb
210
+ - test/rails-app/config/initializers/application_controller_renderer.rb
211
+ - test/rails-app/config/initializers/backtrace_silencers.rb
212
+ - test/rails-app/config/initializers/cookies_serializer.rb
213
+ - test/rails-app/config/initializers/filter_parameter_logging.rb
214
+ - test/rails-app/config/initializers/inflections.rb
215
+ - test/rails-app/config/initializers/mime_types.rb
216
+ - test/rails-app/config/initializers/new_framework_defaults.rb
217
+ - test/rails-app/config/initializers/session_store.rb
218
+ - test/rails-app/config/initializers/wrap_parameters.rb
219
+ - test/rails-app/config/locales/en.yml
220
+ - test/rails-app/config/routes.rb
221
+ - test/rails-app/config/secrets.yml
222
+ - test/rails-app/db/seeds.rb
223
+ - test/rails-app/log/.keep
224
+ - test/rails-app/test/controllers/.keep
225
+ - test/rails-app/test/controllers/songs_controller_test.rb
226
+ - test/rails-app/test/fixtures/.keep
227
+ - test/rails-app/test/fixtures/files/.keep
228
+ - test/rails-app/test/helpers/.keep
229
+ - test/rails-app/test/integration/.keep
230
+ - test/rails-app/test/mailers/.keep
231
+ - test/rails-app/test/models/.keep
232
+ - test/rails-app/test/test_helper.rb
233
+ - test/rails-app/tmp/.keep
234
+ - test/rails-app/vendor/assets/javascripts/.keep
235
+ - test/rails-app/vendor/assets/stylesheets/.keep
236
+ - test/test_helper.rb