pronto 0.1.1 → 0.1.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: 800c72660ff1c44c50bcb121d16addbdd3155035
4
- data.tar.gz: 1e69d5e353aa63b326b21845f31d00d3d2a6e6dc
3
+ metadata.gz: 21228f91970d62c5d451bd55b4c739810c4add73
4
+ data.tar.gz: dcc1ef988027b944eda87ab497720de67e6ad81e
5
5
  SHA512:
6
- metadata.gz: 6da3eb9370bd8b8f6a65a07fcfdd5ef8d6a2d2ff655ee8d5ae541cbc5a8036412c46b92130c2a8bcc60517332b3a6998db56a9c9a3e1d8a751c59c5ce26461c0
7
- data.tar.gz: b0c0b6cb81e088dc11bd4d97fe06440345c32b924f66d02a208af5ef6f46ade2cbb52dbbce19e275feb0ba2bad9d069cf06d44eb715cd02e4c9291097dd7300d
6
+ metadata.gz: f0219d32f2900b87bf22bd3811ba005beba910ad2b81d96509f06e47d6d5d80e9418c9e2973072ef442e61d2ab231d2f81c961262400f8176aab4483e77da95f
7
+ data.tar.gz: 95bcad4c41d18348da760da381b10d51b31ea638443e3d45afdf3330c9800f5637f2ab6fe4e5d19ecd119bb4dc80bd8a21d71d40a906a70ef07c5212f093d37c
data/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  Pronto runs analysis quickly by checking only the introduced changes.
10
10
 
11
+ ![Pronto demo](pronto.gif "")
12
+
11
13
  ### Pull Requests
12
14
 
13
15
  You can run Pronto as part of your builds and then get results as commit
data/lib/pronto/cli.rb CHANGED
@@ -33,7 +33,7 @@ module Pronto
33
33
  end
34
34
 
35
35
  formatter = ::Pronto::Formatter.get(options[:formatter])
36
- ::Pronto.run(options[:commit], '.', formatter)
36
+ puts ::Pronto.run(options[:commit], '.', formatter)
37
37
  rescue Rugged::RepositoryError
38
38
  puts '"pronto" should be run from a git repository'
39
39
  end
@@ -4,7 +4,7 @@ module Pronto
4
4
  module Formatter
5
5
  class GithubFormatter
6
6
  def format(messages)
7
- messages.each do |message|
7
+ commit_messages = messages.map do |message|
8
8
  repo = github_slug(message)
9
9
  sha = commit_sha(message)
10
10
  position = message.line.position
@@ -13,6 +13,8 @@ module Pronto
13
13
 
14
14
  create_commit_comment(repo, sha, position, path, body)
15
15
  end
16
+
17
+ "#{commit_messages.compact.count} Pronto messages posted to GitHub"
16
18
  end
17
19
 
18
20
  private
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
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.1.1
4
+ version: 0.1.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: 2013-09-29 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged