Skip to content

Commit

Permalink
Ruby(2.5.5) and RoR setup in place.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasio committed Jul 3, 2019
1 parent 8b44ed5 commit c4003e6
Show file tree
Hide file tree
Showing 8 changed files with 448 additions and 18 deletions.
16 changes: 8 additions & 8 deletions Scripts/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export root=$PWD

export TKD_VERSION="2.4.6-p354"
export TKD_VERSION="2.5.5-p157"
export TKD_HOME_DEV="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"
export TKD_DEPENDENCIES_HOME="$TKD_HOME_DEV/Supplements"
export TKD_DEPENDENCIES_TARBALLS="$TKD_DEPENDENCIES_HOME/tarballs"
Expand All @@ -24,11 +24,11 @@ else
export TKD_RUBY_DEPENDENCIES_PATH="$TKD_DEPENDENCIES_HOME/Versions/current"
fi

export TKD_RUBY_VERSION="2.4.6"
export TKD_RUBY_PATCH_VERSION="p354"
export TKD_RUBY_VERSION="2.5.5"
export TKD_RUBY_PATCH_VERSION="p157"
export TKD_RUBY="$TKD_RUBY_VERSION-$TKD_RUBY_PATCH_VERSION"
export TKD_RUBY_NAMESPACE_TINY="2.4"
export TKD_RUBY_NAMESPACE="2.4.0"
export TKD_RUBY_NAMESPACE_TINY="2.5"
export TKD_RUBY_NAMESPACE="2.5.0"
export TKD_RUBY_ARCH_VERSION="$TKD_ARCH-$TKD_DARWIN_TRUNCATED"

# Extra libraries
Expand Down Expand Up @@ -79,8 +79,8 @@ export TKD_RUBY_OPENSSL_VERSION="1.1.1c"
export TKD_RUBY_LIBRARIES=($TKD_RUBY_ZLIB $TKD_RUBY_LIBFFI $TKD_RUBY_LIBYAML $TKD_RUBY_NCURSES $TKD_RUBY_READLINE $TKD_RUBY_OPENSSL)

export TKD_RUBY_MAJOR=2
export TKD_RUBY_MINOR=4
export TKD_RUBY_TINY=6
export TKD_RUBY_MINOR=5
export TKD_RUBY_TINY=5

export PKG_CONFIG_PATH="$TKD_RUBY_DEPENDENCIES_HOME/pkgconfig:$PKG_CONFIG_PATH";

Expand All @@ -90,7 +90,7 @@ export RUBY_BINARY_PATH="$root/b/dist"
export COMPRESSED_SOURCE_PATH="$root/../compressed"
export BUILD_TOOLS_PATH="/Users/andraswhite/Code/static/builds"

export TKD_RAILS_VERSION="5.2.3"
export TKD_RAILS_VERSION="5.1.7"
export RAILS_GEMFILE="rails-$TKD_RAILS_VERSION";

if [ $TKD_RUBY_MINOR -gt 3 ]; then
Expand Down
31 changes: 31 additions & 0 deletions Supplements/2.5.5/bundle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# Exit cleanly from an early interrupt
Signal.trap("INT") do
Bundler.ui.debug("\n#{caller.join("\n")}") if defined?(Bundler)
exit 1
end

require "bundler"
# Check if an older version of bundler is installed
$LOAD_PATH.each do |path|
next unless path =~ %r{/bundler-0\.(\d+)} && $1.to_i < 9
err = String.new
err << "Looks like you have a version of bundler that's older than 0.9.\n"
err << "Please remove your old versions.\n"
err << "An easy way to do this is by running `gem cleanup bundler`."
abort(err)
end

require "bundler/friendly_errors"
Bundler.with_friendly_errors do
require "bundler/cli"

# Allow any command to use --help flag to show help for that command
help_flags = %w[--help -h]
help_flag_used = ARGV.any? {|a| help_flags.include? a }
args = help_flag_used ? Bundler::CLI.reformatted_help_args(ARGV) : ARGV

Bundler::CLI.start(args, :debug => true)
end
24 changes: 24 additions & 0 deletions Supplements/2.5.5/gem
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'

required_version = Gem::Requirement.new ">= 1.8.7"

unless required_version.satisfied_by? Gem.ruby_version
abort "Expected Ruby version #{required_version}, is #{Gem.ruby_version}"
end

args = ARGV.clone

begin
Gem::GemRunner.new.run args
rescue Gem::SystemExitException => e
exit e.exit_code
end
Loading

0 comments on commit c4003e6

Please sign in to comment.