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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d559e8c255c228460dbc054d0215d4cedd02db330c09791add966ede69e191c
4
- data.tar.gz: 2367c273ffc505b30cecf509d2230c9ea87cd42ae6aa041366d8760c4298e247
3
+ metadata.gz: d26654a804f989edced31f92fd9617a20aee3c7411329b38ed108c905f215e73
4
+ data.tar.gz: 2653cba29f3e0bb72fd514cf75a56c9b95c75f435ce66809812ac02b0015b63e
5
5
  SHA512:
6
- metadata.gz: 0fe4455541218b8f592eed0a9fec19904adcedb769d8b2c7e3dc23a4e2922c8ba96c90f61ffc24b480866021c50403b43f4dac8e88a7819230bedbd267d93d51
7
- data.tar.gz: 28135f03faebb4611188c5e38e9fa778267c3a9f7949380a5016bf0bf944033ede69b7241f123a8983f21660a262ab7ad550a3da3eb84b91069880478f5e9d86
6
+ metadata.gz: fd486370dde1064f95b4c311dd7ee37e43a1468a54d3e6af68ec93e9192c045eef2c5cf3d0961ef63aa6c2a1d9f00ba12cf540ba0d8f0cd50436a2522cd93d4f
7
+ data.tar.gz: dd459fd9b480dab7d6a520af82d87540316f9c4950f2a30a4e5fe74d3e44bcb288f80edffcf13e2c6ab3e6ba7f7fb9617397c815aa236d5294bae252714478a3
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
@@ -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.6
4
+ TargetRubyVersion: 2.7
5
5
  Exclude:
6
+ - '{tmp,vendor,yard}/**/*'
6
7
  - lib/preval/format.rb
7
- - vendor/**/*
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/kddeisz/preval/compare/v0.5.0...HEAD
68
- [0.5.0]: https://github.com/kddeisz/preval/compare/v0.4.1...v0.5.0
69
- [0.4.1]: https://github.com/kddeisz/preval/compare/v0.4.0...v0.4.1
70
- [0.4.0]: https://github.com/kddeisz/preval/compare/v0.3.0...v0.4.0
71
- [0.3.0]: https://github.com/kddeisz/preval/compare/v0.2.0...v0.3.0
72
- [0.2.0]: https://github.com/kddeisz/preval/compare/v0.1.0...v0.2.0
73
- [0.1.0]: https://github.com/kddeisz/preval/compare/49c899...v0.1.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 kevin.deisz@gmail.com. All
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.0)
4
+ preval (0.6.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.4.0)
10
- bootsnap (1.4.5)
9
+ ast (2.4.2)
10
+ bootsnap (1.9.1)
11
11
  msgpack (~> 1.0)
12
- jaro_winkler (1.5.4)
13
- minitest (5.13.0)
14
- msgpack (1.3.1)
15
- mustermann (1.0.3)
16
- parallel (1.19.1)
17
- parser (2.6.5.0)
18
- ast (~> 2.4.0)
19
- rack (2.0.8)
20
- rack-protection (2.0.7)
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.1)
24
- rubocop (0.78.0)
25
- jaro_winkler (~> 1.5.1)
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 (>= 2.6)
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, < 1.7)
31
- ruby-progressbar (1.10.1)
32
- sinatra (2.0.7)
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.0)
35
- rack-protection (= 2.0.7)
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.6.0)
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.71)
56
+ rubocop (~> 1.0)
50
57
  sinatra
51
58
 
52
59
  BUNDLED WITH
53
- 2.1.2
60
+ 2.2.3
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019-present Kevin Deisz
3
+ Copyright (c) 2019-present Kevin Newton
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Preval
2
2
 
3
- [![Build Status](https://travis-ci.com/kddeisz/preval.svg?branch=master)](https://travis-ci.com/kddeisz/preval)
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/kddeisz/preval.
95
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kddnewton/preval.
96
96
 
97
97
  ## License
98
98
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Preval
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
data/preval.gemspec CHANGED
@@ -1,20 +1,28 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'preval/version'
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 = Preval::VERSION
10
- spec.authors = ['Kevin Deisz']
11
- spec.email = ['kevin.deisz@gmail.com']
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 = 'https://github.com/kddeisz/preval'
15
+ spec.homepage = repository
15
16
  spec.license = 'MIT'
16
17
 
17
- spec.files =
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.71'
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.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
- - Kevin Deisz
8
- autorequire:
7
+ - Kevin Newton
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-31 00:00:00.000000000 Z
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.71'
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.71'
69
- description:
68
+ version: '1.0'
69
+ description:
70
70
  email:
71
- - kevin.deisz@gmail.com
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/kddeisz/preval
106
+ homepage: https://github.com/kddnewton/preval
107
107
  licenses:
108
108
  - MIT
109
- metadata: {}
110
- post_install_message:
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.1.2
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
@@ -1,10 +0,0 @@
1
- pull_request_rules:
2
- - name: Automatically merge dependencies
3
- conditions:
4
- - base=master
5
- - label=dependencies
6
- - status-success=Travis CI - Pull Request
7
- actions:
8
- merge:
9
- strict: true
10
- delete_head_branch: {}
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm: 2.6
3
- branches:
4
- only: master
5
- cache: bundler
6
- before_install: gem install bundler
7
- script:
8
- - bundle exec rake
9
- - bundle exec rubocop