ruby-mailchimp 0.3.0 → 0.3.1

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 (2) hide show
  1. data/lib/mail_chimp.rb +6 -1
  2. metadata +2 -2
data/lib/mail_chimp.rb CHANGED
@@ -62,7 +62,12 @@ class MailChimp
62
62
  listhash_key = list["name"]
63
63
  listhash[listhash_key] = list
64
64
  }
65
- return list[listname]
65
+ return listhash[listname]
66
+ end
67
+
68
+ def getListIdByName(uid, listname)
69
+ list = getListByName(uid, listname)
70
+ return list["id"]
66
71
  end
67
72
 
68
73
  def listMergeVars(uid, list_id)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-mailchimp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - C. G. Brown
@@ -9,7 +9,7 @@ autorequire: mail_chimp
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-11 00:00:00 -05:00
12
+ date: 2008-02-12 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency