fasterer 0.8.2 → 0.10.0
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 +13 -0
- data/README.md +5 -2
- data/fasterer.gemspec +3 -3
- data/lib/fasterer/file_traverser.rb +3 -1
- data/lib/fasterer/method_call.rb +1 -1
- data/lib/fasterer/version.rb +1 -1
- metadata +13 -13
- data/.travis.yml +0 -13
- 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: 9ea7a15d5300fbcbb4974074d87e86ae9e6d3bd38ff79ea003c1fcd404cd9111
|
4
|
+
data.tar.gz: 126b3b2118987d040919a3153634035106b2c836418cb75e59c32846765b0395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f860317e9124c704d421d73554745d8667c99210903d4f830bbeffa3f31347979016eda41ef2c845f74d9c11f07abb58aee54ca39386213a1967f47f258c593
|
7
|
+
data.tar.gz: 49d0d004f23474cee505f79b628499449baa2e5579560a4394a6e2e42f801cf0e84184bff7a73dabcb82898f2ab4c122b63b7df8afc548311a2c005f79fe0a2e
|
@@ -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,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.10.0
|
4
|
+
|
5
|
+
- 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.
|
6
|
+
- Upgrade to ruby_parser 3.19.1 that fully supports Ruby 3.1
|
7
|
+
|
8
|
+
## 0.9.0
|
9
|
+
|
10
|
+
- 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).
|
11
|
+
|
12
|
+
## 0.8.3
|
13
|
+
|
14
|
+
- Merged in [#79](https://github.com/DamirSvrtan/fasterer/pull/79), a PR that makes sure the output is green when there are no failures.
|
15
|
+
|
3
16
|
## 0.8.2
|
4
17
|
|
5
18
|
- 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.
|
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
|
|
@@ -100,6 +99,10 @@ as part of a larger framework.
|
|
100
99
|
[danger](https://github.com/danger/danger) framework for pull requests
|
101
100
|
on Github, Gitlab, and BitBucket.
|
102
101
|
|
102
|
+
* https://github.com/vk26/action-fasterer
|
103
|
+
|
104
|
+
Github-action for running fasterer via [reviewdog](https://github.com/reviewdog/reviewdog). Reviewdog provides a way to post review comments in pull requests.
|
105
|
+
|
103
106
|
## Speedups TODO:
|
104
107
|
|
105
108
|
4. find vs bsearch
|
data/fasterer.gemspec
CHANGED
@@ -18,14 +18,14 @@ 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 = '
|
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'
|
28
|
-
spec.add_development_dependency 'rake', '
|
28
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
29
29
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
30
30
|
spec.add_development_dependency 'simplecov', '~> 0.9'
|
31
31
|
end
|
@@ -155,12 +155,14 @@ module Fasterer
|
|
155
155
|
end
|
156
156
|
|
157
157
|
def offenses_found_output
|
158
|
+
color = @offenses_found_count.zero? ? :green : :red
|
158
159
|
"#{@offenses_found_count} #{pluralize(@offenses_found_count, 'offense')} detected"
|
159
|
-
.colorize(
|
160
|
+
.colorize(color)
|
160
161
|
end
|
161
162
|
|
162
163
|
def unparsable_files_output
|
163
164
|
return if @unparsable_files_count.zero?
|
165
|
+
|
164
166
|
"#{@unparsable_files_count} unparsable #{pluralize(@unparsable_files_count, 'file')} found"
|
165
167
|
.colorize(:red)
|
166
168
|
end
|
data/lib/fasterer/method_call.rb
CHANGED
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.0
|
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: 2022-04-25 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
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 12.3.3
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 12.3.3
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
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
|
@@ -238,16 +237,17 @@ require_paths:
|
|
238
237
|
- lib
|
239
238
|
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
|
- - ">="
|
247
246
|
- !ruby/object:Gem::Version
|
248
247
|
version: '0'
|
249
248
|
requirements: []
|
250
|
-
|
249
|
+
rubyforge_project:
|
250
|
+
rubygems_version: 2.7.6.2
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: Run Ruby more than fast. Fasterer
|
data/.travis.yml
DELETED
@@ -1,13 +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
|
-
env:
|
12
|
-
global:
|
13
|
-
secure: MBTxmpWCjrsNKPlOoFwJUMHze3GPMz8YCXQFQG3zJBh3WGNQnz4z91ra/1P/DClyVCxHGSFCOswxCNe4kJ2zAnPyQLqGSinXy9uDpqZQUEdaRoQbPnh4/bguZNSJ429gtTpMdDSNOgQ+Hra2EFnWwHA+rLF6ImksMsu3XGKGxGE=
|
data/lib/fasterer/binary_call.rb
DELETED