standup 0.3.17 → 0.3.18

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.17
1
+ 0.3.18
@@ -8,7 +8,7 @@ events {
8
8
  }
9
9
 
10
10
  http {
11
- passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.1;
11
+ passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.4;
12
12
  passenger_ruby /usr/local/bin/ruby;
13
13
 
14
14
  include mime.types;
data/scripts/passenger.rb CHANGED
@@ -2,7 +2,7 @@ Standup.script :node do
2
2
  def run
3
3
  scripts.ec2.open_port 80, 443
4
4
 
5
- if install_gem('passenger', '3.0.1') || !file_exists?('/opt/nginx/sbin/nginx')
5
+ if install_gem('passenger', '3.0.4') || !file_exists?('/opt/nginx/sbin/nginx')
6
6
  install_package 'libcurl4-openssl-dev'
7
7
  sudo 'passenger-install-nginx-module --auto --auto-download --prefix=/opt/nginx'
8
8
  end
data/scripts/rake.rb ADDED
@@ -0,0 +1,7 @@
1
+ Standup.script :node do
2
+ self.description = 'Run remote Rake task'
3
+
4
+ def run
5
+ scripts.shell.make_shell "cd #{scripts.webapp.app_path} && RAILS_ENV=#{scripts.webapp.params.rails_env} sudo -u www-data rake #{ARGV.join(' ')}"
6
+ end
7
+ end
@@ -8,6 +8,14 @@ server {
8
8
 
9
9
  passenger_enabled on;
10
10
  passenger_min_instances 3;
11
+
12
+ location ~* \.(js|css|png|jpg|gif)$ {
13
+ if ($query_string ~ "^[0-9]+$") {
14
+ access_log off;
15
+ expires max;
16
+ add_header Cache-Control public;
17
+ }
18
+ }
11
19
  }
12
20
 
13
21
  passenger_pre_start http://127.0.0.1/;
data/standup.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{standup}
8
- s.version = "0.3.17"
8
+ s.version = "0.3.18"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilia Ablamonov", "Artem Orlov", "Cloud Castle Inc."]
12
- s.date = %q{2011-01-27}
12
+ s.date = %q{2011-03-04}
13
13
  s.default_executable = %q{standup}
14
14
  s.email = %q{ilia@flamefork.ru}
15
15
  s.executables = ["standup"]
@@ -64,6 +64,7 @@ Gem::Specification.new do |s|
64
64
  "scripts/postgresql.rb",
65
65
  "scripts/postgresql/pg_hba.conf",
66
66
  "scripts/postgresql/postgresql.conf",
67
+ "scripts/rake.rb",
67
68
  "scripts/ruby.rb",
68
69
  "scripts/setup.rb",
69
70
  "scripts/shell.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standup
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 17
10
- version: 0.3.17
9
+ - 18
10
+ version: 0.3.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilia Ablamonov
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-01-27 00:00:00 +03:00
20
+ date: 2011-03-04 00:00:00 +03:00
21
21
  default_executable: standup
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -198,6 +198,7 @@ files:
198
198
  - scripts/postgresql.rb
199
199
  - scripts/postgresql/pg_hba.conf
200
200
  - scripts/postgresql/postgresql.conf
201
+ - scripts/rake.rb
201
202
  - scripts/ruby.rb
202
203
  - scripts/setup.rb
203
204
  - scripts/shell.rb