backports 3.6.2 → 3.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bb32545170e25b4326deea036ff2ecde37291dd0
4
+ data.tar.gz: 555fa7791f6510224afea6fe96c4d21b9d7b5117
5
+ SHA512:
6
+ metadata.gz: 8fe397d00b446e9edda50e7183dd19912cb7f03cf6952328526dc6511a3aa29c039378ca6e83471c3321894115a67e2a23b85051d3596e9ce0de378f200f408d
7
+ data.tar.gz: 53e1ae0e675b281d5a15818a7458cc3f82885c50fc99b4652c012aafcccd8c463d2ff58c8e2d591f9ff7bf8f0963c0cd261ae689412d8ea760a9a3f7ecfabe2d
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- backports (3.6.1)
10
+ backports (3.6.3)
11
11
 
12
12
  GEM
13
13
  remote: http://rubygems.org/
@@ -30,7 +30,8 @@ unless String.method_defined? :byteslice
30
30
  # Actual implementation:
31
31
  str = unpack("@#{start}a#{len}").first
32
32
  str = dup.replace(str) unless self.instance_of?(String) # Must return subclass
33
- str.force_encoding(encoding)
33
+ str.force_encoding(encoding) if respond_to?(:encoding)
34
+ str
34
35
  end
35
36
  end
36
37
  end
@@ -1,3 +1,3 @@
1
1
  module Backports
2
- VERSION = "3.6.2" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
2
+ VERSION = "3.6.3" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
3
  end
metadata CHANGED
@@ -1,38 +1,28 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: backports
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease:
6
- segments:
7
- - 3
8
- - 6
9
- - 2
10
- version: 3.6.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.6.3
11
5
  platform: ruby
12
- authors:
13
- - "Marc-Andr\xC3\xA9 Lafortune"
6
+ authors:
7
+ - Marc-André Lafortune
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2014-10-04 00:00:00 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
- description: Essential backports that enable many of the nice features of Ruby 1.8.7 up to 2.1.0 for earlier versions.
22
- email:
13
+ description: Essential backports that enable many of the nice features of Ruby 1.8.7
14
+ up to 2.1.0 for earlier versions.
15
+ email:
23
16
  - github@marc-andre.ca
24
17
  executables: []
25
-
26
18
  extensions: []
27
-
28
19
  extra_rdoc_files: []
29
-
30
- files:
31
- - .document
32
- - .gitignore
33
- - .gitmodules
34
- - .irbrc
35
- - .travis.yml
20
+ files:
21
+ - ".document"
22
+ - ".gitignore"
23
+ - ".gitmodules"
24
+ - ".irbrc"
25
+ - ".travis.yml"
36
26
  - CHANGELOG.rdoc
37
27
  - Gemfile
38
28
  - Gemfile.lock
@@ -563,38 +553,28 @@ files:
563
553
  - test/test_helper.rb
564
554
  homepage: http://github.com/marcandre/backports
565
555
  licenses: []
566
-
556
+ metadata: {}
567
557
  post_install_message:
568
558
  rdoc_options: []
569
-
570
- require_paths:
559
+ require_paths:
571
560
  - lib
572
- required_ruby_version: !ruby/object:Gem::Requirement
573
- none: false
574
- requirements:
561
+ required_ruby_version: !ruby/object:Gem::Requirement
562
+ requirements:
575
563
  - - ">="
576
- - !ruby/object:Gem::Version
577
- hash: 3
578
- segments:
579
- - 0
580
- version: "0"
581
- required_rubygems_version: !ruby/object:Gem::Requirement
582
- none: false
583
- requirements:
564
+ - !ruby/object:Gem::Version
565
+ version: '0'
566
+ required_rubygems_version: !ruby/object:Gem::Requirement
567
+ requirements:
584
568
  - - ">="
585
- - !ruby/object:Gem::Version
586
- hash: 3
587
- segments:
588
- - 0
589
- version: "0"
569
+ - !ruby/object:Gem::Version
570
+ version: '0'
590
571
  requirements: []
591
-
592
572
  rubyforge_project:
593
- rubygems_version: 1.8.25
573
+ rubygems_version: 2.2.2
594
574
  signing_key:
595
- specification_version: 3
575
+ specification_version: 4
596
576
  summary: Backports of Ruby features for older Ruby.
597
- test_files:
577
+ test_files:
598
578
  - spec/tags/1.8.6/core/argf/each_line_spec.rb
599
579
  - spec/tags/1.8.6/core/argf/each_spec.rb
600
580
  - spec/tags/1.8.6/core/argf/lines_spec.rb