contactology 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +16 -2
- data/.rspec +0 -1
- data/.rvmrc +34 -23
- data/.travis.yml +9 -3
- data/CHANGELOG.markdown +46 -0
- data/Gemfile +0 -7
- data/README.markdown +5 -3
- data/contactology.gemspec +10 -10
- data/lib/contactology/version.rb +1 -1
- data/spec/cassettes/campaign/destroy.yml +293 -0
- data/spec/cassettes/campaign/find/failure.yml +45 -0
- data/spec/cassettes/campaign/find/success.yml +252 -0
- data/spec/cassettes/campaign/find_by_name/failure.yml +44 -0
- data/spec/cassettes/campaign/find_by_name/success.yml +252 -0
- data/spec/cassettes/campaign/preview.yml +135 -0
- data/spec/cassettes/campaigns/standard/create/failure.yml +127 -0
- data/spec/cassettes/campaigns/standard/create/invalid.yml +169 -0
- data/spec/cassettes/campaigns/standard/create/success.yml +209 -0
- data/spec/cassettes/campaigns/standard/send_campaign/failure.yml +374 -0
- data/spec/cassettes/campaigns/standard/send_campaign/failure_missing_attributes.yml +373 -0
- data/spec/cassettes/campaigns/standard/send_campaign/success.yml +374 -0
- data/spec/cassettes/campaigns/transactional/create/failure.yml +44 -0
- data/spec/cassettes/campaigns/transactional/create/success.yml +85 -0
- data/spec/cassettes/campaigns/transactional/send_campaign/failure.yml +127 -0
- data/spec/cassettes/campaigns/transactional/send_campaign/success.yml +208 -0
- data/spec/cassettes/contact/active.yml +127 -0
- data/spec/cassettes/contact/change_email/success.yml +210 -0
- data/spec/cassettes/contact/change_email/unknown.yml +45 -0
- data/spec/cassettes/contact/create.yml +127 -0
- data/spec/cassettes/contact/destroy.yml +85 -0
- data/spec/cassettes/contact/find/active.yml +127 -0
- data/spec/cassettes/contact/find/suppressed.yml +168 -0
- data/spec/cassettes/contact/find/unknown.yml +44 -0
- data/spec/cassettes/contact/lists/empty.yml +126 -0
- data/spec/cassettes/contact/lists/full.yml +333 -0
- data/spec/cassettes/contact/lists/unknown.yml +86 -0
- data/spec/cassettes/contact/suppress.yml +168 -0
- data/spec/cassettes/list/all.yml +168 -0
- data/spec/cassettes/list/create.yml +127 -0
- data/spec/cassettes/list/destroy.yml +210 -0
- data/spec/cassettes/list/find/success.yml +169 -0
- data/spec/cassettes/list/find/unknown.yml +45 -0
- data/spec/cassettes/list/import/success.yml +251 -0
- data/spec/cassettes/list/subscribe/success.yml +250 -0
- data/spec/cassettes/list/unsubscribe/success.yml +291 -0
- data/spec/cassettes/transactional_message/send_message/failure.yml +209 -0
- data/spec/cassettes/transactional_message/send_message/success.yml +208 -0
- data/spec/factories/campaigns.rb +18 -16
- data/spec/factories/contacts.rb +6 -2
- data/spec/factories/issues.rb +12 -8
- data/spec/factories/lists.rb +6 -2
- data/spec/factories/transactional_messages.rb +8 -4
- data/spec/models/contactology/campaign_spec.rb +16 -22
- data/spec/models/contactology/campaigns/standard_spec.rb +31 -27
- data/spec/models/contactology/campaigns/transactional_spec.rb +26 -16
- data/spec/models/contactology/contact_spec.rb +28 -35
- data/spec/models/contactology/issues_spec.rb +2 -2
- data/spec/models/contactology/list_spec.rb +12 -20
- data/spec/models/contactology/transactional_message_spec.rb +13 -15
- data/spec/spec_helper.rb +9 -5
- data/spec/support/factory_girl.rb +4 -18
- data/spec/support/vcr.rb +9 -6
- metadata +208 -177
- data/.infinity_test +0 -16
- data/.watchr +0 -36
- data/Changelog.markdown +0 -30
- data/spec/fixtures/net/campaign/destroy.yml +0 -248
- data/spec/fixtures/net/campaign/find/failure.yml +0 -36
- data/spec/fixtures/net/campaign/find/success.yml +0 -283
- data/spec/fixtures/net/campaign/find_by_name/failure.yml +0 -36
- data/spec/fixtures/net/campaign/find_by_name/success.yml +0 -283
- data/spec/fixtures/net/campaign/preview.yml +0 -181
- data/spec/fixtures/net/campaigns/standard/create/failure.yml +0 -106
- data/spec/fixtures/net/campaigns/standard/create/invalid.yml +0 -141
- data/spec/fixtures/net/campaigns/standard/create/success.yml +0 -176
- data/spec/fixtures/net/campaigns/standard/send_campaign/failure.yml +0 -316
- data/spec/fixtures/net/campaigns/standard/send_campaign/failure_missing_attributes.yml +0 -316
- data/spec/fixtures/net/campaigns/standard/send_campaign/success.yml +0 -316
- data/spec/fixtures/net/campaigns/transactional/create/failure.yml +0 -36
- data/spec/fixtures/net/campaigns/transactional/create/success.yml +0 -71
- data/spec/fixtures/net/campaigns/transactional/send_campaign/failure.yml +0 -106
- data/spec/fixtures/net/campaigns/transactional/send_campaign/success.yml +0 -176
- data/spec/fixtures/net/contact/active.yml +0 -106
- data/spec/fixtures/net/contact/change_email/success.yml +0 -176
- data/spec/fixtures/net/contact/change_email/unknown.yml +0 -36
- data/spec/fixtures/net/contact/create.yml +0 -106
- data/spec/fixtures/net/contact/destroy.yml +0 -141
- data/spec/fixtures/net/contact/find/active.yml +0 -106
- data/spec/fixtures/net/contact/find/suppressed.yml +0 -141
- data/spec/fixtures/net/contact/find/unknown.yml +0 -36
- data/spec/fixtures/net/contact/lists/empty.yml +0 -106
- data/spec/fixtures/net/contact/lists/full.yml +0 -246
- data/spec/fixtures/net/contact/lists/unknown.yml +0 -71
- data/spec/fixtures/net/contact/suppress.yml +0 -141
- data/spec/fixtures/net/list/all.yml +0 -141
- data/spec/fixtures/net/list/create.yml +0 -106
- data/spec/fixtures/net/list/destroy.yml +0 -176
- data/spec/fixtures/net/list/find/success.yml +0 -141
- data/spec/fixtures/net/list/find/unknown.yml +0 -36
- data/spec/fixtures/net/list/import/success.yml +0 -351
- data/spec/fixtures/net/list/subscribe/success.yml +0 -211
- data/spec/fixtures/net/list/unsubscribe/success.yml +0 -246
- data/spec/fixtures/net/transactional_message/send_message/failure.yml +0 -176
- data/spec/fixtures/net/transactional_message/send_message/success.yml +0 -176
- data/spec/requests/contacts_spec.rb +0 -6
@@ -11,14 +11,14 @@ describe Contactology::Issues do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'holds Contactology::Issue objects' do
|
14
|
-
issues = Contactology::Issues.new('issues' => [
|
14
|
+
issues = Contactology::Issues.new('issues' => [attributes_for(:issue)])
|
15
15
|
issues.should_not be_empty
|
16
16
|
issues.all? { |i| i.kind_of?(Contactology::Issue) }.should be_true
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'converts pushed objects to Issue instances' do
|
20
20
|
expect {
|
21
|
-
issues <<
|
21
|
+
issues << attributes_for(:issue)
|
22
22
|
}.to change(issues, :size).by(1)
|
23
23
|
|
24
24
|
issues.all? { |i| i.kind_of? Contactology::Issue }.should be_true
|
@@ -3,8 +3,7 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Contactology::List do
|
6
|
-
context '.all' do
|
7
|
-
use_vcr_cassette 'list/all'
|
6
|
+
context '.all', :vcr => {:cassette_name => 'list/all'} do
|
8
7
|
let!(:list) { Contactology::List.create :name => 'all-test-list' }
|
9
8
|
after(:each) { list.destroy }
|
10
9
|
|
@@ -34,8 +33,7 @@ describe Contactology::List do
|
|
34
33
|
}.to raise_error(ArgumentError)
|
35
34
|
end
|
36
35
|
|
37
|
-
context 'when successful' do
|
38
|
-
use_vcr_cassette 'list/create'
|
36
|
+
context 'when successful', :vcr => {:cassette_name => 'list/create'} do
|
39
37
|
let(:list) { Contactology::List.create :name => 'creationtest' }
|
40
38
|
subject { list }
|
41
39
|
after(:each) { list.destroy }
|
@@ -50,8 +48,7 @@ describe Contactology::List do
|
|
50
48
|
end
|
51
49
|
|
52
50
|
context '.find' do
|
53
|
-
context 'when successful' do
|
54
|
-
use_vcr_cassette 'list/find/success'
|
51
|
+
context 'when successful', :vcr => {:cassette_name => 'list/find/success'} do
|
55
52
|
let(:list) { Contactology::List.create :name => 'find-success' }
|
56
53
|
subject { Contactology::List.find list.id }
|
57
54
|
after(:each) { list.destroy }
|
@@ -63,29 +60,26 @@ describe Contactology::List do
|
|
63
60
|
its(:name) { should == list.name }
|
64
61
|
end
|
65
62
|
|
66
|
-
context 'for an unknown list' do
|
67
|
-
use_vcr_cassette 'list/find/unknown'
|
63
|
+
context 'for an unknown list', :vcr => {:cassette_name => 'list/find/unknown'} do
|
68
64
|
subject { Contactology::List.find '123456789' }
|
69
65
|
|
70
66
|
it { should be_nil }
|
71
67
|
end
|
72
68
|
end
|
73
69
|
|
74
|
-
context '#destroy' do
|
75
|
-
use_vcr_cassette 'list/destroy'
|
70
|
+
context '#destroy', :vcr => {:cassette_name => 'list/destroy'} do
|
76
71
|
let(:list) { Contactology::List.create :name => 'destroy-list' }
|
77
72
|
subject { list.destroy }
|
78
73
|
|
79
|
-
it 'removes the list from Contactology' do
|
80
|
-
|
74
|
+
it 'removes the list from Contactology and returns true' do
|
75
|
+
# specs combined for VCR consistency.
|
76
|
+
expect { subject }.to change { Contactology::List.find list.id }.to(nil)
|
77
|
+
should be_true
|
81
78
|
end
|
82
|
-
|
83
|
-
it { should be_true }
|
84
79
|
end
|
85
80
|
|
86
81
|
context '#import' do
|
87
|
-
context 'when successful' do
|
88
|
-
use_vcr_cassette 'list/import/success'
|
82
|
+
context 'when successful', :vcr => {:cassette_name => 'list/import/success'} do
|
89
83
|
let(:list) { Contactology::List.create :name => 'import-test' }
|
90
84
|
let(:email) { 'import@example.com' }
|
91
85
|
let(:contact) { Contactology::Contact.find email }
|
@@ -101,8 +95,7 @@ describe Contactology::List do
|
|
101
95
|
end
|
102
96
|
|
103
97
|
context '#subscribe' do
|
104
|
-
context 'when successful' do
|
105
|
-
use_vcr_cassette 'list/subscribe/success'
|
98
|
+
context 'when successful', :vcr => {:cassette_name => 'list/subscribe/success'} do
|
106
99
|
let(:contact) { Contactology::Contact.create :email => 'successful-subscribe@example.com' }
|
107
100
|
let(:list) { Contactology::List.create :name => 'subscribe-test' }
|
108
101
|
after(:each) { contact.destroy; list.destroy }
|
@@ -113,8 +106,7 @@ describe Contactology::List do
|
|
113
106
|
end
|
114
107
|
|
115
108
|
context '#unsubscribe' do
|
116
|
-
context 'when successful' do
|
117
|
-
use_vcr_cassette 'list/unsubscribe/success'
|
109
|
+
context 'when successful', :vcr => {:cassette_name => 'list/unsubscribe/success'} do
|
118
110
|
let(:contact) { Contactology::Contact.create :email => 'successful-unsubscribe@example.com' }
|
119
111
|
let(:list) { Contactology::List.create :name => 'unsubscribe-test' }
|
120
112
|
before(:each) { list.subscribe contact.email }
|
@@ -3,13 +3,13 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Contactology::TransactionalMessage do
|
6
|
-
let(:message) {
|
6
|
+
let(:message) { build :transactional_message }
|
7
7
|
subject { message }
|
8
8
|
|
9
9
|
context '#campaign' do
|
10
10
|
it 'is required' do
|
11
11
|
expect {
|
12
|
-
Contactology::TransactionalMessage.new
|
12
|
+
Contactology::TransactionalMessage.new attributes_for(:transactional_message).merge(:campaign => nil)
|
13
13
|
}.to raise_error(ArgumentError)
|
14
14
|
end
|
15
15
|
end
|
@@ -17,7 +17,7 @@ describe Contactology::TransactionalMessage do
|
|
17
17
|
context '#contact' do
|
18
18
|
it 'is required' do
|
19
19
|
expect {
|
20
|
-
Contactology::TransactionalMessage.new
|
20
|
+
Contactology::TransactionalMessage.new attributes_for(:transactional_message).merge(:contact => nil)
|
21
21
|
}.to raise_error(ArgumentError)
|
22
22
|
end
|
23
23
|
end
|
@@ -25,17 +25,16 @@ describe Contactology::TransactionalMessage do
|
|
25
25
|
context '#replacements' do
|
26
26
|
it 'is required' do
|
27
27
|
expect {
|
28
|
-
Contactology::TransactionalMessage.new
|
28
|
+
Contactology::TransactionalMessage.new attributes_for(:transactional_message).merge(:replacements => nil)
|
29
29
|
}.to raise_error(ArgumentError)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
33
|
context '#send_message' do
|
34
|
-
context 'when successful' do
|
35
|
-
|
36
|
-
let(:
|
37
|
-
let(:
|
38
|
-
let(:message) { Factory.build_via_new :transactional_message, :campaign => campaign, :contact => contact }
|
34
|
+
context 'when successful', :vcr => {:cassette_name => 'transactional_message/send_message/success'} do
|
35
|
+
let(:contact) { create :contact }
|
36
|
+
let(:campaign) { create :transactional_campaign }
|
37
|
+
let(:message) { build :transactional_message, :campaign => campaign, :contact => contact }
|
39
38
|
after(:each) { contact.destroy; campaign.destroy }
|
40
39
|
|
41
40
|
subject { message.send_message }
|
@@ -43,11 +42,10 @@ describe Contactology::TransactionalMessage do
|
|
43
42
|
it { should be_true }
|
44
43
|
end
|
45
44
|
|
46
|
-
context 'when unsuccessful' do
|
47
|
-
|
48
|
-
let(:
|
49
|
-
let(:
|
50
|
-
let(:message) { Factory.build_via_new :transactional_message, :campaign => campaign, :contact => contact }
|
45
|
+
context 'when unsuccessful', :vcr => {:cassette_name => 'transactional_message/send_message/failure'} do
|
46
|
+
let(:contact) { create :contact }
|
47
|
+
let(:campaign) { create :transactional_campaign }
|
48
|
+
let(:message) { build :transactional_message, :campaign => campaign, :contact => contact }
|
51
49
|
before(:each) { campaign.destroy }
|
52
50
|
after(:each) { contact.destroy }
|
53
51
|
|
@@ -60,7 +58,7 @@ describe Contactology::TransactionalMessage do
|
|
60
58
|
context '#source' do
|
61
59
|
it 'is required' do
|
62
60
|
expect {
|
63
|
-
Contactology::TransactionalMessage.new
|
61
|
+
Contactology::TransactionalMessage.new attributes_for(:transactional_message).merge(:source => nil)
|
64
62
|
}.to raise_error(ArgumentError)
|
65
63
|
end
|
66
64
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,17 +1,21 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
require 'rubygems'
|
4
3
|
require 'bundler/setup'
|
5
|
-
|
4
|
+
require 'contactology'
|
6
5
|
|
7
|
-
# Requires supporting files with custom matchers and macros, etc.,
|
8
|
-
# in ./support/ and its subdirectories.
|
9
6
|
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each do |file|
|
10
7
|
require(file)
|
11
8
|
end
|
12
9
|
|
13
10
|
RSpec.configure do |config|
|
14
11
|
config.mock_with :rspec
|
15
|
-
config.
|
12
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
16
13
|
config.run_all_when_everything_filtered = true
|
14
|
+
config.filter_run :focus
|
15
|
+
|
16
|
+
# Run specs in random order to surface order dependencies. If you find an
|
17
|
+
# order dependency and want to debug it, you can fix the order by providing
|
18
|
+
# the seed, which is printed after each run.
|
19
|
+
# --seed 1234
|
20
|
+
config.order = 'random'
|
17
21
|
end
|
@@ -1,21 +1,7 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
+
require 'factory_girl'
|
3
|
+
FactoryGirl.find_definitions
|
2
4
|
|
3
|
-
|
4
|
-
|
5
|
+
RSpec.configure do |config|
|
6
|
+
config.include(FactoryGirl::Syntax::Methods)
|
5
7
|
end
|
6
|
-
|
7
|
-
def Factory.build_via_new(name, attributes = {})
|
8
|
-
attributes = Factory.attributes_for(name).merge(attributes)
|
9
|
-
klass = FactoryGirl.factory_by_name(name).build_class
|
10
|
-
klass.new(attributes)
|
11
|
-
end
|
12
|
-
|
13
|
-
##
|
14
|
-
# Override the default Factory() create alias method to build the attributes
|
15
|
-
# hash, then create them all though the new method. This gets around :required
|
16
|
-
# attribute issues in Hashie objects.
|
17
|
-
#
|
18
|
-
def Factory(name, attributes = {})
|
19
|
-
Factory.build_via_new(name, attributes).save!
|
20
|
-
end
|
21
|
-
|
data/spec/support/vcr.rb
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
+
require 'vcr'
|
3
|
+
require 'webmock/rspec'
|
4
|
+
require 'rack'
|
2
5
|
|
3
|
-
VCR.
|
4
|
-
config.cassette_library_dir =
|
6
|
+
VCR.configure do |config|
|
7
|
+
config.cassette_library_dir = 'spec/cassettes'
|
5
8
|
config.default_cassette_options = { :record => :none }
|
6
|
-
config.
|
9
|
+
config.hook_into :webmock
|
10
|
+
config.configure_rspec_metadata!
|
11
|
+
|
7
12
|
config.filter_sensitive_data('%{API_KEY}') { CONTACTOLOGY_CONFIGURATION['key'] }
|
8
13
|
config.filter_sensitive_data('%{API_ENDPOINT}') { CONTACTOLOGY_CONFIGURATION['endpoint'] }
|
9
|
-
end
|
10
14
|
|
11
|
-
|
12
|
-
config.extend(VCR::RSpec::Macros)
|
15
|
+
config.register_request_matcher(:api_uri, &VCR.request_matchers.uri_without_param(:newEmail, :email))
|
13
16
|
end
|
metadata
CHANGED
@@ -1,133 +1,169 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: contactology
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.1.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Nathaniel Bibler
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: hashie
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.1'
|
22
|
+
- - <
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '3.0'
|
24
25
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: httparty
|
28
26
|
prerelease: false
|
29
|
-
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.1'
|
33
|
+
- - <
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '3.0'
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: httparty
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
34
43
|
version: 0.7.8
|
44
|
+
- - <=
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.10.2
|
35
47
|
type: :runtime
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: multi_json
|
39
48
|
prerelease: false
|
40
|
-
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.7.8
|
55
|
+
- - <=
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 0.10.2
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: multi_json
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
41
61
|
none: false
|
42
|
-
requirements:
|
62
|
+
requirements:
|
43
63
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version:
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '1.0'
|
46
66
|
type: :runtime
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: vcr
|
50
67
|
prerelease: false
|
51
|
-
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '1.0'
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: vcr
|
76
|
+
requirement: !ruby/object:Gem::Requirement
|
52
77
|
none: false
|
53
|
-
requirements:
|
78
|
+
requirements:
|
54
79
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version:
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '2.0'
|
57
82
|
type: :development
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: rspec
|
61
83
|
prerelease: false
|
62
|
-
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
85
|
none: false
|
64
|
-
requirements:
|
86
|
+
requirements:
|
65
87
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.0'
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: webmock
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ~>
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '1.6'
|
68
98
|
type: :development
|
69
|
-
version_requirements: *id005
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: infinity_test
|
72
99
|
prerelease: false
|
73
|
-
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
none: false
|
102
|
+
requirements:
|
103
|
+
- - ~>
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '1.6'
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: rspec
|
108
|
+
requirement: !ruby/object:Gem::Requirement
|
74
109
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
110
|
+
requirements:
|
111
|
+
- - ~>
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '2.0'
|
79
114
|
type: :development
|
80
|
-
version_requirements: *id006
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: factory_girl
|
83
115
|
prerelease: false
|
84
|
-
|
116
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
117
|
none: false
|
86
|
-
requirements:
|
118
|
+
requirements:
|
87
119
|
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version:
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '2.0'
|
122
|
+
- !ruby/object:Gem::Dependency
|
123
|
+
name: factory_girl
|
124
|
+
requirement: !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
126
|
+
requirements:
|
127
|
+
- - ~>
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '4.0'
|
90
130
|
type: :development
|
91
|
-
version_requirements: *id007
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
name: rack
|
94
131
|
prerelease: false
|
95
|
-
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
133
|
none: false
|
97
|
-
requirements:
|
134
|
+
requirements:
|
98
135
|
- - ~>
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version:
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '4.0'
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: rack
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '1.2'
|
101
146
|
type: :development
|
102
|
-
version_requirements: *id008
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: watchr
|
105
147
|
prerelease: false
|
106
|
-
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
149
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version:
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
email:
|
150
|
+
requirements:
|
151
|
+
- - ~>
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '1.2'
|
154
|
+
description: This library provides Ruby calls to interact with the Contactology email
|
155
|
+
marketing API
|
156
|
+
email:
|
116
157
|
- git@nathanielbibler.com
|
117
158
|
executables: []
|
118
|
-
|
119
159
|
extensions: []
|
120
|
-
|
121
160
|
extra_rdoc_files: []
|
122
|
-
|
123
|
-
files:
|
161
|
+
files:
|
124
162
|
- .gitignore
|
125
|
-
- .infinity_test
|
126
163
|
- .rspec
|
127
164
|
- .rvmrc
|
128
165
|
- .travis.yml
|
129
|
-
- .
|
130
|
-
- Changelog.markdown
|
166
|
+
- CHANGELOG.markdown
|
131
167
|
- Gemfile
|
132
168
|
- README.markdown
|
133
169
|
- Rakefile
|
@@ -153,50 +189,50 @@ files:
|
|
153
189
|
- lib/contactology/stash.rb
|
154
190
|
- lib/contactology/transactional_message.rb
|
155
191
|
- lib/contactology/version.rb
|
192
|
+
- spec/cassettes/campaign/destroy.yml
|
193
|
+
- spec/cassettes/campaign/find/failure.yml
|
194
|
+
- spec/cassettes/campaign/find/success.yml
|
195
|
+
- spec/cassettes/campaign/find_by_name/failure.yml
|
196
|
+
- spec/cassettes/campaign/find_by_name/success.yml
|
197
|
+
- spec/cassettes/campaign/preview.yml
|
198
|
+
- spec/cassettes/campaigns/standard/create/failure.yml
|
199
|
+
- spec/cassettes/campaigns/standard/create/invalid.yml
|
200
|
+
- spec/cassettes/campaigns/standard/create/success.yml
|
201
|
+
- spec/cassettes/campaigns/standard/send_campaign/failure.yml
|
202
|
+
- spec/cassettes/campaigns/standard/send_campaign/failure_missing_attributes.yml
|
203
|
+
- spec/cassettes/campaigns/standard/send_campaign/success.yml
|
204
|
+
- spec/cassettes/campaigns/transactional/create/failure.yml
|
205
|
+
- spec/cassettes/campaigns/transactional/create/success.yml
|
206
|
+
- spec/cassettes/campaigns/transactional/send_campaign/failure.yml
|
207
|
+
- spec/cassettes/campaigns/transactional/send_campaign/success.yml
|
208
|
+
- spec/cassettes/contact/active.yml
|
209
|
+
- spec/cassettes/contact/change_email/success.yml
|
210
|
+
- spec/cassettes/contact/change_email/unknown.yml
|
211
|
+
- spec/cassettes/contact/create.yml
|
212
|
+
- spec/cassettes/contact/destroy.yml
|
213
|
+
- spec/cassettes/contact/find/active.yml
|
214
|
+
- spec/cassettes/contact/find/suppressed.yml
|
215
|
+
- spec/cassettes/contact/find/unknown.yml
|
216
|
+
- spec/cassettes/contact/lists/empty.yml
|
217
|
+
- spec/cassettes/contact/lists/full.yml
|
218
|
+
- spec/cassettes/contact/lists/unknown.yml
|
219
|
+
- spec/cassettes/contact/suppress.yml
|
220
|
+
- spec/cassettes/list/all.yml
|
221
|
+
- spec/cassettes/list/create.yml
|
222
|
+
- spec/cassettes/list/destroy.yml
|
223
|
+
- spec/cassettes/list/find/success.yml
|
224
|
+
- spec/cassettes/list/find/unknown.yml
|
225
|
+
- spec/cassettes/list/import/success.yml
|
226
|
+
- spec/cassettes/list/subscribe/success.yml
|
227
|
+
- spec/cassettes/list/unsubscribe/success.yml
|
228
|
+
- spec/cassettes/transactional_message/send_message/failure.yml
|
229
|
+
- spec/cassettes/transactional_message/send_message/success.yml
|
156
230
|
- spec/contactology.example.yml
|
157
231
|
- spec/factories/campaigns.rb
|
158
232
|
- spec/factories/contacts.rb
|
159
233
|
- spec/factories/issues.rb
|
160
234
|
- spec/factories/lists.rb
|
161
235
|
- spec/factories/transactional_messages.rb
|
162
|
-
- spec/fixtures/net/campaign/destroy.yml
|
163
|
-
- spec/fixtures/net/campaign/find/failure.yml
|
164
|
-
- spec/fixtures/net/campaign/find/success.yml
|
165
|
-
- spec/fixtures/net/campaign/find_by_name/failure.yml
|
166
|
-
- spec/fixtures/net/campaign/find_by_name/success.yml
|
167
|
-
- spec/fixtures/net/campaign/preview.yml
|
168
|
-
- spec/fixtures/net/campaigns/standard/create/failure.yml
|
169
|
-
- spec/fixtures/net/campaigns/standard/create/invalid.yml
|
170
|
-
- spec/fixtures/net/campaigns/standard/create/success.yml
|
171
|
-
- spec/fixtures/net/campaigns/standard/send_campaign/failure.yml
|
172
|
-
- spec/fixtures/net/campaigns/standard/send_campaign/failure_missing_attributes.yml
|
173
|
-
- spec/fixtures/net/campaigns/standard/send_campaign/success.yml
|
174
|
-
- spec/fixtures/net/campaigns/transactional/create/failure.yml
|
175
|
-
- spec/fixtures/net/campaigns/transactional/create/success.yml
|
176
|
-
- spec/fixtures/net/campaigns/transactional/send_campaign/failure.yml
|
177
|
-
- spec/fixtures/net/campaigns/transactional/send_campaign/success.yml
|
178
|
-
- spec/fixtures/net/contact/active.yml
|
179
|
-
- spec/fixtures/net/contact/change_email/success.yml
|
180
|
-
- spec/fixtures/net/contact/change_email/unknown.yml
|
181
|
-
- spec/fixtures/net/contact/create.yml
|
182
|
-
- spec/fixtures/net/contact/destroy.yml
|
183
|
-
- spec/fixtures/net/contact/find/active.yml
|
184
|
-
- spec/fixtures/net/contact/find/suppressed.yml
|
185
|
-
- spec/fixtures/net/contact/find/unknown.yml
|
186
|
-
- spec/fixtures/net/contact/lists/empty.yml
|
187
|
-
- spec/fixtures/net/contact/lists/full.yml
|
188
|
-
- spec/fixtures/net/contact/lists/unknown.yml
|
189
|
-
- spec/fixtures/net/contact/suppress.yml
|
190
|
-
- spec/fixtures/net/list/all.yml
|
191
|
-
- spec/fixtures/net/list/create.yml
|
192
|
-
- spec/fixtures/net/list/destroy.yml
|
193
|
-
- spec/fixtures/net/list/find/success.yml
|
194
|
-
- spec/fixtures/net/list/find/unknown.yml
|
195
|
-
- spec/fixtures/net/list/import/success.yml
|
196
|
-
- spec/fixtures/net/list/subscribe/success.yml
|
197
|
-
- spec/fixtures/net/list/unsubscribe/success.yml
|
198
|
-
- spec/fixtures/net/transactional_message/send_message/failure.yml
|
199
|
-
- spec/fixtures/net/transactional_message/send_message/success.yml
|
200
236
|
- spec/models/contactology/api_spec.rb
|
201
237
|
- spec/models/contactology/campaign_spec.rb
|
202
238
|
- spec/models/contactology/campaigns/standard_spec.rb
|
@@ -209,83 +245,79 @@ files:
|
|
209
245
|
- spec/models/contactology/stash_spec.rb
|
210
246
|
- spec/models/contactology/transactional_message_spec.rb
|
211
247
|
- spec/models/contactology_spec.rb
|
212
|
-
- spec/requests/contacts_spec.rb
|
213
248
|
- spec/spec_helper.rb
|
214
249
|
- spec/support/contactology.rb
|
215
250
|
- spec/support/factory_girl.rb
|
216
251
|
- spec/support/vcr.rb
|
217
252
|
homepage: https://github.com/nbibler/contactology
|
218
253
|
licenses: []
|
219
|
-
|
220
254
|
post_install_message:
|
221
255
|
rdoc_options: []
|
222
|
-
|
223
|
-
require_paths:
|
256
|
+
require_paths:
|
224
257
|
- lib
|
225
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
258
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
226
259
|
none: false
|
227
|
-
requirements:
|
228
|
-
- -
|
229
|
-
- !ruby/object:Gem::Version
|
230
|
-
version:
|
231
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
|
+
requirements:
|
261
|
+
- - ! '>='
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: '0'
|
264
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
265
|
none: false
|
233
|
-
requirements:
|
234
|
-
- -
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version:
|
266
|
+
requirements:
|
267
|
+
- - ! '>='
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
237
270
|
requirements: []
|
238
|
-
|
239
271
|
rubyforge_project:
|
240
|
-
rubygems_version: 1.8.
|
272
|
+
rubygems_version: 1.8.25
|
241
273
|
signing_key:
|
242
274
|
specification_version: 3
|
243
275
|
summary: A Ruby interface to the Contactology email marketing API
|
244
|
-
test_files:
|
276
|
+
test_files:
|
277
|
+
- spec/cassettes/campaign/destroy.yml
|
278
|
+
- spec/cassettes/campaign/find/failure.yml
|
279
|
+
- spec/cassettes/campaign/find/success.yml
|
280
|
+
- spec/cassettes/campaign/find_by_name/failure.yml
|
281
|
+
- spec/cassettes/campaign/find_by_name/success.yml
|
282
|
+
- spec/cassettes/campaign/preview.yml
|
283
|
+
- spec/cassettes/campaigns/standard/create/failure.yml
|
284
|
+
- spec/cassettes/campaigns/standard/create/invalid.yml
|
285
|
+
- spec/cassettes/campaigns/standard/create/success.yml
|
286
|
+
- spec/cassettes/campaigns/standard/send_campaign/failure.yml
|
287
|
+
- spec/cassettes/campaigns/standard/send_campaign/failure_missing_attributes.yml
|
288
|
+
- spec/cassettes/campaigns/standard/send_campaign/success.yml
|
289
|
+
- spec/cassettes/campaigns/transactional/create/failure.yml
|
290
|
+
- spec/cassettes/campaigns/transactional/create/success.yml
|
291
|
+
- spec/cassettes/campaigns/transactional/send_campaign/failure.yml
|
292
|
+
- spec/cassettes/campaigns/transactional/send_campaign/success.yml
|
293
|
+
- spec/cassettes/contact/active.yml
|
294
|
+
- spec/cassettes/contact/change_email/success.yml
|
295
|
+
- spec/cassettes/contact/change_email/unknown.yml
|
296
|
+
- spec/cassettes/contact/create.yml
|
297
|
+
- spec/cassettes/contact/destroy.yml
|
298
|
+
- spec/cassettes/contact/find/active.yml
|
299
|
+
- spec/cassettes/contact/find/suppressed.yml
|
300
|
+
- spec/cassettes/contact/find/unknown.yml
|
301
|
+
- spec/cassettes/contact/lists/empty.yml
|
302
|
+
- spec/cassettes/contact/lists/full.yml
|
303
|
+
- spec/cassettes/contact/lists/unknown.yml
|
304
|
+
- spec/cassettes/contact/suppress.yml
|
305
|
+
- spec/cassettes/list/all.yml
|
306
|
+
- spec/cassettes/list/create.yml
|
307
|
+
- spec/cassettes/list/destroy.yml
|
308
|
+
- spec/cassettes/list/find/success.yml
|
309
|
+
- spec/cassettes/list/find/unknown.yml
|
310
|
+
- spec/cassettes/list/import/success.yml
|
311
|
+
- spec/cassettes/list/subscribe/success.yml
|
312
|
+
- spec/cassettes/list/unsubscribe/success.yml
|
313
|
+
- spec/cassettes/transactional_message/send_message/failure.yml
|
314
|
+
- spec/cassettes/transactional_message/send_message/success.yml
|
245
315
|
- spec/contactology.example.yml
|
246
316
|
- spec/factories/campaigns.rb
|
247
317
|
- spec/factories/contacts.rb
|
248
318
|
- spec/factories/issues.rb
|
249
319
|
- spec/factories/lists.rb
|
250
320
|
- spec/factories/transactional_messages.rb
|
251
|
-
- spec/fixtures/net/campaign/destroy.yml
|
252
|
-
- spec/fixtures/net/campaign/find/failure.yml
|
253
|
-
- spec/fixtures/net/campaign/find/success.yml
|
254
|
-
- spec/fixtures/net/campaign/find_by_name/failure.yml
|
255
|
-
- spec/fixtures/net/campaign/find_by_name/success.yml
|
256
|
-
- spec/fixtures/net/campaign/preview.yml
|
257
|
-
- spec/fixtures/net/campaigns/standard/create/failure.yml
|
258
|
-
- spec/fixtures/net/campaigns/standard/create/invalid.yml
|
259
|
-
- spec/fixtures/net/campaigns/standard/create/success.yml
|
260
|
-
- spec/fixtures/net/campaigns/standard/send_campaign/failure.yml
|
261
|
-
- spec/fixtures/net/campaigns/standard/send_campaign/failure_missing_attributes.yml
|
262
|
-
- spec/fixtures/net/campaigns/standard/send_campaign/success.yml
|
263
|
-
- spec/fixtures/net/campaigns/transactional/create/failure.yml
|
264
|
-
- spec/fixtures/net/campaigns/transactional/create/success.yml
|
265
|
-
- spec/fixtures/net/campaigns/transactional/send_campaign/failure.yml
|
266
|
-
- spec/fixtures/net/campaigns/transactional/send_campaign/success.yml
|
267
|
-
- spec/fixtures/net/contact/active.yml
|
268
|
-
- spec/fixtures/net/contact/change_email/success.yml
|
269
|
-
- spec/fixtures/net/contact/change_email/unknown.yml
|
270
|
-
- spec/fixtures/net/contact/create.yml
|
271
|
-
- spec/fixtures/net/contact/destroy.yml
|
272
|
-
- spec/fixtures/net/contact/find/active.yml
|
273
|
-
- spec/fixtures/net/contact/find/suppressed.yml
|
274
|
-
- spec/fixtures/net/contact/find/unknown.yml
|
275
|
-
- spec/fixtures/net/contact/lists/empty.yml
|
276
|
-
- spec/fixtures/net/contact/lists/full.yml
|
277
|
-
- spec/fixtures/net/contact/lists/unknown.yml
|
278
|
-
- spec/fixtures/net/contact/suppress.yml
|
279
|
-
- spec/fixtures/net/list/all.yml
|
280
|
-
- spec/fixtures/net/list/create.yml
|
281
|
-
- spec/fixtures/net/list/destroy.yml
|
282
|
-
- spec/fixtures/net/list/find/success.yml
|
283
|
-
- spec/fixtures/net/list/find/unknown.yml
|
284
|
-
- spec/fixtures/net/list/import/success.yml
|
285
|
-
- spec/fixtures/net/list/subscribe/success.yml
|
286
|
-
- spec/fixtures/net/list/unsubscribe/success.yml
|
287
|
-
- spec/fixtures/net/transactional_message/send_message/failure.yml
|
288
|
-
- spec/fixtures/net/transactional_message/send_message/success.yml
|
289
321
|
- spec/models/contactology/api_spec.rb
|
290
322
|
- spec/models/contactology/campaign_spec.rb
|
291
323
|
- spec/models/contactology/campaigns/standard_spec.rb
|
@@ -298,7 +330,6 @@ test_files:
|
|
298
330
|
- spec/models/contactology/stash_spec.rb
|
299
331
|
- spec/models/contactology/transactional_message_spec.rb
|
300
332
|
- spec/models/contactology_spec.rb
|
301
|
-
- spec/requests/contacts_spec.rb
|
302
333
|
- spec/spec_helper.rb
|
303
334
|
- spec/support/contactology.rb
|
304
335
|
- spec/support/factory_girl.rb
|