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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bb9fd86c97df55571e625a98fc8922e44a3339c
4
- data.tar.gz: 576c5902bb5a1d1eb3379045871855277963fad6
3
+ metadata.gz: 38127839d9063d465a90b25cd7de8b455c482870
4
+ data.tar.gz: 991ab59f3bd9f8d06bc14197e977bb5b3608ed0a
5
5
  SHA512:
6
- metadata.gz: 7fcfd49c48767c5c21d2f6a67ec2d2beac9ce016c45d61065d6a4e777c442168f1f9aa10c868b70e9f8c0388e22350354f140bed545af8335ad9ef89e2fe7325
7
- data.tar.gz: 64e43dc9b00272c249fdcda75e5fccd71c45f4d3f01008885292fdfdbe6096c49589087b69570ecc7991cd072cda0b19c0b06d9a66814e70e3be47e475ce7aaf
6
+ metadata.gz: 406996381365ae93a3355611735880a87ecaa344552456f4899e36298351b065d7ace6821106f25e2d45305c78c0360e9a17dc35c377234875d6d4b2b35c9c42
7
+ data.tar.gz: 07311127ded11081f7433d655857ae0620cf8dc0594bb0597448cc604b42229e5671b32b484405fd90ea8426bb5bad7795aee8be68147b9737cae14658a2ed89
@@ -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
@@ -2,7 +2,7 @@ module Cartoonist
2
2
  class Version
3
3
  class << self
4
4
  def to_s
5
- "0.0.19"
5
+ "0.0.19.3"
6
6
  end
7
7
  end
8
8
  end
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-07-25 00:00:00.000000000 Z
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