pronto-rubocop-patched 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/LICENSE +21 -0
- data/README.md +43 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/pronto/rubocop/patched/offense_line.rb +137 -0
- data/lib/pronto/rubocop/patched/patch_cop.rb +98 -0
- data/lib/pronto/rubocop/patched/version.rb +7 -0
- data/lib/pronto/rubocop/patched.rb +19 -0
- data/pronto-rubocop-patched.gemspec +61 -0
- metadata +145 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6486bc1aa8eaea01364cb58a95ed65d9feb41c849d8e4e3abdb5b5ba677792e7
|
4
|
+
data.tar.gz: 68d90ba2e53777530983293e7064fa10083f11b8e8ab5b35da8dcee820f6082c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aeb458847100df1260fc2cf678952ef4e4f413c58ed7cab70dc06d045dde9cb75e3123ee55510c2836f635201f0ccab983c2f14a29260fcf5c793db85768cb29
|
7
|
+
data.tar.gz: 60e1b4be3ed753488cc5dbdf86243aaa1973864e5eb9e21e9f7261037623f22e7277d8694bb18ce6b56350471495a0779247987d6afb771d206cb65cd0da5078
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at rajaosamainayat@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2023 osama-inayat
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Pronto::Rubocop::Patched
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pronto/rubocop/patched`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'pronto-rubocop-patched'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install pronto-rubocop-patched
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pronto-rubocop-patched. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the Pronto::Rubocop::Patched project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/pronto-rubocop-patched/blob/master/CODE_OF_CONDUCT.md).
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "pronto/rubocop/patched"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Pronto
|
4
|
+
module Rubocop
|
5
|
+
class Patched < Runner
|
6
|
+
class OffenseLine
|
7
|
+
def initialize(patch_cop, offense, line)
|
8
|
+
@patch_cop = patch_cop
|
9
|
+
@offense = offense
|
10
|
+
@line = line
|
11
|
+
end
|
12
|
+
|
13
|
+
def message
|
14
|
+
Message.new(path, line, level, message_text, nil, Pronto::Rubocop)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
attr_reader :patch_cop, :offense, :line
|
20
|
+
|
21
|
+
def path
|
22
|
+
line.patch.delta.new_file[:path]
|
23
|
+
end
|
24
|
+
|
25
|
+
def processed_source
|
26
|
+
patch_cop.processed_source
|
27
|
+
end
|
28
|
+
|
29
|
+
def message_text
|
30
|
+
return offense.message unless suggestion_text
|
31
|
+
|
32
|
+
"#{offense.message}\n\n```suggestion\n#{suggestion_text}```"
|
33
|
+
end
|
34
|
+
|
35
|
+
def suggestion_text
|
36
|
+
return unless patch_cop.runner.pronto_rubocop_config['suggestions']
|
37
|
+
return if corrections_count.zero?
|
38
|
+
return if corrector.nil? # possible after optimisation in https://github.com/rubocop/rubocop/pull/11264
|
39
|
+
return if differing_lines_count != corrections_count
|
40
|
+
|
41
|
+
@suggestion_text ||= corrected_lines[offense.line - 1]
|
42
|
+
end
|
43
|
+
|
44
|
+
def corrected_lines
|
45
|
+
@corrected_lines ||= corrector.rewrite.lines
|
46
|
+
end
|
47
|
+
|
48
|
+
def differing_lines_count
|
49
|
+
original_lines.each_with_index.count do |line, index|
|
50
|
+
line != corrected_lines[index]
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def original_lines
|
55
|
+
processed_source.lines.join("\n").lines
|
56
|
+
end
|
57
|
+
|
58
|
+
if ::RuboCop::Cop::Team.respond_to?(:mobilize) && ::RuboCop::Cop::Team.public_method_defined?(:investigate)
|
59
|
+
# rubocop >= 0.87.0 has both mobilize and public investigate method
|
60
|
+
MOBILIZE = :mobilize
|
61
|
+
# rubocop 1.30.0 renamed from auto_correct to autocorrect
|
62
|
+
AUTOCORRECT = Gem::Version.new(::RuboCop::Version::STRING) >= Gem::Version.new("1.30.0") ? :autocorrect : :auto_correct
|
63
|
+
|
64
|
+
def report
|
65
|
+
@report ||= autocorrect_team.investigate(processed_source).cop_reports.first
|
66
|
+
end
|
67
|
+
|
68
|
+
def corrector
|
69
|
+
report.corrector
|
70
|
+
end
|
71
|
+
|
72
|
+
def corrections_count
|
73
|
+
# Some lines may contain more than one offense
|
74
|
+
report.offenses.map(&:line).uniq.size
|
75
|
+
end
|
76
|
+
else
|
77
|
+
# rubocop 0.85.x and 0.86.0 have mobilize, older versions don't
|
78
|
+
MOBILIZE = ::RuboCop::Cop::Team.respond_to?(:mobilize) ? :mobilize : :new
|
79
|
+
AUTOCORRECT = :auto_correct
|
80
|
+
|
81
|
+
def corrector
|
82
|
+
@corrector ||= begin
|
83
|
+
autocorrect_team.inspect_file(processed_source)
|
84
|
+
corrector = RuboCop::Cop::Corrector.new(processed_source.buffer)
|
85
|
+
corrector.corrections.concat(autocorrect_team.cops.first.corrections)
|
86
|
+
corrector
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def corrections_count
|
91
|
+
@corrections_count ||= corrector.corrections.count
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
def autocorrect_team
|
96
|
+
@autocorrect_team ||=
|
97
|
+
::RuboCop::Cop::Team.send(MOBILIZE,
|
98
|
+
::RuboCop::Cop::Registry.new([cop_class]),
|
99
|
+
patch_cop.rubocop_config,
|
100
|
+
**{ AUTOCORRECT => true, stdin: true })
|
101
|
+
end
|
102
|
+
|
103
|
+
def cop_class
|
104
|
+
patch_cop.registry.find_by_cop_name(offense.cop_name)
|
105
|
+
end
|
106
|
+
|
107
|
+
def level
|
108
|
+
severities.fetch(offense.severity.name)
|
109
|
+
end
|
110
|
+
|
111
|
+
def severities
|
112
|
+
@severities ||= DEFAULT_SEVERITIES.merge(config_severities)
|
113
|
+
end
|
114
|
+
|
115
|
+
def config_severities
|
116
|
+
patch_cop
|
117
|
+
.runner
|
118
|
+
.pronto_rubocop_config
|
119
|
+
.fetch('severities', {})
|
120
|
+
.map { |k, v| [k.to_sym, v.to_sym] }
|
121
|
+
.to_h
|
122
|
+
end
|
123
|
+
|
124
|
+
DEFAULT_SEVERITIES = {
|
125
|
+
info: :info,
|
126
|
+
refactor: :warning,
|
127
|
+
convention: :warning,
|
128
|
+
warning: :warning,
|
129
|
+
error: :error,
|
130
|
+
fatal: :fatal
|
131
|
+
}.freeze
|
132
|
+
|
133
|
+
private_constant :DEFAULT_SEVERITIES
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Pronto
|
4
|
+
module Rubocop
|
5
|
+
class Patched < Runner
|
6
|
+
class PatchCop
|
7
|
+
attr_reader :runner
|
8
|
+
|
9
|
+
def initialize(patch, runner)
|
10
|
+
@patch = patch
|
11
|
+
@runner = runner
|
12
|
+
end
|
13
|
+
|
14
|
+
def messages
|
15
|
+
return [] unless valid?
|
16
|
+
|
17
|
+
offenses
|
18
|
+
.map { |offense| first_relevant_message(patch, offense) }
|
19
|
+
.compact
|
20
|
+
end
|
21
|
+
|
22
|
+
def processed_source
|
23
|
+
@processed_source ||= begin
|
24
|
+
processed_source = ::RuboCop::ProcessedSource.from_file(
|
25
|
+
path,
|
26
|
+
rubocop_config.target_ruby_version
|
27
|
+
)
|
28
|
+
processed_source.registry = registry if processed_source.respond_to?(:registry=)
|
29
|
+
processed_source.config = rubocop_config if processed_source.respond_to?(:config=)
|
30
|
+
processed_source
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def registry
|
35
|
+
@registry ||= ::RuboCop::Cop::Registry.new(RuboCop::Cop::Cop.all)
|
36
|
+
end
|
37
|
+
|
38
|
+
def rubocop_config
|
39
|
+
@rubocop_config ||= begin
|
40
|
+
store = ::RuboCop::ConfigStore.new
|
41
|
+
store.options_config = ENV['RUBOCOP_CONFIG'] if ENV['RUBOCOP_CONFIG']
|
42
|
+
store.for(path)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
attr_reader :patch
|
49
|
+
|
50
|
+
def valid?
|
51
|
+
return false if rubocop_config.file_to_exclude?(path)
|
52
|
+
return true if rubocop_config.file_to_include?(path)
|
53
|
+
|
54
|
+
runner.ruby_file?(path)
|
55
|
+
end
|
56
|
+
|
57
|
+
def path
|
58
|
+
@path ||= patch.new_file_full_path.to_s
|
59
|
+
end
|
60
|
+
|
61
|
+
def offenses
|
62
|
+
team
|
63
|
+
.inspect_file(processed_source)
|
64
|
+
.sort
|
65
|
+
.reject(&:disabled?)
|
66
|
+
end
|
67
|
+
|
68
|
+
def offense_includes?(offense, line_number)
|
69
|
+
offense_range = (offense.location.first_line..offense.location.last_line)
|
70
|
+
offense_range.include?(line_number)
|
71
|
+
end
|
72
|
+
|
73
|
+
def team
|
74
|
+
@team ||=
|
75
|
+
if ::RuboCop::Cop::Team.respond_to?(:mobilize)
|
76
|
+
# rubocop v0.85.0 and later
|
77
|
+
::RuboCop::Cop::Team.mobilize(registry, rubocop_config)
|
78
|
+
else
|
79
|
+
::RuboCop::Cop::Team.new(registry, rubocop_config)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def first_relevant_line(patch, offense)
|
84
|
+
patch.added_lines.detect do |line|
|
85
|
+
offense_includes?(offense, line.new_lineno)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def first_relevant_message(patch, offense)
|
90
|
+
offending_line = first_relevant_line(patch, offense)
|
91
|
+
return nil unless offending_line
|
92
|
+
|
93
|
+
OffenseLine.new(self, offense, offending_line).message
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "pronto/rubocop/patched/version"
|
2
|
+
|
3
|
+
module Pronto
|
4
|
+
module Rubocop
|
5
|
+
class Patched < Runner
|
6
|
+
def run
|
7
|
+
return [] unless @patches
|
8
|
+
|
9
|
+
@patches
|
10
|
+
.select { |patch| patch.additions.positive? }
|
11
|
+
.flat_map { |patch| PatchCop.new(patch, self).messages }
|
12
|
+
end
|
13
|
+
|
14
|
+
def pronto_rubocop_config
|
15
|
+
@pronto_rubocop_config ||= Pronto::ConfigFile.new.to_h['rubocop'] || {}
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "pronto/rubocop/patched/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "pronto-rubocop-patched"
|
8
|
+
spec.version = Pronto::Rubocop::Patched::VERSION
|
9
|
+
spec.authors = ["osama-inayat"]
|
10
|
+
spec.email = ["rajaosamainayat@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = 'Pronto runner for Rubocop with patched version Ruby 2.6.10'
|
13
|
+
spec.description = 'Pronto runner for Rubocop with patched version Ruby 2.6.10'
|
14
|
+
spec.homepage = 'http://github.com/mmozuras/pronto-rubocop'
|
15
|
+
spec.licenses = ['MIT']
|
16
|
+
spec.required_ruby_version = '>= 2.3.0'
|
17
|
+
spec.rubygems_version = '1.8.23'
|
18
|
+
|
19
|
+
# # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
20
|
+
# # to allow pushing to a single host or delete this section to allow pushing to any host.
|
21
|
+
# if spec.respond_to?(:metadata)
|
22
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
23
|
+
|
24
|
+
# spec.metadata["homepage_uri"] = spec.homepage
|
25
|
+
# spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
26
|
+
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
27
|
+
# else
|
28
|
+
# raise "RubyGems 2.0 or newer is required to protect against " \
|
29
|
+
# "public gem pushes."
|
30
|
+
# end
|
31
|
+
|
32
|
+
# Specify which files should be added to the gem when it is released.
|
33
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
34
|
+
spec.files = `git ls-files`.split($RS).reject do |file|
|
35
|
+
file =~ %r{^(?:
|
36
|
+
spec/.*
|
37
|
+
|Gemfile
|
38
|
+
|Rakefile
|
39
|
+
|\.rspec
|
40
|
+
|\.gitignore
|
41
|
+
|\.rubocop.yml
|
42
|
+
|\.travis.yml
|
43
|
+
)$}x
|
44
|
+
end
|
45
|
+
|
46
|
+
spec.bindir = "exe"
|
47
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
48
|
+
spec.require_paths = ["lib"]
|
49
|
+
|
50
|
+
spec.test_files = []
|
51
|
+
spec.extra_rdoc_files = ['LICENSE', 'README.md']
|
52
|
+
|
53
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
54
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
55
|
+
spec.add_development_dependency('rspec', '~> 3.0')
|
56
|
+
spec.add_development_dependency('rspec-its', '~> 1.2')
|
57
|
+
|
58
|
+
|
59
|
+
spec.add_runtime_dependency('pronto', '~> 0.11.0')
|
60
|
+
spec.add_runtime_dependency('rubocop', '~> 1.50', '>= 1.50.2')
|
61
|
+
end
|
metadata
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pronto-rubocop-patched
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- osama-inayat
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-06-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-its
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pronto
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.11.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.11.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.50'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.50.2
|
93
|
+
type: :runtime
|
94
|
+
prerelease: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '1.50'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.50.2
|
103
|
+
description: Pronto runner for Rubocop with patched version Ruby 2.6.10
|
104
|
+
email:
|
105
|
+
- rajaosamainayat@gmail.com
|
106
|
+
executables: []
|
107
|
+
extensions: []
|
108
|
+
extra_rdoc_files:
|
109
|
+
- LICENSE
|
110
|
+
- README.md
|
111
|
+
files:
|
112
|
+
- CODE_OF_CONDUCT.md
|
113
|
+
- LICENSE
|
114
|
+
- README.md
|
115
|
+
- bin/console
|
116
|
+
- bin/setup
|
117
|
+
- lib/pronto/rubocop/patched.rb
|
118
|
+
- lib/pronto/rubocop/patched/offense_line.rb
|
119
|
+
- lib/pronto/rubocop/patched/patch_cop.rb
|
120
|
+
- lib/pronto/rubocop/patched/version.rb
|
121
|
+
- pronto-rubocop-patched.gemspec
|
122
|
+
homepage: http://github.com/mmozuras/pronto-rubocop
|
123
|
+
licenses:
|
124
|
+
- MIT
|
125
|
+
metadata: {}
|
126
|
+
post_install_message:
|
127
|
+
rdoc_options: []
|
128
|
+
require_paths:
|
129
|
+
- lib
|
130
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 2.3.0
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
requirements: []
|
141
|
+
rubygems_version: 3.0.3.1
|
142
|
+
signing_key:
|
143
|
+
specification_version: 4
|
144
|
+
summary: Pronto runner for Rubocop with patched version Ruby 2.6.10
|
145
|
+
test_files: []
|