cartoonist 0.0.19 → 0.0.19.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cartoonist/nginxtra.rb +5 -2
- data/lib/cartoonist/version.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: 38127839d9063d465a90b25cd7de8b455c482870
|
4
|
+
data.tar.gz: 991ab59f3bd9f8d06bc14197e977bb5b3608ed0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 406996381365ae93a3355611735880a87ecaa344552456f4899e36298351b065d7ace6821106f25e2d45305c78c0360e9a17dc35c377234875d6d4b2b35c9c42
|
7
|
+
data.tar.gz: 07311127ded11081f7433d655857ae0620cf8dc0594bb0597448cc604b42229e5671b32b484405fd90ea8426bb5bad7795aee8be68147b9737cae14658a2ed89
|
data/lib/cartoonist/nginxtra.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
Nginxtra::Config::Extension.partial "nginx.conf", "cartoonist_rails" do |args, block|
|
2
2
|
rails_server = args[:server] || :passenger
|
3
3
|
ssl_details = args[:ssl]
|
4
|
+
ruby_version = args[:ruby]
|
4
5
|
|
5
6
|
if ssl_details
|
6
7
|
default_port = 443
|
@@ -11,7 +12,7 @@ Nginxtra::Config::Extension.partial "nginx.conf", "cartoonist_rails" do |args, b
|
|
11
12
|
if rails_server == :passenger && !@passenger_requirements_done
|
12
13
|
@config.require_passenger!
|
13
14
|
passenger_root!
|
14
|
-
passenger_ruby!
|
15
|
+
passenger_ruby! unless ruby_version
|
15
16
|
@passenger_requirements_done = true
|
16
17
|
end
|
17
18
|
|
@@ -20,6 +21,7 @@ Nginxtra::Config::Extension.partial "nginx.conf", "cartoonist_rails" do |args, b
|
|
20
21
|
server_name(args[:server_name] || "localhost")
|
21
22
|
root File.join(File.absolute_path(File.expand_path(args[:root] || ".")), "public")
|
22
23
|
gzip_static "on"
|
24
|
+
passenger_ruby ruby_version if ruby_version
|
23
25
|
passenger_on! if rails_server == :passenger
|
24
26
|
rails_env(args[:environment] || "production")
|
25
27
|
|
@@ -49,9 +51,10 @@ Nginxtra::Config::Extension.partial "nginx.conf", "cartoonist" do |args, block|
|
|
49
51
|
ssl_details = { :ssl => ssl_details } if ssl_details
|
50
52
|
short_expiration = args[:short_expiration] || "2h"
|
51
53
|
long_expiration = args[:long_expiration] || "7d"
|
54
|
+
ruby_version = args[:ruby]
|
52
55
|
|
53
56
|
[{}, ssl_details].compact.each do |additional_options|
|
54
|
-
options = { :server => :custom, :server_name => server_name, :root => root_path }.merge additional_options
|
57
|
+
options = { :server => :custom, :server_name => server_name, :root => root_path, :ruby => ruby_version }.merge additional_options
|
55
58
|
|
56
59
|
cartoonist_rails options do
|
57
60
|
location "~*", "^/_long_expiration_/#{cartoonist_type}(/.*?)(?:\\.html)?$" do
|
data/lib/cartoonist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartoonist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.19
|
4
|
+
version: 0.0.19.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Virata-Stone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack-page_caching
|