Commit 9336f8b8 authored by Christian Hofstaedtler's avatar Christian Hofstaedtler

Merge tag 'upstream/3.6.8'

Upstream version 3.6.8
parents 36f01361 77a34b7d
......@@ -7,7 +7,7 @@ GIT
PATH
remote: .
specs:
backports (3.6.6)
backports (3.6.8)
GEM
remote: http://rubygems.org/
......
= Backports Library {<img src="https://travis-ci.org/marcandre/backports.png?branch=master">}[https://travis-ci.org/marcandre/backports] {<img src="https://badge.fury.io/rb/backports.png" alt="Gem Version" />}[http://badge.fury.io/rb/backports] {<img alt='Click here to lend your support to: Ruby Backports and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/19510.png?skin_name=chrome' border='0'}[http://www.pledgie.com/campaigns/19510]
= Backports Library {<img src="https://travis-ci.org/marcandre/backports.png?branch=master">}[https://travis-ci.org/marcandre/backports] {<img src="https://badge.fury.io/rb/backports.png" alt="Gem Version" />}[http://badge.fury.io/rb/backports] {<img alt='Click here to lend your support to: Ruby Backports and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/19510.png?skin_name=chrome' border='0'>}[http://www.pledgie.com/campaigns/19510]
* Yearning to use some of the new cool features in Ruby 2.0.0 while using 1.8.6?
* One of your client is stuck with Ruby 1.8.6 but you want to use a gem using some features of 1.8.7?
......
This diff is collapsed.
......@@ -16,7 +16,7 @@ unless Range.method_defined? :bsearch
result, = [nb.abs].pack(pk).unpack(unpk)
nb < 0 ? -result : result
end
from = map['D', 'q', to.to_f]
from = map['D', 'q', from.to_f]
to = map['D', 'q', to.to_f]
convert = Proc.new{ map['q', 'D', midpoint] }
end
......
module Backports
VERSION = "3.6.6" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
VERSION = "3.6.8" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
end
......@@ -35,14 +35,14 @@ class AAA_TestBackportGuards < Test::Unit::TestCase
EXCLUDE.map!(&:to_sym) if instance_methods.first.is_a?(Symbol)
# For some very strange reason, Hash[kvp.flatten] doesn't always work in 1.8.6??
def hash(key_value_pairs)
def to_hash(key_value_pairs)
h = {}
key_value_pairs.each{|k,v| h[k] = v}
h
end
def class_signature(klass)
hash(
to_hash(
(klass.instance_methods - EXCLUDE).map{|m| [m, klass.instance_method(m)] } +
(klass.methods - EXCLUDE).map{|m| [".#{m}", klass.method(m) ]}
)
......@@ -62,7 +62,7 @@ class AAA_TestBackportGuards < Test::Unit::TestCase
end
def digest
hash(
to_hash(
CLASSES.map { |klass| [klass, class_signature(klass)] }
)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment