webtranslateit-payday 1.6.1 → 1.6.2

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
  SHA256:
3
- metadata.gz: 00406dbbfa3060c68d1e73720090940eccc1a72d9ba5b1163863c6cfcea155ce
4
- data.tar.gz: 60bdc742ebebbdc780da9129439eacbdd13a9aa53839d22f02a3115c62c0ee4f
3
+ metadata.gz: 37916cce0794198ed834ba3c5c8e92a501bc7941624e9359673d59eb54485766
4
+ data.tar.gz: 89802d434a43e11bf793cf20f6d62e11648fd01e536b17355bd2b81461547f5b
5
5
  SHA512:
6
- metadata.gz: 8620fe3e4f38ea3a9bd90b31354fe536d1b854a54bc2e64338ffa67ea5d427d42270d97fb8598f2f3ec70b8bc64b9ddd4ef1d2c827a6e3a80d5f2c60aeb11944
7
- data.tar.gz: 2d0298cb13093b899732e0ffe2bc9f6e9dc251e2167679f117be3e89751c81f008037cb44c9eaa0d694f333bec0a59f910ca00843fa1749b38df251e8346aae2
6
+ metadata.gz: d23b3b1ac298dca95e845691ba20c744134079151bc12a334f8d892e03e5101ffd9cfe5462f82c4f16dc169897978863da8e6ff9ef7784515f39f74cd3cfb288
7
+ data.tar.gz: 8ed2aa7e84ebabdf683a08c2392428e9754b5241c5f71a3d093ac816ce39f85e02647848b43444a224d0f12773594b492df1f364c21edc5a81ed416ea9058dd3
data/.rubocop.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  require:
2
+ - rubocop-performance
2
3
  - rubocop-rspec
3
4
 
4
5
  inherit_from:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.6.2 (2002-08-16)
4
+
5
+ * Use rubocop-performance and fix one performance issue.
6
+
3
7
  ## 1.6.1 (2002-08-16)
4
8
 
5
9
  * Fix booting of Payday. It requires the module Payday to be declared.
data/Gemfile CHANGED
@@ -10,4 +10,5 @@ gem 'guard-rubocop'
10
10
  gem 'matrix'
11
11
  gem 'rspec', '~> 3.11.0'
12
12
  gem 'rubocop'
13
+ gem 'rubocop-performance'
13
14
  gem 'rubocop-rspec'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webtranslateit-payday (1.6.1)
4
+ webtranslateit-payday (1.6.2)
5
5
  activesupport (~> 7, < 8)
6
6
  i18n (~> 1.12, < 2)
7
7
  money (~> 6.16, < 7)
@@ -109,6 +109,9 @@ GEM
109
109
  unicode-display_width (>= 1.4.0, < 3.0)
110
110
  rubocop-ast (1.21.0)
111
111
  parser (>= 3.1.1.0)
112
+ rubocop-performance (1.14.3)
113
+ rubocop (>= 1.7.0, < 2.0)
114
+ rubocop-ast (>= 0.4.0)
112
115
  rubocop-rspec (2.12.1)
113
116
  rubocop (~> 1.31)
114
117
  ruby-progressbar (1.11.0)
@@ -132,6 +135,7 @@ DEPENDENCIES
132
135
  matrix
133
136
  rspec (~> 3.11.0)
134
137
  rubocop
138
+ rubocop-performance
135
139
  rubocop-rspec
136
140
  webtranslateit-payday!
137
141
 
@@ -80,11 +80,11 @@ module Payday
80
80
 
81
81
  # Iterates through the details on this invoiceable. The block given should accept
82
82
  # two parameters, the detail name and the actual detail value.
83
- def each_detail(&block)
83
+ def each_detail
84
84
  return if defined?(invoice_details).nil?
85
85
 
86
86
  invoice_details.each do |detail|
87
- block.call(detail[0], detail[1])
87
+ yield(detail[0], detail[1])
88
88
  end
89
89
  end
90
90
 
data/payday.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'webtranslateit-payday'
5
- s.version = '1.6.1'
5
+ s.version = '1.6.2'
6
6
  s.required_ruby_version = '>= 3.1'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Alan Johnson', 'Edouard Briere']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtranslateit-payday
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Johnson