nimbu 0.10.4 → 0.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nimbu/server/base.rb +3 -0
- data/lib/nimbu/server/headers.rb +17 -0
- data/lib/nimbu/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48bfa351bcd8da9f22cc3ae2ac186fede987627447bec43cd533697de6671e96
|
4
|
+
data.tar.gz: 8e4633b3b0f8a1983c70ee068265e4ca3b98c68f8d2c716608ff36170a85ff49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 102857f2d0c6d113f72bf36e9c1bc8c7063694eebf0c852ef20b4fd654a690f74263eb6bc8644f269696adfa4bb0646101195b602ec39f4352537eed3e7feead
|
7
|
+
data.tar.gz: ae1724304345db6c2bd6d5aff0791afd4ec229981f846310fce6684a19eb567e8bd2d9f257e938c05473b12fb7e7c4013fde5587db7cd941f41a819b6342fc43
|
data/lib/nimbu/server/base.rb
CHANGED
@@ -9,6 +9,7 @@ require "base64"
|
|
9
9
|
require "sinatra/json"
|
10
10
|
require 'json'
|
11
11
|
require 'rack/streaming_proxy'
|
12
|
+
require 'nimbu/server/headers'
|
12
13
|
|
13
14
|
module Nimbu
|
14
15
|
module Server
|
@@ -26,6 +27,8 @@ module Nimbu
|
|
26
27
|
set :views, File.expand_path('../views', __FILE__) # set up the views dir
|
27
28
|
set :haml, { format: :html5 } # if you use haml
|
28
29
|
|
30
|
+
use Nimbu::Server::Headers
|
31
|
+
|
29
32
|
unless Nimbu::Helpers.running_on_windows?
|
30
33
|
use Rack::StreamingProxy::Proxy do |request|
|
31
34
|
if request.path.start_with?('/favicon.ico')
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Nimbu
|
2
|
+
module Server
|
3
|
+
class Headers
|
4
|
+
def initialize(app)
|
5
|
+
@app = app
|
6
|
+
end
|
7
|
+
|
8
|
+
def call(env)
|
9
|
+
# Add user agent as X-Nimbu-Simulator header
|
10
|
+
env['HTTP_X_NIMBU_SIMULATOR'] = Nimbu::Auth.user_agent
|
11
|
+
|
12
|
+
@app.call(env)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
data/lib/nimbu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nimbu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zenjoy BVBA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: term-ansicolor
|
@@ -303,6 +303,7 @@ files:
|
|
303
303
|
- lib/nimbu/command/version.rb
|
304
304
|
- lib/nimbu/helpers.rb
|
305
305
|
- lib/nimbu/server/base.rb
|
306
|
+
- lib/nimbu/server/headers.rb
|
306
307
|
- lib/nimbu/ssh.rb
|
307
308
|
- lib/nimbu/version.rb
|
308
309
|
- lib/vendor/nimbu/okjson.rb
|