simple-httpd 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Makefile +1 -1
- data/Rakefile +4 -0
- data/VERSION +1 -1
- data/lib/simple/httpd/service_adapter.rb +1 -6
- data/simple-httpd.gemspec +2 -5
- data/spec/spec_helper.rb +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc1dda6853c5b404f0e0fc39e99a683ab07e2c0fbe1b1b1652d4fc435795478a
|
4
|
+
data.tar.gz: cea28ea197759a048180cb96a8b7bac0f05e2ce9bdc6e77cb568bfcd0f19f230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a78da1bd982ab52563ec1032f5ad678fbdf73019e02eaa21552cfc48783303aa715a9eecaa626687ea44a81177e91e1b39c29ee84ec317f7b929e43b181989c8
|
7
|
+
data.tar.gz: 25bd47a6a122d648d351b3fac73c3938d0e42eb556869cd6c618a096225e3e09d218f2cfbf8994fae1657ecce38e9978d94f27db48adbf820c9dd0bc1d845186
|
data/Gemfile
CHANGED
data/Makefile
CHANGED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
@@ -72,12 +72,7 @@ module Simple::Httpd::ServiceAdapter
|
|
72
72
|
# define sinatra route.
|
73
73
|
route(verb, path) do
|
74
74
|
::Simple::Service.with_context(context) do
|
75
|
-
|
76
|
-
# THIS MUST BE FIXED IN simple-service.
|
77
|
-
flags = self.params.inject({}) { |hsh, (k,v)| hsh.update k.to_sym => v }
|
78
|
-
args = self.parsed_body.inject({}) { |hsh, (k,v)| hsh.update k.to_sym => v }
|
79
|
-
|
80
|
-
result = ::Simple::Service.invoke2(service, action_name, args: args, flags: flags)
|
75
|
+
result = ::Simple::Service.invoke2(service, action_name, args: self.parsed_body, flags: self.params)
|
81
76
|
encode_result(result)
|
82
77
|
end
|
83
78
|
end
|
data/simple-httpd.gemspec
CHANGED
@@ -15,9 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
17
17
|
gem.require_paths = %w(lib)
|
18
|
-
|
19
|
-
# executables are used for development purposes only
|
20
|
-
gem.executables = []
|
18
|
+
gem.executables = [ "simple-httpd" ]
|
21
19
|
|
22
20
|
gem.required_ruby_version = '~> 2.5'
|
23
21
|
|
@@ -27,6 +25,5 @@ Gem::Specification.new do |gem|
|
|
27
25
|
# gem.add_dependency "sinatra-reloader", "~> 1"
|
28
26
|
gem.add_dependency "expectation", "~> 1"
|
29
27
|
gem.add_dependency "simple-cli", "~> 0.3.3"
|
30
|
-
gem.add_dependency "simple-service", "~> 0.1.
|
28
|
+
gem.add_dependency "simple-service", "~> 0.1.3"
|
31
29
|
end
|
32
|
-
#require "expectation"
|
data/spec/spec_helper.rb
CHANGED
@@ -5,8 +5,8 @@ require "byebug"
|
|
5
5
|
require "rspec"
|
6
6
|
require "rspec-httpd"
|
7
7
|
|
8
|
-
|
9
|
-
require
|
8
|
+
ENV["PRELOAD_GEMS"].to_s.split(",").each do |gem_name|
|
9
|
+
require gem_name
|
10
10
|
end
|
11
11
|
|
12
12
|
# You can comment parts of the command below by prepending the line with a '#'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-httpd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: neatjson
|
@@ -72,17 +72,18 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.1.
|
75
|
+
version: 0.1.3
|
76
76
|
type: :runtime
|
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: 0.1.
|
82
|
+
version: 0.1.3
|
83
83
|
description: Super-simple HTTPD server - sinatra w/gimmiks
|
84
84
|
email: eno@radiospiel.org
|
85
|
-
executables:
|
85
|
+
executables:
|
86
|
+
- simple-httpd
|
86
87
|
extensions: []
|
87
88
|
extra_rdoc_files: []
|
88
89
|
files:
|