fasterer 0.10.0 → 0.10.1

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: 9ea7a15d5300fbcbb4974074d87e86ae9e6d3bd38ff79ea003c1fcd404cd9111
4
- data.tar.gz: 126b3b2118987d040919a3153634035106b2c836418cb75e59c32846765b0395
3
+ metadata.gz: e46a30495d54b2fcb1f00a51b51f478e5682daa910b7adbcaeeb5930e2732f76
4
+ data.tar.gz: d661217d42400a65a5ed2344dfe4b1f77ee2583c36d372833fa67c5ef7643b2a
5
5
  SHA512:
6
- metadata.gz: 7f860317e9124c704d421d73554745d8667c99210903d4f830bbeffa3f31347979016eda41ef2c845f74d9c11f07abb58aee54ca39386213a1967f47f258c593
7
- data.tar.gz: 49d0d004f23474cee505f79b628499449baa2e5579560a4394a6e2e42f801cf0e84184bff7a73dabcb82898f2ab4c122b63b7df8afc548311a2c005f79fe0a2e
6
+ metadata.gz: 6c5a63b1789705a5f4e40896a4f26e7431e7bc65ccde7b28b353d7bbc6d53a09c320b9cba8c6a802af5d46b9f599048f5025a5d3e91fe922d2905fa35ce0c792
7
+ data.tar.gz: 7cc5ec78ca1ea468f48af3793e53cc9f060cdb32a1c1f066790b88401081944f53f24c20024f9d04208c6283e79da77782f5b3a1662746e33f00c205c5a74212
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1
4
+
5
+ - There has been a [bug report #99](https://github.com/DamirSvrtan/fasterer/issues/99) that the `select_first_vs_detect` reports false positives when first gets an argument passed in. If there is an argument passed in, the detect method is not suitable, since it always returns the first element matching (can't return multiple items).
6
+
3
7
  ## 0.10.0
4
8
 
5
9
  - Due to issues while setting up builds with Github Actions, I have dropped Ruby 2.2 support. It's EOL date was 2018-03-31, and I don't have the bandwidth to support deprecated Ruby versions. The only reason at this point why Ruby versions 2.3, 2.4 and 2.5 are supported is because they still work with other dependencies, so it's no effort currently to support them. Once they become issues, they'll probably be dropped.
@@ -86,6 +86,7 @@ module Fasterer
86
86
  add_offense(:shuffle_first_vs_sample)
87
87
  when :select
88
88
  return unless method_call.receiver.has_block?
89
+ return if method_call.arguments.count > 0
89
90
 
90
91
  add_offense(:select_first_vs_detect)
91
92
  end
@@ -1,3 +1,3 @@
1
1
  module Fasterer
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
@@ -9,3 +9,5 @@ end.first
9
9
  ARRAY.select(&:zero?).first
10
10
 
11
11
  ActiveRecordRelation.new.select('name').first
12
+
13
+ ARRAY.select { |x| x.eql?(15) }.first(5)
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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damir Svrtan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-25 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize