backports 3.3.1 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/backports/1.9.1/math/log.rb +3 -5
- data/lib/backports/version.rb +1 -1
- metadata +23 -40
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
unless (Math.log(2, 2) rescue false)
|
2
|
-
|
3
|
-
class << Math
|
4
|
-
require 'backports/tools'
|
2
|
+
require 'backports/tools'
|
5
3
|
|
4
|
+
class << Math
|
5
|
+
# Standard in Ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/Math.html]
|
6
6
|
def log_with_optional_base(numeric, base = Backports::Undefined)
|
7
7
|
if base.equal?(Backports::Undefined)
|
8
8
|
# Math.log(n) in 1.9.1 no longer accepts string arguments as it
|
@@ -16,7 +16,5 @@ unless (Math.log(2, 2) rescue false)
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
Backports.alias_method_chain self, :log, :optional_base
|
19
|
-
|
20
|
-
# Standard in Ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/Math.html]
|
21
19
|
end
|
22
20
|
end
|
data/lib/backports/version.rb
CHANGED
metadata
CHANGED
@@ -1,33 +1,24 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: backports
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.3.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 3
|
9
|
-
- 1
|
10
|
-
version: 3.3.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
7
|
+
authors:
|
8
|
+
- Marc-André Lafortune
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2013-05-22 00:00:00 Z
|
12
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
|
22
|
-
email:
|
14
|
+
description: Essential backports that enable many of the nice features of Ruby 1.8.7
|
15
|
+
up to 2.0.0 for earlier versions.
|
16
|
+
email:
|
23
17
|
- github@marc-andre.ca
|
24
18
|
executables: []
|
25
|
-
|
26
19
|
extensions: []
|
27
|
-
|
28
20
|
extra_rdoc_files: []
|
29
|
-
|
30
|
-
files:
|
21
|
+
files:
|
31
22
|
- .document
|
32
23
|
- .gitignore
|
33
24
|
- .gitmodules
|
@@ -522,40 +513,32 @@ files:
|
|
522
513
|
- test/test_helper.rb
|
523
514
|
homepage: http://github.com/marcandre/backports
|
524
515
|
licenses: []
|
525
|
-
|
526
516
|
post_install_message:
|
527
517
|
rdoc_options: []
|
528
|
-
|
529
|
-
require_paths:
|
518
|
+
require_paths:
|
530
519
|
- lib
|
531
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
520
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
532
521
|
none: false
|
533
|
-
requirements:
|
534
|
-
- -
|
535
|
-
- !ruby/object:Gem::Version
|
536
|
-
|
537
|
-
|
538
|
-
- 0
|
539
|
-
version: "0"
|
540
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
522
|
+
requirements:
|
523
|
+
- - ! '>='
|
524
|
+
- !ruby/object:Gem::Version
|
525
|
+
version: '0'
|
526
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
541
527
|
none: false
|
542
|
-
requirements:
|
543
|
-
- -
|
544
|
-
- !ruby/object:Gem::Version
|
545
|
-
|
546
|
-
segments:
|
547
|
-
- 0
|
548
|
-
version: "0"
|
528
|
+
requirements:
|
529
|
+
- - ! '>='
|
530
|
+
- !ruby/object:Gem::Version
|
531
|
+
version: '0'
|
549
532
|
requirements: []
|
550
|
-
|
551
533
|
rubyforge_project:
|
552
534
|
rubygems_version: 1.8.25
|
553
535
|
signing_key:
|
554
536
|
specification_version: 3
|
555
537
|
summary: Backports of Ruby features for older Ruby.
|
556
|
-
test_files:
|
538
|
+
test_files:
|
557
539
|
- test/README
|
558
540
|
- test/_backport_guards_test.rb
|
559
541
|
- test/lazy_test.rb
|
560
542
|
- test/socket_interaction_test.rb
|
561
543
|
- test/test_helper.rb
|
544
|
+
has_rdoc:
|