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 CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'bundler'
2
2
  require 'bundler/version'
3
3
 
4
- require File.expand_path('lib/createsend')
4
+ require File.expand_path('lib/createsend/version')
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.add_development_dependency('fakeweb', '~> 1.3')
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 'client'
18
- require 'campaign'
19
- require 'list'
20
- require 'segment'
21
- require 'subscriber'
22
- require 'template'
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
@@ -0,0 +1,3 @@
1
+ module CreateSend
2
+ VERSION = "0.2.1" unless defined?(CreateSend::VERSION)
3
+ end
@@ -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(:campaign_id => '787y87y87y87y87y87y87')
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(:client_id => '321iuhiuhi1u23hi2u3')
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(:segment_id => '98y2e98y289dh89h938389')
8
+ @segment = CreateSend::Segment.new('98y2e98y289dh89h938389')
9
9
  end
10
10
 
11
11
  should "create a new segment" do
@@ -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(:template_id => '98y2e98y289dh89h938389')
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
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: 2010-12-29 00:00:00 +11:00
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/list.rb
150
- - lib/segment.rb
151
- - lib/subscriber.rb
152
- - lib/template.rb
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