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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24934404fc9a0d811d06cf707b2b2b36962b74663f054c7280568378187dfb98
4
- data.tar.gz: 24c886a1dd3f466f5bf78178d0fe641feb47cd60133316760ceaf89d5f7164e3
3
+ metadata.gz: 3e891c32a8a5207e55aea93e76262dd2b121403fe463146688e587fedf788559
4
+ data.tar.gz: 9a69941732c214e3c52a13e95cebd3efe732f1570d68832086c97a3aa9526a0f
5
5
  SHA512:
6
- metadata.gz: a10849846f8edc6e430574afeaba178114c6c3a1c89c0c715b86b7398ce7fd69c34853fdecc97298336beafa531e023b7be0ce39dff7d75b3842e14fdd23852d
7
- data.tar.gz: fae70c9ac1eec239c5ebca1f311d68d0c2844ea4c9e242e6b0424d1a97fa7838548f851e81610fa6f083df812a2b9ce9f3c2a4c7d6f5b5f6f795949bfa766280
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
+
@@ -47,7 +47,7 @@ module Riddl
47
47
  pname = @value.path
48
48
  @value.close
49
49
  @value = File.open(pname,'r')
50
- end
50
+ end
51
51
  end
52
52
  end
53
53
  class Tempfile < ::Tempfile
@@ -57,5 +57,5 @@ module Riddl
57
57
  @tmpfile = nil
58
58
  end
59
59
  end
60
- end
60
+ end
61
61
  end
@@ -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: #{mode == :input ? 'form-data' : 'riddl-data'}; name=\"#{r.name}\"" + EOL
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: #{mode == :input ? 'form-data' : 'riddl-data'}; name=\"#{r.name}\""
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "1.0.4"
3
+ s.version = "1.0.5"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Restful Interface Description and Declaration Language: tools and client/server libs"
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
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: 2024-06-27 00:00:00.000000000 Z
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.9
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