rails_pwnerer 0.6.26 → 0.6.27

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.27. Fixed cpu detection so it doesn't crash if neither sys-cpu nor procfs are available.
2
+
1
3
  v0.6.26. Fixed local git configuration so updates work and don't wipe logs.
2
4
 
3
5
  v0.6.25. Fixed impedance in frontends computations in the nginx and thin managers.
data/README CHANGED
@@ -121,7 +121,7 @@ overrides will be version-controlled). In your Rails directory
121
121
  (on your devbox), use rpwndev as follows:
122
122
 
123
123
  * Set the DNS name that your app responds to:
124
- rpwndev set dns-name your.dns.name
124
+ rpwndev set dns_name your.dns.name
125
125
 
126
126
  * Tweak the number of frontends per CPU core for an instance:
127
127
  rpwndev setnum frontends_per_core 4 your_instance
@@ -140,7 +140,7 @@ your app will apply the changes to the configuration repository.
140
140
  Use +rpwn showconfig+ on the server to see all the variables
141
141
  that you can tweak.
142
142
 
143
- Before I forget: don't dots (.) in instance names. Think
143
+ Before I forget: don't use dots (.) in instance names. Think
144
144
  underscores (_) instead. You can use dots in application names,
145
145
  though.
146
146
 
@@ -64,7 +64,7 @@ class RailsPwnage::App::Git
64
64
  git_branch = 'master'
65
65
  end
66
66
 
67
- return :next unless git_repository =~ /\.git$/
67
+ return :next unless git_repository =~ /\.git(\/.*)?$/
68
68
  app_path = RailsPwnage::Config[app_name, instance_name][:app_path]
69
69
 
70
70
  FileUtils.rm_rf app_path
@@ -31,7 +31,7 @@ else
31
31
  begin
32
32
  require 'rubygems'
33
33
  require 'sys/cpu'
34
- rescue
34
+ rescue Exception
35
35
  # no gem either, stub sys-cpu
36
36
  module Sys; end
37
37
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.26"
5
+ s.version = "0.6.27"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
9
- s.date = %q{2009-01-12}
9
+ s.date = %q{2009-01-18}
10
10
  s.default_executable = %q{bin/rpwn}
11
11
  s.description = %q{Rails deployment tool/hack.}
12
12
  s.email = %q{victor@costan.us}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.26
4
+ version: 0.6.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-12 00:00:00 -05:00
12
+ date: 2009-01-18 00:00:00 -05:00
13
13
  default_executable: bin/rpwn
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency