pronto 0.1.1 → 0.1.2
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 +2 -0
- data/lib/pronto/cli.rb +1 -1
- data/lib/pronto/formatter/github_formatter.rb +3 -1
- data/lib/pronto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21228f91970d62c5d451bd55b4c739810c4add73
|
|
4
|
+
data.tar.gz: dcc1ef988027b944eda87ab497720de67e6ad81e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0219d32f2900b87bf22bd3811ba005beba910ad2b81d96509f06e47d6d5d80e9418c9e2973072ef442e61d2ab231d2f81c961262400f8176aab4483e77da95f
|
|
7
|
+
data.tar.gz: 95bcad4c41d18348da760da381b10d51b31ea638443e3d45afdf3330c9800f5637f2ab6fe4e5d19ecd119bb4dc80bd8a21d71d40a906a70ef07c5212f093d37c
|
data/README.md
CHANGED
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.
|
|
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
|
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.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-
|
|
11
|
+
date: 2013-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rugged
|