fitting 2.14.1 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +33 -0
  3. data/.ruby-version +1 -1
  4. data/.tool-versions +1 -1
  5. data/CHANGELOG.md +27 -0
  6. data/README.md +96 -282
  7. data/fitting.gemspec +5 -5
  8. data/images/example.png +0 -0
  9. data/images/example2.png +0 -0
  10. data/images/logo.png +0 -0
  11. data/lib/fitting/report/actions.rb +1 -5
  12. data/lib/fitting/report/console.rb +1 -1
  13. data/lib/fitting/report/prefix.rb +37 -2
  14. data/lib/fitting/report/prefixes.rb +14 -2
  15. data/lib/fitting/report/response.rb +2 -2
  16. data/lib/fitting/report/test.rb +14 -0
  17. data/lib/fitting/report/tests.rb +8 -1
  18. data/lib/fitting/version.rb +1 -1
  19. data/lib/tasks/fitting.rake +2 -0
  20. data/lib/templates/bomboniere/dist/css/app.aa2bcd8a.css +1 -0
  21. data/lib/templates/bomboniere/dist/index.html +1 -1
  22. data/lib/templates/bomboniere/dist/js/app.e5f1a5ec.js +2 -0
  23. data/lib/templates/bomboniere/dist/js/app.e5f1a5ec.js.map +1 -0
  24. data/lib/templates/bomboniere/dist/js/{chunk-vendors.90aeb613.js → chunk-vendors.0f99b670.js} +1 -1
  25. data/lib/templates/bomboniere/dist/js/{chunk-vendors.90aeb613.js.map → chunk-vendors.0f99b670.js.map} +1 -1
  26. data/lib/templates/bomboniere/package-lock.json +91 -70
  27. data/lib/templates/bomboniere/package.json +2 -1
  28. data/lib/templates/bomboniere/src/components/HelloWorld.vue +21 -5
  29. data/lib/templates/bomboniere/src/views/Action.vue +22 -3
  30. metadata +44 -34
  31. data/.travis.yml +0 -4
  32. data/lib/templates/bomboniere/dist/css/app.62e086ac.css +0 -1
  33. data/lib/templates/bomboniere/dist/js/app.4356d509.js +0 -2
  34. data/lib/templates/bomboniere/dist/js/app.4356d509.js.map +0 -1
@@ -1185,15 +1185,48 @@
1185
1185
  }
1186
1186
  },
1187
1187
  "browserslist": {
1188
- "version": "4.12.2",
1189
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.12.2.tgz",
1190
- "integrity": "sha512-MfZaeYqR8StRZdstAK9hCKDd2StvePCYp5rHzQCPicUjfFliDgmuaBNPHYUTpAywBN8+Wc/d7NYVFkO0aqaBUw==",
1188
+ "version": "4.16.6",
1189
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz",
1190
+ "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==",
1191
1191
  "dev": true,
1192
1192
  "requires": {
1193
- "caniuse-lite": "^1.0.30001088",
1194
- "electron-to-chromium": "^1.3.483",
1195
- "escalade": "^3.0.1",
1196
- "node-releases": "^1.1.58"
1193
+ "caniuse-lite": "^1.0.30001219",
1194
+ "colorette": "^1.2.2",
1195
+ "electron-to-chromium": "^1.3.723",
1196
+ "escalade": "^3.1.1",
1197
+ "node-releases": "^1.1.71"
1198
+ },
1199
+ "dependencies": {
1200
+ "caniuse-lite": {
1201
+ "version": "1.0.30001230",
1202
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001230.tgz",
1203
+ "integrity": "sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ==",
1204
+ "dev": true
1205
+ },
1206
+ "colorette": {
1207
+ "version": "1.2.2",
1208
+ "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz",
1209
+ "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==",
1210
+ "dev": true
1211
+ },
1212
+ "electron-to-chromium": {
1213
+ "version": "1.3.739",
1214
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.739.tgz",
1215
+ "integrity": "sha512-+LPJVRsN7hGZ9EIUUiWCpO7l4E3qBYHNadazlucBfsXBbccDFNKUBAgzE68FnkWGJPwD/AfKhSzL+G+Iqb8A4A==",
1216
+ "dev": true
1217
+ },
1218
+ "escalade": {
1219
+ "version": "3.1.1",
1220
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
1221
+ "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
1222
+ "dev": true
1223
+ },
1224
+ "node-releases": {
1225
+ "version": "1.1.72",
1226
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.72.tgz",
1227
+ "integrity": "sha512-LLUo+PpH3dU6XizX3iVoubUNheF/owjXCZZ5yACDxNnPtgFuludV1ZL3ayK1kVep42Rmm0+R9/Y60NQbZ2bifw==",
1228
+ "dev": true
1229
+ }
1197
1230
  }
1198
1231
  },
1199
1232
  "buffer": {
@@ -1267,9 +1300,9 @@
1267
1300
  },
1268
1301
  "dependencies": {
1269
1302
  "ssri": {
1270
- "version": "6.0.1",
1271
- "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz",
1272
- "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==",
1303
+ "version": "6.0.2",
1304
+ "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.2.tgz",
1305
+ "integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==",
1273
1306
  "dev": true,
1274
1307
  "requires": {
1275
1308
  "figgy-pudding": "^3.5.1"
@@ -1594,6 +1627,12 @@
1594
1627
  "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
1595
1628
  "dev": true
1596
1629
  },
1630
+ "highlight.js": {
1631
+ "version": "9.18.5",
1632
+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.5.tgz",
1633
+ "integrity": "sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA==",
1634
+ "dev": true
1635
+ },
1597
1636
  "supports-color": {
1598
1637
  "version": "7.1.0",
1599
1638
  "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
@@ -1716,9 +1755,9 @@
1716
1755
  "dev": true
1717
1756
  },
1718
1757
  "color-string": {
1719
- "version": "1.5.3",
1720
- "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.3.tgz",
1721
- "integrity": "sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw==",
1758
+ "version": "1.6.0",
1759
+ "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.6.0.tgz",
1760
+ "integrity": "sha512-c/hGS+kRWJutUBEngKKmk4iH3sD59MBkoxVapS/0wgpCz2u7XsNloxknyvBhzwEs1IbV36D9PwqLPJ2DTu3vMA==",
1722
1761
  "dev": true,
1723
1762
  "requires": {
1724
1763
  "color-name": "^1.0.0",
@@ -2687,9 +2726,9 @@
2687
2726
  "dev": true
2688
2727
  },
2689
2728
  "dns-packet": {
2690
- "version": "1.3.1",
2691
- "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.1.tgz",
2692
- "integrity": "sha512-0UxfQkMhYAUaZI+xrNZOz/as5KgDU0M/fQ9b6SpkyLbk3GEswDi6PADJVaYJradtRVsRIlF1zLyOodbcTCDzUg==",
2729
+ "version": "1.3.4",
2730
+ "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz",
2731
+ "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==",
2693
2732
  "dev": true,
2694
2733
  "requires": {
2695
2734
  "ip": "^1.1.0",
@@ -2830,31 +2869,25 @@
2830
2869
  "integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==",
2831
2870
  "dev": true
2832
2871
  },
2833
- "electron-to-chromium": {
2834
- "version": "1.3.483",
2835
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.483.tgz",
2836
- "integrity": "sha512-+05RF8S9rk8S0G8eBCqBRBaRq7+UN3lDs2DAvnG8SBSgQO3hjy0+qt4CmRk5eiuGbTcaicgXfPmBi31a+BD3lg==",
2837
- "dev": true
2838
- },
2839
2872
  "elliptic": {
2840
- "version": "6.5.3",
2841
- "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",
2842
- "integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",
2873
+ "version": "6.5.4",
2874
+ "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
2875
+ "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
2843
2876
  "dev": true,
2844
2877
  "requires": {
2845
- "bn.js": "^4.4.0",
2846
- "brorand": "^1.0.1",
2878
+ "bn.js": "^4.11.9",
2879
+ "brorand": "^1.1.0",
2847
2880
  "hash.js": "^1.0.0",
2848
- "hmac-drbg": "^1.0.0",
2849
- "inherits": "^2.0.1",
2850
- "minimalistic-assert": "^1.0.0",
2851
- "minimalistic-crypto-utils": "^1.0.0"
2881
+ "hmac-drbg": "^1.0.1",
2882
+ "inherits": "^2.0.4",
2883
+ "minimalistic-assert": "^1.0.1",
2884
+ "minimalistic-crypto-utils": "^1.0.1"
2852
2885
  },
2853
2886
  "dependencies": {
2854
2887
  "bn.js": {
2855
- "version": "4.11.9",
2856
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz",
2857
- "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
2888
+ "version": "4.12.0",
2889
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
2890
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==",
2858
2891
  "dev": true
2859
2892
  }
2860
2893
  }
@@ -2972,12 +3005,6 @@
2972
3005
  "is-symbol": "^1.0.2"
2973
3006
  }
2974
3007
  },
2975
- "escalade": {
2976
- "version": "3.0.1",
2977
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.0.1.tgz",
2978
- "integrity": "sha512-DR6NO3h9niOT+MZs7bjxlj2a1k+POu5RN8CLTPX2+i78bRi9eLe7+0zXgUHMnGXWybYcL61E9hGhPKqedy8tQA==",
2979
- "dev": true
2980
- },
2981
3008
  "escape-html": {
2982
3009
  "version": "1.0.3",
2983
3010
  "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
@@ -3817,9 +3844,9 @@
3817
3844
  "dev": true
3818
3845
  },
3819
3846
  "highlight.js": {
3820
- "version": "9.18.1",
3821
- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.1.tgz",
3822
- "integrity": "sha512-OrVKYz70LHsnCgmbXctv/bfuvntIKDz177h0Co37DQ5jamGZLVmoCVMtjMtNZY3X9DrCcKfklHPNeA0uPZhSJg==",
3847
+ "version": "10.4.1",
3848
+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.4.1.tgz",
3849
+ "integrity": "sha512-yR5lWvNz7c85OhVAEAeFhVCc/GV4C30Fjzc/rCP0aCWzc1UUOPUk55dK/qdwTZHBvMZo+eZ2jpk62ndX/xMFlg==",
3823
3850
  "dev": true
3824
3851
  },
3825
3852
  "hmac-drbg": {
@@ -3840,9 +3867,9 @@
3840
3867
  "dev": true
3841
3868
  },
3842
3869
  "hosted-git-info": {
3843
- "version": "2.8.8",
3844
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz",
3845
- "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==",
3870
+ "version": "2.8.9",
3871
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
3872
+ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==",
3846
3873
  "dev": true
3847
3874
  },
3848
3875
  "hpack.js": {
@@ -4756,9 +4783,9 @@
4756
4783
  }
4757
4784
  },
4758
4785
  "lodash": {
4759
- "version": "4.17.19",
4760
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
4761
- "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
4786
+ "version": "4.17.21",
4787
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
4788
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
4762
4789
  "dev": true
4763
4790
  },
4764
4791
  "lodash.defaultsdeep": {
@@ -5289,12 +5316,6 @@
5289
5316
  }
5290
5317
  }
5291
5318
  },
