gmailer 0.1.7 → 0.1.8

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.
Files changed (4) hide show
  1. data/CHANGES +5 -0
  2. data/gmailer.gempsec +1 -1
  3. data/gmailer.rb +5 -12
  4. metadata +2 -2
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.1.8 - 29-Sep-2007
2
+ - some source code refactoring
3
+ - fix contact_group typo
4
+ - remove some debugging statement
5
+
1
6
  == 0.1.7 - 11-Jul-2007
2
7
  - some source code refactoring
3
8
  - fix connection problem with spaces in label and '=' in credentials.
@@ -2,7 +2,7 @@ require "rubygems"
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
4
  gem.name = "gmailer"
5
- gem.version = "0.1.7"
5
+ gem.version = "0.1.8"
6
6
  gem.author = "Park Heesob"
7
7
  gem.email = "phasis_AT_gmail.com"
8
8
  gem.homepage = "http://rubyforge.org/projects/gmailutils"
data/gmailer.rb CHANGED
@@ -52,7 +52,7 @@ GM_ACT_DELSPAM = 20 # delete spam, forever
52
52
  GM_ACT_DELTRASH = 21 # delete trash message, forever
53
53
 
54
54
  module GMailer
55
- VERSION = "0.1.7"
55
+ VERSION = "0.1.8"
56
56
  attr_accessor :connection
57
57
 
58
58
  # the main class.
@@ -1328,9 +1328,9 @@ module GMailer
1328
1328
 
1329
1329
  def edit_contact(contact_id, name, email, notes, details=[])
1330
1330
  if connected?
1331
- postdata = {}
1331
+ postdata = {}
1332
1332
  postdata["act"] = "ec"
1333
- postdata["ct_id"] = contact_id.to_s
1333
+ postdata["ct_id"] = contact_id.to_s
1334
1334
  postdata["ct_nm"] = name
1335
1335
  postdata["ct_em"] = email
1336
1336
  postdata["ctf_n"] = notes
@@ -1635,18 +1635,11 @@ module GMailer
1635
1635
  @conv = []
1636
1636
  b = Conversation.new
1637
1637
  raw["mg"].each do |r|
1638
- puts "KKKKKKKKKKK"
1639
- puts r[0]
1640
- puts "================"
1641
1638
  if (r[0] == "mb")
1642
1639
  b.body = '' if b.body.nil?
1643
1640
  b.body += r[1]
1644
- puts b.body
1645
- puts "###################"
1646
1641
  if (r[2] == 0)
1647
1642
  b.body = decode(b.body)
1648
- puts b.body
1649
- puts "******************"
1650
1643
  @conv.push(b)
1651
1644
  b = Conversation.new
1652
1645
  end
@@ -1721,11 +1714,11 @@ puts "******************"
1721
1714
  end
1722
1715
  elsif type == GM_CONTACT
1723
1716
  @contacts = []
1724
- @contact_groups = []
1717
+ @contacts_groups = []
1725
1718
  @contacts_total = 0
1726
1719
 
1727
1720
  if raw["cls"]
1728
- @contacts_toal = (raw["cls"][1]).to_i
1721
+ @contacts_total = (raw["cls"][1]).to_i
1729
1722
  @contacts_shown = (raw["cls"][3]).to_i
1730
1723
  end
1731
1724
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: gmailer
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.7
7
- date: 2007-07-11 00:00:00 +09:00
6
+ version: 0.1.8
7
+ date: 2007-09-29 00:00:00 +09:00
8
8
  summary: An class interface of the Google's webmail service
9
9
  require_paths:
10
10
  - ""