riddl 1.0.3 → 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: 7b8c0cadb2f47e2f0e544d0fc421857e5bda3081e0fc0a2f5ac1d9471ff47824
4
- data.tar.gz: e51abeb867df96c41ffb9c2ac9218bd7f16bf8687fde22b2893ba60eeb70f7a8
3
+ metadata.gz: 3e891c32a8a5207e55aea93e76262dd2b121403fe463146688e587fedf788559
4
+ data.tar.gz: 9a69941732c214e3c52a13e95cebd3efe732f1570d68832086c97a3aa9526a0f
5
5
  SHA512:
6
- metadata.gz: 6288337235159a33b816a3ebe814ed9d759b599a8c5aa47b32ba501483756a357e16c9858da106a90814e4c276b0de9f19847abecc6aa7d851fd84c476b8546b
7
- data.tar.gz: 6053417ed32af4cd80ef591eebbd79c9802d2560ce2986b2dd2d14cd86c224c119bda7d0612bbd6c3389ec78a71651c57f81f1601b70d532fccdc17fe4a514b9
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.3"
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"
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_runtime_dependency 'daemonite', '~>0.7', '>=0.7.0'
26
26
  s.add_runtime_dependency 'typhoeus', '~>1.3'
27
27
  s.add_runtime_dependency 'xml-smart', '>=0.4.3', '~>0'
28
- s.add_runtime_dependency 'rdf-smart', '>=0.0.160', '~>0'
28
+ s.add_development_dependency 'rdf-smart', '>=0.0.160', '~>0'
29
29
  s.add_runtime_dependency 'rack', '~>2.2'
30
30
  s.add_runtime_dependency 'thin', '~>1.6'
31
31
  s.add_runtime_dependency 'eventmachine', '>= 1.0.0', '~>1.0'
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.3
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-03-01 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
@@ -77,7 +77,7 @@ dependencies:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
- type: :runtime
80
+ type: :development
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
@@ -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.4.10
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