dug 1.0.0 → 1.0.1

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: 165051f76455d5a9922ab89df1c866abe8f655aa
4
- data.tar.gz: 4549c773dfb062ca0bbf472d0b096fe897ad4b28
3
+ metadata.gz: dd5630b7b7d4ec5a034f3f2247dbcb507ac47848
4
+ data.tar.gz: 97b5490b55fd7a68714b35499896f0474f328e4e
5
5
  SHA512:
6
- metadata.gz: 4d9357bda24f78bbe23a47fcfe74dca8c59604eea493e98a0b7493d9d3495f4e816b9e4909ea05bb1b605b9e16eec0ca5bdd7b28243d9aead462e6fe466f695a
7
- data.tar.gz: 830abd72bb43db5ddbd6e5c45a6439522c2941e92ef6c386761463bdf869bc445220e672c25acc47ec926f8c34d13acff07bbfff4ea1c141e0b08f66f0b8ebb3
6
+ metadata.gz: 1a30a7734647f55dd293f138044c0852604e07682cdbb88204efaef3ee10a7b60a7094ab1a78da572750692f3e3b1e0f6c25e864208b24a39640a4e134945ed4
7
+ data.tar.gz: c7e42008a1abb0d07a937803b5049652180e21b298d6dc96c7644f2cd8140d09ea6e2fb277836f643cef64b645ac800c78924ff506b7df490dafa7e747b9f8df
@@ -1,8 +1,16 @@
1
1
  ### Unreleased
2
- [Full Changelog](http://github.com/chrisarcand/dug/compare/v1.0.0...master)
2
+ [Full Changelog](http://github.com/chrisarcand/dug/compare/v1.0.1...master)
3
3
 
4
4
  Nothing yet!
5
5
 
6
+ ### 1.0.0 / 2016-03-11
7
+ [Full Changelog](http://github.com/chrisarcand/dug/compare/v1.0.0...v1.0.1)
8
+
9
+ * Fixed "The Julian Bug", where mentions in commits on other people's forks of a project
10
+ were causing exceptions due to GitHub only sending a plaintext message instead of HTML+plaintext combo
11
+ Issue: https://github.com/chrisarcand/dug/issues/16
12
+ PR: https://github.com/chrisarcand/dug/pull/17
13
+
6
14
  ### 1.0.0 / 2016-02-11
7
15
  [Full Changelog](http://github.com/chrisarcand/dug/compare/65eec3580879c3d4dc27bb6d6ed7716f965ec6ff...v1.0.0)
8
16
 
@@ -45,9 +45,11 @@ module Dug
45
45
  end
46
46
 
47
47
  def plaintext_body
48
- payload.parts.detect { |part|
49
- part.mime_type == 'text/plain'
50
- }.body.data
48
+ @plaintext_body ||= \
49
+ begin
50
+ parts = payload.parts || Array(payload)
51
+ parts.detect { |part| part.mime_type == 'text/plain' }.body.data
52
+ end
51
53
  end
52
54
  end
53
55
  end
@@ -1,3 +1,3 @@
1
1
  module Dug
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dug
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Arcand
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-12 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client