Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Sender

http://rubygems.org/gems/core-source
http://rubygems.org/gems/core_source

== DESCRIPTION:

Expand All @@ -10,7 +10,7 @@ core source.

This fork was created because the existing ruby_core_source takes over
the build definition, preventing definition of CFLAGS and other settings
that mkmf requires be defined by an enclosing block.
that mkmf requires be defined by an enclosing block.

== INSTALL:

Expand Down
Binary file removed core-source-0.2.6.gem
Binary file not shown.
11 changes: 5 additions & 6 deletions core-source.gemspec → core_source.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ require 'date'

Gem::Specification.new do |spec|

spec.name = 'core-source'
spec.rubyforge_project = 'core-source'
spec.version = '0.2.7'
spec.name = 'core_source'
spec.version = '0.2.9'

spec.summary = "Fork of ruby_core_source modified to support CFLAGS and permit use of whichever build system (mkmf, rpmkmf, or other modules) while utilizing core source."
spec.description = "Fork of ruby_core_source modified to support CFLAGS and permit use of whichever build system (mkmf, rpmkmf, or other modules) while utilizing core source. This fork was created because the existing ruby_core_source takes over the build definition, preventing definition of CFLAGS and other settings that mkmf requires be defined by an enclosing block."

spec.authors = [ 'Asher' ]
spec.email = 'asher@ridiculouspower.com'
spec.homepage = 'http://rubygems.org/gems/core-source'
spec.authors = [ 'Jarod Reid' ]
spec.email = 'jarod@solidalchemy.com'
spec.homepage = 'http://github.com/fugufish/core-source'

spec.add_dependency 'minitar'

Expand Down
13 changes: 12 additions & 1 deletion lib/core-source.rb → lib/core_source.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
if RUBY_VERSION.to_f < 1.9
def require_relative(file)
require File.expand_path('../' + file, __FILE__)
end
end


require_relative 'contrib/uri_ext.rb'
require_relative 'contrib/progressbar.rb'
Expand Down Expand Up @@ -32,10 +38,15 @@ def ensure_core_headers( headers )
ruby_dir = "ruby-" + RUBY_VERSION.to_s + "-p" + RUBY_PATCHLEVEL.to_s
end

version_path = '1.8' if RUBY_VERSION.to_f >= 1.8
version_path = '1.9' if RUBY_VERSION.to_f >= 1.9
version_path = '2.0' if RUBY_VERSION.to_f >= 2.0


#
# Download the headers
#
uri_path = "http://ftp.ruby-lang.org/pub/ruby/1.9/" + ruby_dir + ".tar.gz"
uri_path = "http://ftp.ruby-lang.org/pub/ruby/#{version_path}/" + ruby_dir + ".tar.gz"
Tempfile.open("ruby-src") { |temp|

temp.binmode
Expand Down