webspicy 0.21.6 → 0.21.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd39249e2d93a03a088b344c149394e112e57e8b34f5fb20ae2d48018a7c48c5
4
- data.tar.gz: 73cbf44b32c9f8609106ddac8495e94d590d3d827325ca40ce7d7d483b35767d
3
+ metadata.gz: ebc6a59cdd54771817e5613d8a5ecf53651034453c801d3e505fc30d39851bed
4
+ data.tar.gz: e5ee25c0870072c02c69e6a90e2a6803de5dba78062b59b3bd8f1c183a7d91e4
5
5
  SHA512:
6
- metadata.gz: bddeb1dc84bcbe261f037df5051e575d2540eb781538bc240b736b33b15b7d6876362ffcce456510a9fa90e8b2574952c73006bec8e670a5cc737f625402b843
7
- data.tar.gz: 8e0c0275a2b14909491ca835e002fb33869f0d44617605339869a1275ccaf5457b1e1cda356106cd23ef4bd4d73c595bac151d551cf9144bfb363062eb49ca5d
6
+ metadata.gz: 0f8632e1117aa06d2b717b790f2150d35a305ee37f2de912f5b412decfe969d3a78f3470f9074a7eb35c6d2180adf9c3d0f02f6629628f7e07e4c18428378640
7
+ data.tar.gz: 9ef40e507cfb9e50de794dc1d9f593adf4e92f318aa1fd37a6ab4a13035c1977b308ae483e0d017838a6bb9143264b3d6f6dbe34dfdbfc1808ec0076c24d9490
@@ -2,7 +2,7 @@ module Webspicy
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 21
5
- TINY = 6
5
+ TINY = 7
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
@@ -114,10 +114,15 @@ module Webspicy
114
114
  def request_body_for(service)
115
115
  schema = actual_input_schema(service)
116
116
  example = nil # catch(:unfound) { generator.call(schema, {}) }
117
+ content_type = if service.method.downcase == 'post_form'
118
+ 'application/x-www-form-urlencoded'
119
+ else
120
+ 'application/json'
121
+ end
117
122
  {
118
123
  required: true,
119
124
  content: {
120
- 'application/json' => {
125
+ content_type => {
121
126
  schema: schema.to_json_schema,
122
127
  example: example
123
128
  }.compact
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webspicy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.6
4
+ version: 0.21.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake