preval 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/main.yml +34 -0
- data/.rubocop.yml +29 -2
- data/CHANGELOG.md +15 -7
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +31 -24
- data/LICENSE +1 -1
- data/README.md +3 -3
- data/lib/preval/version.rb +1 -1
- data/preval.gemspec +17 -9
- metadata +19 -15
- data/.mergify.yml +0 -10
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d26654a804f989edced31f92fd9617a20aee3c7411329b38ed108c905f215e73
|
4
|
+
data.tar.gz: 2653cba29f3e0bb72fd514cf75a56c9b95c75f435ce66809812ac02b0015b63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd486370dde1064f95b4c311dd7ee37e43a1468a54d3e6af68ec93e9192c045eef2c5cf3d0961ef63aa6c2a1d9f00ba12cf540ba0d8f0cd50436a2522cd93d4f
|
7
|
+
data.tar.gz: dd459fd9b480dab7d6a520af82d87540316f9c4950f2a30a4e5fe74d3e44bcb288f80edffcf13e2c6ab3e6ba7f7fb9617397c815aa236d5294bae252714478a3
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: Main
|
2
|
+
on:
|
3
|
+
- push
|
4
|
+
- pull_request_target
|
5
|
+
jobs:
|
6
|
+
ci:
|
7
|
+
name: CI
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
env:
|
10
|
+
CI: true
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@master
|
13
|
+
- uses: ruby/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: 3.0
|
16
|
+
bundler-cache: true
|
17
|
+
- name: Lint and test
|
18
|
+
run: |
|
19
|
+
bundle exec rubocop --parallel
|
20
|
+
bundle exec rake test
|
21
|
+
automerge:
|
22
|
+
name: AutoMerge
|
23
|
+
needs: ci
|
24
|
+
runs-on: ubuntu-latest
|
25
|
+
if: github.event_name == 'pull_request_target' && (github.actor == github.repository_owner || github.actor == 'dependabot[bot]')
|
26
|
+
steps:
|
27
|
+
- uses: actions/github-script@v3
|
28
|
+
with:
|
29
|
+
script: |
|
30
|
+
github.pulls.merge({
|
31
|
+
owner: context.payload.repository.owner.login,
|
32
|
+
repo: context.payload.repository.name,
|
33
|
+
pull_number: context.payload.pull_request.number
|
34
|
+
})
|
data/.rubocop.yml
CHANGED
@@ -1,10 +1,19 @@
|
|
1
1
|
AllCops:
|
2
2
|
DisplayCopNames: true
|
3
3
|
DisplayStyleGuide: true
|
4
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.7
|
5
5
|
Exclude:
|
6
|
+
- '{tmp,vendor,yard}/**/*'
|
6
7
|
- lib/preval/format.rb
|
7
|
-
|
8
|
+
|
9
|
+
Gemspec/RequiredRubyVersion:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Layout/LineLength:
|
13
|
+
Max: 80
|
14
|
+
|
15
|
+
Lint/AmbiguousBlockAssociation:
|
16
|
+
Enabled: false
|
8
17
|
|
9
18
|
Layout/CommentIndentation:
|
10
19
|
Enabled: false
|
@@ -24,8 +33,26 @@ Metrics/MethodLength:
|
|
24
33
|
Metrics/PerceivedComplexity:
|
25
34
|
Enabled: false
|
26
35
|
|
36
|
+
Naming/RescuedExceptionsVariableName:
|
37
|
+
Enabled: false
|
38
|
+
|
27
39
|
Style/Documentation:
|
28
40
|
Enabled: false
|
29
41
|
|
42
|
+
Style/FormatString:
|
43
|
+
EnforcedStyle: percent
|
44
|
+
|
45
|
+
Style/FormatStringToken:
|
46
|
+
Enabled: false
|
47
|
+
|
30
48
|
Style/NumericPredicate:
|
31
49
|
Enabled: false
|
50
|
+
|
51
|
+
Style/OptionalBooleanParameter:
|
52
|
+
Enabled: false
|
53
|
+
|
54
|
+
Style/PerlBackrefs:
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
Style/SlicingWithRange:
|
58
|
+
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.6.1] - 2021-11-17
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Require MFA for releasing.
|
14
|
+
|
9
15
|
## [0.6.0] - 2019-12-31
|
10
16
|
|
11
17
|
### Added
|
@@ -64,10 +70,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
64
70
|
|
65
71
|
- Initial release. 🎉
|
66
72
|
|
67
|
-
[unreleased]: https://github.com/
|
68
|
-
[0.
|
69
|
-
[0.
|
70
|
-
[0.
|
71
|
-
[0.
|
72
|
-
[0.
|
73
|
-
[0.
|
73
|
+
[unreleased]: https://github.com/kddnewton/preval/compare/v0.6.1...HEAD
|
74
|
+
[0.6.1]: https://github.com/kddnewton/preval/compare/v0.6.0...v0.6.1
|
75
|
+
[0.6.0]: https://github.com/kddnewton/preval/compare/v0.5.0...v0.6.0
|
76
|
+
[0.5.0]: https://github.com/kddnewton/preval/compare/v0.4.1...v0.5.0
|
77
|
+
[0.4.1]: https://github.com/kddnewton/preval/compare/v0.4.0...v0.4.1
|
78
|
+
[0.4.0]: https://github.com/kddnewton/preval/compare/v0.3.0...v0.4.0
|
79
|
+
[0.3.0]: https://github.com/kddnewton/preval/compare/v0.2.0...v0.3.0
|
80
|
+
[0.2.0]: https://github.com/kddnewton/preval/compare/v0.1.0...v0.2.0
|
81
|
+
[0.1.0]: https://github.com/kddnewton/preval/compare/49c899...v0.1.0
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at kddnewton@gmail.com. All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/Gemfile.lock
CHANGED
@@ -1,41 +1,48 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
preval (0.6.
|
4
|
+
preval (0.6.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
ast (2.4.
|
10
|
-
bootsnap (1.
|
9
|
+
ast (2.4.2)
|
10
|
+
bootsnap (1.9.1)
|
11
11
|
msgpack (~> 1.0)
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
parallel (1.
|
17
|
-
parser (
|
18
|
-
ast (~> 2.4.
|
19
|
-
rack (2.
|
20
|
-
rack-protection (2.0
|
12
|
+
minitest (5.14.4)
|
13
|
+
msgpack (1.4.2)
|
14
|
+
mustermann (1.1.1)
|
15
|
+
ruby2_keywords (~> 0.0.1)
|
16
|
+
parallel (1.21.0)
|
17
|
+
parser (3.0.2.0)
|
18
|
+
ast (~> 2.4.1)
|
19
|
+
rack (2.2.3)
|
20
|
+
rack-protection (2.1.0)
|
21
21
|
rack
|
22
22
|
rainbow (3.0.0)
|
23
|
-
rake (13.0.
|
24
|
-
|
25
|
-
|
23
|
+
rake (13.0.6)
|
24
|
+
regexp_parser (2.1.1)
|
25
|
+
rexml (3.2.5)
|
26
|
+
rubocop (1.23.0)
|
26
27
|
parallel (~> 1.10)
|
27
|
-
parser (>=
|
28
|
+
parser (>= 3.0.0.0)
|
28
29
|
rainbow (>= 2.2.2, < 4.0)
|
30
|
+
regexp_parser (>= 1.8, < 3.0)
|
31
|
+
rexml
|
32
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
29
33
|
ruby-progressbar (~> 1.7)
|
30
|
-
unicode-display_width (>= 1.4.0, <
|
31
|
-
|
32
|
-
|
34
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
35
|
+
rubocop-ast (1.13.0)
|
36
|
+
parser (>= 3.0.1.1)
|
37
|
+
ruby-progressbar (1.11.0)
|
38
|
+
ruby2_keywords (0.0.5)
|
39
|
+
sinatra (2.1.0)
|
33
40
|
mustermann (~> 1.0)
|
34
|
-
rack (~> 2.
|
35
|
-
rack-protection (= 2.0
|
41
|
+
rack (~> 2.2)
|
42
|
+
rack-protection (= 2.1.0)
|
36
43
|
tilt (~> 2.0)
|
37
44
|
tilt (2.0.10)
|
38
|
-
unicode-display_width (1.
|
45
|
+
unicode-display_width (2.1.0)
|
39
46
|
|
40
47
|
PLATFORMS
|
41
48
|
ruby
|
@@ -46,8 +53,8 @@ DEPENDENCIES
|
|
46
53
|
minitest (~> 5.11)
|
47
54
|
preval!
|
48
55
|
rake (~> 13.0)
|
49
|
-
rubocop (~> 0
|
56
|
+
rubocop (~> 1.0)
|
50
57
|
sinatra
|
51
58
|
|
52
59
|
BUNDLED WITH
|
53
|
-
2.
|
60
|
+
2.2.3
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Preval
|
2
2
|
|
3
|
-
[![Build Status](https://
|
4
|
-
[![Gem](https://img.shields.io/gem/v/preval.svg)](https://rubygems.org/gems/preval)
|
3
|
+
[![Build Status](https://github.com/kddnewton/preval/workflows/Main/badge.svg)](https://github.com/kddnewton/preval/actions)
|
4
|
+
[![Gem Version](https://img.shields.io/gem/v/preval.svg)](https://rubygems.org/gems/preval)
|
5
5
|
|
6
6
|
`preval` is a gem that hooks into the Ruby compilation process and runs optimizations before it gets loaded by the virtual machine.
|
7
7
|
|
@@ -92,7 +92,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
92
92
|
|
93
93
|
## Contributing
|
94
94
|
|
95
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
95
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kddnewton/preval.
|
96
96
|
|
97
97
|
## License
|
98
98
|
|
data/lib/preval/version.rb
CHANGED
data/preval.gemspec
CHANGED
@@ -1,20 +1,28 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
require_relative 'lib/preval/version'
|
4
|
+
|
5
|
+
version = Preval::VERSION
|
6
|
+
repository = 'https://github.com/kddnewton/preval'
|
6
7
|
|
7
8
|
Gem::Specification.new do |spec|
|
8
9
|
spec.name = 'preval'
|
9
|
-
spec.version =
|
10
|
-
spec.authors = ['Kevin
|
11
|
-
spec.email = ['
|
10
|
+
spec.version = version
|
11
|
+
spec.authors = ['Kevin Newton']
|
12
|
+
spec.email = ['kddnewton@gmail.com']
|
12
13
|
|
13
14
|
spec.summary = 'Automatically optimizes your Ruby code'
|
14
|
-
spec.homepage =
|
15
|
+
spec.homepage = repository
|
15
16
|
spec.license = 'MIT'
|
16
17
|
|
17
|
-
spec.
|
18
|
+
spec.metadata = {
|
19
|
+
'bug_tracker_uri' => "#{repository}/issues",
|
20
|
+
'changelog_uri' => "#{repository}/blob/v#{version}/CHANGELOG.md",
|
21
|
+
'source_code_uri' => repository,
|
22
|
+
'rubygems_mfa_required' => 'true'
|
23
|
+
}
|
24
|
+
|
25
|
+
spec.files =
|
18
26
|
Dir.chdir(__dir__) do
|
19
27
|
`git ls-files -z`.split("\x0").reject do |f|
|
20
28
|
f.match(%r{^(test|spec|features)/})
|
@@ -28,5 +36,5 @@ Gem::Specification.new do |spec|
|
|
28
36
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
29
37
|
spec.add_development_dependency 'minitest', '~> 5.11'
|
30
38
|
spec.add_development_dependency 'rake', '~> 13.0'
|
31
|
-
spec.add_development_dependency 'rubocop', '~> 0
|
39
|
+
spec.add_development_dependency 'rubocop', '~> 1.0'
|
32
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: preval
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Kevin
|
8
|
-
autorequire:
|
7
|
+
- Kevin Newton
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,25 +58,25 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
61
|
+
version: '1.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0
|
69
|
-
description:
|
68
|
+
version: '1.0'
|
69
|
+
description:
|
70
70
|
email:
|
71
|
-
-
|
71
|
+
- kddnewton@gmail.com
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".github/dependabot.yml"
|
77
|
+
- ".github/workflows/main.yml"
|
76
78
|
- ".gitignore"
|
77
|
-
- ".mergify.yml"
|
78
79
|
- ".rubocop.yml"
|
79
|
-
- ".travis.yml"
|
80
80
|
- CHANGELOG.md
|
81
81
|
- CODE_OF_CONDUCT.md
|
82
82
|
- Gemfile
|
@@ -103,11 +103,15 @@ files:
|
|
103
103
|
- lib/preval/visitors/fasterer.rb
|
104
104
|
- lib/preval/visitors/loops.rb
|
105
105
|
- preval.gemspec
|
106
|
-
homepage: https://github.com/
|
106
|
+
homepage: https://github.com/kddnewton/preval
|
107
107
|
licenses:
|
108
108
|
- MIT
|
109
|
-
metadata:
|
110
|
-
|
109
|
+
metadata:
|
110
|
+
bug_tracker_uri: https://github.com/kddnewton/preval/issues
|
111
|
+
changelog_uri: https://github.com/kddnewton/preval/blob/v0.6.1/CHANGELOG.md
|
112
|
+
source_code_uri: https://github.com/kddnewton/preval
|
113
|
+
rubygems_mfa_required: 'true'
|
114
|
+
post_install_message:
|
111
115
|
rdoc_options: []
|
112
116
|
require_paths:
|
113
117
|
- lib
|
@@ -122,8 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
126
|
- !ruby/object:Gem::Version
|
123
127
|
version: '0'
|
124
128
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
126
|
-
signing_key:
|
129
|
+
rubygems_version: 3.2.3
|
130
|
+
signing_key:
|
127
131
|
specification_version: 4
|
128
132
|
summary: Automatically optimizes your Ruby code
|
129
133
|
test_files: []
|
data/.mergify.yml
DELETED