swagger-blocks 2.0.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +5 -5
  2. data/.github/ISSUE_TEMPLATE.md +4 -0
  3. data/lib/swagger/blocks.rb +14 -0
  4. data/lib/swagger/blocks/class_methods.rb +16 -2
  5. data/lib/swagger/blocks/internal_helpers.rb +25 -0
  6. data/lib/swagger/blocks/node.rb +48 -10
  7. data/lib/swagger/blocks/nodes/all_of_node.rb +6 -5
  8. data/lib/swagger/blocks/nodes/callback_destination_node.rb +11 -0
  9. data/lib/swagger/blocks/nodes/callback_method_node.rb +16 -0
  10. data/lib/swagger/blocks/nodes/callback_node.rb +11 -0
  11. data/lib/swagger/blocks/nodes/component_node.rb +50 -0
  12. data/lib/swagger/blocks/nodes/content_node.rb +20 -0
  13. data/lib/swagger/blocks/nodes/example_node.rb +3 -1
  14. data/lib/swagger/blocks/nodes/flow_node.rb +11 -0
  15. data/lib/swagger/blocks/nodes/header_node.rb +4 -0
  16. data/lib/swagger/blocks/nodes/items_node.rb +1 -1
  17. data/lib/swagger/blocks/nodes/link_node.rb +11 -0
  18. data/lib/swagger/blocks/nodes/link_parameter_node.rb +8 -0
  19. data/lib/swagger/blocks/nodes/one_of_node.rb +11 -0
  20. data/lib/swagger/blocks/nodes/operation_node.rb +15 -0
  21. data/lib/swagger/blocks/nodes/parameter_node.rb +5 -0
  22. data/lib/swagger/blocks/nodes/path_node.rb +6 -0
  23. data/lib/swagger/blocks/nodes/property_node.rb +5 -0
  24. data/lib/swagger/blocks/nodes/request_body_node.rb +12 -0
  25. data/lib/swagger/blocks/nodes/response_node.rb +17 -4
  26. data/lib/swagger/blocks/nodes/root_node.rb +16 -2
  27. data/lib/swagger/blocks/nodes/schema_node.rb +9 -0
  28. data/lib/swagger/blocks/nodes/scopes_node.rb +0 -1
  29. data/lib/swagger/blocks/nodes/security_scheme_node.rb +5 -1
  30. data/lib/swagger/blocks/nodes/server_node.rb +12 -0
  31. data/lib/swagger/blocks/nodes/value_node.rb +8 -0
  32. data/lib/swagger/blocks/nodes/variable_node.rb +8 -0
  33. data/lib/swagger/blocks/nodes/vendor_extension_node.rb +9 -0
  34. data/lib/swagger/blocks/root.rb +8 -1
  35. data/lib/swagger/blocks/version.rb +1 -1
  36. data/spec/lib/swagger_v2_blocks_spec.rb +1 -1
  37. data/spec/lib/swagger_v3_api_declaration.json +592 -0
  38. data/spec/lib/swagger_v3_blocks_spec.rb +555 -0
  39. metadata +22 -4
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger-blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Fotinakis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-25 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -73,6 +73,7 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".github/ISSUE_TEMPLATE.md"
76
77
  - ".gitignore"
77
78
  - ".rspec"
78
79
  - ".travis.yml"
@@ -86,30 +87,46 @@ files:
86
87
  - lib/swagger/blocks/internal_helpers.rb
87
88
  - lib/swagger/blocks/node.rb
88
89
  - lib/swagger/blocks/nodes/all_of_node.rb
90
+ - lib/swagger/blocks/nodes/callback_destination_node.rb
91
+ - lib/swagger/blocks/nodes/callback_method_node.rb
92
+ - lib/swagger/blocks/nodes/callback_node.rb
93
+ - lib/swagger/blocks/nodes/component_node.rb
89
94
  - lib/swagger/blocks/nodes/contact_node.rb
95
+ - lib/swagger/blocks/nodes/content_node.rb
90
96
  - lib/swagger/blocks/nodes/example_node.rb
91
97
  - lib/swagger/blocks/nodes/external_docs_node.rb
98
+ - lib/swagger/blocks/nodes/flow_node.rb
92
99
  - lib/swagger/blocks/nodes/header_node.rb
93
100
  - lib/swagger/blocks/nodes/info_node.rb
94
101
  - lib/swagger/blocks/nodes/items_node.rb
95
102
  - lib/swagger/blocks/nodes/license_node.rb
103
+ - lib/swagger/blocks/nodes/link_node.rb
104
+ - lib/swagger/blocks/nodes/link_parameter_node.rb
105
+ - lib/swagger/blocks/nodes/one_of_node.rb
96
106
  - lib/swagger/blocks/nodes/operation_node.rb
97
107
  - lib/swagger/blocks/nodes/parameter_node.rb
98
108
  - lib/swagger/blocks/nodes/path_node.rb
99
109
  - lib/swagger/blocks/nodes/properties_node.rb
100
110
  - lib/swagger/blocks/nodes/property_node.rb
111
+ - lib/swagger/blocks/nodes/request_body_node.rb
101
112
  - lib/swagger/blocks/nodes/response_node.rb
102
113
  - lib/swagger/blocks/nodes/root_node.rb
103
114
  - lib/swagger/blocks/nodes/schema_node.rb
104
115
  - lib/swagger/blocks/nodes/scopes_node.rb
105
116
  - lib/swagger/blocks/nodes/security_requirement_node.rb
106
117
  - lib/swagger/blocks/nodes/security_scheme_node.rb
118
+ - lib/swagger/blocks/nodes/server_node.rb
107
119
  - lib/swagger/blocks/nodes/tag_node.rb
120
+ - lib/swagger/blocks/nodes/value_node.rb
121
+ - lib/swagger/blocks/nodes/variable_node.rb
122
+ - lib/swagger/blocks/nodes/vendor_extension_node.rb
108
123
  - lib/swagger/blocks/nodes/xml_node.rb
109
124
  - lib/swagger/blocks/root.rb
110
125
  - lib/swagger/blocks/version.rb
111
126
  - spec/lib/swagger_v2_api_declaration.json
112
127
  - spec/lib/swagger_v2_blocks_spec.rb
128
+ - spec/lib/swagger_v3_api_declaration.json
129
+ - spec/lib/swagger_v3_blocks_spec.rb
113
130
  - spec/spec_helper.rb
114
131
  - swagger-blocks.gemspec
115
132
  homepage: https://github.com/fotinakis/swagger-blocks
@@ -131,12 +148,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
148
  - !ruby/object:Gem::Version
132
149
  version: '0'
133
150
  requirements: []
134
- rubyforge_project:
135
- rubygems_version: 2.6.12
151
+ rubygems_version: 3.0.4
136
152
  signing_key:
137
153
  specification_version: 4
138
154
  summary: Define and serve live-updating Swagger JSON for Ruby apps.
139
155
  test_files:
140
156
  - spec/lib/swagger_v2_api_declaration.json
141
157
  - spec/lib/swagger_v2_blocks_spec.rb
158
+ - spec/lib/swagger_v3_api_declaration.json
159
+ - spec/lib/swagger_v3_blocks_spec.rb
142
160
  - spec/spec_helper.rb