rack-app 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rack/app/cli.rb +1 -1
- data/lib/rack/app/cli/fetcher.rb +10 -1
- data/lib/rack/app/cli/fetcher/server.rb +25 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f009d77e7f8904677beee67abaaa1eadc4de43db
|
4
|
+
data.tar.gz: f79bf0cb29b7d29102077e5591c81dfb99cafd36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56592eba5bff8d82c1301bf9b00aa599d2eb19ac6be4f517d6d8e1d924fb4ff498179426327aa9749d2ee9563b48762d070540521ee1c69608ee215b03696db8
|
7
|
+
data.tar.gz: dbb2fcb3da28381cb9e7b49d00220b1418c831094e98897378c14db568ec7fa005013e124c0c542a922824df3d70ed173df36877e17857323f2534375c54250c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.5.
|
1
|
+
3.5.1
|
data/lib/rack/app/cli.rb
CHANGED
data/lib/rack/app/cli/fetcher.rb
CHANGED
@@ -1,10 +1,19 @@
|
|
1
1
|
module Rack::App::CLI::Fetcher
|
2
2
|
|
3
|
+
require 'rack/app/cli/fetcher/server'
|
4
|
+
|
3
5
|
extend self
|
4
6
|
|
7
|
+
module ExitPrevent
|
8
|
+
|
9
|
+
def abort(*args)
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
5
14
|
def rack_app
|
6
15
|
|
7
|
-
server = Rack::Server.new(:config => 'config.ru')
|
16
|
+
server = Rack::App::CLI::Fetcher::Server.new(:config => 'config.ru')
|
8
17
|
|
9
18
|
app = server.app
|
10
19
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class Rack::App::CLI::Fetcher::Server < Rack::Server
|
2
|
+
|
3
|
+
Abort = Class.new(StandardError)
|
4
|
+
|
5
|
+
def app
|
6
|
+
super
|
7
|
+
rescue Abort
|
8
|
+
Class.new(Rack::App)
|
9
|
+
end
|
10
|
+
|
11
|
+
def abort(*messages)
|
12
|
+
raise(Abort)
|
13
|
+
end
|
14
|
+
|
15
|
+
class Options
|
16
|
+
def parse!(argv)
|
17
|
+
{}
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def opt_parser
|
22
|
+
Options.new
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- lib/rack/app/cli/default_commands/list_commands.rb
|
98
98
|
- lib/rack/app/cli/default_commands/show_routes.rb
|
99
99
|
- lib/rack/app/cli/fetcher.rb
|
100
|
+
- lib/rack/app/cli/fetcher/server.rb
|
100
101
|
- lib/rack/app/cli/runner.rb
|
101
102
|
- lib/rack/app/constants.rb
|
102
103
|
- lib/rack/app/endpoint.rb
|