pronto 0.4.0 → 0.4.1

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: 6b3458313f197182636f5f267fe7119b63c3b8cf
4
- data.tar.gz: 37235aba300815df70ddf5e48f58cd680d896e9b
3
+ metadata.gz: bcb19e8ce6c3a9ad363f36c5adebe0fcf52989a0
4
+ data.tar.gz: 4d604a06ca0242a2e271a06c2a2eed4ef80a3631
5
5
  SHA512:
6
- metadata.gz: c0f39899baeec5c9332d152980553ca0bae1cb97d00826fcc56c73189a43d0a8f8d95b38a51ef2478bdd0aeb807d493afa03a3dfc65a2802916ceb801b820d57
7
- data.tar.gz: 024ae53ce123604e0b8b9f0e0744241ff35925a7047bc3cdfe90f6dda6bc240353888b8861c74d957f085dae9f105f3f325652c18b84bf0495ac36e33e97e230
6
+ metadata.gz: 952bbf877a557e9d4c62809ecd2d9130c384bc2799d18f28925b6014a668e21c6c5b76dcb4099ecd7b81d1fd99b58752c89626c0783a0c2633c15cdc2ea028c7
7
+ data.tar.gz: ef98e4da18e5196a9c49d899471631a2f11683e77f93ea02c86ac6efdd42f67fe1e689715809e191613eab75fff5fd12828d19d4dba83c5ca47d5ee268827cea
data/README.md CHANGED
@@ -7,9 +7,9 @@
7
7
  [![Inline docs](http://inch-ci.org/github/mmozuras/pronto.png)](http://inch-ci.org/github/mmozuras/pronto)
8
8
 
9
9
  Pronto runs analysis quickly by checking only the relevant changes. Created to
10
- be used on pull requests, but also suited for other scenarios. Perfect if you
11
- want to find out quickly if branch introduces changes that conform to your
12
- [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).
10
+ be used on [pull requests](#github-integration), but also works [locally](#local-changes) and integrates with [GitLab](#gitlab-integration).
11
+ Perfect if want to find out quickly if branch introduces changes that conform
12
+ to your [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).
13
13
 
14
14
  ![Pronto demo](pronto.gif "")
15
15
 
@@ -54,6 +54,44 @@ formatter = Pronto::Formatter::GithubFormatter.new # or GithubPullRequestFormatt
54
54
  Pronto.run('origin/master', '.', formatter)
55
55
  ```
56
56
 
57
+ ### GitLab Integration
58
+
59
+ You can run Pronto as a step of your CI builds and get the results as comments
60
+ on GitLab commits using `GitlabFormatter`.
61
+
62
+ **note: this requires at least GitLab v7.5.0**
63
+
64
+ Add Pronto runners you want to use to your Gemfile:
65
+ ```ruby
66
+ gem 'pronto'
67
+ gem 'pronto-rubocop', require: false
68
+ gem 'pronto-scss', require: false
69
+ ```
70
+ or gemspec file:
71
+ ```ruby
72
+ s.add_development_dependency 'pronto'
73
+ s.add_development_dependency 'pronto-rubocop'
74
+ s.add_development_dependency 'pronto-scss'
75
+ ```
76
+
77
+ Set the `GITLAB_API_ENDPOINT` environment variable to your API endpoint URL.
78
+ If you are using Gitlab.com's hosted service your endpoint will be `https://gitlab.com/api/v3`.
79
+ Set the `GITLAB_API_PRIVATE_TOKEN` environment variable to your Gitlab private token
80
+ which you can find in your account settings.
81
+
82
+ Then just run it:
83
+ ```bash
84
+ GITLAB_API_ENDPOINT="https://gitlab.com/api/v3" GITLAB_API_PRIVATE_TOKEN=token pronto run -f gitlab -c origin/master
85
+ ```
86
+
87
+ As an alternative, you can also set up a rake task:
88
+ ```ruby
89
+ Pronto.gem_names.each { |gem_name| require "pronto/#{gem_name}" }
90
+
91
+ formatter = Pronto::Formatter::GitlabFormatter.new
92
+ Pronto.run('origin/master', '.', formatter)
93
+ ```
94
+
57
95
  ### Local Changes
58
96
 
59
97
  You can run Pronto locally. First, install Pronto and the runners you want to use:
@@ -7,7 +7,7 @@ module Pronto
7
7
 
8
8
  def commit_comments(sha)
9
9
  @comment_cache["#{sha}"] ||= begin
10
- client.commit_comments(slug, sha).map do |comment|
10
+ client.commit_comments(slug, sha, per_page: 500).map do |comment|
11
11
  Comment.new(sha, comment.note, comment.path, comment.line)
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
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.4.0
4
+ version: 0.4.1
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: 2015-01-25 00:00:00.000000000 Z
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged