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 +4 -4
- data/.github/workflows/ruby.yml +32 -0
- data/CHANGELOG.md +9 -0
- data/README.md +1 -2
- data/fasterer.gemspec +2 -2
- data/lib/fasterer/scanners/method_call_scanner.rb +1 -0
- data/lib/fasterer/version.rb +1 -1
- data/spec/support/analyzer/12_select_first_vs_detect.rb +2 -0
- metadata +6 -7
- data/.travis.yml +0 -14
- data/lib/fasterer/binary_call.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e46a30495d54b2fcb1f00a51b51f478e5682daa910b7adbcaeeb5930e2732f76
|
4
|
+
data.tar.gz: d661217d42400a65a5ed2344dfe4b1f77ee2583c36d372833fa67c5ef7643b2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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.
|
21
|
+
spec.required_ruby_version = '>= 2.3'
|
22
22
|
|
23
23
|
spec.add_dependency 'colorize', '~> 0.7'
|
24
|
-
spec.add_dependency 'ruby_parser', '>= 3.
|
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'
|
data/lib/fasterer/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|
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.
|
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=
|
data/lib/fasterer/binary_call.rb
DELETED