rails_pwnerer 0.6.32 → 0.6.33
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/pwnage/app/config.rb +1 -1
- data/lib/pwnage/app/git.rb +2 -0
- data/rails_pwnerer.gemspec +2 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
data/lib/pwnage/app/config.rb
CHANGED
@@ -26,7 +26,7 @@ class RailsPwnage::App::Config
|
|
26
26
|
# the first internal port for the application instance
|
27
27
|
app_db[:port0] = 0 # will be overwritten during allocation
|
28
28
|
# the name of the database for the application instance
|
29
|
-
app_db[:db_name] ||= app_name + '_' + instance_name + '_prod'
|
29
|
+
app_db[:db_name] ||= (app_name + '_' + instance_name + '_prod')[0...60] # avoiding mySQL breakage
|
30
30
|
# the datbase user for the given application
|
31
31
|
app_db[:db_user] ||= (app_name + '_' + instance_name)[0...16] # mySQL doesn't like long user names
|
32
32
|
# the password of the database user for the given application
|
data/lib/pwnage/app/git.rb
CHANGED
@@ -72,6 +72,8 @@ class RailsPwnage::App::Git
|
|
72
72
|
FileUtils.mkpath app_path unless File.exists? app_path
|
73
73
|
Dir.chdir app_path do
|
74
74
|
system "git checkout -q origin/#{git_branch}"
|
75
|
+
# NOTE: it is only safe to delete master now, we're on a remote branch
|
76
|
+
system "git branch -d master"
|
75
77
|
system "git checkout -q -b #{git_branch}"
|
76
78
|
system "git config branch.#{git_branch}.remote origin"
|
77
79
|
system "git config branch.#{git_branch}.merge #{git_branch}"
|
data/rails_pwnerer.gemspec
CHANGED
@@ -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.
|
5
|
+
s.version = "0.6.33"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Victor Costan"]
|
9
|
-
s.date = %q{2009-02-
|
9
|
+
s.date = %q{2009-02-06}
|
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.
|
4
|
+
version: 0.6.33
|
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-02-
|
12
|
+
date: 2009-02-06 00:00:00 -05:00
|
13
13
|
default_executable: bin/rpwn
|
14
14
|
dependencies: []
|
15
15
|
|