pronto 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6606bb1e1a787c844899c0ade07a848ce88015f
4
- data.tar.gz: 570c767d2f9c327aac7a68c9969849268472c429
3
+ metadata.gz: 949c9ea51a509a0a35fd1175f4ac62723c5244b5
4
+ data.tar.gz: 2955df5b4161ad3069bb55b78e76eaa6dad19a57
5
5
  SHA512:
6
- metadata.gz: 595ba658edf9f057540e2c990e4e6a84535c467757cd3bd434c027d74ffdaa2c95f2b14082592158d90b17efc3ce58bfd278a8ce10bc4791adc13662202d4881
7
- data.tar.gz: a2784022f00ba634bf0d84df9994659f5f9f9c75a5df5220ffb38a7906058a22e37c874fc6cc5cdf9b0d75b61e60706c4901495d915bc13f3de68bbbc261f03b
6
+ metadata.gz: 720547c6b21b78484e50837d24d4747abe06128731b5e5d7995535da787e580548bbaa00cc967b751d7d996e349a095da9b8235b94aa5d2936443ec6b4b7e9ba
7
+ data.tar.gz: 0f60f66c78153c10187f94acf632881565c45352c7afb22ede52bf5feff6adab63ae06264d982978f98c4de21512eaf745bb97543c46e9cbe74b662dbd525489
data/README.md CHANGED
@@ -1,26 +1,25 @@
1
- # pronto
1
+ # Pronto
2
2
 
3
3
  [![Code Climate](https://codeclimate.com/github/mmozuras/pronto.png)](https://codeclimate.com/github/mmozuras/pronto)
4
4
  [![Build Status](https://secure.travis-ci.org/mmozuras/pronto.png)](http://travis-ci.org/mmozuras/pronto)
5
5
  [![Gem Version](https://badge.fury.io/rb/pronto.png)](http://badge.fury.io/rb/pronto)
6
6
  [![Dependency Status](https://gemnasium.com/mmozuras/pronto.png)](https://gemnasium.com/mmozuras/pronto)
7
7
 
8
- ## Usage
9
-
10
- Pronto runs analysis quickly by checking only the introduced changes. Created
11
- to be used on pull requets, but suited for other scenarios as well.
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
  ![Pronto demo](pronto.gif "")
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
- Actually, Pronto runs Pronto whenever you make a pull request on Pronto. It
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
- Then run it using the included rake task or manually.
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 exec # Pronto runs against master by default
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)
@@ -5,7 +5,7 @@ module Rugged
5
5
  def blame(filepath)
6
6
  # TODO: Using grit blame implementation for now.
7
7
  # Replace it with Rugged implementation when it's available.
8
- ::Grit::Repo.new(path).blame(filepath)
8
+ ::Grit::Repo.new(path).blame(filepath, 'HEAD')
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
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.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-10-20 00:00:00.000000000 Z
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.4.0
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.4.0
54
+ version: 2.6.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: grit
57
57
  requirement: !ruby/object:Gem::Requirement