mini-apivore 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b3ec77a52357819182bf812f94a54a82c1972c36
4
- data.tar.gz: 88670eeab470922d7c5e4b46acab2822ca493b3e
2
+ SHA256:
3
+ metadata.gz: f843825109df656e8ed68801085c7ffe3317f4c02e3ce23a38250e30c2c0cc2e
4
+ data.tar.gz: d3a79254c76ea5828e3eda3b05cce7133c507e791ccf8699697942b00f54c2da
5
5
  SHA512:
6
- metadata.gz: 8eda4b6a71a1269c2e2cf94681de397a4159a77771f1682684250bb3762734aa66fed729daa12980c7492ffcfeaad4ceea9b9875ccf85d0643fed1134554162b
7
- data.tar.gz: a8bc5d6ea1d31c75ad90c44f4900c77445856d9caba143196f23d3fae3b191692ad029565f733f8d81b2d62a6ed28180c237af3eeb32c59c61480927c87ed674
6
+ metadata.gz: 81c79e4b78db0f76764f57603d45b790c4d4d099ae5f525bf8cb3f21167133e4cca9935a9ef4e530b6e906736352a9aa2f8d1500724af5331b6dc52339ab1907
7
+ data.tar.gz: c8e3682d8be0b5d7fff793fe98b2c81e0c41ee984a7eb7c5559de7483d2ffcbc12ddecc33d5fce672ff5caaa7259ea45b782e996ad059af0c186c612988eb0a2
@@ -20,9 +20,16 @@ module MiniApivore
20
20
 
21
21
  def check_route( verb, path, expected_response_code, params = {} )
22
22
  prepare_action_env( verb, path, expected_response_code, params )
23
- assert( match?, failure_message )
23
+ assert( match?, <<FAIL )
24
+ Failed at: #{prepare_error_backtrace}\n
25
+ Failure message: #{failure_message},\n
26
+ fullpath: #{full_path}, \n
27
+ params causing failure:#{params}
28
+ FAIL
24
29
  end
25
30
 
31
+
32
+
26
33
  def match?
27
34
  #pre_checks
28
35
  check_request_path
@@ -82,7 +89,7 @@ module MiniApivore
82
89
  key = param.first
83
90
  dkey = data && ( data[key] || data[key.to_sym] )
84
91
  if dkey
85
- path = path.gsub "{#{key}}", dkey.to_param
92
+ path = path.gsub "{#{key}}", dkey.to_param.to_s
86
93
  else
87
94
  raise URI::InvalidURIError, "No substitution data found for {#{key}}"\
88
95
  " to test the path #{path}.", caller
@@ -1,5 +1,5 @@
1
1
  module Mini
2
2
  module Apivore
3
- VERSION = "0.1.4"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini-apivore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-04 00:00:00.000000000 Z
11
+ date: 2021-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '10.3'
75
+ version: 12.3.3
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '10.3'
82
+ version: 12.3.3
83
83
  description: " Minitest adaptation of apivore gem,\n Provides
84
84
  a tool for testing your application api against your swagger schema "
85
85
  email:
@@ -104,7 +104,7 @@ licenses:
104
104
  - MIT
105
105
  metadata:
106
106
  allowed_push_host: https://rubygems.org
107
- post_install_message:
107
+ post_install_message:
108
108
  rdoc_options: []
109
109
  require_paths:
110
110
  - lib
@@ -120,9 +120,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.6.11
125
- signing_key:
123
+ rubyforge_project:
124
+ rubygems_version: 2.7.6
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: Minitest adaptation of an apivore gem
128
128
  test_files: []