backports 3.3.4 → 3.3.5

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/Rakefile CHANGED
@@ -11,6 +11,7 @@ Rake::TestTask.new(:test) do |test|
11
11
  test.verbose = false
12
12
  end
13
13
 
14
+ desc "Run specs, where path can be '*/*' (default), 'class/*' or 'class/method'."
14
15
  task :spec, :path, :action do |t, args|
15
16
  args.with_defaults(:path => '*/*', :action => 'ci')
16
17
  stats = [[0] * 5]
@@ -6,7 +6,8 @@ unless [1,2].uniq{}.size == 1
6
6
  return uniq_without_block unless block_given?
7
7
  h = {}
8
8
  each do |elem|
9
- h[yield(elem)] ||= elem
9
+ key = yield(elem)
10
+ h[key] = elem unless h.has_key?(key)
10
11
  end
11
12
  h.values
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module Backports
2
- VERSION = "3.3.4" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
2
+ VERSION = "3.3.5" unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.4
4
+ version: 3.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-16 00:00:00.000000000 Z
12
+ date: 2013-10-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Essential backports that enable many of the nice features of Ruby 1.8.7
15
15
  up to 2.0.0 for earlier versions.
@@ -525,18 +525,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
525
525
  - - ! '>='
526
526
  - !ruby/object:Gem::Version
527
527
  version: '0'
528
- segments:
529
- - 0
530
- hash: 1271304744120870496
531
528
  required_rubygems_version: !ruby/object:Gem::Requirement
532
529
  none: false
533
530
  requirements:
534
531
  - - ! '>='
535
532
  - !ruby/object:Gem::Version
536
533
  version: '0'
537
- segments:
538
- - 0
539
- hash: 1271304744120870496
540
534
  requirements: []
541
535
  rubyforge_project:
542
536
  rubygems_version: 1.8.25
@@ -645,3 +639,4 @@ test_files:
645
639
  - test/lazy_test.rb
646
640
  - test/socket_interaction_test.rb
647
641
  - test/test_helper.rb
642
+ has_rdoc: