poper 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/poper/cli.rb +3 -0
- data/lib/poper/runner.rb +2 -2
- data/lib/poper/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62646a38a746314ee96d9e4481affdb702b4e0ee
|
4
|
+
data.tar.gz: 7d181a4760fc0f7b0cdd1f37fcd10c551fb0423c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1477038bd5d2f3e9dfccb1defd4d3f393d8c3b85c744c186ef0f00a423a6777331479ecf09b98550a8f54230016c3b4f12eefc4dcf0147cad9ad8094ab349136
|
7
|
+
data.tar.gz: 2840769b3230551080adf3a0ac084e78fbb4a1fe8b432f024532517caf26e94e8bf911ff46cd323c10ab77fd5cd7dac8e542d09d38b01e547d1ff6705d336201
|
data/LICENSE
CHANGED
data/lib/poper/cli.rb
CHANGED
@@ -16,6 +16,9 @@ module Poper
|
|
16
16
|
|
17
17
|
def run(commit)
|
18
18
|
Runner.new(commit).run.each do |message|
|
19
|
+
# message.commit and message.message are Strings
|
20
|
+
# prints first 7 characteres of the commit sha1 hash
|
21
|
+
# followed by the associated message
|
19
22
|
puts "#{message.commit[0..6]}: #{message.message}"
|
20
23
|
end
|
21
24
|
end
|
data/lib/poper/runner.rb
CHANGED
@@ -4,8 +4,8 @@ module Poper
|
|
4
4
|
class Runner
|
5
5
|
def initialize(commit, repo_path = '.')
|
6
6
|
@repo = Rugged::Repository.new(repo_path)
|
7
|
-
|
8
|
-
@commit = @repo.lookup(
|
7
|
+
oid = @repo.rev_parse_oid(commit)
|
8
|
+
@commit = @repo.lookup(oid)
|
9
9
|
end
|
10
10
|
|
11
11
|
def run
|
data/lib/poper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
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:
|
11
|
+
date: 2017-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
118
|
requirements:
|
119
119
|
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
121
|
+
version: 2.0.0
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - ">="
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: 1.3.6
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.6.10
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Poper makes sure that your git commit messages are well-formed
|