Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rake-compiler/rake-compiler
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.2
Choose a base ref
...
head repository: rake-compiler/rake-compiler
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.9.3
Choose a head ref
  • 12 commits
  • 6 files changed
  • 3 contributors

Commits on Feb 15, 2014

  1. Remove whitespace

    luislavena committed Feb 15, 2014
    Copy the full SHA
    8f0cbd5 View commit details
  2. Use 'cache.ruby-lang.org' for downloads

    Rely on CDN instead of direct access to Ruby-Lang FTP mapping and
    take advance of some speedups.
    luislavena committed Feb 15, 2014
    Copy the full SHA
    19ccfbc View commit details
  3. Update extconf example in README. Closes #84

    The example now shows a default and complete `extconf.rb` for
    users to copy & paste.
    
    It now states that these two lines (require and create_makefile)
    are needed for the extension compilation to work.
    luislavena committed Feb 15, 2014

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    512f51a View commit details

Commits on Aug 2, 2014

  1. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    79eff4d View commit details

Commits on Aug 3, 2014

  1. Copy the full SHA
    a1258a1 View commit details
  2. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    465c6a6 View commit details
  3. Merge pull request #94 from hggh/ruby21

    added configuration for Ruby 2.1 support in spec
    luislavena committed Aug 3, 2014

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    cf69cb7 View commit details
  4. Copy the full SHA
    d0a1eb8 View commit details
  5. Copy the full SHA
    5efb53c View commit details
  6. Copy the full SHA
    4d96b84 View commit details
  7. Prepare for release

    luislavena committed Aug 3, 2014
    Copy the full SHA
    adbf5af View commit details
  8. Forgot to bump version

    [ci skip]
    luislavena committed Aug 3, 2014
    Copy the full SHA
    aaed621 View commit details
Showing with 53 additions and 28 deletions.
  1. +11 −3 .travis.yml
  2. +6 −0 History.txt
  3. +2 −1 README.rdoc
  4. +31 −21 spec/lib/rake/extensiontask_spec.rb
  5. +2 −2 tasks/bin/cross-ruby.rake
  6. +1 −1 tasks/gem.rake
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -5,10 +5,18 @@ rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.2
- ruby-head
env:
- RUBYGEMS_VERSION=1.8.25
- RUBYGEMS_VERSION=2.0.3
- RUBYGEMS_VERSION=1.8.29
- RUBYGEMS_VERSION=2.0.14
- RUBYGEMS_VERSION=2.2.2
- RUBYGEMS_VERSION=2.4.1
matrix:
exclude:
- rvm: 2.0.0
env: RUBYGEMS_VERSION=1.8.25
env: RUBYGEMS_VERSION=1.8.29
- rvm: 2.1.2
env: RUBYGEMS_VERSION=1.8.29
- rvm: ruby-head
env: RUBYGEMS_VERSION=1.8.29
6 changes: 6 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
=== 0.9.3 / 2014-08-03

* Bugfixes:
* Fix specs to run (and pass) on Ruby 2.1 and beyond.
Pull #94 [hggh]

=== 0.9.2 / 2013-11-14

* Bugfixes:
3 changes: 2 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
@@ -71,7 +71,8 @@ to tell it to use rake-compiler to build your extension:

# File: extconf.rb

# this line should already exist
# these lines must exist already
require 'mkmf'
create_makefile('hello_world')


52 changes: 31 additions & 21 deletions spec/lib/rake/extensiontask_spec.rb
Original file line number Diff line number Diff line change
@@ -340,7 +340,7 @@

it 'should allow usage of RUBY_CC_VERSION to indicate a different version of ruby' do
config = mock(Hash)
config.should_receive(:[]).with("rbconfig-i386-mingw32-1.9.1").and_return('/path/to/ruby/1.9.1/rbconfig.rb')
config.should_receive(:[]).with("rbconfig-i386-mingw32-1.9.1").and_return('/rubies/1.9.1/rbconfig.rb')
YAML.stub!(:load_file).and_return(config)

ENV['RUBY_CC_VERSION'] = '1.9.1'
@@ -351,8 +351,8 @@

it 'should allow multiple versions be supplied to RUBY_CC_VERSION' do
config = mock(Hash)
config.should_receive(:[]).once.with("rbconfig-i386-mingw32-1.8.6").and_return('/path/to/ruby/1.8.6/rbconfig.rb')
config.should_receive(:[]).once.with("rbconfig-i386-mingw32-1.9.1").and_return('/path/to/ruby/1.9.1/rbconfig.rb')
config.should_receive(:[]).once.with("rbconfig-i386-mingw32-1.8.6").and_return('/rubies/1.8.6/rbconfig.rb')
config.should_receive(:[]).once.with("rbconfig-i386-mingw32-1.9.1").and_return('/rubies/1.9.1/rbconfig.rb')
YAML.stub!(:load_file).and_return(config)

ENV['RUBY_CC_VERSION'] = '1.8.6:1.9.1'
@@ -368,7 +368,7 @@
context "(cross compile for multiple versions)" do
before :each do
config = mock(Hash)
config.stub!(:[]).and_return('/path/to/ruby/1.8.6/rbconfig.rb', '/path/to/ruby/1.9.1/rbconfig.rb')
config.stub!(:[]).and_return('/rubies/1.8.6/rbconfig.rb', '/rubies/1.9.1/rbconfig.rb')
YAML.stub!(:load_file).and_return(config)

ENV['RUBY_CC_VERSION'] = '1.8.6:1.9.1'
@@ -475,24 +475,34 @@ def mock_gem_spec(stubs = {})
end

def mock_config_yml
{
'rbconfig-i386-mingw32-1.8.6' => '/some/path/version/1.8/to/rbconfig.rb',
'rbconfig-universal-unknown-1.8.6' => '/some/path/version/1.8/to/rbconfig.rb',
'rbconfig-i386-mingw32-1.8.7' => '/some/path/version/1.8/to/rbconfig.rb',
'rbconfig-universal-known-1.8.7' => '/some/path/version/1.8/to/rbconfig.rb',
'rbconfig-universal-unknown-1.8.7' => '/some/path/version/1.8/to/rbconfig.rb',
'rbconfig-universal-unknown-1.9.1' => '/some/path/version/1.9.1/to/rbconfig.rb',
'rbconfig-universal-unknown-1.9.2' => '/some/path/version/1.9.1/to/rbconfig.rb',
'rbconfig-universal-unknown-1.9.3' => '/some/path/version/1.9.1/to/rbconfig.rb',
'rbconfig-i386-mingw32-1.9.3' => '/some/path/version/1.9.1/to/rbconfig.rb',
'rbconfig-universal-known-1.9.3' => '/some/path/version/1.9.1/to/rbconfig.rb',
'rbconfig-universal-known-2.0.0' => '/some/path/version/2.0.0/to/rbconfig.rb',
'rbconfig-universal-unknown-1.9.3' => '/some/path/version/1.9.1/to/rbconfig.rb',
'rbconfig-universal-unknown-2.0.0' => '/some/path/version/2.0.0/to/rbconfig.rb',
'rbconfig-i386-mingw32-2.0.0' => '/some/path/version/2.0.0/to/rbconfig.rb',
'rbconfig-x64-mingw32-2.0.0' => '/some/path/version/2.0.0/to/rbconfig.rb',
'rbconfig-x64-mingw32-3.0.0' => '/some/fake/version/3.0.0/to/rbconfig.rb'
return @mock_config_yml if @mock_config_yml

versions = {
"1.8.6" => "1.8",
"1.8.7" => "1.8",
"1.9.3" => "1.9.1",
"2.0.0" => "2.0.0",
"2.1.2" => "2.1.0",
RUBY_VERSION => RbConfig::CONFIG["ruby_version"]
}

platforms = [
"i386-mingw32",
"universal-known",
"universal-unknown",
"x64-mingw32",
RUBY_PLATFORM
]

@mock_config_yml = {}

platforms.collect do |platform|
versions.each do |version, api_version|
@mock_config_yml["rbconfig-#{platform}-#{version}"] = "/rubies/#{api_version}/rbconfig.rb"
end
end

@mock_config_yml
end

def mock_fake_rb
4 changes: 2 additions & 2 deletions tasks/bin/cross-ruby.rake
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
# http://eigenclass.org/hiki/cross+compiling+rcovrt
#
# This recipe only cleanup the dependency chain and automate it.
# Also opens the door to usage different ruby versions
# Also opens the door to usage different ruby versions
# for cross-compilation.
#

@@ -79,7 +79,7 @@ file "#{USER_HOME}/sources/#{RUBY_CC_VERSION}.tar.bz2" => ["#{USER_HOME}/sources
if RUBY_SOURCE
url = RUBY_SOURCE
else
url = "http://ftp.ruby-lang.org/pub/ruby/#{MAJOR}/#{File.basename(t.name)}"
url = "http://cache.ruby-lang.org/pub/ruby/#{MAJOR}/#{File.basename(t.name)}"
end
sh "wget #{url} || curl -O #{url}"
end
2 changes: 1 addition & 1 deletion tasks/gem.rake
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ require 'rubygems/package_task'
GEM_SPEC = Gem::Specification.new do |s|
# basic information
s.name = "rake-compiler"
s.version = "0.9.2"
s.version = "0.9.3"
s.platform = Gem::Platform::RUBY

# description and details