Skip to content

Commit

Permalink
Add Ruby 2.1.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 25, 2014
1 parent 7082b2d commit 02b2dc3
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
3.1.0 - Ruby 2.1.5

3.0.0 - Ruby 2.0.0-p598, Rails 4.1.8, activerecord-sqlserver-adapter 4.1.0,
coffee-rails 4.1.0, jquery-rails 3.1.2, sass-rails 4.0.5, sqlite 3.8.7.2,
mysql-5.6.21.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ built and packaged via rake tasks.

The next few sections detail the core components that make up RailsInstaller.

### Ruby 2.0.0 on Windows
### Ruby 2.1.5 on Windows

RubyInstaller is a self contained package installer which installs Ruby and RubyGems on a windows system, head over to [http://rubyinstaller.org/](http://rubyinstaller.org/) for more information.

Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
3.1.0
10 changes: 5 additions & 5 deletions config/railsinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
:target: 'DevKit'
:url: "http://s3.amazonaws.com/railsinstaller/Resources/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe"

:ruby200:
:ruby210:
:category: component
:title: Ruby 2.0.0
:name: Ruby200
:title: Ruby 2.1.0
:name: Ruby210
:regex: '^.*$'
:url: "http://s3.amazonaws.com/railsinstaller/Resources/ruby-2.0.0-p598-i386-mingw32.7z"
:rename: Ruby2.0.0
:url: "http://s3.amazonaws.com/railsinstaller/Resources/ruby-2.1.5-i386-mingw32.7z"
:rename: Ruby2.1.0

:git:
:category: component
Expand Down
4 changes: 2 additions & 2 deletions lib/railsinstaller/actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module RailsInstaller
def self.build!

components = [
BSDTar, SevenZip, DevKit, Git, Ruby200,
BSDTar, SevenZip, DevKit, Git, Ruby210,
PostgresServer, Sqlite3, Sqlite3Dll
]

Expand Down Expand Up @@ -52,7 +52,7 @@ def self.package!
iscc "\"#{File.join(RailsInstaller::Root, "resources", "railsinstaller", "railsinstaller.iss")}\"",
"/dInstallerVersion=#{railsinstaller_version}",
"/dStagePath=\"#{RailsInstaller::Stage}\"",
"/dRubyPath=\"#{RailsInstaller::Ruby200.rename}\"",
"/dRubyPath=\"#{RailsInstaller::Ruby210.rename}\"",
"/dResourcesPath=\"#{File.join(RailsInstaller::Root, "resources")}\"",
"/o\"#{RailsInstaller::PackageDir}\"",
"/frailsinstaller-#{railsinstaller_version}"
Expand Down
18 changes: 9 additions & 9 deletions lib/railsinstaller/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def self.stage_sqlite
if File.exist?(File.join(Stage, file))
FileUtils.mv(
File.join(Stage, file),
File.join(Stage, Ruby200.rename, "bin", file)
File.join(Stage, Ruby210.rename, "bin", file)
)
end
end
Expand All @@ -207,7 +207,7 @@ def self.stage_postgresql
if File.exist?(File.join(Stage, file))
FileUtils.cp(
File.join(Stage, PostgresServer.target, "bin", file),
File.join(Stage, Ruby200.rename, "bin", file)
File.join(Stage, Ruby210.rename, "bin", file)
)
end
end
Expand All @@ -218,7 +218,7 @@ def self.stage_postgresql
#
def self.link_devkit_with_ruby
devkit_path = File.join(Stage, DevKit.target)
ruby_path = File.join(Stage, Ruby200.rename)
ruby_path = File.join(Stage, Ruby210.rename)
FileUtils.mkdir_p(devkit_path) unless File.directory?(devkit_path)
Dir.chdir(devkit_path) do
File.open("config.yml", "w") do |file|
Expand All @@ -239,8 +239,8 @@ def self.stage_git

def self.stage_gems
section Gems
build_gems(File.join(Stage, Ruby200.rename), Gems.list)
build_gem(File.join(Stage, Ruby200.rename), "pg", {
build_gems(File.join(Stage, Ruby210.rename), Gems.list)
build_gem(File.join(Stage, Ruby210.rename), "pg", {
:args => [
"--",
"--with-pg-include=#{File.join(Stage, "pgsql", "include")}",
Expand All @@ -267,9 +267,9 @@ def self.stage_todo_application
FileUtils.rm_rf(File.join(todo_path, ".git"))
end

gem_install File.join(Stage, Ruby200.rename), "bundler"
gem_install File.join(Stage, Ruby210.rename), "bundler"

ruby_binary("bundle", "bundle", "", File.join(Stage, Ruby200.rename))
ruby_binary("bundle", "bundle", "", File.join(Stage, Ruby210.rename))
end

def self.stage_rails_sample_application
Expand All @@ -278,7 +278,7 @@ def self.stage_rails_sample_application
section Rails
sample = File.join(Stage, "Sites", "sample")
FileUtils.rm_rf(sample) if File.exist?(sample)
ruby_binary("rails", "new", "sample", File.join(Stage, Ruby200.rename))
ruby_binary("rails", "new", "sample", File.join(Stage, Ruby210.rename))
end

# Renders setup scripts to be used post-installation
Expand All @@ -298,7 +298,7 @@ def self.stage_setup_scripts
%w( publickey.bat ).each do |file|
FileUtils.cp(
File.join(RailsInstaller::Scripts, file),
File.join(Stage, Ruby200.rename, "bin", file)
File.join(Stage, Ruby210.rename, "bin", file)
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion resources/railsinstaller/railsinstaller.iss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Name: en; MessagesFile: compiler:Default.isl
[Messages]
en.InstallingLabel=Installing [name], this will take a few minutes...
en.WelcomeLabel1=Welcome to [name]!
en.WelcomeLabel2=This will install [name/ver] on your computer which includes Ruby 2.0.0, Rails 4.1.8, Git, Sqlite3, DevKit, and TinyTDS with FreeTDS. Please close any console applications before continuing.
en.WelcomeLabel2=This will install [name/ver] on your computer which includes Ruby 2.1.5, Rails 4.1.8, Git, Sqlite3, DevKit, and TinyTDS with FreeTDS. Please close any console applications before continuing.
en.WizardLicense={#InstallerName} License Agreement
en.LicenseLabel=
en.LicenseLabel3=Please read the following License Agreements and accept the terms before continuing the installation.
Expand Down

0 comments on commit 02b2dc3

Please sign in to comment.