5292
- "node-releases": {
5293
- "version": "1.1.58",
5294
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.58.tgz",
5295
- "integrity": "sha512-NxBudgVKiRh/2aPWMgPR7bPTX0VPmGx5QBwCtdHitnqFE5/O8DeBXuIMH1nwNnw/aMo6AjOrpsHzfY3UbUJ7yg==",
5296
- "dev": true
5297
- },
5298
5319
  "normalize-package-data": {
5299
5320
  "version": "2.5.0",
5300
5321
  "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
@@ -5741,9 +5762,9 @@
5741
5762
  "dev": true
5742
5763
  },
5743
5764
  "path-parse": {
5744
- "version": "1.0.6",
5745
- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
5746
- "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
5765
+ "version": "1.0.7",
5766
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
5767
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
5747
5768
  "dev": true
5748
5769
  },
5749
5770
  "path-to-regexp": {
@@ -5863,9 +5884,9 @@
5863
5884
  "dev": true
5864
5885
  },
5865
5886
  "postcss": {
5866
- "version": "7.0.32",
5867
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz",
5868
- "integrity": "sha512-03eXong5NLnNCD05xscnGKGDZ98CyzoqPSMjOe6SuoQY7Z2hIj0Ld1g/O/UQRuOle2aRtiIRDg9tDcTGAkLfKw==",
5887
+ "version": "7.0.36",
5888
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz",
5889
+ "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==",
5869
5890
  "dev": true,
5870
5891
  "requires": {
5871
5892
  "chalk": "^2.4.2",
@@ -8242,9 +8263,9 @@
8242
8263
  }
8243
8264
  },
