createsend 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/createsend.gemspec +1 -1
- data/lib/createsend.rb +7 -7
- data/lib/{campaign.rb → createsend/campaign.rb} +0 -0
- data/lib/{client.rb → createsend/client.rb} +0 -0
- data/lib/{list.rb → createsend/list.rb} +0 -0
- data/lib/{segment.rb → createsend/segment.rb} +0 -0
- data/lib/{subscriber.rb → createsend/subscriber.rb} +0 -0
- data/lib/{template.rb → createsend/template.rb} +0 -0
- data/lib/createsend/version.rb +3 -0
- data/test/campaign_test.rb +1 -1
- data/test/client_test.rb +2 -1
- data/test/segment_test.rb +1 -1
- data/test/template_test.rb +1 -1
- metadata +11 -10
data/createsend.gemspec
CHANGED
data/lib/createsend.rb
CHANGED
@@ -14,15 +14,15 @@ end
|
|
14
14
|
libdir = File.dirname(__FILE__)
|
15
15
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
16
16
|
|
17
|
-
require '
|
18
|
-
require '
|
19
|
-
require '
|
20
|
-
require '
|
21
|
-
require '
|
22
|
-
require '
|
17
|
+
require 'createsend/version'
|
18
|
+
require 'createsend/client'
|
19
|
+
require 'createsend/campaign'
|
20
|
+
require 'createsend/list'
|
21
|
+
require 'createsend/segment'
|
22
|
+
require 'createsend/subscriber'
|
23
|
+
require 'createsend/template'
|
23
24
|
|
24
25
|
module CreateSend
|
25
|
-
VERSION = "0.2.0" unless defined?(CreateSend::VERSION)
|
26
26
|
|
27
27
|
# Just allows callers to do CreateSend.api_key "..." rather than CreateSend::CreateSend.api_key "..." etc
|
28
28
|
class << self
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/campaign_test.rb
CHANGED
@@ -5,7 +5,7 @@ class CampaignTest < Test::Unit::TestCase
|
|
5
5
|
setup do
|
6
6
|
@api_key = '123123123123123123123'
|
7
7
|
CreateSend.api_key @api_key
|
8
|
-
@campaign = CreateSend::Campaign.new(
|
8
|
+
@campaign = CreateSend::Campaign.new('787y87y87y87y87y87y87')
|
9
9
|
end
|
10
10
|
|
11
11
|
should "create a campaign" do
|
data/test/client_test.rb
CHANGED
@@ -5,7 +5,8 @@ class ClientTest < Test::Unit::TestCase
|
|
5
5
|
setup do
|
6
6
|
@api_key = '123123123123123123123'
|
7
7
|
CreateSend.api_key @api_key
|
8
|
-
@client = CreateSend::Client.new(
|
8
|
+
@client = CreateSend::Client.new('321iuhiuhi1u23hi2u3')
|
9
|
+
@client.client_id.should == '321iuhiuhi1u23hi2u3'
|
9
10
|
end
|
10
11
|
|
11
12
|
should "create a client" do
|
data/test/segment_test.rb
CHANGED
@@ -5,7 +5,7 @@ class SegmentTest < Test::Unit::TestCase
|
|
5
5
|
setup do
|
6
6
|
@api_key = '123123123123123123123'
|
7
7
|
CreateSend.api_key @api_key
|
8
|
-
@segment = CreateSend::Segment.new(
|
8
|
+
@segment = CreateSend::Segment.new('98y2e98y289dh89h938389')
|
9
9
|
end
|
10
10
|
|
11
11
|
should "create a new segment" do
|
data/test/template_test.rb
CHANGED
@@ -5,7 +5,7 @@ class TemplateTest < Test::Unit::TestCase
|
|
5
5
|
setup do
|
6
6
|
@api_key = '123123123123123123123'
|
7
7
|
CreateSend.api_key @api_key
|
8
|
-
@template = CreateSend::Template.new(
|
8
|
+
@template = CreateSend::Template.new('98y2e98y289dh89h938389')
|
9
9
|
end
|
10
10
|
|
11
11
|
should "create a template" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: createsend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Dennes
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-31 00:00:00 +11:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -143,13 +143,14 @@ files:
|
|
143
143
|
- Rakefile
|
144
144
|
- config.example.yaml
|
145
145
|
- createsend.gemspec
|
146
|
-
- lib/campaign.rb
|
147
|
-
- lib/client.rb
|
148
146
|
- lib/createsend.rb
|
149
|
-
- lib/
|
150
|
-
- lib/
|
151
|
-
- lib/
|
152
|
-
- lib/
|
147
|
+
- lib/createsend/campaign.rb
|
148
|
+
- lib/createsend/client.rb
|
149
|
+
- lib/createsend/list.rb
|
150
|
+
- lib/createsend/segment.rb
|
151
|
+
- lib/createsend/subscriber.rb
|
152
|
+
- lib/createsend/template.rb
|
153
|
+
- lib/createsend/version.rb
|
153
154
|
- test/campaign_test.rb
|
154
155
|
- test/client_test.rb
|
155
156
|
- test/createsend_test.rb
|