fasterer 0.9.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: 24d522bf41231bb1eff1b4faf51c4f48215d5c4b6fa2581efec4d75ce19feb1d
4
- data.tar.gz: 5997ab2be30bb4bc96eca571d29d51f850ceefc722c6dfcbc407478e973d5aa4
3
+ metadata.gz: e46a30495d54b2fcb1f00a51b51f478e5682daa910b7adbcaeeb5930e2732f76
4
+ data.tar.gz: d661217d42400a65a5ed2344dfe4b1f77ee2583c36d372833fa67c5ef7643b2a
5
5
  SHA512:
6
- metadata.gz: f5ad546ff9c4e897789cf2dbfec220a44005668d47e75306a55b936c8171721c6fb207e0b471875fc7ec751ca9744da0f9f129f48edfed8e1d9538598f266690
7
- data.tar.gz: 48eba96dd7a96967e0c7639b6e0c5d1acf031b4fa39a362a8af182a1481c9d1067e14f4fcd022eebc8ab404af728f351af111ec7ab6a7c30e5c3f46f9b828374
6
+ metadata.gz: 6c5a63b1789705a5f4e40896a4f26e7431e7bc65ccde7b28b353d7bbc6d53a09c320b9cba8c6a802af5d46b9f599048f5025a5d3e91fe922d2905fa35ce0c792
7
+ data.tar.gz: 7cc5ec78ca1ea468f48af3793e53cc9f060cdb32a1c1f066790b88401081944f53f24c20024f9d04208c6283e79da77782f5b3a1662746e33f00c205c5a74212
@@ -0,0 +1,32 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.3.0','2.4.0','2.5.0','2.6.0','2.7.0','3.0.0','3.1.0']
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{ matrix.ruby-version }}
30
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
31
+ - name: Run tests
32
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
7
+ ## 0.10.0
8
+
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.
10
+ - Upgrade to ruby_parser 3.19.1 that fully supports Ruby 3.1
11
+
3
12
  ## 0.9.0
4
13
 
5
14
  - Ruby 3 support! Merged in [#85](https://github.com/DamirSvrtan/fasterer/pull/85), a PR that relaxed Ruby version constraints and added a minor change to support Ruby 3.0. Thanks to [swiknaba](https://github.com/swiknaba).
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
- [![Build Status](https://travis-ci.org/DamirSvrtan/fasterer.svg?branch=master)](https://travis-ci.org/DamirSvrtan/fasterer)
1
+ [![Build Status](https://github.com/DamirSvrtan/fasterer/actions/workflows/ruby.yml/badge.svg)](https://github.com/DamirSvrtan/fasterer/actions/workflows/ruby.yml)
2
2
  [![Code Climate](https://codeclimate.com/github/DamirSvrtan/fasterer/badges/gpa.svg)](https://codeclimate.com/github/DamirSvrtan/fasterer)
3
3
  [![Gem Version](https://badge.fury.io/rb/fasterer.svg)](http://badge.fury.io/rb/fasterer)
4
- [![Test Coverage](https://codeclimate.com/github/DamirSvrtan/fasterer/badges/coverage.svg)](https://codeclimate.com/github/DamirSvrtan/fasterer/coverage)
5
4
 
6
5
  # Fasterer
7
6
 
data/fasterer.gemspec CHANGED
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.required_ruby_version = '>= 2.2'
21
+ spec.required_ruby_version = '>= 2.3'
22
22
 
23
23
  spec.add_dependency 'colorize', '~> 0.7'
24
- spec.add_dependency 'ruby_parser', '>= 3.14.1'
24
+ spec.add_dependency 'ruby_parser', '>= 3.19.1'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '>= 1.6'
27
27
  spec.add_development_dependency 'pry', '~> 0.10'
@@ -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.9.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.9.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: 2021-02-16 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
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.14.1
33
+ version: 3.19.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 3.14.1
40
+ version: 3.19.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -117,10 +117,10 @@ extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
119
  - ".fasterer.yml"
120
+ - ".github/workflows/ruby.yml"
120
121
  - ".gitignore"
121
122
  - ".rspec"
122
123
  - ".rubocop.yml"
123
- - ".travis.yml"
124
124
  - CHANGELOG.md
125
125
  - Gemfile
126
126
  - LICENSE.txt
@@ -130,7 +130,6 @@ files:
130
130
  - fasterer.gemspec
131
131
  - lib/fasterer.rb
132
132
  - lib/fasterer/analyzer.rb
133
- - lib/fasterer/binary_call.rb
134
133
  - lib/fasterer/cli.rb
135
134
  - lib/fasterer/config.rb
136
135
  - lib/fasterer/file_traverser.rb
@@ -240,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
239
  requirements:
241
240
  - - ">="
242
241
  - !ruby/object:Gem::Version
243
- version: '2.2'
242
+ version: '2.3'
244
243
  required_rubygems_version: !ruby/object:Gem::Requirement
245
244
  requirements:
246
245
  - - ">="
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- language: ruby
2
- before_install:
3
- - gem update bundler
4
- rvm:
5
- - 2.2.3
6
- - 2.3.0
7
- - 2.4.0
8
- - 2.5.0
9
- - 2.6.0
10
- - 2.7.0
11
- - 3.0.0
12
- env:
13
- global:
14
- secure: MBTxmpWCjrsNKPlOoFwJUMHze3GPMz8YCXQFQG3zJBh3WGNQnz4z91ra/1P/DClyVCxHGSFCOswxCNe4kJ2zAnPyQLqGSinXy9uDpqZQUEdaRoQbPnh4/bguZNSJ429gtTpMdDSNOgQ+Hra2EFnWwHA+rLF6ImksMsu3XGKGxGE=
@@ -1,4 +0,0 @@
1
- module Fasterer
2
- class BinaryCall
3
- end
4
- end