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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed96eb462e5fb2c0762776e3fddc9559ce89f0e7
4
- data.tar.gz: 8fe54eeee25f13107abb6af5422e47a56c3f05ce
3
+ metadata.gz: 62646a38a746314ee96d9e4481affdb702b4e0ee
4
+ data.tar.gz: 7d181a4760fc0f7b0cdd1f37fcd10c551fb0423c
5
5
  SHA512:
6
- metadata.gz: d300fe674d22a043e8ceff11ea175824588240c1f8cef7d2d721bc9e4479a94aa88f4786f381b9231dc4b1d42a4a019ff542387ba5eceabf3f842dfecbf4cfae
7
- data.tar.gz: 8c6807a01446a945894c56d39b76328f7e7c58b12e31654da12ceef13062f086ab400d0a5c97f5eaa483ad14106742f39223db0bc2366b4f3f18e43c9d082f0a
6
+ metadata.gz: 1477038bd5d2f3e9dfccb1defd4d3f393d8c3b85c744c186ef0f00a423a6777331479ecf09b98550a8f54230016c3b4f12eefc4dcf0147cad9ad8094ab349136
7
+ data.tar.gz: 2840769b3230551080adf3a0ac084e78fbb4a1fe8b432f024532517caf26e94e8bf911ff46cd323c10ab77fd5cd7dac8e542d09d38b01e547d1ff6705d336201
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2016 Mindaugas Mozūras
3
+ Copyright (c) 2017 Mindaugas Mozūras
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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
@@ -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
- merge_base = @repo.merge_base(commit, commit) # HACK: to make refs work
8
- @commit = @repo.lookup(merge_base)
7
+ oid = @repo.rev_parse_oid(commit)
8
+ @commit = @repo.lookup(oid)
9
9
  end
10
10
 
11
11
  def run
@@ -1,3 +1,3 @@
1
1
  module Poper
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
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.3
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: 2016-03-14 00:00:00.000000000 Z
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: '0'
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.4.5
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