fasterer 0.8.1 → 0.8.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: 28c6c74caee7d7576f7a00820dec13feafe2390f9f77a33082ca5b719e578a52
4
- data.tar.gz: 1c881f931ec753084298dd7d44683b55240ac9634a43a704c669768faf73f879
3
+ metadata.gz: 689e281614a7c4c1ec8eaafed6505b1205b71798872a12ec8bea4e00c65c60a0
4
+ data.tar.gz: 63b5180abe71cccbeb9bb42279f5c0f857250f047d0eb79aa79895144bf8a3a1
5
5
  SHA512:
6
- metadata.gz: 920deaa8486e29b496df8578ac413eba4a2ca53fc881997b314f9904609a0c873665ab1906303889190cee2df6a5082f1324f7b3d765d81319f08ed61ff63532
7
- data.tar.gz: b5113178addac93ccfc0fdbec2db93651f711d4fa6355eac302d34f4183b9462f05e22268ea5b1fbca8c8c84e198b6cee2364f2bd0900414d52db79939046daa
6
+ metadata.gz: 438773a5e69d25d37e3c9897c98bbf09b7bf49bba65fe421efd965b788899a0e912b7c6b326da93bfe52c7642ab4310fa7fa5379996a6df2daf72320b2296748
7
+ data.tar.gz: 67a2c9dd2bbf92ea62b0e5e5596d374361fa50972de2624ffe31c094e2595c4f82d17a7cc9ccf813ab27cf0a4f776ee0a69771abb2fad267588308715b48f6e0
@@ -7,6 +7,7 @@ rvm:
7
7
  - 2.4.0
8
8
  - 2.5.0
9
9
  - 2.6.0
10
+ - 2.7.0
10
11
  env:
11
12
  global:
12
13
  secure: MBTxmpWCjrsNKPlOoFwJUMHze3GPMz8YCXQFQG3zJBh3WGNQnz4z91ra/1P/DClyVCxHGSFCOswxCNe4kJ2zAnPyQLqGSinXy9uDpqZQUEdaRoQbPnh4/bguZNSJ429gtTpMdDSNOgQ+Hra2EFnWwHA+rLF6ImksMsu3XGKGxGE=
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.2
4
+
5
+ - Fixes [#77](https://github.com/DamirSvrtan/fasterer/issues/77). An error occurs on the symbol to proc check when somebody invokes a method with no arguments on an array or range inside of the inspected block. Seems like a bug in the inspected code, but nevertheless it is a code path we need to support.
6
+
3
7
  ## 0.8.1
4
8
 
5
9
  - Ignore lambda literals when checking symbol to proc. Thanks to [kiyot](https://github.com/kiyot) for his fix in PR [#74](https://github.com/DamirSvrtan/fasterer/pull/74).
@@ -132,7 +132,8 @@ module Fasterer
132
132
  return unless body_method_call.arguments.count.zero?
133
133
  return if body_method_call.has_block?
134
134
  return if body_method_call.receiver.nil?
135
- return unless body_method_call.receiver.name == method_call.block_argument_names.first
135
+ return if body_method_call.receiver.is_a?(Fasterer::Primitive)
136
+ return if body_method_call.receiver.name != method_call.block_argument_names.first
136
137
 
137
138
  add_offense(:block_vs_symbol_to_proc)
138
139
  end
@@ -1,3 +1,3 @@
1
1
  module Fasterer
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
@@ -11,6 +11,10 @@ route_sets.each do |route|
11
11
  puts route.name
12
12
  end
13
13
 
14
+ route_sets.each do |routes|
15
+ [].finalize!
16
+ end
17
+
14
18
  route_sets.each(&:finalize!)
15
19
 
16
20
  route_sets.each(:oppa) do |route|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fasterer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damir Svrtan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-25 00:00:00.000000000 Z
11
+ date: 2020-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize