saddler-reporter-text 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -3
- data/README.md +39 -2
- data/changelog.md +12 -0
- data/lib/saddler/reporter/text.rb +2 -2
- data/saddler-reporter-text.gemspec +3 -3
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4bbb3ff4dd7c9980ad31ff73fd18c17e33046ef
|
4
|
+
data.tar.gz: 44ff3a01baddcc1ff0f03b8f71eb506ac3d1cef0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f3b69edf1405dfcd61418c30bbb71930d7e4534d2515ae57c1861c7399c3bd7c3dc432fe9c0a3eebfbabf8bc2756ee1061ac47d141a7cb1704a8c9e6272d52e
|
7
|
+
data.tar.gz: 8a88b4d710f0e420d96abdf60a396d8bcafe70e4a4430ec0b8ec08e6c2563cfb5cb32395854cd4123457ccfc50e2ee461bcdc5673905fd1bea519dd3c9e17521
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
[![Gem Version](http://img.shields.io/gem/v/saddler-reporter-text.svg?style=flat)](http://badge.fury.io/rb/saddler-reporter-text)
|
4
4
|
[![Build Status](http://img.shields.io/travis/packsaddle/ruby-saddler-reporter-text/master.svg?style=flat)](https://travis-ci.org/packsaddle/ruby-saddler-reporter-text)
|
5
5
|
|
6
|
+
|
6
7
|
## Reporters
|
7
8
|
|
8
|
-
|
9
|
+
Text reporter for [saddler](https://github.com/packsaddle/ruby-saddler).
|
9
10
|
|
10
|
-
* Text
|
11
11
|
|
12
12
|
## Usage
|
13
13
|
|
@@ -19,6 +19,41 @@ $ saddler report \
|
|
19
19
|
|
20
20
|
like this.
|
21
21
|
|
22
|
+
|
23
|
+
## Example
|
24
|
+
|
25
|
+
```xml
|
26
|
+
$ cat too_long.xml
|
27
|
+
<?xml version='1.0'?>
|
28
|
+
<checkstyle>
|
29
|
+
<file name='lib/example/travis_ci.rb'>
|
30
|
+
<error column='120' line='7' message='Line is too long. [164/120]' severity='info' source='com.puppycrawl.tools.checkstyle.Metrics/LineLength'/>
|
31
|
+
</file>
|
32
|
+
</checkstyle>
|
33
|
+
```
|
34
|
+
|
35
|
+
```bash
|
36
|
+
$ cat too_long.xml | saddler report --reporter Saddler::Reporter::Text
|
37
|
+
lib/example/travis_ci.rb:7:120 INFO: Line is too long. [164/120]
|
38
|
+
(exit status -> 0)
|
39
|
+
```
|
40
|
+
|
41
|
+
```xml
|
42
|
+
$ cat no_error.xml
|
43
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
44
|
+
<checkstyle version='4.3'>
|
45
|
+
<file name='/path/to/example/2015-09-16-react-0.14-eslint-1.4-es5.md'/>
|
46
|
+
</checkstyle>
|
47
|
+
```
|
48
|
+
|
49
|
+
```bash
|
50
|
+
$ cat no_error.xml | saddler report --reporter Saddler::Reporter::Text
|
51
|
+
(exit status -> 0)
|
52
|
+
```
|
53
|
+
|
54
|
+
Other [example](./example/example.sh).
|
55
|
+
|
56
|
+
|
22
57
|
## Installation
|
23
58
|
|
24
59
|
Add this line to your application's Gemfile:
|
@@ -35,12 +70,14 @@ Or install it yourself as:
|
|
35
70
|
|
36
71
|
$ gem install saddler-reporter-text
|
37
72
|
|
73
|
+
|
38
74
|
## Development
|
39
75
|
|
40
76
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
41
77
|
|
42
78
|
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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
43
79
|
|
80
|
+
|
44
81
|
## Contributing
|
45
82
|
|
46
83
|
1. Fork it ( https://github.com/packsaddle/ruby-saddler-reporter-text/fork )
|
data/changelog.md
ADDED
@@ -1,12 +1,12 @@
|
|
1
1
|
module Saddler
|
2
2
|
module Reporter
|
3
3
|
class Text
|
4
|
-
VERSION = '0.
|
4
|
+
VERSION = '0.2.0'
|
5
5
|
def initialize(output)
|
6
6
|
@output = output
|
7
7
|
end
|
8
8
|
|
9
|
-
def report(messages, _options)
|
9
|
+
def report(messages, _options = {})
|
10
10
|
parsed_messages = parse_messages(messages)
|
11
11
|
parsed_messages.each do |msg|
|
12
12
|
severity = msg[:severity] && msg[:severity].upcase
|
@@ -14,12 +14,12 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = 'https://github.com/packsaddle/ruby-saddler-reporter-text'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|example)/}) }
|
18
18
|
spec.bindir = 'exe'
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_development_dependency 'bundler'
|
23
|
-
spec.add_development_dependency 'rake'
|
22
|
+
spec.add_development_dependency 'bundler'
|
23
|
+
spec.add_development_dependency 'rake'
|
24
24
|
spec.add_development_dependency 'test-unit'
|
25
25
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saddler-reporter-text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
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: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: test-unit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- Rakefile
|
71
71
|
- bin/console
|
72
72
|
- bin/setup
|
73
|
+
- changelog.md
|
73
74
|
- lib/saddler/reporter/text.rb
|
74
75
|
- saddler-reporter-text.gemspec
|
75
76
|
homepage: https://github.com/packsaddle/ruby-saddler-reporter-text
|