xcop 0.5.8 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/ISSUE_TEMPLATE.md +12 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +11 -0
- data/.rultor.yml +9 -12
- data/.simplecov +1 -1
- data/.travis.yml +1 -1
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +52 -34
- data/Rakefile +1 -1
- data/bin/xcop +11 -3
- data/features/step_definitions/steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/lib/xcop/rake_task.rb +2 -2
- data/lib/xcop/version.rb +3 -3
- data/lib/xcop.rb +14 -9
- data/logo.svg +19 -0
- data/test/test__helper.rb +1 -1
- data/test/test_rake_task.rb +2 -2
- data/test/test_xcop.rb +2 -2
- data/xcop.gemspec +7 -8
- metadata +18 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1e36ceb8094cf5d0a19aea136e067aefead3f8d2d5d0be89ee04621bf377ea9f
|
4
|
+
data.tar.gz: 0ada0467d87ee9bd8eee76b455093d8eaf651d5297db98ba0c06a8f9cbdacd35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95e7400cf83b268b35464cb701e8eda47e3f1db96d6d7dbb881a3d1cde7776dd6d5888334cd7c5f26f5727868e56638c06c6f9fe8da39a8a3f59156e33d9b338
|
7
|
+
data.tar.gz: b5535146d433e5bb9d37967f523e8851b6dfebf1486e6b4d0cdf41a4db72e0caefc821587bd0d9c791f0c46f4b1c76af1481a8470d411398d177ba51e0b26ca2
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Make sure the title of the issue explains the problem you are having. Also, the description of the issue must clearly explain what is broken, not what you want us to implement. Go through this checklist and make sure you answer "YES" to all points:
|
2
|
+
|
3
|
+
- You have all pre-requisites listed in README.md installed
|
4
|
+
- You are sure that you are not reporting a duplicate (search all issues)
|
5
|
+
- You say "is broken" or "doesn't work" in the title
|
6
|
+
- You tell us what you are trying to do
|
7
|
+
- You explain the results you are getting
|
8
|
+
- You suggest an alternative result you would like to see
|
9
|
+
|
10
|
+
This article will help you understand what we are looking for: http://www.yegor256.com/2014/11/24/principles-of-bug-tracking.html
|
11
|
+
|
12
|
+
Thank you for your contribution!
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Many thanks for your contribution, we truly appreciate it. We will appreciate it even more, if you make sure that you can say "YES" to each point in this short checklist:
|
2
|
+
|
3
|
+
- You made a small amount of changes (less than 100 lines, less than 10 files)
|
4
|
+
- You made changes related to only one bug (create separate PRs for separate problems)
|
5
|
+
- You are ready to defend your changes (there will be a code review)
|
6
|
+
- You don't touch what you don't understand
|
7
|
+
- You ran the build locally and it passed
|
8
|
+
|
9
|
+
This article will help you understand what we are looking for: http://www.yegor256.com/2015/02/09/serious-code-reviewer.html
|
10
|
+
|
11
|
+
Thank you for your contribution!
|
data/.rultor.yml
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
assets:
|
2
|
-
rubygems.yml:
|
3
|
-
s3cfg: zerocracy/home#assets/s3cfg
|
2
|
+
rubygems.yml: yegor256/home#assets/rubygems.yml
|
4
3
|
install: |
|
4
|
+
export GEM_HOME=~/.ruby
|
5
|
+
export GEM_PATH=$GEM_HOME:$GEM_PATH
|
5
6
|
sudo apt-get -y update
|
6
|
-
sudo gem install pdd
|
7
|
+
sudo gem install pdd -v 0.20.5
|
8
|
+
bundle install
|
7
9
|
release:
|
8
10
|
script: |-
|
9
|
-
bundle
|
10
|
-
|
11
|
+
bundle exec rake
|
12
|
+
pdd -f /dev/null
|
11
13
|
rm -rf *.gem
|
12
14
|
sed -i "s/1\.0\.snapshot/${tag}/g" lib/xcop/version.rb
|
13
15
|
git add lib/xcop/version.rb
|
@@ -15,15 +17,10 @@ release:
|
|
15
17
|
gem build xcop.gemspec
|
16
18
|
chmod 0600 ../rubygems.yml
|
17
19
|
gem push *.gem --config-file ../rubygems.yml
|
18
|
-
commanders:
|
19
|
-
- yegor256
|
20
|
-
architect:
|
21
|
-
- yegor256
|
22
20
|
merge:
|
23
21
|
script: |-
|
24
|
-
bundle
|
25
|
-
|
26
|
-
pdd
|
22
|
+
bundle exec rake
|
23
|
+
pdd -f /dev/null
|
27
24
|
deploy:
|
28
25
|
script: |-
|
29
26
|
echo "There is nothing to deploy"
|
data/.simplecov
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
1
|
+
<img src="/logo.svg" width="64px"/>
|
2
|
+
|
3
|
+
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
|
4
|
+
[![Managed by Zerocracy](https://www.0crat.com/badge/C3RFVLU72.svg)](https://www.0crat.com/p/C3RFVLU72)
|
2
5
|
[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/xcop)](http://www.rultor.com/p/yegor256/xcop)
|
3
|
-
[![We recommend RubyMine](
|
6
|
+
[![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/)
|
4
7
|
|
5
8
|
[![Build Status](https://travis-ci.org/yegor256/xcop.svg)](https://travis-ci.org/yegor256/xcop)
|
6
9
|
[![Build status](https://ci.appveyor.com/api/projects/status/orvfo2qgmd1d7a2i?svg=true)](https://ci.appveyor.com/project/yegor256/xcop)
|
7
10
|
[![PDD status](http://www.0pdd.com/svg?name=yegor256/xcop)](http://www.0pdd.com/p?name=yegor256/xcop)
|
8
11
|
[![Gem Version](https://badge.fury.io/rb/xcop.svg)](http://badge.fury.io/rb/xcop)
|
9
|
-
[![
|
10
|
-
[![Code Climate](http://img.shields.io/codeclimate/github/yegor256/xcop.svg)](https://codeclimate.com/github/yegor256/xcop)
|
11
|
-
[![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/xcop.svg)](https://codecov.io/github/yegor256/xcop?branch=master)
|
12
|
+
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/xcop/blob/master/LICENSE.txt)
|
12
13
|
|
13
|
-
|
14
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/396ec0584e0a84adc723/maintainability)](https://codeclimate.com/github/yegor256/xcop/maintainability)
|
15
|
+
[![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/xcop.svg)](https://codecov.io/github/yegor256/xcop?branch=master)
|
16
|
+
[![Hits-of-Code](https://hitsofcode.com/github/yegor256/xcop)](https://hitsofcode.com/view/github/yegor256/xcop)
|
14
17
|
|
15
18
|
This command line tool validates your XML files for proper formatting.
|
16
19
|
If they are not formatted correctly, it prints the difference and
|
@@ -18,16 +21,15 @@ returns with an error. You can use it two ways: 1) to fail your build
|
|
18
21
|
if any X-like files (XML, XSD, XSL, XHTML) are not formatted correctly,
|
19
22
|
and 2) to format them correctly.
|
20
23
|
|
21
|
-
|
24
|
+
Read this blog post of mine first:
|
25
|
+
[_XCOP—XML Style Checker_](https://www.yegor256.com/2017/08/29/xcop.html).
|
22
26
|
|
23
|
-
Install it first:
|
27
|
+
Install it first (read below if you can't install it):
|
24
28
|
|
25
29
|
```bash
|
26
30
|
$ gem install xcop
|
27
31
|
```
|
28
32
|
|
29
|
-
## How to run?
|
30
|
-
|
31
33
|
Run it locally and read its output:
|
32
34
|
|
33
35
|
```bash
|
@@ -70,6 +72,36 @@ Xcop::RakeTask.new(:xcop) do |task|
|
|
70
72
|
end
|
71
73
|
```
|
72
74
|
|
75
|
+
## How to use as GitHub action?
|
76
|
+
|
77
|
+
Create new workflow file in repository under `.github/workflows/xcop.yml`:
|
78
|
+
```yaml
|
79
|
+
---
|
80
|
+
name: XCOP
|
81
|
+
"on":
|
82
|
+
# run on push to master events
|
83
|
+
push:
|
84
|
+
branches:
|
85
|
+
- master
|
86
|
+
# run on pull requests to master
|
87
|
+
pull_request:
|
88
|
+
branches:
|
89
|
+
- master
|
90
|
+
jobs:
|
91
|
+
build:
|
92
|
+
runs-on: ubuntu-latest
|
93
|
+
steps:
|
94
|
+
- uses: actions/checkout@v2
|
95
|
+
- uses: g4s8/xcop-action@master
|
96
|
+
```
|
97
|
+
To customize license location or files pattern use action inputs `license` and `files`:
|
98
|
+
```yaml
|
99
|
+
- uses: g4s8/xcop-action@master
|
100
|
+
with:
|
101
|
+
license: MY_LICENSE.txt
|
102
|
+
files: "src/*.xml"
|
103
|
+
```
|
104
|
+
|
73
105
|
## How to use in Maven `pom.xml`?
|
74
106
|
|
75
107
|
You can integrate it with the help of
|
@@ -135,30 +167,16 @@ Something like this should work:
|
|
135
167
|
</project>
|
136
168
|
```
|
137
169
|
|
138
|
-
## How to contribute
|
170
|
+
## How to contribute
|
139
171
|
|
140
|
-
|
172
|
+
Read [these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html).
|
173
|
+
Make sure you build is green before you contribute
|
174
|
+
your pull request. You will need to have [Ruby](https://www.ruby-lang.org/en/) 2.3+ and
|
175
|
+
[Bundler](https://bundler.io/) installed. Then:
|
141
176
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
Copyright (c) 2017-2018 Yegor Bugayenko
|
147
|
-
|
148
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
149
|
-
of this software and associated documentation files (the 'Software'), to deal
|
150
|
-
in the Software without restriction, including without limitation the rights
|
151
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
152
|
-
copies of the Software, and to permit persons to whom the Software is
|
153
|
-
furnished to do so, subject to the following conditions:
|
154
|
-
|
155
|
-
The above copyright notice and this permission notice shall be included in all
|
156
|
-
copies or substantial portions of the Software.
|
177
|
+
```
|
178
|
+
$ bundle update
|
179
|
+
$ bundle exec rake
|
180
|
+
```
|
157
181
|
|
158
|
-
|
159
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
160
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
161
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
162
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
163
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
164
|
-
SOFTWARE.
|
182
|
+
If it's clean and you don't see any error messages, submit your pull request.
|
data/Rakefile
CHANGED
data/bin/xcop
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (c) 2017-
|
2
|
+
# Copyright (c) 2017-2021 Yegor Bugayenko
|
3
3
|
#
|
4
4
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
5
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -30,12 +30,20 @@ if Gem::Version.new(Nokogiri::VERSION) < Gem::Version.new('1.8')
|
|
30
30
|
puts "Nokogiri version #{Nokogiri::VERSION} is too old, 1.8+ is required"
|
31
31
|
end
|
32
32
|
|
33
|
-
|
33
|
+
file_cfg = []
|
34
|
+
if File.exist?('.xcop')
|
35
|
+
file_cfg += File.open('.xcop').read.gsub(/\s+/, " ").strip.split(/\s/)
|
36
|
+
end
|
37
|
+
|
38
|
+
merged = ARGV + file_cfg
|
39
|
+
|
40
|
+
opts = Slop.parse(merged, strict: true, help: true) do |o|
|
34
41
|
o.banner = "Usage (#{Xcop::VERSION}): xcop [options] [files...]"
|
35
42
|
o.bool '-h', '--help', 'Show these instructions'
|
36
43
|
o.bool '-q', '--quiet', 'Don\'t print anything if there are no errors'
|
37
44
|
o.bool '--version', 'Show current version'
|
38
45
|
o.bool '--fix', 'Fix all files instead of reporting their problems'
|
46
|
+
o.bool '--nocolor', 'Suppress colored output'
|
39
47
|
o.string '--license', 'File name of the boilerplate head license'
|
40
48
|
end
|
41
49
|
|
@@ -60,7 +68,7 @@ if opts.fix?
|
|
60
68
|
end
|
61
69
|
else
|
62
70
|
begin
|
63
|
-
Xcop::CLI.new(opts.arguments, license).run do |f|
|
71
|
+
Xcop::CLI.new(opts.arguments, license, opts.nocolor?).run do |f|
|
64
72
|
puts "#{f} looks good" unless opts.quiet?
|
65
73
|
end
|
66
74
|
rescue StandardError => e
|
data/features/support/env.rb
CHANGED
data/lib/xcop/rake_task.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2017-
|
1
|
+
# Copyright (c) 2017-2021 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -24,7 +24,7 @@ require_relative '../xcop'
|
|
24
24
|
|
25
25
|
# Xcop rake task.
|
26
26
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
27
|
-
# Copyright:: Copyright (c) 2017-
|
27
|
+
# Copyright:: Copyright (c) 2017-2021 Yegor Bugayenko
|
28
28
|
# License:: MIT
|
29
29
|
module Xcop
|
30
30
|
# Rake task.
|
data/lib/xcop/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2017-
|
1
|
+
# Copyright (c) 2017-2021 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -20,8 +20,8 @@
|
|
20
20
|
|
21
21
|
# Xcop main module.
|
22
22
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
23
|
-
# Copyright:: Copyright (c) 2017-
|
23
|
+
# Copyright:: Copyright (c) 2017-2021 Yegor Bugayenko
|
24
24
|
# License:: MIT
|
25
25
|
module Xcop
|
26
|
-
VERSION = '0.
|
26
|
+
VERSION = '0.6.3'.freeze
|
27
27
|
end
|
data/lib/xcop.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2017-
|
1
|
+
# Copyright (c) 2017-2021 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -25,20 +25,21 @@ require_relative 'xcop/version'
|
|
25
25
|
|
26
26
|
# Xcop main module.
|
27
27
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
28
|
-
# Copyright:: Copyright (c) 2017-
|
28
|
+
# Copyright:: Copyright (c) 2017-2021 Yegor Bugayenko
|
29
29
|
# License:: MIT
|
30
30
|
module Xcop
|
31
31
|
# Command line interface.
|
32
32
|
class CLI
|
33
|
-
def initialize(files, license)
|
33
|
+
def initialize(files, license, nocolor = false)
|
34
34
|
@files = files
|
35
35
|
@license = license
|
36
|
+
@nocolor = nocolor
|
36
37
|
end
|
37
38
|
|
38
39
|
def run
|
39
40
|
@files.each do |f|
|
40
41
|
doc = Document.new(f)
|
41
|
-
diff = doc.diff
|
42
|
+
diff = doc.diff(@nocolor)
|
42
43
|
unless diff.empty?
|
43
44
|
puts diff
|
44
45
|
raise "Invalid XML formatting in #{f}"
|
@@ -72,11 +73,11 @@ module Xcop
|
|
72
73
|
end
|
73
74
|
|
74
75
|
# Return the difference, if any (empty string if everything is clean).
|
75
|
-
def diff
|
76
|
+
def diff(nocolor = false)
|
76
77
|
xml = Nokogiri::XML(File.open(@path), &:noblanks)
|
77
78
|
ideal = xml.to_xml(indent: 2)
|
78
79
|
now = File.read(@path)
|
79
|
-
differ(ideal, now)
|
80
|
+
differ(ideal, now, nocolor)
|
80
81
|
end
|
81
82
|
|
82
83
|
# Return the difference for the license.
|
@@ -103,10 +104,14 @@ module Xcop
|
|
103
104
|
|
104
105
|
private
|
105
106
|
|
106
|
-
def differ(ideal, fact)
|
107
|
+
def differ(ideal, fact, nocolor = false)
|
107
108
|
return '' if ideal == fact
|
108
|
-
|
109
|
-
|
109
|
+
if nocolor
|
110
|
+
Differ.diff_by_line(ideal, fact).to_s
|
111
|
+
else
|
112
|
+
Differ.format = :color
|
113
|
+
Differ.diff_by_line(schars(ideal), schars(fact)).to_s
|
114
|
+
end
|
110
115
|
end
|
111
116
|
|
112
117
|
def schars(text)
|
data/logo.svg
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<svg width="314px" height="314px" viewBox="0 0 314 314" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>Group 2</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<g id="Group-2">
|
9
|
+
<g id="Group">
|
10
|
+
<circle id="Oval" fill="#053C5E" cx="157" cy="157" r="157"></circle>
|
11
|
+
<rect id="Rectangle" fill="#2B2B2B" x="0" y="233" width="184" height="69"></rect>
|
12
|
+
<text id="xcop" font-family="CourierNewPS-BoldMT, Courier New" font-size="60" font-weight="bold" fill="#FFFFFF">
|
13
|
+
<tspan x="20.4882812" y="281">xcop</tspan>
|
14
|
+
</text>
|
15
|
+
<path d="M135.676765,111.215287 C135.211714,113.540467 132.770932,120.688823 130.252813,127.100603 C127.734621,133.512383 125.2898,140.431445 124.819828,142.476214 C123.6868,147.405663 121.517836,147.185477 119.69487,141.95608 C116.899865,133.938362 105.171362,111.043501 103.859129,111.043501 C100.420089,111.043501 101.508757,114.986149 109.1771,130.30227 C113.739327,139.414532 118.032086,147.448041 118.716515,148.15443 C120.694817,150.196115 120.172626,154.319657 117.358599,158.877992 C113.567467,165.019055 107.570942,183.721189 108.054206,187.896804 C108.804956,194.383204 112.436054,192.210274 113.355359,184.724515 C114.48376,175.535577 120.945556,159.641154 124.897459,156.333653 C127.109021,154.482778 128.268636,151.905536 128.573284,148.163978 C128.818001,145.157747 131.906711,135.560972 135.437115,126.837819 C138.96752,118.114666 141.511492,110.079835 141.090434,108.982574 C139.755727,105.504315 136.554941,106.824333 135.676765,111.215287 M174.714659,126.841564 C169.37392,129.699438 169.197653,130.049915 167.452978,141.283475 C165.577352,153.360398 165.225112,168.513913 166.548289,180.203784 L167.566817,189.202501 L161.346213,191.9541 C154.601949,194.937416 150.91195,200.302465 153.156708,203.861146 C155.104824,206.949562 157.09025,206.70198 157.571826,203.310532 C158.083734,199.706169 166.097413,193.204052 170.29418,192.987978 C172.116999,192.894116 173.522874,191.717021 173.97823,189.903529 C174.383277,188.290613 177.740353,184.944554 181.438431,182.467858 C188.546172,177.707551 194.317883,170.450278 194.317883,166.273341 C194.317883,162.684548 189.493165,158.361603 185.487795,158.361603 C180.701636,158.361603 180.027195,155.239403 183.731222,150.229385 C188.308065,144.038966 188.284856,130.867646 183.690534,127.147387 C179.896537,124.075276 179.885006,124.074836 174.714659,126.841564 M182.67318,134.240439 C184.752542,140.153164 174.808961,161.185104 171.588639,157.68562 C169.868715,155.81653 172.863122,135.012708 175.266374,132.134564 C177.872553,129.013319 181.163896,129.949075 182.67318,134.240439 M184.854262,162.269586 C190.589839,163.855621 189.673839,167.881335 181.645765,176.371155 C177.281618,180.986262 173.904933,183.573859 173.371946,182.711474 C172.876636,181.91012 172.127869,176.711937 171.707987,171.159972 L170.944531,161.065463 L176.209475,161.200234 C179.105172,161.274339 182.995308,161.755548 184.854262,162.269586 M132.642184,172.492256 C131.593837,175.224098 133.152917,177.288844 136.264027,177.288844 C139.014965,177.288844 139.431396,176.221769 138.067531,172.667568 C137.039234,169.987871 133.645289,169.878218 132.642184,172.492256 M203.781503,185.840798 C203.781503,187.657595 209.264724,193.512152 210.966361,193.512152 C212.534035,193.512152 211.991059,187.391138 210.270768,185.670847 C208.092403,183.492409 203.781503,183.605293 203.781503,185.840798" id="Fill-6" fill="#427B8A" fill-rule="nonzero"></path>
|
16
|
+
</g>
|
17
|
+
</g>
|
18
|
+
</g>
|
19
|
+
</svg>
|
data/test/test__helper.rb
CHANGED
data/test/test_rake_task.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2017-
|
1
|
+
# Copyright (c) 2017-2021 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -25,7 +25,7 @@ require_relative '../lib/xcop/rake_task'
|
|
25
25
|
|
26
26
|
# Xcop rake task.
|
27
27
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
28
|
-
# Copyright:: Copyright (c) 2017-
|
28
|
+
# Copyright:: Copyright (c) 2017-2021 Yegor Bugayenko
|
29
29
|
# License:: MIT
|
30
30
|
class TestRakeTask < Minitest::Test
|
31
31
|
def test_basic
|
data/test/test_xcop.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2017-
|
1
|
+
# Copyright (c) 2017-2021 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -26,7 +26,7 @@ require_relative '../lib/xcop'
|
|
26
26
|
|
27
27
|
# Xcop main module test.
|
28
28
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
29
|
-
# Copyright:: Copyright (c) 2017-
|
29
|
+
# Copyright:: Copyright (c) 2017-2021 Yegor Bugayenko
|
30
30
|
# License:: MIT
|
31
31
|
class TestXcop < Minitest::Test
|
32
32
|
def test_basic
|
data/xcop.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2017-
|
1
|
+
# Copyright (c) 2017-2021 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -45,15 +45,14 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.rdoc_options = ['--charset=UTF-8']
|
46
46
|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
47
47
|
s.add_runtime_dependency 'differ', '~>0.1.2'
|
48
|
-
s.add_runtime_dependency 'nokogiri', '~>1.
|
48
|
+
s.add_runtime_dependency 'nokogiri', '~>1.10'
|
49
49
|
s.add_runtime_dependency 'rainbow', '~>3.0'
|
50
50
|
s.add_runtime_dependency 'slop', '~>4.4'
|
51
|
-
s.add_development_dependency 'codecov', '0.
|
52
|
-
s.add_development_dependency 'cucumber', '
|
53
|
-
s.add_development_dependency 'minitest', '5.
|
54
|
-
s.add_development_dependency 'rake', '
|
55
|
-
s.add_development_dependency 'rdoc', '
|
56
|
-
s.add_development_dependency 'rspec-rails', '3.1.0'
|
51
|
+
s.add_development_dependency 'codecov', '0.2.12'
|
52
|
+
s.add_development_dependency 'cucumber', '5.2.0'
|
53
|
+
s.add_development_dependency 'minitest', '5.14.2'
|
54
|
+
s.add_development_dependency 'rake', '13.0.1'
|
55
|
+
s.add_development_dependency 'rdoc', '6.2.1'
|
57
56
|
s.add_development_dependency 'rubocop', '0.52.0'
|
58
57
|
s.add_development_dependency 'rubocop-rspec', '1.5.1'
|
59
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: differ
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.10'
|
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: '1.
|
40
|
+
version: '1.10'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rainbow
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,84 +72,70 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.2.12
|
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: 0.
|
82
|
+
version: 0.2.12
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: cucumber
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 5.2.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 5.2.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: minitest
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 5.
|
103
|
+
version: 5.14.2
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 5.
|
110
|
+
version: 5.14.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 13.0.1
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 13.0.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rdoc
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 6.2.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec-rails
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - '='
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 3.1.0
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - '='
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 3.1.0
|
138
|
+
version: 6.2.1
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: rubocop
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -189,6 +175,8 @@ extra_rdoc_files:
|
|
189
175
|
files:
|
190
176
|
- ".0pdd.yml"
|
191
177
|
- ".gitattributes"
|
178
|
+
- ".github/ISSUE_TEMPLATE.md"
|
179
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
192
180
|
- ".gitignore"
|
193
181
|
- ".pdd"
|
194
182
|
- ".rubocop.yml"
|
@@ -210,6 +198,7 @@ files:
|
|
210
198
|
- lib/xcop.rb
|
211
199
|
- lib/xcop/rake_task.rb
|
212
200
|
- lib/xcop/version.rb
|
201
|
+
- logo.svg
|
213
202
|
- test/test__helper.rb
|
214
203
|
- test/test_rake_task.rb
|
215
204
|
- test/test_xcop.rb
|
@@ -234,8 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
223
|
- !ruby/object:Gem::Version
|
235
224
|
version: '0'
|
236
225
|
requirements: []
|
237
|
-
|
238
|
-
rubygems_version: 2.6.8
|
226
|
+
rubygems_version: 3.1.2
|
239
227
|
signing_key:
|
240
228
|
specification_version: 2
|
241
229
|
summary: XML Formatting Static Validator
|