pronto 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -11
- data/lib/pronto/rugged/repository.rb +1 -1
- data/lib/pronto/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 949c9ea51a509a0a35fd1175f4ac62723c5244b5
|
|
4
|
+
data.tar.gz: 2955df5b4161ad3069bb55b78e76eaa6dad19a57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 720547c6b21b78484e50837d24d4747abe06128731b5e5d7995535da787e580548bbaa00cc967b751d7d996e349a095da9b8235b94aa5d2936443ec6b4b7e9ba
|
|
7
|
+
data.tar.gz: 0f60f66c78153c10187f94acf632881565c45352c7afb22ede52bf5feff6adab63ae06264d982978f98c4de21512eaf745bb97543c46e9cbe74b662dbd525489
|
data/README.md
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Pronto
|
|
2
2
|
|
|
3
3
|
[](https://codeclimate.com/github/mmozuras/pronto)
|
|
4
4
|
[](http://travis-ci.org/mmozuras/pronto)
|
|
5
5
|
[](http://badge.fury.io/rb/pronto)
|
|
6
6
|
[](https://gemnasium.com/mmozuras/pronto)
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Pronto runs analysis quickly by checking only the relevant changes. Created to
|
|
9
|
+
be used on pull requests, but suited for other scenarios as well. Perfect if you
|
|
10
|
+
want to find out quickly if branch introduces changes that conform to your
|
|
11
|
+
[styleguide](https://github.com/mmozuras/pronto-rubocop), [are DRY](https://github.com/mmozuras/pronto-flay), [don't introduce security holes](https://github.com/mmozuras/pronto-brakeman) and [more](#runners).
|
|
12
12
|
|
|
13
13
|

|
|
14
14
|
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
15
17
|
### Pull Requests
|
|
16
18
|
|
|
17
19
|
You can run Pronto as part of your builds and then get results as comments
|
|
18
20
|
using `GithubFormatter`.
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
uses Travis CI and the included `TravisPullRequest` rake task for that.
|
|
22
|
-
|
|
23
|
-
To do the same, start by adding Pronto runners you want to use to your Gemfile:
|
|
22
|
+
Add Pronto runners you want to use to your Gemfile:
|
|
24
23
|
```ruby
|
|
25
24
|
gem 'pronto-rubocop'
|
|
26
25
|
```
|
|
@@ -28,7 +27,14 @@ or gemspec file:
|
|
|
28
27
|
```ruby
|
|
29
28
|
s.add_development_dependency 'pronto-rubocop'
|
|
30
29
|
```
|
|
31
|
-
|
|
30
|
+
Set environment variable GITHUB_ACCESS_TOKEN to OAuth token that has access to
|
|
31
|
+
repository. Then set it up to run using the included rake task or manually:
|
|
32
|
+
```ruby
|
|
33
|
+
Pronto.gem_names.each { |gem_name| require "pronto/#{gem_name}" }
|
|
34
|
+
|
|
35
|
+
formatter = Pronto::Formatter::GithubFormatter.new
|
|
36
|
+
Pronto.run('origin/master', '.', formatter)
|
|
37
|
+
```
|
|
32
38
|
|
|
33
39
|
### Local Changes
|
|
34
40
|
|
|
@@ -40,7 +46,7 @@ You can run Pronto locally. First, install Pronto and runners you want to use:
|
|
|
40
46
|
Then navigate to repository you want run Pronto on, and:
|
|
41
47
|
```bash
|
|
42
48
|
git checkout feature/branch
|
|
43
|
-
pronto
|
|
49
|
+
pronto run # Pronto runs against master by default
|
|
44
50
|
```
|
|
45
51
|
|
|
46
52
|
Run `pronto` in your terminal without any arguments to see what more Pronto is
|
|
@@ -56,3 +62,4 @@ Currently available runners:
|
|
|
56
62
|
* [pronto-brakeman](https://github.com/mmozuras/pronto-brakeman)
|
|
57
63
|
* [pronto-rails_best_practices](https://github.com/mmozuras/pronto-rails_best_practices)
|
|
58
64
|
* [pronto-poper](https://github.com/mmozuras/pronto-poper)
|
|
65
|
+
* [pronto-jshint](https://github.com/mmozuras/pronto-jshint)
|
data/lib/pronto/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pronto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mindaugas Mozūras
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rugged
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - ~>
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 2.
|
|
47
|
+
version: 2.6.0
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - ~>
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 2.
|
|
54
|
+
version: 2.6.0
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: grit
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|