gmail-imap 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38545418408a8c824b984835e894e4d2cd78eaa7
4
+ data.tar.gz: d1b92a643a07f93215bbe336353119414c1bfdd0
5
+ SHA512:
6
+ metadata.gz: 6d334cf9c2a7302026848279df4683184807e9bc1b0046990a0396643887b8ee3a81e7ac0175d5828b8710f360c421918a58f78cdd909a584b2a62d3a0c09019
7
+ data.tar.gz: 3e09e28c173ff7bb678e5b85b42bf04ec4403e2bde082fc83739b765e996ea97b12681f7caed3b5e710498d192212480da330a4a8ab819b7ae7de136d423841a
@@ -15,5 +15,5 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = GmailImap::VERSION
17
17
 
18
- gem.add_development_dependency "mocha", ['>= 0']
18
+ gem.add_development_dependency "mocha", ['>= 1']
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module GmailImap
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  class Net::IMAP::ResponseParser::Gmail < Net::IMAP::ResponseParser
2
- def msg_att
2
+ def msg_att(n = nil)
3
3
  match(T_LPAR)
4
4
  attr = {}
5
5
  while true
@@ -34,7 +34,11 @@ class Net::IMAP::ResponseParser::Gmail < Net::IMAP::ResponseParser
34
34
  when /\A(?:X-GM-THRID)\z/ni
35
35
  name, val = uid_data
36
36
  else
37
- parse_error("unknown attribute `%s'", token.value)
37
+ if n # Ruby >= 2.0.0
38
+ parse_error("unknown attribute `%s' for {%d}", token.value, n)
39
+ else # Ruby <= 1.9.3
40
+ parse_error("unknown attribute `%s'", token.value)
41
+ end
38
42
  end
39
43
  attr[name] = val
40
44
  end
@@ -1,6 +1,6 @@
1
1
  require 'net/imap/gmail'
2
2
  require 'test/unit'
3
- require 'mocha'
3
+ require 'mocha/test_unit'
4
4
 
5
5
  class Net::IMAP::GmailTest < Test::Unit::TestCase
6
6
  def test_is_imap
metadata CHANGED
@@ -1,32 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmail-imap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paul Rosania
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-03 00:00:00.000000000 Z
11
+ date: 2014-09-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mocha
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '1'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: '1'
30
27
  description: Use with Net::IMAP to interact with Gmail's IMAP extensions.
31
28
  email:
32
29
  - paul.rosania@gmail.com
@@ -34,7 +31,7 @@ executables: []
34
31
  extensions: []
35
32
  extra_rdoc_files: []
36
33
  files:
37
- - .gitignore
34
+ - ".gitignore"
38
35
  - Gemfile
39
36
  - LICENSE
40
37
  - README.md
@@ -49,27 +46,26 @@ files:
49
46
  - test/net/imap/test_gmail.rb
50
47
  homepage: https://github.com/paulrosania/gmail-imap
51
48
  licenses: []
49
+ metadata: {}
52
50
  post_install_message:
53
51
  rdoc_options: []
54
52
  require_paths:
55
53
  - lib
56
54
  required_ruby_version: !ruby/object:Gem::Requirement
57
- none: false
58
55
  requirements:
59
- - - ! '>='
56
+ - - ">="
60
57
  - !ruby/object:Gem::Version
61
58
  version: '0'
62
59
  required_rubygems_version: !ruby/object:Gem::Requirement
63
- none: false
64
60
  requirements:
65
- - - ! '>='
61
+ - - ">="
66
62
  - !ruby/object:Gem::Version
67
63
  version: '0'
68
64
  requirements: []
69
65
  rubyforge_project:
70
- rubygems_version: 1.8.23
66
+ rubygems_version: 2.2.2
71
67
  signing_key:
72
- specification_version: 3
68
+ specification_version: 4
73
69
  summary: A Gmail extension-aware accessory to Net::IMAP.
74
70
  test_files:
75
71
  - test/fixtures/response-quoted-labels.log