rails_pwnerer 0.6.68 → 0.6.69

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.69. More tweaks in the debian package list.
2
+
1
3
  v0.6.68. Bugfix in untested package installation code, plus new test.
2
4
 
3
5
  v0.6.67. Binaries fixed to reference new (proper) namespace.
@@ -9,6 +9,13 @@ class RailsPwnerer::Scaffolds::Packages
9
9
  package 'debconf'
10
10
  package 'debconf-utils'
11
11
 
12
+ # Keys for Debian packages.
13
+ package 'debian-archive-keyring'
14
+
15
+ # Fetch files via HTTP.
16
+ package 'curl'
17
+ package 'wget'
18
+
12
19
  package 'dpkg-dev' # Builds packages from source.
13
20
  package 'openssh-server' # SSH into the box.
14
21
 
@@ -64,6 +71,16 @@ class RailsPwnerer::Scaffolds::Packages
64
71
 
65
72
  # The ruby environment (ruby, irb, rubygems).
66
73
  def install_ruby
74
+ package = best_package_matching(['ruby1.8', 'ruby'])
75
+ if !package or package[:version] < '1.8.7'
76
+ # This distribution has an old ruby. Work around it.
77
+ deb_source = 'http://debian.mirrors.tds.net/debian/'
78
+ deb_repos = %w(testing main non-free contrib)
79
+ with_package_source deb_source, deb_repos do
80
+ install_ruby
81
+ end
82
+ end
83
+
67
84
  package 'ruby', 'ruby1.8'
68
85
 
69
86
  # Extensions that don't come in the ruby package, but should.
@@ -97,18 +114,13 @@ class RailsPwnerer::Scaffolds::Packages
97
114
 
98
115
  # Runner.
99
116
  def run
100
- sid_source = 'http://debian.mirrors.tds.net/debian/'
101
- sid_repos = %w(unstable main non-free contrib)
102
-
103
117
  update_package_metadata
104
118
  update_all_packages
105
119
  install_management
106
- with_package_source sid_source, sid_repos do
107
- install_tools
108
- install_databases
109
- install_ruby
110
- install_frontends
111
- end
120
+ install_tools
121
+ install_databases
122
+ install_frontends
123
+ install_ruby
112
124
  end
113
125
 
114
126
  # Standalone runner.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.68"
5
+ s.version = "0.6.69"
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"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 143
4
+ hash: 141
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 68
10
- version: 0.6.68
9
+ - 69
10
+ version: 0.6.69
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan