nimbu 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6ccec4289b78a2e1b38b5b9aa25158b21c79508
4
- data.tar.gz: 82613940f69747f558789bc27a6bb1a5a2a87e70
3
+ metadata.gz: b4276f73ed9926080466bd0d79974c34ca2323c6
4
+ data.tar.gz: a9c16a8019d80cb7278d99db05c79449c732515d
5
5
  SHA512:
6
- metadata.gz: d061db682e2d66e27cfa089bad31c94f24d2987d5040d5bcb4e77e8d50f9e4dd6b33f1acc7eb1c2733b637045aae5f347f751c1a115d07132b89985414530cd9
7
- data.tar.gz: 7040b7900f4ce93e47f9ba7f42e288fec895ac77db9bb18d25ed7c61334fb5f45b5774acaa12ff064203836c78e8638c08d8dc6efee830c215c963b1c31919da
6
+ metadata.gz: a08a929bcde5bff8e739d5d908065ea5db57ae05e6d6bb27063befdb002962f61724b2d6f59560f638d755d26ae2217d5064094ec911b7e6346453fd654e0f8d
7
+ data.tar.gz: 215487b46231bba9e52d39d0ebe87587500c97ce62fab78e7756b3204278deb375a3ef6d55515be47912246664f7f9c74065f6c0dc479d81ceea5cd4b2776d69
@@ -30,6 +30,8 @@ module Nimbu
30
30
  use Rack::StreamingProxy::Proxy do |request|
31
31
  if request.path.start_with?('/favicon.ico')
32
32
  "http://#{Nimbu::Auth.site}.#{Nimbu::Auth.admin_host}/favicon.ico"
33
+ elsif private_file?(request)
34
+ "http://#{Nimbu::Auth.site}.#{Nimbu::Auth.admin_host}#{request.path}?#{request.query_string}"
33
35
  elsif Nimbu.cli_options[:webpack_url] && webpack_resource?(request.path)
34
36
  "#{Nimbu.cli_options[:webpack_url]}#{request.path}"
35
37
  end
@@ -225,6 +227,10 @@ module Nimbu
225
227
  path =~ /\/javascripts\// && Nimbu.cli_options[:webpack_resources].include?(path.gsub("/javascripts/", ""))
226
228
  end
227
229
 
230
+ def self.private_file?(request)
231
+ request.path =~ /^\/downloads\// && request.query_string =~ /key=/
232
+ end
233
+
228
234
  end
229
235
  end
230
236
  end
data/lib/nimbu/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Nimbu
3
- VERSION = "0.10.0"
3
+ VERSION = "0.10.1"
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.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zenjoy BVBA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-22 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: term-ansicolor
@@ -325,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  version: '0'
326
326
  requirements: []
327
327
  rubyforge_project:
328
- rubygems_version: 2.6.7
328
+ rubygems_version: 2.4.5
329
329
  signing_key:
330
330
  specification_version: 4
331
331
  summary: Client library and CLI to design websites on the Nimbu platform.