backports 3.10.0 → 3.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57fb341f28684c6358b9c1c5f65a0524bd24c3d3
4
- data.tar.gz: f3299e7676fbbdb9f8d58336b4c930553713cd48
3
+ metadata.gz: 5857d4ceeea11e877662a099241801ff7e8e922e
4
+ data.tar.gz: 540d8bab4f8f7721cff19975920f2246960b7954
5
5
  SHA512:
6
- metadata.gz: cfd754b5f4b85b4852bede115f9b2955d7b48f6588621492169679f329646c55044b9b51e8de91633fc690747f57545dc9079bd3daa94bbf06545389ab149704
7
- data.tar.gz: de1f1211ea9454930e44a79241b88e720cf4a1adaae2f7f8dbc0d678c90b1964ba98d363c82bd57583931f297bf3004b0d47c9a1ff00cc958c95ac3291c0a965
6
+ metadata.gz: 408fe4d9d1fd49cbbac29bf983b444855a7835a4d0480241938e5cb814d8fb84049fa79463f4a00322f09847b5dc62ce872de8b08dad03c3f5091dba335790ea
7
+ data.tar.gz: 9c0f9616dd2ea8829a0ed08d1ee9ecb81c09bd7d49d19f7fd24c2577d0bb6a9ea167ca2bd79bc31ee633964dbc94eebc4bbe235f778c034360fa91fa1cedacf8
data/Gemfile CHANGED
@@ -9,9 +9,9 @@ gemspec
9
9
  group :test do
10
10
  gem "rake"
11
11
  gem 'mspec'
12
- gem 'activesupport'
12
+ gem 'activesupport', '~>3.2.0'
13
13
  gem 'minitest', '< 5.0.0', :require => false
14
- gem 'test-unit'
14
+ gem 'test-unit', '~>2.1.1.0'
15
15
  end
16
16
 
17
17
  # Declare any dependencies that are still in development here instead of in
@@ -10,6 +10,9 @@ class Hash
10
10
 
11
11
  def transform_values!
12
12
  return to_enum(:transform_values!){ size } unless block_given?
13
- replace(transform_values{|i| yield i})
13
+ reject!{} if frozen? # Force error triggerring if frozen, in case of empty array
14
+ each do |key, value|
15
+ self[key] = yield value
16
+ end
14
17
  end unless method_defined? :transform_values!
15
18
  end
@@ -1,3 +1,3 @@
1
1
  module Backports
2
- VERSION = "3.10.0" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
2
+ VERSION = "3.10.1" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.0
4
+ version: 3.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-11 00:00:00.000000000 Z
11
+ date: 2017-10-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Essential backports that enable many of the nice features of Ruby 1.8.7
14
14
  up to 2.1.0 for earlier versions.
@@ -18,11 +18,11 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - .document
22
- - .gitignore
23
- - .gitmodules
24
- - .irbrc
25
- - .travis.yml
21
+ - ".document"
22
+ - ".gitignore"
23
+ - ".gitmodules"
24
+ - ".irbrc"
25
+ - ".travis.yml"
26
26
  - CHANGELOG.rdoc
27
27
  - Gemfile
28
28
  - LICENSE.txt
@@ -771,17 +771,17 @@ require_paths:
771
771
  - lib
772
772
  required_ruby_version: !ruby/object:Gem::Requirement
773
773
  requirements:
774
- - - '>='
774
+ - - ">="
775
775
  - !ruby/object:Gem::Version
776
776
  version: '0'
777
777
  required_rubygems_version: !ruby/object:Gem::Requirement
778
778
  requirements:
779
- - - '>='
779
+ - - ">="
780
780
  - !ruby/object:Gem::Version
781
781
  version: '0'
782
782
  requirements: []
783
783
  rubyforge_project:
784
- rubygems_version: 2.4.8
784
+ rubygems_version: 2.6.13
785
785
  signing_key:
786
786
  specification_version: 4
787
787
  summary: Backports of Ruby features for older Ruby.