pronto 0.3.1 → 0.3.2

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: 0c3b28bafb054d0d1a5b22fdc29aee6247f9be04
4
- data.tar.gz: e134a066195ef8d152ed422035f142e3d6a2ca7c
3
+ metadata.gz: bdfd3ca32c39d7eee0bafdfea6e2337d992423cb
4
+ data.tar.gz: a377ae8053e27964ae982f698c69c422793889a3
5
5
  SHA512:
6
- metadata.gz: 37d19120ce8e3c9ae7eb48e2cddabd60380515cfe73edb4e051d1c66840c4e85478fdabb91cfd9db053b9dae2e994d47f534e6dcbca08a8ee62d84629942bdd2
7
- data.tar.gz: 7fdaddb4007f10a76884b25c4140b274e4516812b966a9bbf198a563bef029084a10e6830f90dfc12c2b6c4585b29b26124ede6c17022c39494ede544cc22272
6
+ metadata.gz: d9e119e18814aaacc95a9b103008d61c98b33c6b2cdef9bfb63cd9e11389f96f5f3cc8847b1b005c04fe5045e8e3b6622dd95f7aa9beab39476500f004e72c72
7
+ data.tar.gz: 7ab05bcb00fc1a26f959392018de3a9bf20d8f132d9d6d0b9f2ca1998a89c0b1af367c6056ba2a346348a45c1c0c1ef8fa947e75c4ad99c31f9c7a735abe74f1
data/README.md CHANGED
@@ -15,10 +15,12 @@ want to find out quickly if branch introduces changes that conform to your
15
15
 
16
16
  ## Usage
17
17
 
18
- ### Pull Requests
18
+ Pronto runs the checks on a diff between the current HEAD and the provided commit-ish (default is master).
19
19
 
20
- You can run Pronto as part of your builds and then get results as comments
21
- using `GithubFormatter`.
20
+ ### GitHub Integration
21
+
22
+ You can run Pronto as a step of your CI builds and get the results as comments
23
+ on GitHub commits using `GithubFormatter`.
22
24
 
23
25
  Add Pronto runners you want to use to your Gemfile:
24
26
  ```ruby
@@ -28,23 +30,27 @@ or gemspec file:
28
30
  ```ruby
29
31
  s.add_development_dependency 'pronto-rubocop'
30
32
  ```
31
- Set environment variable GITHUB_ACCESS_TOKEN to OAuth token that has access to
32
- repository. Then set it up to run using the included rake task or manually:
33
+ Set the GITHUB_ACCESS_TOKEN environment variable to [OAuth token](https://help.github.com/articles/creating-an-access-token-for-command-line-use)
34
+ that has access to the repository. Then set up a rake task:
33
35
  ```ruby
34
36
  Pronto.gem_names.each { |gem_name| require "pronto/#{gem_name}" }
35
37
 
36
38
  formatter = Pronto::Formatter::GithubFormatter.new
37
39
  Pronto.run('origin/master', '.', formatter)
38
40
  ```
41
+ or run it via command line:
42
+ ```
43
+ GITHUB_ACCESS_TOKEN=<token> bundle exec pronto run -f github -c origin/master
44
+ ```
39
45
 
40
46
  ### Local Changes
41
47
 
42
- You can run Pronto locally. First, install Pronto and runners you want to use:
48
+ You can run Pronto locally. First, install Pronto and the runners you want to use:
43
49
  ```bash
44
50
  gem install pronto
45
51
  gem install pronto-rubocop
46
52
  ```
47
- Then navigate to repository you want run Pronto on, and:
53
+ Then navigate to the repository you want to run Pronto on, and:
48
54
  ```bash
49
55
  git checkout feature/branch
50
56
  pronto run # Pronto runs against master by default
@@ -16,9 +16,7 @@ module Pronto
16
16
  line
17
17
  end
18
18
 
19
- position = line.position - 1
20
-
21
- comment = Github::Comment.new(github_slug, sha, body, path, position)
19
+ comment = Github::Comment.new(github_slug, sha, body, path, line.position)
22
20
  create_comment(github_slug, sha, comment)
23
21
  end
24
22
 
@@ -32,7 +32,7 @@ module Pronto
32
32
 
33
33
  def commits_until(sha)
34
34
  result = []
35
- @repo.walk('HEAD', Rugged::SORT_TOPO).take_while do |commit|
35
+ @repo.walk(head, Rugged::SORT_TOPO).take_while do |commit|
36
36
  result << commit.oid
37
37
  !commit.oid.start_with?(sha)
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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: 2014-09-11 00:00:00.000000000 Z
11
+ date: 2014-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.21.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.19.0
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
40
  version: 0.19.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: octokit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.2'
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
54
  version: '3.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '10.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.0'
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
82
  version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-its
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.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
96
  version: '1.0'
97
97
  description: |2
@@ -137,12 +137,12 @@ require_paths:
137
137
  - lib
138
138
  required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - '>='
140
+ - - ">="
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - '>='
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: 1.3.6
148
148
  requirements: []
@@ -152,4 +152,3 @@ signing_key:
152
152
  specification_version: 4
153
153
  summary: Pronto runs analysis by checking only the introduced changes
154
154
  test_files: []
155
- has_rdoc: