Skip to content

Commit

Permalink
Bump version to 20141213
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Dec 13, 2014
1 parent ee84be4 commit 89bbc29
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
16 changes: 8 additions & 8 deletions TUTORIAL-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion TUTORIAL-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
12 changes: 6 additions & 6 deletions TUTORIAL-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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 `<PACKAGE DIR>/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 `<PACKAGE DIR>/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 ../../../..
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 89bbc29

Please sign in to comment.