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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c258adca42192cb79c6dfdf1e8ff0b83ea64c204be2fecf91c30f0450ea26b2d
4
- data.tar.gz: a8f018a41f46a3d77dfd11bd71fc8d195c6644c55a38c9d00956506530e4f328
3
+ metadata.gz: 48bfa351bcd8da9f22cc3ae2ac186fede987627447bec43cd533697de6671e96
4
+ data.tar.gz: 8e4633b3b0f8a1983c70ee068265e4ca3b98c68f8d2c716608ff36170a85ff49
5
5
  SHA512:
6
- metadata.gz: 3a21d79911c4e7ba0c0f53d81b5ff997b18407e8bf13316d993053fed5bf27a2c957cb89a7facb80844c3e1709d2b7db2b649dadac538856385b213a360370df
7
- data.tar.gz: d9b783cc35d575446b35723605152baf61150462ad26ee5c6aac047bf52e462739c8a028bcf577a8652ba620553c77f8ea85a4c66baf9dcd7587f21203017af9
6
+ metadata.gz: 102857f2d0c6d113f72bf36e9c1bc8c7063694eebf0c852ef20b4fd654a690f74263eb6bc8644f269696adfa4bb0646101195b602ec39f4352537eed3e7feead
7
+ data.tar.gz: ae1724304345db6c2bd6d5aff0791afd4ec229981f846310fce6684a19eb567e8bd2d9f257e938c05473b12fb7e7c4013fde5587db7cd941f41a819b6342fc43
@@ -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
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Nimbu
3
- VERSION = "0.10.4"
3
+ VERSION = "0.10.5"
4
4
  end
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
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-27 00:00:00.000000000 Z
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