pronto-poper2 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/CODEOWNERS +3 -0
- data/.github/workflows/checks.yml +22 -0
- data/LICENSE +21 -0
- data/README.md +8 -0
- data/lib/pronto/poper2/version.rb +5 -0
- data/lib/pronto/poper2.rb +21 -0
- data/pronto-poper2.gemspec +40 -0
- metadata +121 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7ab5a786c81106c700b0baff5f2574f1f634fb9ae0a6cdccb1802db6b7c5e021
|
4
|
+
data.tar.gz: 3456ae98655f87045a32e3d006770a39219953c8b627f5e84864eb3da1461ef9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3596ddebd434d2ad7806f82cdc7b5210f1c1217bf77ea7119ed6c1f617565420f60ef76c8239bb8ec4a4dc54475c85ca7fbcbd413e770857105c91ff6761b991
|
7
|
+
data.tar.gz: 8b4cefb3f649fbf85bb090f47746b1c6d4f45fc8aa2b7e55f72b62b7eef44f6624ae86635d895afe42f89287832f0adfde72164787cbb05cf8bdc2b5aa1a374c
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Checks
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
ruby:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
bundler-cache: true
|
21
|
+
- name: rake spec
|
22
|
+
run: bundle exec rake spec
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 Mindaugas Mozūras
|
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,8 @@
|
|
1
|
+
# Pronto runner for Poper
|
2
|
+
|
3
|
+
[![Code Climate](https://codeclimate.com/github/prontolabs/pronto-poper.png)](https://codeclimate.com/github/prontolabs/pronto-poper)
|
4
|
+
[![Build Status](https://travis-ci.org/prontolabs/pronto-poper.png)](https://travis-ci.org/prontolabs/pronto-poper)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/pronto-poper.png)](http://badge.fury.io/rb/pronto-poper)
|
6
|
+
[![Dependency Status](https://gemnasium.com/prontolabs/pronto-poper.png)](https://gemnasium.com/prontolabs/pronto-poper)
|
7
|
+
|
8
|
+
Pronto runner for [Poper](https://github.com/mmozuras/poper), git commit message analyzer. [What is Pronto?](https://github.com/prontolabs/pronto)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'pronto'
|
2
|
+
require 'poper2'
|
3
|
+
|
4
|
+
module Pronto
|
5
|
+
class Poper2 < Runner
|
6
|
+
def run
|
7
|
+
return [] unless @patches
|
8
|
+
|
9
|
+
poper2_runner = ::Poper2::Runner.new(@commit, repo_path.to_s)
|
10
|
+
|
11
|
+
poper2_runner.run
|
12
|
+
.select { |error| error.commit != @commit }
|
13
|
+
.map { |error| message_for(error) }
|
14
|
+
end
|
15
|
+
|
16
|
+
def message_for(error)
|
17
|
+
Message.new(nil, nil, :warning, error.message.capitalize, error.commit,
|
18
|
+
self.class)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
4
|
+
require 'pronto/poper2/version'
|
5
|
+
require 'English'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = 'pronto-poper2'
|
9
|
+
s.version = Pronto::Poper2Version::VERSION
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.author = 'Diego Bentes'
|
12
|
+
s.email = 'diegopbentes@gmail.com'
|
13
|
+
s.homepage = 'http://github.com/diegobentes/pronto-poper2'
|
14
|
+
s.summary = 'Pronto runner for Poper2, git commit message analyzer'
|
15
|
+
|
16
|
+
s.licenses = ['MIT']
|
17
|
+
s.required_ruby_version = '>= 2.3.0'
|
18
|
+
s.rubygems_version = '1.8.23'
|
19
|
+
|
20
|
+
s.files = `git ls-files`.split($RS).reject do |file|
|
21
|
+
file =~ %r{^(?:
|
22
|
+
spec/.*
|
23
|
+
|Gemfile
|
24
|
+
|Rakefile
|
25
|
+
|\.rspec
|
26
|
+
|\.gitignore
|
27
|
+
|\.rubocop.yml
|
28
|
+
|\.travis.yml
|
29
|
+
)$}x
|
30
|
+
end
|
31
|
+
s.test_files = []
|
32
|
+
s.extra_rdoc_files = ['LICENSE', 'README.md']
|
33
|
+
s.require_paths = ['lib']
|
34
|
+
|
35
|
+
s.add_dependency('pronto', '~> 0.11.0')
|
36
|
+
s.add_dependency('poper2', '~> 0.3.3')
|
37
|
+
s.add_development_dependency('rake', '~> 12.0')
|
38
|
+
s.add_development_dependency('rspec', '~> 3.4')
|
39
|
+
s.add_development_dependency('rspec-its', '~> 1.2')
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pronto-poper2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.11.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Diego Bentes
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-05-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: pronto
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.11.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.11.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: poper2
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.3.3
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.3.3
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '12.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '12.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-its
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.2'
|
83
|
+
description:
|
84
|
+
email: diegopbentes@gmail.com
|
85
|
+
executables: []
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files:
|
88
|
+
- LICENSE
|
89
|
+
- README.md
|
90
|
+
files:
|
91
|
+
- ".github/CODEOWNERS"
|
92
|
+
- ".github/workflows/checks.yml"
|
93
|
+
- LICENSE
|
94
|
+
- README.md
|
95
|
+
- lib/pronto/poper2.rb
|
96
|
+
- lib/pronto/poper2/version.rb
|
97
|
+
- pronto-poper2.gemspec
|
98
|
+
homepage: http://github.com/diegobentes/pronto-poper2
|
99
|
+
licenses:
|
100
|
+
- MIT
|
101
|
+
metadata: {}
|
102
|
+
post_install_message:
|
103
|
+
rdoc_options: []
|
104
|
+
require_paths:
|
105
|
+
- lib
|
106
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.3.0
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
requirements: []
|
117
|
+
rubygems_version: 3.2.3
|
118
|
+
signing_key:
|
119
|
+
specification_version: 4
|
120
|
+
summary: Pronto runner for Poper2, git commit message analyzer
|
121
|
+
test_files: []
|