guerrilla_patch 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.6.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "guerrilla_patch"
8
- s.version = "2.5.0"
8
+ s.version = "2.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["drKreso"]
@@ -45,12 +45,12 @@ module Kernel
45
45
  end
46
46
  end
47
47
 
48
- #add sum to array, with or without name
49
- class Array
50
- def sum(name = nil)
51
- self.map(&name).reduce(0, :+)
52
- end
48
+ #add sum to array, with or without name
49
+ class Array
50
+ def sum(name = nil)
51
+ self.map(&name).reduce(0, :+)
53
52
  end
53
+ end
54
54
 
55
55
  class Hash
56
56
  def negative
@@ -64,6 +64,12 @@ class Fixnum
64
64
  end
65
65
  end
66
66
 
67
+ class Hash
68
+ def sum
69
+ self.each_value.reduce(0,:+)
70
+ end
71
+ end
72
+
67
73
 
68
74
  module Kernel
69
75
  def to_d
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guerrilla_patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70222606349300 !ruby/object:Gem::Requirement
16
+ requirement: &70314487611780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.8.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70222606349300
24
+ version_requirements: *70314487611780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70222606348760 !ruby/object:Gem::Requirement
27
+ requirement: &70314487611240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70222606348760
35
+ version_requirements: *70314487611240
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70222606348220 !ruby/object:Gem::Requirement
38
+ requirement: &70314487610760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70222606348220
46
+ version_requirements: *70314487610760
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &70222606341400 !ruby/object:Gem::Requirement
49
+ requirement: &70314487610280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70222606341400
57
+ version_requirements: *70314487610280
58
58
  description: I am tierd of hunting down monkey patches at large. Caging them inside
59
59
  this gem
60
60
  email: kresimir.bojcic@gmail.com
@@ -95,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: 4371596655333809060
98
+ hash: -4553989195355394569
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements: