gergich 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gergich.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c315c6166bed8d6a67b00c7356fce017a579139
4
- data.tar.gz: 4c9825057793fa28ad9970a73ed2c68cae76f41a
3
+ metadata.gz: 07fde95880fbf7f7195ce8f7ca43cdfd47005d8c
4
+ data.tar.gz: 8c6f1be4ab8bb1e4ea565da45087cfa6a85d1f11
5
5
  SHA512:
6
- metadata.gz: 967db7d75cd976e2aa3ebe6413a9063eba44e7a418892c5565837f0a96b83ba449829fbfff57a9cf53b4bdc521357edf51025280135770e6f535b892c162db62
7
- data.tar.gz: 7cf0feb214e120c58df7d33468bd27c156182f6f2e72fe142249258f64ca796a92b73fea2d277227e49b134166b56070788fc3ae870fb69bac94de0b2967b335
6
+ metadata.gz: 976fbe4fe6a0dff8babf88f8994206a31ce2cceef84ed06ffc828a0efc77da806272aebb07e4ee514f6341bd79f2eed63bb388c2dea98418b0feb2390605f2e2
7
+ data.tar.gz: f2b3b77e61633b7eb00b44a11679e77dcd98d6851d190d105879888d4b8c4832b97d0ce104882530a283ac7e1fb54efc13bcbe2f895fe1e6b369e7fb4f3907b8
data/lib/gergich.rb CHANGED
@@ -222,6 +222,7 @@ module Gergich
222
222
  # however, we can match the label timestamp w/ one of our comment timestamps,
223
223
  # then grab the comment's revision.
224
224
  def current_label_revision
225
+ return nil if my_messages.empty?
225
226
  @current_label_revision ||= begin
226
227
  date = current_label_date
227
228
  comment_for_current_label = my_messages.find { |message| message["date"] == date } ||
@@ -231,7 +232,6 @@ module Gergich
231
232
  end
232
233
 
233
234
  def current_label_is_for_current_revision?
234
- return false unless current_label
235
235
  current_label_revision == commit.revision_number
236
236
  end
237
237
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gergich
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Jensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-05 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3