rails_pwnerer 0.6.56 → 0.6.57

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/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.57. Added posgresql client libraries to the scaffolding.
2
+
1
3
  v0.6.56. Added bundle locking, for safer deployments.
2
4
 
3
5
  v0.6.55. Fixed bug in dbconsole command.
@@ -20,14 +20,14 @@ class RailsPwnage::App::Git
20
20
  # TODO: learn how Rails caches work and kill those too
21
21
  ['app', 'db', 'lib', 'public/images',
22
22
  'public/javascripts', 'public/stylesheets', 'script',
23
- 'test', 'tmp', 'vendor'
23
+ 'test', 'tmp', 'vendor', 'Gemfile'
24
24
  ].each { |dir| cleanup_app_dir app_name, instance_name, dir, app_name_is_dir }
25
25
  end
26
26
 
27
27
  # reverts the config changes made by rpwn, so git fetch doesn't get confused
28
28
  def revert_config_changes(app_name, instance_name)
29
29
  Dir.chdir RailsPwnage::Config[app_name, instance_name][:app_path] do
30
- ['config'].each do |dir|
30
+ ['config', 'Gemfile'].each do |dir|
31
31
  Kernel.system "git clean -d -f -x -- #{dir}"
32
32
  Kernel.system "git checkout -- #{dir}"
33
33
  end
@@ -13,7 +13,7 @@ class RailsPwnage::Scaffolds::Gems
13
13
  end
14
14
 
15
15
  def install_dbi
16
- install_gems %w(mysql sqlite3-ruby)
16
+ install_gems %w(mysql pg sqlite3-ruby)
17
17
  end
18
18
 
19
19
  def install_text_tools
@@ -68,6 +68,13 @@ class RailsPwnage::Scaffolds::Packages
68
68
  install_packages %w(mysql-client mysql-server libmysqlclient15-dev)
69
69
  end
70
70
 
71
+ # The packages for building postgresql clients.
72
+ #
73
+ # Rails 3 likes having both the mysql and pgsql clients available.
74
+ def install_pgsql
75
+ install_packages %w(postgresql-client libpq-dev)
76
+ end
77
+
71
78
  # the packages for sqlite3
72
79
  def install_sqlite3
73
80
  install_packages %w(libsqlite3 libsqlite3-dev sqlite3), :source => true
@@ -92,6 +99,7 @@ class RailsPwnage::Scaffolds::Packages
92
99
  install_sqlite3
93
100
  install_balancer
94
101
  install_mysql
102
+ install_pgsql_client
95
103
  upgrade_all_packages
96
104
  end
97
105
 
@@ -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.56"
5
+ s.version = "0.6.57"
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{2010-02-18}
9
+ s.date = %q{2010-03-17}
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}
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rails_pwnerer", "--main", "README"]
19
19
  s.require_paths = ["lib", "ext"]
20
20
  s.rubyforge_project = %q{rails-pwnage}
21
- s.rubygems_version = %q{1.3.5}
21
+ s.rubygems_version = %q{1.3.6}
22
22
  s.summary = %q{Rails deployment tool/hack.}
23
23
 
24
24
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.56
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 6
8
+ - 57
9
+ version: 0.6.57
5
10
  platform: ruby
6
11
  authors:
7
12
  - Victor Costan
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-18 00:00:00 -05:00
17
+ date: 2010-03-17 00:00:00 -04:00
13
18
  default_executable: bin/rpwn
14
19
  dependencies: []
15
20
 
@@ -148,18 +153,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
153
  requirements:
149
154
  - - ">="
150
155
  - !ruby/object:Gem::Version
156
+ segments:
157
+ - 0
151
158
  version: "0"
152
- version:
153
159
  required_rubygems_version: !ruby/object:Gem::Requirement
154
160
  requirements:
155
161
  - - ">="
156
162
  - !ruby/object:Gem::Version
163
+ segments:
164
+ - 0
157
165
  version: "0"
158
- version:
159
166
  requirements: []
160
167
 
161
168
  rubyforge_project: rails-pwnage
162
- rubygems_version: 1.3.5
169
+ rubygems_version: 1.3.6
163
170
  signing_key:
164
171
  specification_version: 3
165
172
  summary: Rails deployment tool/hack.