createsend 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- createsend (2.1.0)
4
+ createsend (2.2.0)
5
5
  hashie (~> 1.0)
6
6
  httparty (~> 0.8)
7
7
  json
data/README.md CHANGED
@@ -65,3 +65,10 @@ For example, if you wanted to find out how to call the CreateSend::Subscriber.ad
65
65
  email_address = CreateSend::Subscriber.add @list_id, "subscriber@example.com", "Subscriber", custom_fields, true
66
66
  email_address.should == "subscriber@example.com"
67
67
  end
68
+
69
+ ## Contributing
70
+ 1. Fork the repository
71
+ 2. Make your changes, including tests for your changes.
72
+ 3. Ensure that the build passes, by running `bundle exec rake` (CI runs on: `1.8.7`, `1.9.2`, `1.9.3`, and `ree`)
73
+ 4. It should go without saying, but do not increment the version number in your commits.
74
+ 5. Submit a pull request.
@@ -1,3 +1,3 @@
1
1
  module CreateSend
2
- VERSION = "2.1.0" unless defined?(CreateSend::VERSION)
2
+ VERSION = "2.2.0" unless defined?(CreateSend::VERSION)
3
3
  end
@@ -50,6 +50,7 @@ class CampaignTest < Test::Unit::TestCase
50
50
  summary.Forwards.should == 11
51
51
  summary.Likes.should == 32
52
52
  summary.WebVersionURL.should == "http://createsend.com/t/r-3A433FC72FFE3B8B"
53
+ summary.WorldviewURL.should == "http://client.createsend.com/reports/wv/r/3A433FC72FFE3B8B"
53
54
  end
54
55
 
55
56
  should "get the lists and segments for a campaign" do
@@ -88,6 +89,12 @@ class CampaignTest < Test::Unit::TestCase
88
89
  opens.Results.first.ListID.should == "512a3bc577a58fdf689c654329b50fa0"
89
90
  opens.Results.first.Date.should == "2010-10-11 08:29:00"
90
91
  opens.Results.first.IPAddress.should == "192.168.126.87"
92
+ opens.Results.first.Latitude.should == -33.8683
93
+ opens.Results.first.Longitude.should == 151.2086
94
+ opens.Results.first.City.should == "Sydney"
95
+ opens.Results.first.Region.should == "New South Wales"
96
+ opens.Results.first.CountryCode.should == "AU"
97
+ opens.Results.first.CountryName.should == "Australia"
91
98
  opens.ResultsOrderedBy.should == "date"
92
99
  opens.OrderDirection.should == "asc"
93
100
  opens.PageNumber.should == 1
@@ -107,6 +114,12 @@ class CampaignTest < Test::Unit::TestCase
107
114
  clicks.Results.first.ListID.should == "512a3bc577a58fdf689c654329b50fa0"
108
115
  clicks.Results.first.Date.should == "2010-10-11 08:29:00"
109
116
  clicks.Results.first.IPAddress.should == "192.168.126.87"
117
+ clicks.Results.first.Latitude.should == -33.8683
118
+ clicks.Results.first.Longitude.should == 151.2086
119
+ clicks.Results.first.City.should == "Sydney"
120
+ clicks.Results.first.Region.should == "New South Wales"
121
+ clicks.Results.first.CountryCode.should == "AU"
122
+ clicks.Results.first.CountryName.should == "Australia"
110
123
  clicks.ResultsOrderedBy.should == "date"
111
124
  clicks.OrderDirection.should == "asc"
112
125
  clicks.PageNumber.should == 1
@@ -5,21 +5,39 @@
5
5
  "URL": "http://video.google.com.au/?hl=en&tab=wv",
6
6
  "ListID": "512a3bc577a58fdf689c654329b50fa0",
7
7
  "Date": "2010-10-11 08:29:00",
8
- "IPAddress": "192.168.126.87"
8
+ "IPAddress": "192.168.126.87",
9
+ "Latitude": -33.8683,
10
+ "Longitude": 151.2086,
11
+ "City": "Sydney",
12
+ "Region": "New South Wales",
13
+ "CountryCode": "AU",
14
+ "CountryName": "Australia"
9
15
  },
10
16
  {
11
17
  "EmailAddress": "subs+6576576576@example.com",
12
18
  "URL": "http://mail.google.com/mail/?hl=en&tab=wm",
13
19
  "ListID": "512a3bc577a58fdf689c654329b50fa0",
14
20
  "Date": "2010-10-11 08:29:00",
15
- "IPAddress": "192.168.126.87"
21
+ "IPAddress": "192.168.126.87",
22
+ "Latitude": -33.8683,
23
+ "Longitude": 151.2086,
24
+ "City": "Sydney",
25
+ "Region": "New South Wales",
26
+ "CountryCode": "AU",
27
+ "CountryName": "Australia"
16
28
  },
17
29
  {
18
30
  "EmailAddress": "subs+6576576576@example.com",
19
31
  "URL": "http://mail.google.com/mail/?hl=en&tab=wm",
20
32
  "ListID": "512a3bc577a58fdf689c654329b50fa0",
21
33
  "Date": "2010-10-06 17:24:00",
22
- "IPAddress": "192.168.126.87"
34
+ "IPAddress": "192.168.126.87",
35
+ "Latitude": -33.8683,
36
+ "Longitude": 151.2086,
37
+ "City": "Sydney",
38
+ "Region": "New South Wales",
39
+ "CountryCode": "AU",
40
+ "CountryName": "Australia"
23
41
  }
24
42
  ],
25
43
  "ResultsOrderedBy": "date",
@@ -4,31 +4,61 @@
4
4
  "EmailAddress": "subs+6576576576@example.com",
5
5
  "ListID": "512a3bc577a58fdf689c654329b50fa0",
6
6
  "Date": "2010-10-11 08:29:00",
7
- "IPAddress": "192.168.126.87"
7
+ "IPAddress": "192.168.126.87",
8
+ "Latitude": -33.8683,
9
+ "Longitude": 151.2086,
10
+ "City": "Sydney",
11
+ "Region": "New South Wales",
12
+ "CountryCode": "AU",
13
+ "CountryName": "Australia"
8
14
  },
9
15
  {
10
16
  "EmailAddress": "subs+6576576576@example.com",
11
17
  "ListID": "512a3bc577a58fdf689c654329b50fa0",
12
18
  "Date": "2010-10-08 14:24:00",
13
- "IPAddress": "192.168.126.87"
19
+ "IPAddress": "192.168.126.87",
20
+ "Latitude": -33.8683,
21
+ "Longitude": 151.2086,
22
+ "City": "Sydney",
23
+ "Region": "New South Wales",
24
+ "CountryCode": "AU",
25
+ "CountryName": "Australia"
14
26
  },
15
27
  {
16
28
  "EmailAddress": "subs+6576576576@example.com",
17
29
  "ListID": "512a3bc577a58fdf689c654329b50fa0",
18
30
  "Date": "2010-10-07 10:20:00",
19
- "IPAddress": "192.168.126.87"
31
+ "IPAddress": "192.168.126.87",
32
+ "Latitude": -33.8683,
33
+ "Longitude": 151.2086,
34
+ "City": "Sydney",
35
+ "Region": "New South Wales",
36
+ "CountryCode": "AU",
37
+ "CountryName": "Australia"
20
38
  },
21
39
  {
22
40
  "EmailAddress": "subs+6576576576@example.com",
23
41
  "ListID": "512a3bc577a58fdf689c654329b50fa0",
24
42
  "Date": "2010-10-07 07:15:00",
25
- "IPAddress": "192.168.126.87"
43
+ "IPAddress": "192.168.126.87",
44
+ "Latitude": -33.8683,
45
+ "Longitude": 151.2086,
46
+ "City": "Sydney",
47
+ "Region": "New South Wales",
48
+ "CountryCode": "AU",
49
+ "CountryName": "Australia"
26
50
  },
27
51
  {
28
52
  "EmailAddress": "subs+6576576576@example.com",
29
53
  "ListID": "512a3bc577a58fdf689c654329b50fa0",
30
54
  "Date": "2010-10-07 06:58:00",
31
- "IPAddress": "192.168.126.87"
55
+ "IPAddress": "192.168.126.87",
56
+ "Latitude": -33.8683,
57
+ "Longitude": 151.2086,
58
+ "City": "Sydney",
59
+ "Region": "New South Wales",
60
+ "CountryCode": "AU",
61
+ "CountryName": "Australia"
32
62
  }
33
63
  ],
34
64
  "ResultsOrderedBy": "date",
@@ -8,5 +8,6 @@
8
8
  "Mentions": 23,
9
9
  "Forwards": 11,
10
10
  "Likes": 32,
11
- "WebVersionURL": "http://createsend.com/t/r-3A433FC72FFE3B8B"
11
+ "WebVersionURL": "http://createsend.com/t/r-3A433FC72FFE3B8B",
12
+ "WorldviewURL": "http://client.createsend.com/reports/wv/r/3A433FC72FFE3B8B"
12
13
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: createsend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-30 00:00:00.000000000 Z
12
+ date: 2012-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70108177254420 !ruby/object:Gem::Requirement
16
+ requirement: &70099797096200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70108177254420
24
+ version_requirements: *70099797096200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fakeweb
27
- requirement: &70108177253700 !ruby/object:Gem::Requirement
27
+ requirement: &70099797095560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.3'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70108177253700
35
+ version_requirements: *70099797095560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jnunemaker-matchy
38
- requirement: &70108177252980 !ruby/object:Gem::Requirement
38
+ requirement: &70099797094880 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.4'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70108177252980
46
+ version_requirements: *70099797094880
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: mocha
49
- requirement: &70108177249420 !ruby/object:Gem::Requirement
49
+ requirement: &70099797094220 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0.9'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70108177249420
57
+ version_requirements: *70099797094220
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: shoulda
60
- requirement: &70108177248920 !ruby/object:Gem::Requirement
60
+ requirement: &70099797093460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 3.1.1
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70108177248920
68
+ version_requirements: *70099797093460
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: cane
71
- requirement: &70108177248500 !ruby/object:Gem::Requirement
71
+ requirement: &70099797093080 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70108177248500
79
+ version_requirements: *70099797093080
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: json
82
- requirement: &70108177248020 !ruby/object:Gem::Requirement
82
+ requirement: &70099797092480 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70108177248020
90
+ version_requirements: *70099797092480
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: hashie
93
- requirement: &70108177247440 !ruby/object:Gem::Requirement
93
+ requirement: &70099797091760 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '1.0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70108177247440
101
+ version_requirements: *70099797091760
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: httparty
104
- requirement: &70108177246860 !ruby/object:Gem::Requirement
104
+ requirement: &70099797091260 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: '0.8'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70108177246860
112
+ version_requirements: *70099797091260
113
113
  description: Implements the complete functionality of the createsend API.
114
114
  email:
115
115
  - jdennes@gmail.com