gibbon 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gibbon might be problematic. Click here for more details.

@@ -1,37 +1,37 @@
1
- = gibbon
1
+ # gibbon
2
2
 
3
- Gibbon is a simple API wrapper for interacting with {MailChimp API}[http://www.mailchimp.com/api] 1.3.
3
+ Gibbon is a simple API wrapper for interacting with [MailChimp API](http://www.mailchimp.com/api) 1.3.
4
4
 
5
- == Installation
5
+ ##Installation
6
6
 
7
- gem install gibbon
7
+ $ gem install gibbon
8
8
 
9
- == Requirements
9
+ ##Requirements
10
10
 
11
- A MailChimp account and API key. You can see your API keys {here}[http://admin.mailchimp.com/account/api].
11
+ A MailChimp account and API key. You can see your API keys [here](http://admin.mailchimp.com/account/api).
12
12
 
13
- == Usage
13
+ ##Usage
14
14
 
15
15
  Create an instance of the API wrapper:
16
16
 
17
17
  gb = Gibbon::API.new(api_key)
18
18
 
19
19
  Fetching data is as simple as calling API methods directly on the wrapper object.
20
- Check the API {documentation}[http://www.mailchimp.com/api/1.3] for details.
20
+ Check the API [documentation](http://www.mailchimp.com/api/1.3) for details.
21
21
 
22
- === Fetching Campaigns
22
+ ### Fetching Campaigns
23
23
 
24
24
  For example, to fetch your first 100 campaigns (page 0):
25
25
 
26
- campaigns = gb.campaigns({:start => 0, :limit => 100})
26
+ campaigns = gb.campaigns({:start => 0, :limit => 100})
27
27
 
28
- === Fetching Lists
28
+ ### Fetching Lists
29
29
 
30
30
  Similarly, to fetch your first 100 lists:
31
31
 
32
32
  lists = gb.lists({:start => 0, :limit=> 100})
33
33
 
34
- === More Advanced Examples
34
+ ### More Advanced Examples
35
35
 
36
36
  Getting batch member information for subscribers looks like this:
37
37
 
@@ -49,11 +49,11 @@ or
49
49
 
50
50
  email_stats = gb.campaignEmailStatsAIM({:cid => campaign_id, :email_address => email_array})
51
51
 
52
- == Thanks
52
+ ##Thanks
53
53
 
54
54
  * Rails for camelize gsub
55
55
 
56
- == Copyrights
56
+ ##Copyrights
57
57
 
58
58
  * Copyright (c) 2010 Amro Mousa. See LICENSE.txt for details.
59
- * MailChimp (c) 2001-2010 The Rocket Science Group
59
+ * MailChimp (c) 2001-2010 The Rocket Science Group.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/gibbon.gemspec ADDED
@@ -0,0 +1,70 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{gibbon}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Amro Mousa"]
12
+ s.date = %q{2010-11-15}
13
+ s.description = %q{Gibbon is a simple API wrapper for interacting with MailChimp API version 1.3.}
14
+ s.email = %q{amromousa@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.markdown"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.markdown",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "gibbon.gemspec",
28
+ "lib/gibbon.rb",
29
+ "test/helper.rb",
30
+ "test/test_gibbon.rb"
31
+ ]
32
+ s.homepage = %q{http://github.com/amro/gibbon}
33
+ s.licenses = ["MIT"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.3.7}
36
+ s.summary = %q{Gibbon is a simple API wrapper for interacting with MailChimp API 1.3}
37
+ s.test_files = [
38
+ "test/helper.rb",
39
+ "test/test_gibbon.rb"
40
+ ]
41
+
42
+ if s.respond_to? :specification_version then
43
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
48
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
49
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
50
+ s.add_development_dependency(%q<rcov>, [">= 0"])
51
+ s.add_runtime_dependency(%q<httparty>, ["> 0.6.0"])
52
+ s.add_runtime_dependency(%q<json>, ["> 1.4.0"])
53
+ else
54
+ s.add_dependency(%q<shoulda>, [">= 0"])
55
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
56
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
57
+ s.add_dependency(%q<rcov>, [">= 0"])
58
+ s.add_dependency(%q<httparty>, ["> 0.6.0"])
59
+ s.add_dependency(%q<json>, ["> 1.4.0"])
60
+ end
61
+ else
62
+ s.add_dependency(%q<shoulda>, [">= 0"])
63
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
64
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
65
+ s.add_dependency(%q<rcov>, [">= 0"])
66
+ s.add_dependency(%q<httparty>, ["> 0.6.0"])
67
+ s.add_dependency(%q<json>, ["> 1.4.0"])
68
+ end
69
+ end
70
+
data/lib/gibbon.rb CHANGED
@@ -25,7 +25,7 @@ module Gibbon
25
25
  def call(method, params = {})
26
26
  url = base_api_url + method
27
27
  params = params.merge(@default_params)
28
- response = API.post(url, :query => params)
28
+ response = API.post(url, :body => params.to_json)
29
29
 
30
30
  begin
31
31
  response = JSON.parse(response.body)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Amro Mousa
@@ -111,15 +111,16 @@ extensions: []
111
111
 
112
112
  extra_rdoc_files:
113
113
  - LICENSE.txt
114
- - README.rdoc
114
+ - README.markdown
115
115
  files:
116
116
  - .document
117
117
  - Gemfile
118
118
  - Gemfile.lock
119
119
  - LICENSE.txt
120
- - README.rdoc
120
+ - README.markdown
121
121
  - Rakefile
122
122
  - VERSION
123
+ - gibbon.gemspec
123
124
  - lib/gibbon.rb
124
125
  - test/helper.rb
125
126
  - test/test_gibbon.rb
@@ -137,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
138
  requirements:
138
139
  - - ">="
139
140
  - !ruby/object:Gem::Version
140
- hash: 1364282506184447290
141
+ hash: 2273190953897229701
141
142
  segments:
142
143
  - 0
143
144
  version: "0"