virginia 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/virginia/service.rb +3 -1
- data/lib/virginia/version.rb +1 -1
- data/spec/virginia/service_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4435b0045644e57f9fb1783489901d24e7b0707
|
4
|
+
data.tar.gz: 499e69c0ca326d4d1531ea8123f5b25c8d4c090a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf3c54f20583166cbb422a254be2dc52f05c3726e816ff01f6be42024660915697f043633ead13231d50293130fc27fc10e904b3c930faed62cf0744fd960819
|
7
|
+
data.tar.gz: 4c9e79ba9ef642812e0407ac1240cd790e594391d5846683d64f212176a3bd7159e109d4963a0fe9c7b2062ba609043b3783af064b2fdd328df6e9158fa2b8ee
|
data/lib/virginia/service.rb
CHANGED
@@ -14,7 +14,9 @@ module Virginia
|
|
14
14
|
Port: config[:port]
|
15
15
|
}.merge(options)
|
16
16
|
|
17
|
-
|
17
|
+
Virginia.logger.singleton_class.redefine_method(:write) { |msg| debug msg.chomp }
|
18
|
+
|
19
|
+
app = Rack::CommonLogger.new(app, Virginia.logger)
|
18
20
|
supervisor = ::Reel::Rack::Server.supervise_as(:reel_rack_server, app, options)
|
19
21
|
|
20
22
|
Adhearsion::Events.register_callback :shutdown do
|
data/lib/virginia/version.rb
CHANGED
@@ -19,7 +19,7 @@ describe Virginia::Service do
|
|
19
19
|
|
20
20
|
it "should instantiate the handler" do
|
21
21
|
rack_logger = double 'Rack::CommonLogger'
|
22
|
-
::Rack::CommonLogger.should_receive(:new).once.with(TestApp,
|
22
|
+
::Rack::CommonLogger.should_receive(:new).once.with(TestApp, Virginia.logger).and_return rack_logger
|
23
23
|
::Reel::Rack::Server.should_receive(:supervise_as).once.with(:reel_rack_server, rack_logger, options)
|
24
24
|
Virginia::Service.start
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virginia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Pradovera
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: adhearsion
|