each-with-logging 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{each-with-logging}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["hitode909"]
@@ -2,7 +2,7 @@ module Enumerable
2
2
  def each_with_logging(logger = nil)
3
3
  len = self.length
4
4
  self.each_with_index{|value, index|
5
- message = "#{caller[3]} #{index+1} / #{len}"
5
+ message = "#{caller[-2]} #{index+1} / #{len}"
6
6
  logger.respond_to?(:debug) ? logger.debug(message) : warn(message)
7
7
  yield value
8
8
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: each-with-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &2153379940 !ruby/object:Gem::Requirement
17
+ requirement: &2156307620 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.3.0
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *2153379940
25
+ version_requirements: *2156307620
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &2153377860 !ruby/object:Gem::Requirement
28
+ requirement: &2156300780 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2153377860
36
+ version_requirements: *2156300780
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: jeweler
39
- requirement: &2153376420 !ruby/object:Gem::Requirement
39
+ requirement: &2156299600 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.5.2
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2153376420
47
+ version_requirements: *2156299600
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rcov
50
- requirement: &2153374880 !ruby/object:Gem::Requirement
50
+ requirement: &2156298260 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2153374880
58
+ version_requirements: *2156298260
59
59
  description: each with logging gem.
60
60
  email: hitode909@gmail.com
61
61
  executables: []
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  segments:
94
94
  - 0
95
- hash: -1207432313262146498
95
+ hash: 453005432994944076
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements: