diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e538e7..94d635e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ -## Next version +## Version 20141213 * Further removed unnecessary files. The Ruby binary packages were about 10 MB before. They are now about 6 MB. + * Supports native extensions. ## Version 20141209 diff --git a/TUTORIAL-1.md b/TUTORIAL-1.md index 68ef3a5..c24c1be 100644 --- a/TUTORIAL-1.md +++ b/TUTORIAL-1.md @@ -32,18 +32,18 @@ The next step is to prepare packages for all the target platforms, by creating a $ mkdir -p hello-1.0.0-osx/lib/app/ $ cp hello.rb hello-1.0.0-osx/lib/app/ -Next, create a `packaging` directory and download Traveling Ruby binaries for each platform into that directory. Then extract these binaries into each packaging directory. You can find a list of binaries at [the Traveling Ruby Amazon S3 bucket](http://traveling-ruby.s3-us-west-2.amazonaws.com/list.html). For faster download times, use the CloudFront domain "http://d6r77u77i8pq3.cloudfront.net". In this tutorial we're extracting version 20141209. +Next, create a `packaging` directory and download Traveling Ruby binaries for each platform into that directory. Then extract these binaries into each packaging directory. You can find a list of binaries at [the Traveling Ruby Amazon S3 bucket](http://traveling-ruby.s3-us-west-2.amazonaws.com/list.html). For faster download times, use the CloudFront domain "http://d6r77u77i8pq3.cloudfront.net". In this tutorial we're extracting version 20141213-2.1.5. $ mkdir packaging $ cd packaging - $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-20141209-2.1.5-linux-x86.tar.gz - $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-20141209-2.1.5-linux-x86_64.tar.gz - $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-20141209-2.1.5-osx.tar.gz + $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-20141213-2.1.5-linux-x86.tar.gz + $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-20141213-2.1.5-linux-x86_64.tar.gz + $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-20141213-2.1.5-osx.tar.gz $ cd .. - $ mkdir hello-1.0.0-linux-x86/lib/ruby && tar -xzf packaging/traveling-ruby-20141209-2.1.5-linux-x86.tar.gz -C hello-1.0.0-linux-x86/lib/ruby - $ mkdir hello-1.0.0-linux-x86_64/lib/ruby && tar -xzf packaging/traveling-ruby-20141209-2.1.5-linux-x86_64.tar.gz -C hello-1.0.0-linux-x86_64/lib/ruby - $ mkdir hello-1.0.0-osx/lib/ruby && tar -xzf packaging/traveling-ruby-20141209-2.1.5-osx.tar.gz -C hello-1.0.0-osx/lib/ruby + $ mkdir hello-1.0.0-linux-x86/lib/ruby && tar -xzf packaging/traveling-ruby-20141213-2.1.5-linux-x86.tar.gz -C hello-1.0.0-linux-x86/lib/ruby + $ mkdir hello-1.0.0-linux-x86_64/lib/ruby && tar -xzf packaging/traveling-ruby-20141213-2.1.5-linux-x86_64.tar.gz -C hello-1.0.0-linux-x86_64/lib/ruby + $ mkdir hello-1.0.0-osx/lib/ruby && tar -xzf packaging/traveling-ruby-20141213-2.1.5-osx.tar.gz -C hello-1.0.0-osx/lib/ruby Now, each package directory will have Ruby binaries included. It looks like this: Your directory structure will now look like this: @@ -137,7 +137,7 @@ Going through all of the above steps on every release is a hassle, so you should PACKAGE_NAME = "hello" VERSION = "1.0.0" - TRAVELING_RUBY_VERSION = "20141209-2.1.5" + TRAVELING_RUBY_VERSION = "20141213-2.1.5" desc "Package your app" task :package => ['package:linux:x86', 'package:linux:x86_64', 'package:osx'] diff --git a/TUTORIAL-2.md b/TUTORIAL-2.md index e177b6f..cf74ce5 100644 --- a/TUTORIAL-2.md +++ b/TUTORIAL-2.md @@ -144,7 +144,7 @@ We update the Rakefile so that all of the above steps are automated by running ` PACKAGE_NAME = "hello" VERSION = "1.0.0" - TRAVELING_RUBY_VERSION = "20141206-2.1.5" + TRAVELING_RUBY_VERSION = "20141213-2.1.5" desc "Package your app" task :package => ['package:linux:x86', 'package:linux:x86_64', 'package:osx'] diff --git a/TUTORIAL-3.md b/TUTORIAL-3.md index 35b6fdf..a9fb2c0 100644 --- a/TUTORIAL-3.md +++ b/TUTORIAL-3.md @@ -10,7 +10,7 @@ So instead, the Traveling Ruby project supplies a number of precompiled native e Suppose that we want our hello world app from tutorial 2 to insert a row into an SQLite database file. We'll want to use the sqlite3 gem for that. -Traveling Ruby provides a specific version of the sqlite3 gem. See [the Traveling Ruby Amazon S3 bucket](http://traveling-ruby.s3-us-west-2.amazonaws.com/list.html). For version 20141209, version 1.3.9 is supplied. So we add the following to our Gemfile: +Traveling Ruby provides a specific version of the sqlite3 gem. See [the Traveling Ruby Amazon S3 bucket](http://traveling-ruby.s3-us-west-2.amazonaws.com/list.html). For version 20141213-2.1.5, version 1.3.9 is supplied. So we add the following to our Gemfile: gem 'sqlite3', '1.3.9' @@ -60,22 +60,22 @@ Now you are ready to drop platform-specific native extensions inside the package $ rake package DIR_ONLY=1 -Next you must download the necessary native extensions, and extract them into `/lib/vendor`. You can find native extensions at [the Traveling Ruby Amazon S3 bucket](http://traveling-ruby.s3-us-west-2.amazonaws.com/list.html). Suppose that you're using Traveling Ruby version 20141209, which supplies sqlite3 version 1.3.9. Download and extract the precompiled binaries as follows. Remember that we're using CloudFront domain "http://d6r77u77i8pq3.cloudfront.net" to speed up downloads. +Next you must download the necessary native extensions, and extract them into `/lib/vendor`. You can find native extensions at [the Traveling Ruby Amazon S3 bucket](http://traveling-ruby.s3-us-west-2.amazonaws.com/list.html). Suppose that you're using Traveling Ruby version 20141213-2.1.5, which supplies sqlite3 version 1.3.9. Download and extract the precompiled binaries as follows. Remember that we're using CloudFront domain "http://d6r77u77i8pq3.cloudfront.net" to speed up downloads. $ cd hello-1.0.0-linux-x86/lib/vendor/ruby - $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-gems-20141209-2.1.5-linux-x86/sqlite3-1.3.9.tar.gz + $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-gems-20141213-2.1.5-linux-x86/sqlite3-1.3.9.tar.gz $ tar xzf sqlite3-1.3.9.tar.gz $ rm sqlite3-1.3.9.tar.gz $ cd ../../../.. $ cd hello-1.0.0-linux-x86_64/lib/vendor/ruby - $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-gems-20141209-2.1.5-linux-x86_64/sqlite3-1.3.9.tar.gz + $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-gems-20141213-2.1.5-linux-x86_64/sqlite3-1.3.9.tar.gz $ tar xzf sqlite3-1.3.9.tar.gz $ rm sqlite3-1.3.9.tar.gz $ cd ../../../.. $ cd hello-1.0.0-osx/lib/vendor/ruby - $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-gems-20141209-2.1.5-osx/sqlite3-1.3.9.tar.gz + $ curl -L -O --fail http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-gems-20141213-2.1.5-osx/sqlite3-1.3.9.tar.gz $ tar xzf sqlite3-1.3.9.tar.gz $ rm sqlite3-1.3.9.tar.gz $ cd ../../../.. @@ -112,7 +112,7 @@ We update the Rakefile so that all of the above steps are automated by running ` PACKAGE_NAME = "hello" VERSION = "1.0.0" - TRAVELING_RUBY_VERSION = "20141209-2.1.5" + TRAVELING_RUBY_VERSION = "20141213-2.1.5" SQLITE3_VERSION = "1.3.9" # Must match Gemfile desc "Package your app"