fitting 2.16.1 → 2.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +34 -3
  3. data/CHANGELOG.md +20 -0
  4. data/README.md +28 -4
  5. data/fitting.gemspec +9 -9
  6. data/images/example.png +0 -0
  7. data/images/example2.png +0 -0
  8. data/images/logo.png +0 -0
  9. data/lib/fitting/configuration/yaml.rb +13 -13
  10. data/lib/fitting/configuration.rb +3 -39
  11. data/lib/fitting/cover/json_schema.rb +3 -2
  12. data/lib/fitting/cover/json_schema_enum.rb +1 -1
  13. data/lib/fitting/cover/json_schema_one_of.rb +1 -1
  14. data/lib/fitting/cover/response.rb +1 -5
  15. data/lib/fitting/documentation.rb +0 -2
  16. data/lib/fitting/matchers/response_matcher.rb +2 -9
  17. data/lib/fitting/records/documented/request.rb +1 -0
  18. data/lib/fitting/records/realized_unit.rb +13 -15
  19. data/lib/fitting/records/spherical/request.rb +1 -1
  20. data/lib/fitting/records/spherical/requests.rb +2 -1
  21. data/lib/fitting/records/spherical/response.rb +2 -2
  22. data/lib/fitting/records/test_unit/request.rb +4 -0
  23. data/lib/fitting/records/tested/request.rb +4 -4
  24. data/lib/fitting/records/unit/combination.rb +5 -6
  25. data/lib/fitting/records/unit/json_schema.rb +38 -33
  26. data/lib/fitting/records/unit/request.rb +1 -0
  27. data/lib/fitting/records/unit/response.rb +1 -0
  28. data/lib/fitting/report/action.rb +6 -9
  29. data/lib/fitting/report/actions.rb +7 -5
  30. data/lib/fitting/report/combination.rb +1 -15
  31. data/lib/fitting/report/combinations.rb +4 -5
  32. data/lib/fitting/report/console.rb +1 -0
  33. data/lib/fitting/report/prefix.rb +42 -51
  34. data/lib/fitting/report/prefixes.rb +3 -3
  35. data/lib/fitting/report/response.rb +17 -18
  36. data/lib/fitting/report/responses.rb +9 -8
  37. data/lib/fitting/report/test.rb +9 -11
  38. data/lib/fitting/report/tests.rb +10 -13
  39. data/lib/fitting/request.rb +0 -1
  40. data/lib/fitting/response.rb +4 -3
  41. data/lib/fitting/statistics/cover_error.rb +2 -0
  42. data/lib/fitting/statistics/cover_error_enum.rb +2 -0
  43. data/lib/fitting/statistics/cover_error_one_of.rb +2 -0
  44. data/lib/fitting/statistics/list.rb +5 -4
  45. data/lib/fitting/statistics/not_covered_responses.rb +1 -1
  46. data/lib/fitting/statistics/percent.rb +2 -1
  47. data/lib/fitting/statistics/template.rb +10 -8
  48. data/lib/fitting/storage/responses.rb +2 -2
  49. data/lib/fitting/storage/white_list.rb +7 -0
  50. data/lib/fitting/templates/realized_template.rb +2 -0
  51. data/lib/fitting/tests.rb +1 -1
  52. data/lib/fitting/version.rb +1 -1
  53. data/lib/fitting.rb +9 -6
  54. data/lib/tasks/fitting.rake +62 -54
  55. data/lib/templates/bomboniere/package-lock.json +82 -67
  56. data/lib/templates/bomboniere/src/components/HelloWorld.vue +3 -0
  57. metadata +27 -53
  58. data/example.png +0 -0
  59. data/example2.png +0 -0
  60. data/lib/fitting/configuration/legacy.rb +0 -60
@@ -53,6 +53,9 @@
53
53
  {{ responses_details.method }}
54
54
  </div>
55
55
  </div>
56
+ <div style="color: #b94283;" v-if="action_details.responses.tests_without_responses.length != 0">
57
+ &#9888;
58
+ </div>
56
59
  </router-link>
57
60
  </div>
58
61
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fitting
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.1
4
+ version: 2.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-10 00:00:00.000000000 Z
11
+ date: 2021-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -30,20 +30,6 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.6.2
33
- - !ruby/object:Gem::Dependency
34
- name: multi_json
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1.11'
40
- type: :runtime
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '1.11'
47
33
  - !ruby/object:Gem::Dependency
48
34
  name: tomograph
49
35
  requirement: !ruby/object:Gem::Requirement
@@ -84,96 +70,84 @@ dependencies:
84
70
  requirements:
85
71
  - - "~>"
86
72
  - !ruby/object:Gem::Version
87
- version: '8.2'
73
+ version: '11.1'
88
74
  - - ">="
89
75
  - !ruby/object:Gem::Version
90
- version: 8.2.1
76
+ version: 11.1.3
91
77
  type: :development
92
78
  prerelease: false
93
79
  version_requirements: !ruby/object:Gem::Requirement
94
80
  requirements:
95
81
  - - "~>"
96
82
  - !ruby/object:Gem::Version
97
- version: '8.2'
83
+ version: '11.1'
98
84
  - - ">="
99
85
  - !ruby/object:Gem::Version
100
- version: 8.2.1
86
+ version: 11.1.3
101
87
  - !ruby/object:Gem::Dependency
102
88
  name: rake
103
89
  requirement: !ruby/object:Gem::Requirement
104
90
  requirements:
91
+ - - "~>"
92
+ - !ruby/object:Gem::Version
93
+ version: '13.0'
105
94
  - - ">="
106
95
  - !ruby/object:Gem::Version
107
- version: 12.3.3
96
+ version: 13.0.6
108
97
  type: :development
109
98
  prerelease: false
110
99
  version_requirements: !ruby/object:Gem::Requirement
111
100
  requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '13.0'
112
104
  - - ">="
113
105
  - !ruby/object:Gem::Version
114
- version: 12.3.3
106
+ version: 13.0.6
115
107
  - !ruby/object:Gem::Dependency
116
108
  name: rspec
117
109
  requirement: !ruby/object:Gem::Requirement
118
110
  requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: 3.4.0
122
111
  - - "~>"
123
112
  - !ruby/object:Gem::Version
124
- version: '3.4'
113
+ version: '3.10'
125
114
  type: :development
126
115
  prerelease: false
127
116
  version_requirements: !ruby/object:Gem::Requirement
128
117
  requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: 3.4.0
132
118
  - - "~>"
133
119
  - !ruby/object:Gem::Version
134
- version: '3.4'
120
+ version: '3.10'
135
121
  - !ruby/object:Gem::Dependency
136
122
  name: rubocop
137
123
  requirement: !ruby/object:Gem::Requirement
138
124
  requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- version: 0.49.1
142
125
  - - "~>"
143
126
  - !ruby/object:Gem::Version
144
- version: 0.49.1
127
+ version: 1.22.0
145
128
  type: :development
146
129
  prerelease: false
147
130
  version_requirements: !ruby/object:Gem::Requirement
148
131
  requirements:
149
- - - ">="
150
- - !ruby/object:Gem::Version
151
- version: 0.49.1
152
132
  - - "~>"
153
133
  - !ruby/object:Gem::Version
154
- version: 0.49.1
134
+ version: 1.22.0
155
135
  - !ruby/object:Gem::Dependency
156
136
  name: simplecov
157
137
  requirement: !ruby/object:Gem::Requirement
158
138
  requirements:
159
139
  - - "~>"
160
140
  - !ruby/object:Gem::Version
161
- version: '0.11'
162
- - - ">="
163
- - !ruby/object:Gem::Version
164
- version: 0.11.2
141
+ version: '0.21'
165
142
  type: :development
166
143
  prerelease: false
167
144
  version_requirements: !ruby/object:Gem::Requirement
168
145
  requirements:
169
146
  - - "~>"
170
147
  - !ruby/object:Gem::Version
171
- version: '0.11'
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: 0.11.2
175
- description: Coverage API Blueprint, Swagger and OpenAPI with rspec tests for easily
176
- make high-quality API and documenatiton.
148
+ version: '0.21'
149
+ description: Coverage API Blueprint, Swagger and OpenAPI with RSpec for easily make
150
+ high-quality API and documenatiton
177
151
  email:
178
152
  - d.efimov@fun-box.ru
179
153
  executables: []
@@ -193,12 +167,12 @@ files:
193
167
  - Rakefile
194
168
  - bin/console
195
169
  - bin/setup
196
- - example.png
197
- - example2.png
198
170
  - fitting.gemspec
171
+ - images/example.png
172
+ - images/example2.png
173
+ - images/logo.png
199
174
  - lib/fitting.rb
200
175
  - lib/fitting/configuration.rb
201
- - lib/fitting/configuration/legacy.rb
202
176
  - lib/fitting/configuration/yaml.rb
203
177
  - lib/fitting/cover/json_schema.rb
204
178
  - lib/fitting/cover/json_schema_enum.rb
@@ -297,7 +271,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
271
  requirements:
298
272
  - - ">="
299
273
  - !ruby/object:Gem::Version
300
- version: '0'
274
+ version: 2.6.0
301
275
  required_rubygems_version: !ruby/object:Gem::Requirement
302
276
  requirements:
303
277
  - - ">="
@@ -307,5 +281,5 @@ requirements: []
307
281
  rubygems_version: 3.0.1
308
282
  signing_key:
309
283
  specification_version: 4
310
- summary: Coverage API Blueprint, Swagger and OpenAPI with rspec tests
284
+ summary: Coverage API Blueprint, Swagger and OpenAPI with RSpec
311
285
  test_files: []
data/example.png DELETED
Binary file
data/example2.png DELETED
Binary file
@@ -1,60 +0,0 @@
1
- require 'tomograph'
2
-
3
- module Fitting
4
- class Configuration
5
- class Legacy
6
- attr_accessor :apib_path,
7
- :drafter_yaml_path,
8
- :crafter_apib_path,
9
- :crafter_yaml_path,
10
- :drafter_4_apib_path,
11
- :drafter_4_yaml_path,
12
- :strict,
13
- :prefix,
14
- :white_list,
15
- :resource_white_list,
16
- :ignore_list,
17
- :include_resources,
18
- :include_actions
19
-
20
- def initialize
21
- @strict = false
22
- @prefix = ''
23
- @ignore_list = []
24
- end
25
-
26
- def tomogram
27
- @tomogram ||= if @crafter_apib_path || @crafter_yaml_path
28
- Tomograph::Tomogram.new(
29
- prefix: @prefix,
30
- crafter_apib_path: @crafter_apib_path,
31
- crafter_yaml_path: @crafter_yaml_path
32
- )
33
- elsif @drafter_4_apib_path || @drafter_4_yaml_path
34
- Tomograph::Tomogram.new(
35
- prefix: @prefix,
36
- drafter_4_apib_path: @drafter_4_apib_path,
37
- drafter_4_yaml_path: @drafter_4_yaml_path
38
- )
39
- else Tomograph::Tomogram.new(
40
- prefix: @prefix,
41
- apib_path: @apib_path,
42
- drafter_yaml_path: @drafter_yaml_path
43
- )
44
- end
45
- end
46
-
47
- def title
48
- 'fitting'
49
- end
50
-
51
- def stats_path
52
- 'fitting/stats'
53
- end
54
-
55
- def not_covered_path
56
- 'fitting/not_covered'
57
- end
58
- end
59
- end
60
- end