8244
8265
  "url-parse": {
8245
- "version": "1.4.7",
8246
- "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz",
8247
- "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==",
8266
+ "version": "1.5.3",
8267
+ "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.3.tgz",
8268
+ "integrity": "sha512-IIORyIQD9rvj0A4CLWsHkBBJuNqWpFQe224b6j9t/ABmquIS0qDU2pY6kl6AuOrL5OkCXHMCFNe1jBcuAggjvQ==",
8248
8269
  "dev": true,
8249
8270
  "requires": {
8250
8271
  "querystringify": "^2.1.1",
@@ -9193,9 +9214,9 @@
9193
9214
  "dev": true
9194
9215
  },
9195
9216
  "ws": {
9196
- "version": "6.2.1",
9197
- "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz",
9198
- "integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==",
9217
+ "version": "6.2.2",
9218
+ "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz",
9219
+ "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==",
9199
9220
  "dev": true,
9200
9221
  "requires": {
9201
9222
  "async-limiter": "~1.0.0"
@@ -9208,9 +9229,9 @@
9208
9229
  "dev": true
9209
9230
  },
9210
9231
  "y18n": {
9211
- "version": "4.0.0",
9212
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
9213
- "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
9232
+ "version": "4.0.1",
9233
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz",
9234
+ "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==",
9214
9235
  "dev": true
9215
9236
  },
9216
9237
  "yallist": {
@@ -16,7 +16,8 @@
16
16
  "@vue/cli-service": "~4.4.0",
17
17
  "vue-template-compiler": "^2.6.11",
18
18
  "serialize-javascript": ">=3.1.0",
19
- "node-forge": ">=0.10.0"
19
+ "node-forge": ">=0.10.0",
20
+ "highlight.js": ">=10.4.1"
20
21
  },
21
22
  "browserslist": [
22
23
  "> 1%",
@@ -44,9 +44,17 @@
44
44
  <div class="method">{{ action_details.method }}</div>
45
45
  <div class="path">{{ action_details.path }}</div>
46
46
  <div v-for="responses_details in action_details.responses.responses_details">
47
- <div class="responses_details">{{ responses_details.combinations.cover_percent }}
47
+ <div v-if="responses_details.combinations.cover_percent == '100%'" class="response_good">
48
+ {{ responses_details.combinations.cover_percent }}
48
49
  {{ responses_details.method }}
49
50
  </div>
51
+ <div v-else class="response_bad">
52
+ {{ responses_details.combinations.cover_percent }}
53
+ {{ responses_details.method }}
54
+ </div>
55
+ </div>
56
+ <div style="color: #b94283;" v-if="action_details.responses.tests_without_responses.length != 0">
57
+ &#9888;
50
58
  </div>
51
59
  </router-link>
52
60
  </div>
@@ -143,10 +151,18 @@ a {
143
151
  padding: 0px 8px;
144
152
  }
145
153
 
146
- .responses_details {
147
- float: left;
148
- text-align: left;
149
- padding: 0px 2px;
154
+ .response_good {
155
+ float: left;
156
+ text-align: left;
157
+ padding: 0px 2px;
158
+ color: #42b983;
159
+ }
160
+
161
+ .response_bad {
162
+ float: left;
163
+ text-align: left;
164
+ padding: 0px 2px;
165
+ color: #b94283;
150
166
  }
151
167
 
152
168
  .action:hover {
@@ -17,7 +17,10 @@
17
17
  </div>
18
18
  <div class="accordion-item-body">
19
19
  <div v-for="test_without_responses in action.responses.tests_without_responses">
20
- <div class="test_without_responses">{{ test_without_responses }} ✖</div>
20
+ <div class="test_without_responses">
21
+ {{ test_without_responses }} ✖
22
+ {{tests[test_without_responses]}}
23
+ </div>
21
24
  </div>
22
25
  </div>
23
26
  </div>
@@ -27,7 +30,14 @@
27
30
  <div class="response">
28
31
  <div class="accordion-item">
29
32
  <div class="accordion-item-head" v-on:click="accordion">
30
- {{ response.combinations.cover_percent }} {{ response.method }}
33
+ <div v-if="response.combinations.cover_percent == '100%'" class="response_good">
34
+ {{ response.combinations.cover_percent }}
35
+ {{ response.method }}
36
+ </div>
37
+ <div v-else class="response_bad">
38
+ {{ response.combinations.cover_percent }}
39
+ {{ response.method }}
40
+ </div>
31
41
  </div>
32
42
  <div class="accordion-item-body">
33
43
  <vue-json-compare :oldData="jsonSchemas[response.json_schema]"
@@ -72,7 +82,8 @@ export default {
72
82
  return {
73
83
  myJson: {'stub': 'for action page'},
74
84
  jsonSchemas: {'stub': 'json-schemas'},
75
- combinations: {'stub': 'combinations'}
85
+ combinations: {'stub': 'combinations'},
86
+ tests: {'stub': 'tests'}
76
87
  }
77
88
  },
78
89
  methods: {
@@ -126,6 +137,14 @@ export default {
126
137
  background-color: #2b2b2b;
127
138
  }
128
139
 
140
+ .response_good {
141
+ color: #42b983;
142
+ }
143
+
144
+ .response_bad {
145
+ color: #b94283;
146
+ }
147
+
129
148
  .combination {
130
149
  text-align: left;
131
150
  padding: 0px 0px 0px 8px;
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.14.1
4
+ version: 2.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-23 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -48,36 +48,36 @@ dependencies:
48
48
  name: tomograph
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '2.0'
54
51
  - - ">="
55
52
  - !ruby/object:Gem::Version
56
- version: 2.2.0
53
+ version: 3.1.0
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '3.1'
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
62
- - !ruby/object:Gem::Version
63
- version: '2.0'
64
61
  - - ">="
65
62
  - !ruby/object:Gem::Version
66
- version: 2.2.0
63
+ version: 3.1.0
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '3.1'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: bundler
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '1.12'
73
+ version: '2.0'
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '1.12'
80
+ version: '2.0'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: byebug
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +102,9 @@ dependencies:
102
102
  name: rake
103
103
  requirement: !ruby/object:Gem::Requirement
104
104
  requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '12.3'
105
108
  - - ">="
106
109
  - !ruby/object:Gem::Version
107
110
  version: 12.3.3
@@ -109,6 +112,9 @@ dependencies:
109
112
  prerelease: false
110
113
  version_requirements: !ruby/object:Gem::Requirement
111
114
  requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '12.3'
112
118
  - - ">="
113
119
  - !ruby/object:Gem::Version
114
120
  version: 12.3.3
@@ -116,40 +122,40 @@ dependencies:
116
122
  name: rspec
117
123
  requirement: !ruby/object:Gem::Requirement
118
124
  requirements:
119
- - - "~>"
120
- - !ruby/object:Gem::Version
121
- version: '3.4'
122
125
  - - ">="
123
126
  - !ruby/object:Gem::Version
124
127
  version: 3.4.0
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '3.4'
125
131
  type: :development
126
132
  prerelease: false
127
133
  version_requirements: !ruby/object:Gem::Requirement
128
134
  requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '3.4'
132
135
  - - ">="
133
136
  - !ruby/object:Gem::Version
134
137
  version: 3.4.0
138
+ - - "~>"
139
+ - !ruby/object:Gem::Version
140
+ version: '3.4'
135
141
  - !ruby/object:Gem::Dependency
136
142
  name: rubocop
137
143
  requirement: !ruby/object:Gem::Requirement
138
144
  requirements:
139
- - - "~>"
145
+ - - ">="
140
146
  - !ruby/object:Gem::Version
141
147
  version: 0.49.1
142
- - - ">="
148
+ - - "~>"
143
149
  - !ruby/object:Gem::Version
144
150
  version: 0.49.1
145
151
  type: :development
146
152
  prerelease: false
147
153
  version_requirements: !ruby/object:Gem::Requirement
148
154
  requirements:
149
- - - "~>"
155
+ - - ">="
150
156
  - !ruby/object:Gem::Version
151
157
  version: 0.49.1
152
- - - ">="
158
+ - - "~>"
153
159
  - !ruby/object:Gem::Version
154
160
  version: 0.49.1
155
161
  - !ruby/object:Gem::Dependency
@@ -172,18 +178,19 @@ dependencies:
172
178
  - - ">="
173
179
  - !ruby/object:Gem::Version
174
180
  version: 0.11.2
175
- description: Validation responses in the rspec with the help of API Blueprint
181
+ description: Coverage API Blueprint, Swagger and OpenAPI with RSpec for easily make
182
+ high-quality API and documenatiton
176
183
  email:
177
184
  - d.efimov@fun-box.ru
178
185
  executables: []
179
186
  extensions: []
180
187
  extra_rdoc_files: []
181
188
  files:
189
+ - ".github/workflows/ruby.yml"
182
190
  - ".gitignore"
183
191
  - ".rubocop.yml"
184
192
  - ".ruby-version"
185
193
  - ".tool-versions"
186
- - ".travis.yml"
187
194
  - CHANGELOG.md
188
195
  - CODE_OF_CONDUCT.md
189
196
  - Gemfile
@@ -193,6 +200,9 @@ files:
193
200
  - bin/console
194
201
  - bin/setup
195
202
  - fitting.gemspec
203
+ - images/example.png
204
+ - images/example2.png
205
+ - images/logo.png
196
206
  - lib/fitting.rb
197
207
  - lib/fitting/configuration.rb
198
208
  - lib/fitting/configuration/legacy.rb
@@ -261,14 +271,14 @@ files:
261
271
  - lib/templates/bomboniere/.gitignore
262
272
  - lib/templates/bomboniere/.tool-versions
263
273
  - lib/templates/bomboniere/README.md
264
- - lib/templates/bomboniere/dist/css/app.62e086ac.css
274
+ - lib/templates/bomboniere/dist/css/app.aa2bcd8a.css
265
275
  - lib/templates/bomboniere/dist/css/chunk-vendors.ec5f6c3f.css
266
276
  - lib/templates/bomboniere/dist/favicon.ico
267
277
  - lib/templates/bomboniere/dist/index.html
268
- - lib/templates/bomboniere/dist/js/app.4356d509.js
269
- - lib/templates/bomboniere/dist/js/app.4356d509.js.map
270
- - lib/templates/bomboniere/dist/js/chunk-vendors.90aeb613.js
271
- - lib/templates/bomboniere/dist/js/chunk-vendors.90aeb613.js.map
278
+ - lib/templates/bomboniere/dist/js/app.e5f1a5ec.js
279
+ - lib/templates/bomboniere/dist/js/app.e5f1a5ec.js.map
280
+ - lib/templates/bomboniere/dist/js/chunk-vendors.0f99b670.js
281
+ - lib/templates/bomboniere/dist/js/chunk-vendors.0f99b670.js.map
272
282
  - lib/templates/bomboniere/package-lock.json
273
283
  - lib/templates/bomboniere/package.json
274
284
  - lib/templates/bomboniere/public/favicon.ico
@@ -286,7 +296,7 @@ homepage: https://github.com/funbox/fitting
286
296
  licenses:
287
297
  - MIT
288
298
  metadata: {}
289
- post_install_message:
299
+ post_install_message:
290
300
  rdoc_options: []
291
301
  require_paths:
292
302
  - lib
@@ -301,8 +311,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
311
  - !ruby/object:Gem::Version
302
312
  version: '0'
303
313
  requirements: []
304
- rubygems_version: 3.1.4
305
- signing_key:
314
+ rubygems_version: 3.0.1
315
+ signing_key:
306
316
  specification_version: 4
307
- summary: Validation in the rspec of API Blueprint
317
+ summary: Coverage API Blueprint, Swagger and OpenAPI with RSpec
308
318
  test_files: []
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3
4
- before_install: gem install bundler -v 1.12
@@ -1 +0,0 @@
1
- body{background-color:#2c3e50}h1,h2,h3,h4,h5,h6,p{color:#42b983}.pink{color:#b94283}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50}#nav{padding:30px}#nav a{font-weight:700}#nav a,#nav a.router-link-exact-active{color:#42b983}#main{font-size:10pt}.prefix{margin:2px 0;padding:0 8px;text-align:left}.action,.prefix{background-color:#273645;color:#42b983;height:20px}.action{margin:2px 0 0 16px}.method{width:100px;padding:0 8px}.method,.path{float:left;text-align:left}.path{width:400px}.accordion-item{position:relative}.accordion-item-head{cursor:pointer}.accordion-item-head:after{content:" > ";display:block;position:absolute;right:25px;transform:rotate(90deg) scaleY(2);top:0}.accordion-item-head.active:after{content:" < "}.accordion-item-body{display:none}.accordion-item-head.active+.accordion-item-body{display:block!important}h3[data-v-7016b498]{margin:40px 0 0}ul[data-v-7016b498]{list-style-type:none;padding:0}li[data-v-7016b498]{display:inline-block;margin:0 10px}a[data-v-7016b498]{color:#42b983}.tests_without_prefixes[data-v-7016b498]{background-color:#273645;color:#b94283;margin:2px 0;padding:0 8px;height:20px;text-align:left}.tests_without_prefixes[data-v-7016b498]:hover{background-color:#2b2b2b}.test_without_prefixes[data-v-7016b498],.tests_without_actions[data-v-7016b498]{background-color:#273645;color:#b94283;margin:2px 0 0 16px;height:20px;text-align:left;padding:0 8px}.tests_without_actions[data-v-7016b498]:hover{background-color:#2b2b2b}.test_without_actions[data-v-7016b498]{background-color:#273645;color:#b94283;margin:2px 0 0 24px;height:20px;text-align:left;padding:0 8px}.responses_details[data-v-7016b498]{float:left;text-align:left;padding:0 2px}.action[data-v-7016b498]:hover{background-color:#2b2b2b}.response[data-v-7016b498]{width:50px;float:left;text-align:left}.error[data-v-7016b498]{color:red;width:10px;float:left;text-align:left}a[data-v-7016b498]:active,a[data-v-7016b498]:hover,a[data-v-7016b498]:link,a[data-v-7016b498]:visited{color:#42b983;text-decoration:none}.request{color:#42b983}.request,.tests_without_responses{background-color:#273645;padding:0 0 0 8px}.tests_without_responses{text-align:left;color:#b94283;margin:2px 0 0 24px}.tests_without_responses:hover{background-color:#2b2b2b}.test_without_responses{text-align:left;padding:0 0 0 8px;color:#b94283;background-color:#273645;margin:2px 0 0 32px}.test_without_responses:hover{background-color:#2b2b2b}.response{text-align:left;padding:0 0 0 8px;color:#42b983;background-color:#273645;margin:2px 0 0 24px}.response:hover{background-color:#2b2b2b}.combination{text-align:left;padding:0 0 0 8px;color:#42b983;background-color:#273645;margin:2px 0 0 32px}.combination:hover{background-color:#2b2b2b}.alpaca-json{background-color:#131a20}.alpaca-add{background-color:#004313}.alpaca-del{background-color:#160004}.alpaca-upd{background-color:#423200}
@@ -1,2 +0,0 @@
1
- (function(t){function e(e){for(var n,a,r=e[0],c=e[1],l=e[2],d=0,_=[];d<r.length;d++)a=r[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&_.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(t[n]=c[n]);u&&u(e);while(_.length)_.shift()();return i.push.apply(i,l||[]),s()}function s(){for(var t,e=0;e<i.length;e++){for(var s=i[e],n=!0,r=1;r<s.length;r++){var c=s[r];0!==o[c]&&(n=!1)}n&&(i.splice(e--,1),t=a(a.s=s[0]))}return t}var n={},o={app:0},i=[];function a(e){if(n[e])return n[e].exports;var s=n[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=t,a.c=n,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(s,n,function(e){return t[e]}.bind(null,n));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],c=r.push.bind(r);r.push=e,r=r.slice();for(var l=0;l<r.length;l++)e(r[l]);var u=c;i.push([0,"chunk-vendors"]),s()})({0:function(t,e,s){t.exports=s("56d7")},"034f":function(t,e,s){"use strict";var n=s("85ec"),o=s.n(n);o.a},"0d10":function(t,e,s){},"56d7":function(t,e,s){"use strict";s.r(e);var n=s("2b0e"),o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"app"}},[s("div",{attrs:{id:"nav"}},[s("router-link",{attrs:{to:"/"}},[t._v("Prefixes")]),t._v(" | "),s("router-link",{attrs:{to:"/about"}},[t._v("About")])],1),s("router-view")],1)},i=[],a=(s("034f"),s("2877")),r={},c=Object(a["a"])(r,o,i,!1,null,null,null),l=c.exports,u=s("8c4f"),d=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"home"},[s("HelloWorld",{attrs:{msg:"Welcome to Your Vue.js App"}})],1)},_=[],p=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"main"}},[0!=t.myJson.tests_without_prefixes.length?s("div",[s("div",{staticClass:"accordion-item"},[s("div",{staticClass:"tests_without_prefixes accordion-item-head",on:{click:t.accordion}},[t._v(" tests without prefixes: "+t._s(t.myJson.tests_without_prefixes.length)+" ✖ ")]),s("div",{staticClass:"accordion-item-body"},t._l(t.myJson.tests_without_prefixes,(function(e){return s("div",[s("div",{staticClass:"test_without_prefixes"},[t._v(t._s(e)+" ✖")])])})),0)])]):t._e(),t._l(t.myJson.prefixes_details,(function(e){return s("div",[s("div",[s("div",{staticClass:"accordion-item"},[s("div",{staticClass:"prefix accordion-item-head active",on:{click:t.accordion}},[t._v(" "+t._s(e.name)+" ")]),s("div",{staticClass:"accordion-item-body"},[0!=e.actions.tests_without_actions.length?s("div",[s("div",{staticClass:"accordion-item"},[s("div",{staticClass:"tests_without_actions accordion-item-head",on:{click:t.accordion}},[t._v(" tests without actions: "+t._s(e.actions.tests_without_actions.length)+" ✖ ")]),s("div",{staticClass:"accordion-item-body"},t._l(e.actions.tests_without_actions,(function(e){return s("div",[s("div",{staticClass:"test_without_actions"},[t._v(t._s(e)+" ✖")])])})),0)])]):t._e(),t._l(e.actions.actions_details,(function(n){return s("div",[s("div",{staticClass:"action"},[s("router-link",{attrs:{to:{path:"action",query:{prefix:e.name,method:n.method,path:n.path}}}},[s("div",{staticClass:"method"},[t._v(t._s(n.method))]),s("div",{staticClass:"path"},[t._v(t._s(n.path))]),t._l(n.responses.responses_details,(function(e){return s("div",[s("div",{staticClass:"responses_details"},[t._v(t._s(e.combinations.cover_percent)+" "+t._s(e.method)+" ")])])}))],2)],1)])}))],2)])])])}))],2)},v=[],m={name:"HelloWorld",props:{msg:String},data(){return{myJson:{stub:"prefixes report"}}},methods:{accordion:function(t){t.target.classList.toggle("active")}}},h=m,f=(s("8c51"),Object(a["a"])(h,p,v,!1,null,"7016b498",null)),b=f.exports,y={name:"Home",components:{HelloWorld:b}},C=y,w=Object(a["a"])(C,d,_,!1,null,null,null),g=w.exports,j=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},x=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"about"},[s("h1",[t._v("This is an about page")])])}],O={},k=Object(a["a"])(O,j,x,!1,null,null,null),S=k.exports,J=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"main"}},t._l(t.myJson.prefixes_details,(function(e){return s("div",[t.$route.query.prefix==e.name?s("div",{staticClass:"accordion-item"},[s("div",{staticClass:"prefix"},[t._v(t._s(e.name))]),t._l(e.actions.actions_details,(function(e){return s("div",[t.$route.query.method==e.method&&t.$route.query.path==e.path?s("div",{staticClass:"accordion-item"},[s("div",{staticClass:"action"},[s("div",{staticClass:"method"},[t._v(t._s(e.method))]),s("div",{staticClass:"path"},[t._v(t._s(e.path))])]),0!=e.responses.tests_without_responses.length?s("div",[s("div",{staticClass:"accordion-item"},[s("div",{staticClass:"tests_without_responses accordion-item-head",on:{click:t.accordion}},[t._v(" tests without responses: "+t._s(e.responses.tests_without_responses.length)+" ✖ ")]),s("div",{staticClass:"accordion-item-body"},t._l(e.responses.tests_without_responses,(function(e){return s("div",[s("div",{staticClass:"test_without_responses"},[t._v(t._s(e)+" ✖")])])})),0)])]):t._e(),t._l(e.responses.responses_details,(function(e){return s("div",[s("div",{staticClass:"response"},[s("div",{staticClass:"accordion-item"},[s("div",{staticClass:"accordion-item-head",on:{click:t.accordion}},[t._v(" "+t._s(e.combinations.cover_percent)+" "+t._s(e.method)+" ")]),s("div",{staticClass:"accordion-item-body"},[s("vue-json-compare",{attrs:{oldData:t.jsonSchemas[e.json_schema],newData:t.jsonSchemas[e.json_schema]}})],1)])]),t._l(e.combinations.combinations_details,(function(n){return s("div",[s("div",{staticClass:"combination"},[s("div",{staticClass:"accordion-item"},[s("div",{staticClass:"accordion-item-head",on:{click:t.accordion}},[t._v(" type: "+t._s(n.type)+", name: "+t._s(n.name)+", tests_size: "+t._s(n.tests_size)+" ")]),s("div",{staticClass:"accordion-item-body"},[s("vue-json-compare",{attrs:{oldData:t.jsonSchemas[e.json_schema],newData:t.combinations[n.json_schema]}})],1)])])])}))],2)}))],2):t._e()])}))],2):t._e()])})),0)},$=[],P=s("06e8"),E=s.n(P),H={name:"HelloWorld",props:{msg:String},components:{vueJsonCompare:E.a},data(){return{myJson:{stub:"for action page"},jsonSchemas:{stub:"json-schemas"},combinations:{stub:"combinations"}}},methods:{accordion:function(t){t.target.classList.toggle("active")}}},W=H,q=(s("eb8d"),Object(a["a"])(W,J,$,!1,null,null,null)),A=q.exports;n["a"].use(u["a"]);const D=[{path:"/",name:"Home",component:g},{path:"/about",name:"About",component:S},{path:"/action",name:"Action",component:A}],M=new u["a"]({routes:D});var T=M;n["a"].config.productionTip=!1,new n["a"]({router:T,render:function(t){return t(l)}}).$mount("#app")},"85ec":function(t,e,s){},"8c51":function(t,e,s){"use strict";var n=s("917f"),o=s.n(n);o.a},"917f":function(t,e,s){},eb8d:function(t,e,s){"use strict";var n=s("0d10"),o=s.n(n);o.a}});
2
- //# sourceMappingURL=app.4356d509.js.map