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 +4 -4
- data/lib/nimbu/server/base.rb +6 -0
- data/lib/nimbu/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4276f73ed9926080466bd0d79974c34ca2323c6
|
4
|
+
data.tar.gz: a9c16a8019d80cb7278d99db05c79449c732515d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a08a929bcde5bff8e739d5d908065ea5db57ae05e6d6bb27063befdb002962f61724b2d6f59560f638d755d26ae2217d5064094ec911b7e6346453fd654e0f8d
|
7
|
+
data.tar.gz: 215487b46231bba9e52d39d0ebe87587500c97ce62fab78e7756b3204278deb375a3ef6d55515be47912246664f7f9c74065f6c0dc479d81ceea5cd4b2776d69
|
data/lib/nimbu/server/base.rb
CHANGED
@@ -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
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.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:
|
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.
|
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.
|