rails_pwnerer 0.6.61 → 0.6.62

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.62. Bugfix in mysql / mysql2 choosing code.
2
+
1
3
  v0.6.61. Smarter code for choosing between mysql and mysql2, since the latter is still buggy.
2
4
 
3
5
  v0.6.60. Switched Rails database adapter to mysql2.
@@ -72,11 +72,13 @@ ENDSQL
72
72
 
73
73
  config_file = File.join app_config[:app_path], 'config', 'database.yml'
74
74
  configuration = File.open(config_file, 'r') { |f| YAML.load f }
75
- unless /mysql/ =~ (configuration['production'] || '')
76
- configuration['production'] = 'mysql2'
75
+ if !configuration['production'] or
76
+ !configuration['production']['adapter'] or
77
+ !(/mysql/ =~ configuration['production'])
78
+ configuration['production']['adapter'] = 'mysql2'
77
79
  end
78
80
  configuration['production'].merge! 'database' => db_name, 'username' => db_user, 'password' => db_pass
79
- configuration['production'].merge! mysql_host_info()
81
+ configuration['production'].merge! mysql_host_info()
80
82
  File.open(config_file, 'w') { |f| YAML.dump(configuration, f) }
81
83
 
82
84
  # bonus: lock down the database so only the right user can access it
@@ -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.61"
5
+ s.version = "0.6.62"
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-05-05}
9
+ s.date = %q{2010-05-30}
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,14 +18,14 @@ 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.6}
21
+ s.rubygems_version = %q{1.3.7}
22
22
  s.summary = %q{Rails deployment tool/hack.}
23
23
 
24
24
  if s.respond_to? :specification_version then
25
25
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
26
26
  s.specification_version = 3
27
27
 
28
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
29
29
  else
30
30
  end
31
31
  else
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 123
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 6
8
- - 61
9
- version: 0.6.61
9
+ - 62
10
+ version: 0.6.62
10
11
  platform: ruby
11
12
  authors:
12
13
  - Victor Costan
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-05 00:00:00 -04:00
18
+ date: 2010-05-30 00:00:00 -04:00
18
19
  default_executable: bin/rpwn
19
20
  dependencies: []
20
21
 
@@ -150,23 +151,27 @@ require_paths:
150
151
  - lib
151
152
  - ext
152
153
  required_ruby_version: !ruby/object:Gem::Requirement
154
+ none: false
153
155
  requirements:
154
156
  - - ">="
155
157
  - !ruby/object:Gem::Version
158
+ hash: 3
156
159
  segments:
157
160
  - 0
158
161
  version: "0"
159
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
+ none: false
160
164
  requirements:
161
165
  - - ">="
162
166
  - !ruby/object:Gem::Version
167
+ hash: 3
163
168
  segments:
164
169
  - 0
165
170
  version: "0"
166
171
  requirements: []
167
172
 
168
173
  rubyforge_project: rails-pwnage
169
- rubygems_version: 1.3.6
174
+ rubygems_version: 1.3.7
170
175
  signing_key:
171
176
  specification_version: 3
172
177
  summary: Rails deployment tool/hack.