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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e631f311a40138f62d53fa4b26bb7c91257f416
4
- data.tar.gz: e3b004dd24dd12c2d25a1197f65b677948131775
3
+ metadata.gz: f009d77e7f8904677beee67abaaa1eadc4de43db
4
+ data.tar.gz: f79bf0cb29b7d29102077e5591c81dfb99cafd36
5
5
  SHA512:
6
- metadata.gz: 1281d2dc6004621dbd9bae6a59e32b5a1239f804eca735e823580c450d8d19715b7c8436e077687caa20fc0433e65099ba48c0a9fce8af209c24338e2695d1b7
7
- data.tar.gz: 4c9525b1ebae32d9a8a7656d4542b60e22f08c69e492766efa2cd8ca011268037553dfee1c3aa5551fc5e4ea6d0a7f6ff3fba1141d38bc55feafb89c94c20370
6
+ metadata.gz: 56592eba5bff8d82c1301bf9b00aa599d2eb19ac6be4f517d6d8e1d924fb4ff498179426327aa9749d2ee9563b48762d070540521ee1c69608ee215b03696db8
7
+ data.tar.gz: dbb2fcb3da28381cb9e7b49d00220b1418c831094e98897378c14db568ec7fa005013e124c0c542a922824df3d70ed173df36877e17857323f2534375c54250c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.5.0
1
+ 3.5.1
data/lib/rack/app/cli.rb CHANGED
@@ -18,7 +18,7 @@ class Rack::App::CLI
18
18
  end
19
19
 
20
20
  def rack_app
21
- @rack_app ||= Rack::App::CLI::Fetcher.rack_app
21
+ Rack::App::CLI::Fetcher.rack_app
22
22
  end
23
23
 
24
24
  end
@@ -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.0
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-05 00:00:00.000000000 Z
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