riddl 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/simulate/test.html +7 -0
- data/lib/ruby/riddl/parameter.rb +2 -2
- data/lib/ruby/riddl/protocols/http/generator.rb +2 -2
- data/riddl.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e891c32a8a5207e55aea93e76262dd2b121403fe463146688e587fedf788559
|
4
|
+
data.tar.gz: 9a69941732c214e3c52a13e95cebd3efe732f1570d68832086c97a3aa9526a0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5c75d1a943d9c30c8b46f517f7bc65ab3fb6284fb8dda651e516283929627f649003d6f6537c319f9eb492b12def0a8a05c1310adb87ad8d9095e784e3b8986
|
7
|
+
data.tar.gz: ae5024ab1c85a38d9cbe47b9b7d449d2e2f2d1147da9643cbae1e44501a49dd32388359c5c120b7caf9150986828fe16734106fac54529ebe19fa7425da01c68
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<form action="http://localhost:8000" method="post" enctype="multipart/form-data">
|
2
|
+
<p><input type="text" name="text" value="text default">
|
3
|
+
<p><input type="file" name="file1">
|
4
|
+
<p><input type="file" name="file2">
|
5
|
+
<p><button type="submit">Submit</button>
|
6
|
+
</form>
|
7
|
+
|
data/lib/ruby/riddl/parameter.rb
CHANGED
@@ -87,14 +87,14 @@ module Riddl
|
|
87
87
|
when Riddl::Parameter::Simple
|
88
88
|
tmp.write '--' + BOUNDARY + EOL
|
89
89
|
tmp.write 'RIDDL-TYPE: simple' + EOL
|
90
|
-
tmp.write "Content-Disposition:
|
90
|
+
tmp.write "Content-Disposition: form-data; name=\"#{r.name}\"" + EOL
|
91
91
|
tmp.write EOL
|
92
92
|
tmp.write r.value
|
93
93
|
tmp.write EOL
|
94
94
|
when Riddl::Parameter::Complex
|
95
95
|
tmp.write '--' + BOUNDARY + EOL
|
96
96
|
tmp.write 'RIDDL-TYPE: complex' + EOL
|
97
|
-
tmp.write "Content-Disposition:
|
97
|
+
tmp.write "Content-Disposition: form-data; name=\"#{r.name}\""
|
98
98
|
#tmp.write r.filename.nil? ? '; filename=""' + EOL : "; filename=\"#{r.filename}\"" + EOL
|
99
99
|
tmp.write r.filename.nil? ? EOL : "; filename=\"#{r.filename}\"" + EOL
|
100
100
|
tmp.write 'Content-Transfer-Encoding: binary' + EOL
|
data/riddl.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riddl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen 'eTM' Mangler
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: tools
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2025-01-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: daemonite
|
@@ -408,6 +408,7 @@ files:
|
|
408
408
|
- examples/propnew/test
|
409
409
|
- examples/recursive/description.xml
|
410
410
|
- examples/recursive/server.rb
|
411
|
+
- examples/simulate/test.html
|
411
412
|
- examples/simulate/test.rb
|
412
413
|
- examples/sse/description.xml
|
413
414
|
- examples/sse/sample.html
|
@@ -554,7 +555,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
554
555
|
- !ruby/object:Gem::Version
|
555
556
|
version: '0'
|
556
557
|
requirements: []
|
557
|
-
rubygems_version: 3.5.
|
558
|
+
rubygems_version: 3.5.22
|
558
559
|
signing_key:
|
559
560
|
specification_version: 4
|
560
561
|
summary: 'Restful Interface Description and Declaration Language: tools and client/server
|