gmail-api-ruby 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5273a95744838014133f8e73a0f46fd460718c77
4
- data.tar.gz: d5bfd5f961dfd1d4922b91ab6fd2ec690c1bce43
3
+ metadata.gz: 085675b3ee758627447a15b1e2c3fc0eb4b158a0
4
+ data.tar.gz: 7772bbd3cb2ae53a45b4e48613620c98fd2175c7
5
5
  SHA512:
6
- metadata.gz: ebbf9e37b8ae3ae567f98cc264ffd8af56f22148b32b52a5d81eeaf922d5462f415e799434585c1232e285a747c3ff67c09e52ce86cdfc21a82cf53ada203759
7
- data.tar.gz: c8464d8203da235e1cf0cad899e94c3f97e2e8b027f333df27a7bc67656ed2abf92d422a49111cc7d556f0c7c56c58c00c6c0bf080fb879f757c8ffe91024b62
6
+ metadata.gz: 269893f1e9fb4b1b877a46d632d44f08f3e3dde7b5ca3bf3364615b7775f1bf6a90eee9ab201c2401bed5c634648357de58efa5448256ad4bc59f0f9bad3c3b4
7
+ data.tar.gz: 0013825ff0f97f195138c28e4209d954f03cca732a267d340bff9c3cb03e1eced8faf3543d66ce2e49eb53f82bc75fe7a839ed0fbcdc09529a6d4ca903a3550a
data/CHANGELOG.md CHANGED
@@ -27,3 +27,7 @@
27
27
 
28
28
  * minor fix
29
29
 
30
+ ## 0.0.9 / 2015-02-12
31
+
32
+ * minor fix
33
+
data/lib/gmail/message.rb CHANGED
@@ -77,15 +77,15 @@ module Gmail
77
77
 
78
78
 
79
79
  def unread?
80
- labelIds.include?("UNREAD")
80
+ (labelIds||[]).include?("UNREAD")
81
81
  end
82
82
 
83
83
  def sent?
84
- labelIds.include?("SENT")
84
+ (labelIds||[]).include?("SENT")
85
85
  end
86
86
 
87
87
  def inbox?
88
- labelIds.include?("INBOX")
88
+ (labelIds||[]).include?("INBOX")
89
89
  end
90
90
 
91
91
 
@@ -139,7 +139,7 @@ module Gmail
139
139
  to_ar = []
140
140
  split_regexp = Regexp.new("\s*,\s*")
141
141
  own_email = delivered_to || Gmail.mailbox_email
142
- to_ar = to.split(split_regexp) + (cc || "").split(split_regexp)
142
+ to_ar = (to || "").split(split_regexp) + (cc || "").split(split_regexp)
143
143
  result = to_ar.grep(Regexp.new(own_email, "i"))
144
144
  to_ar = to_ar - result
145
145
 
data/lib/gmail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gmail
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end # Gmail
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmail-api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Hobeika
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-30 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime