sendyr 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in sendyr.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Carl Mercier
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Sendyr
2
+
3
+ A Ruby interface for the wonderful e-mail newsletter application Sendy.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'sendyr'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install sendyr
18
+
19
+ ## Usage
20
+
21
+ Sendyr.configure do |c|
22
+ c.url = 'http://my.sendy-install.com'
23
+ c.api_key = '1234567890'
24
+ end
25
+
26
+ list_id = 1
27
+ client = Sendyr::Client.new(list_id)
28
+ client.subscribe(email: 'joe@example.org', name: 'Joe Smith', 'FirstName' => 'Joe') # => true
29
+
30
+ client.subscription_status(email: 'joe@example.org') # => :subscribed
31
+
32
+ client.active_subscriber_count # => 1
33
+
34
+ client.unsubscribe(email: 'joe@example.org') # => true
35
+
36
+
37
+ ## Contributing
38
+
39
+ 1. Fork it
40
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
41
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
42
+ 4. Push to the branch (`git push origin my-new-feature`)
43
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ require 'bundler/gem_tasks'
3
+ require 'rspec/core/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+ task :default => :spec
7
+
@@ -0,0 +1,140 @@
1
+ require 'uri'
2
+
3
+ module Sendyr
4
+ class Client
5
+ attr_reader :last_result, :api_key, :base_uri, :list_id
6
+
7
+ def initialize(list_id = nil)
8
+ @list_id = list_id
9
+ @api_key = Sendyr.configuration.api_key
10
+ @base_uri = Sendyr.configuration.url
11
+ end
12
+
13
+ def subscribe(opts = {})
14
+ opts = {boolean: true, list: @list_id}.merge(opts)
15
+ raise_if_missing_arg([:email, :list], opts)
16
+
17
+ path = '/subscribe'
18
+ result = post_to(path, opts)
19
+
20
+ if result.success? && %w(true 1).include?(clean_body(result))
21
+ respond_with_success(result)
22
+ else
23
+ respond_with_failure(result)
24
+ end
25
+ end
26
+
27
+ def unsubscribe(opts = {})
28
+ opts = {boolean: true, list: @list_id}.merge(opts)
29
+ raise_if_missing_arg([:email, :list], opts)
30
+
31
+ path = '/unsubscribe'
32
+ result = post_to(path, opts)
33
+
34
+ if result.success? && %w(true 1).include?(clean_body(result))
35
+ respond_with_success(result)
36
+ else
37
+ respond_with_failure(result)
38
+ end
39
+ end
40
+
41
+ def subscription_status(opts = {})
42
+ opts = {api_key: @api_key, list_id: @list_id}.merge(opts)
43
+ raise_if_missing_arg([:api_key, :email, :list_id, :api_key], opts)
44
+
45
+ path = '/api/subscribers/subscription-status.php'
46
+ result = post_to(path, opts)
47
+
48
+ success_messages = { "subscribed" => :subscribed,
49
+ "unsubscribed" => :unsubscribed,
50
+ "unconfirmed" => :unconfirmed,
51
+ "bounced" => :bounced,
52
+ "soft bounced" => :soft_bounced,
53
+ "complained" => :complained,
54
+ "email does not exist in list" => :not_in_list }
55
+
56
+ cleaned_body = clean_body(result)
57
+ if result.success? && success_messages.keys.include?(cleaned_body)
58
+ respond_with_success(result, success_messages[cleaned_body])
59
+ else
60
+ respond_with_failure(result, underscore(cleaned_body).to_sym)
61
+ end
62
+ end
63
+
64
+ def update_subscription(email, opts = {})
65
+ status = subscription_status(email: email)
66
+
67
+ return false if status == :not_in_list
68
+
69
+ # Trying to change the email address?
70
+ # Need to unsubscribe and subscribe again.
71
+ if (!opts[:email].nil? && opts[:email] != email) &&
72
+ [:subscribed, :unconfirmed, :bounced, :soft_bounced].include?(status)
73
+ unsubscribe(email: email)
74
+ end
75
+
76
+ unless [:complained, :unsubscribed].include?(status)
77
+ subscribe({email: email}.merge(opts)) == true
78
+ else
79
+ false
80
+ end
81
+ end
82
+
83
+ def active_subscriber_count(opts = {})
84
+ opts = {api_key: @api_key, list_id: @list_id}.merge(opts)
85
+ raise_if_missing_arg([:list_id, :api_key], opts)
86
+
87
+ path = '/api/subscribers/active-subscriber-count.php'
88
+ result = post_to(path, opts)
89
+
90
+ cleaned_body = clean_body(result)
91
+ if result.success? && !!(cleaned_body =~ /^[-+]?[0-9]+$/)
92
+ respond_with_success(result, cleaned_body.to_i)
93
+ else
94
+ respond_with_failure(result)
95
+ end
96
+ end
97
+
98
+ private
99
+ def raise_if_missing_arg(mandatory_fields, opts)
100
+ mandatory_fields.each do |key|
101
+ if opts[key].nil? || opts[key].to_s.strip == ''
102
+ raise ArgumentError.new("You must specify :#{key}.")
103
+ end
104
+ end; nil
105
+ end
106
+
107
+ def post_to(path, params)
108
+ Faraday.post(url_for(path), params)
109
+ end
110
+
111
+ def url_for(path)
112
+ URI.join(@base_uri, path).to_s
113
+ end
114
+
115
+ def clean_body(result)
116
+ result.body.strip.chomp.downcase
117
+ end
118
+
119
+ def respond_with_success(result, value = nil)
120
+ @last_result = result
121
+ value.nil? ? true : value
122
+ end
123
+
124
+ def respond_with_failure(result, value = nil)
125
+ @last_result = result
126
+ value.nil? ? false : value
127
+ end
128
+
129
+ def underscore(word)
130
+ word = word.to_s.dup
131
+ word.gsub!(/::/, '/')
132
+ word.gsub!(/(?:([A-Za-z\d])|^)(#{inflections.acronym_regex})(?=\b|[^a-z])/) { "#{$1}#{$1 && '_'}#{$2.downcase}" }
133
+ word.gsub!(/([A-Z\d]+)([A-Z][a-z])/,'\1_\2')
134
+ word.gsub!(/([a-z\d])([A-Z])/,'\1_\2')
135
+ word.tr!("-", "_")
136
+ word.downcase!
137
+ word
138
+ end
139
+ end
140
+ end
@@ -0,0 +1,3 @@
1
+ module Sendyr
2
+ VERSION = "0.1.0"
3
+ end
data/lib/sendyr.rb ADDED
@@ -0,0 +1,21 @@
1
+ require "faraday"
2
+ require "require_all"
3
+ require_all File.dirname(__FILE__) + "/sendyr"
4
+
5
+ module Sendyr
6
+ class << self
7
+ attr_accessor :configuration
8
+ end
9
+
10
+ def self.configure
11
+ self.configuration ||= Configuration.new
12
+ yield(configuration)
13
+ end
14
+
15
+ class Configuration
16
+ attr_accessor :url, :api_key
17
+
18
+ def initialize
19
+ end
20
+ end
21
+ end
data/sendyr.gemspec ADDED
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sendyr/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sendyr"
8
+ spec.version = Sendyr::VERSION
9
+ spec.authors = ["Carl Mercier"]
10
+ spec.email = ["carl@carlmercier.com"]
11
+ spec.summary = %q{A Ruby interface for the wonderful e-mail newsletter application Sendy.}
12
+ spec.homepage = "http://github.com/cmer/sendyr"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_runtime_dependency "faraday"
21
+ spec.add_runtime_dependency "require_all"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.3"
24
+ spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "rspec"
26
+ spec.add_development_dependency "webmock"
27
+ spec.add_development_dependency "pry"
28
+ end
@@ -0,0 +1,207 @@
1
+ require 'spec_helper'
2
+
3
+ describe Sendyr::Client do
4
+ before do
5
+ @base_url = 'http://localhost'
6
+ @api_key = '1234567890'
7
+ @email = 'john@example.org'
8
+ @list_id = '1'
9
+
10
+ Sendyr.configure do |c|
11
+ c.url = @base_url
12
+ c.api_key = @api_key
13
+ end
14
+ end
15
+
16
+ let(:client) { Sendyr::Client.new(@list_id) }
17
+
18
+ describe ".initialize" do
19
+ it "should properly set instance variables" do
20
+ client = Sendyr::Client.new(@list_id)
21
+ client.list_id.should == @list_id
22
+ client.base_uri.should == @base_url
23
+ client.api_key.should == @api_key
24
+ end
25
+ end
26
+
27
+ describe "#subscribe" do
28
+ it "raises exception if email is missing" do
29
+ expect {
30
+ client.subscribe(foo: @email)
31
+ }.to raise_error(ArgumentError, 'You must specify :email.')
32
+ end
33
+
34
+ it "subscribes the email and passes the other arguments" do
35
+ stub_request(:post, "#{@base_url}/subscribe").
36
+ with(:body => {"FirstName"=>"John",
37
+ "boolean"=>"true",
38
+ "email"=> @email,
39
+ "list"=>@list_id,
40
+ "name"=>"John Smith"}).
41
+ to_return(:status => 200, :body => "true")
42
+
43
+ client.subscribe(email: @email, name: 'John Smith', "FirstName" => "John").should == true
44
+ end
45
+
46
+ it "succeeds when the response body is '1'" do
47
+ # The API doc says it should return 'true', but we see '1' in real life.
48
+ stub_request(:post, "#{@base_url}/subscribe").
49
+ with(:body => {"boolean"=>"true",
50
+ "email"=> @email,
51
+ "list"=>@list_id}).
52
+ to_return(:status => 200, :body => "1")
53
+
54
+ client.subscribe(email: @email).should == true
55
+ end
56
+
57
+ it "fails when the response message is an error" do
58
+ stub_request(:post, "#{@base_url}/subscribe").
59
+ with(:body => {"FirstName"=>"John",
60
+ "boolean"=>"true",
61
+ "email"=> @email,
62
+ "list"=>@list_id,
63
+ "name"=>"John Smith"}).
64
+ to_return(:status => 200, :body => "Already subscribed.")
65
+
66
+ client.subscribe(email: @email, name: 'John Smith', "FirstName" => "John").should == false
67
+ end
68
+ end
69
+
70
+ describe "#unsubscribe" do
71
+ it "raises exception if email is missing" do
72
+ expect {
73
+ client.unsubscribe(foo: @email)
74
+ }.to raise_error(ArgumentError, 'You must specify :email.')
75
+ end
76
+
77
+ it "unsubscribes the email" do
78
+ stub_request(:post, "#{@base_url}/unsubscribe").
79
+ with(:body => {"boolean"=>"true",
80
+ "email"=> @email,
81
+ "list"=>@list_id}).
82
+ to_return(:status => 200, :body => "true")
83
+
84
+ client.unsubscribe(email: @email).should == true
85
+ end
86
+
87
+ it "succeeds when the response body is '1'" do
88
+ # The API doc says it should return 'true', but we see '1' in real life.
89
+ stub_request(:post, "#{@base_url}/unsubscribe").
90
+ with(:body => {"boolean"=>"true",
91
+ "email"=> @email,
92
+ "list"=>@list_id}).
93
+ to_return(:status => 200, :body => "1")
94
+
95
+ client.unsubscribe(email: @email).should == true
96
+ end
97
+
98
+ it "fails when the response message is an error" do
99
+ stub_request(:post, "#{@base_url}/unsubscribe").
100
+ with(:body => {"boolean"=>"true",
101
+ "email"=> @email,
102
+ "list"=>@list_id}).
103
+ to_return(:status => 200, :body => "Invalid email address.")
104
+
105
+ client.unsubscribe(email: @email).should == false
106
+ end
107
+ end
108
+
109
+ describe "#subscription_status" do
110
+ it "raises exception if email is missing" do
111
+ expect {
112
+ client.subscription_status(foo: @email)
113
+ }.to raise_error(ArgumentError, 'You must specify :email.')
114
+ end
115
+
116
+ it "returns the correct response when email is not in list" do
117
+ body = "Email does not exist in list"
118
+
119
+ stub_request(:post, "#{@base_url}/api/subscribers/subscription-status.php").
120
+ with(:body => {"api_key"=> @api_key,
121
+ "email" => @email,
122
+ "list_id"=> @list_id}).
123
+ to_return(:status => 200, :body => body)
124
+
125
+ client.subscription_status(email: @email).should == :not_in_list
126
+ end
127
+
128
+ it "returns the correct response when other messages are returned" do
129
+ messages = ["Subscribed","Unsubscribed","Unconfirmed","Bounced","Soft Bounced","Complained"]
130
+ expected_responses = [:subscribed, :unsubscribed, :unconfirmed, :bounced, :soft_bounced, :complained]
131
+
132
+ messages.each_index do |i|
133
+ stub_request(:post, "#{@base_url}/api/subscribers/subscription-status.php").
134
+ with(:body => {"api_key"=> @api_key,
135
+ "email" => @email,
136
+ "list_id"=> @list_id}).
137
+ to_return(:status => 200, :body => messages[i])
138
+
139
+ client.subscription_status(email: @email).should == expected_responses[i]
140
+ end
141
+ end
142
+ end
143
+
144
+ describe "#active_subscriber_count" do
145
+ it "returns the number of subscribers when the body is an integer" do
146
+ stub_request(:post, "#{@base_url}/api/subscribers/active-subscriber-count.php").
147
+ with(:body => {"api_key"=> @api_key,
148
+ "list_id"=> @list_id}).
149
+ to_return(:status => 200, :body => "10")
150
+
151
+ client.active_subscriber_count.should == 10
152
+ end
153
+
154
+ it "returns false when the body is an error message" do
155
+ stub_request(:post, "#{@base_url}/api/subscribers/active-subscriber-count.php").
156
+ with(:body => {"api_key"=> @api_key,
157
+ "list_id"=> @list_id}).
158
+ to_return(:status => 200, :body => "List does not exist")
159
+
160
+ client.active_subscriber_count.should == false
161
+ end
162
+ end
163
+
164
+ describe "#update_subscription" do
165
+ it "returns false if email was never subscribed" do
166
+ client.should_receive(:subscription_status).with(email: @email).and_return(:not_in_list)
167
+ client.should_receive(:unsubscribe).never
168
+ client.should_receive(:subscribe).never
169
+
170
+ client.update_subscription(@email, { name: 'John'}).should == false
171
+ end
172
+
173
+ it "unsubscribes then creates a new subscription if trying to change email address" do
174
+ new_email = 'newemail@example.org'
175
+ name = 'John Smith'
176
+
177
+ client.should_receive(:subscription_status).with(email: @email).and_return(:subscribed)
178
+ client.should_receive(:unsubscribe).with(email: @email).and_return(true)
179
+ client.should_receive(:subscribe).with(email: new_email, name: name).and_return(true)
180
+
181
+ client.update_subscription(@email, { email: 'newemail@example.org', name: name}).should == true
182
+ end
183
+
184
+ it "doesn't change the email if the user complained" do
185
+ new_email = 'newemail@example.org'
186
+ name = 'John Smith'
187
+
188
+ client.should_receive(:subscription_status).with(email: @email).and_return(:complained)
189
+ client.should_receive(:unsubscribe).never
190
+ client.should_receive(:subscribe).never
191
+
192
+ client.update_subscription(@email, { email: 'newemail@example.org', name: name}).should == false
193
+ end
194
+
195
+ it "doesn't change the email if the user unsubscribed" do
196
+ new_email = 'newemail@example.org'
197
+ name = 'John Smith'
198
+
199
+ client.should_receive(:subscription_status).with(email: @email).and_return(:unsubscribed)
200
+ client.should_receive(:unsubscribe).never
201
+ client.should_receive(:subscribe).never
202
+
203
+ client.update_subscription(@email, { email: 'newemail@example.org', name: name}).should == false
204
+ end
205
+
206
+ end
207
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe Sendyr do
4
+ before do
5
+ @base_url = 'http://localhost'
6
+ Sendyr.configure do |c|
7
+ c.url = @base_url
8
+ end
9
+ end
10
+
11
+ describe ".configure" do
12
+ it "configures itself properly" do
13
+ url = 'http://example.org'
14
+ api_key = 'abcd'
15
+
16
+ Sendyr.configure do |c|
17
+ c.url = url
18
+ c.api_key = api_key
19
+ end
20
+
21
+ Sendyr.configuration.url.should == url
22
+ Sendyr.configuration.api_key.should == api_key
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,11 @@
1
+ ENV['RACK_ENV'] = 'test'
2
+
3
+ require File.dirname(__FILE__) + '/../lib/sendyr'
4
+ require 'webmock/rspec'
5
+ require 'pry'
6
+
7
+ RSpec.configure do |config|
8
+ config.treat_symbols_as_metadata_keys_with_true_values = true
9
+ config.run_all_when_everything_filtered = true
10
+ config.filter_run :focus
11
+ end
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sendyr
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Carl Mercier
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ none: false
21
+ name: faraday
22
+ type: :runtime
23
+ prerelease: false
24
+ requirement: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ! '>='
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ none: false
30
+ - !ruby/object:Gem::Dependency
31
+ version_requirements: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ none: false
37
+ name: require_all
38
+ type: :runtime
39
+ prerelease: false
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ none: false
46
+ - !ruby/object:Gem::Dependency
47
+ version_requirements: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ version: '1.3'
52
+ none: false
53
+ name: bundler
54
+ type: :development
55
+ prerelease: false
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: '1.3'
61
+ none: false
62
+ - !ruby/object:Gem::Dependency
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ none: false
69
+ name: rake
70
+ type: :development
71
+ prerelease: false
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ none: false
78
+ - !ruby/object:Gem::Dependency
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ none: false
85
+ name: rspec
86
+ type: :development
87
+ prerelease: false
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ none: false
94
+ - !ruby/object:Gem::Dependency
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ none: false
101
+ name: webmock
102
+ type: :development
103
+ prerelease: false
104
+ requirement: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ! '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ none: false
110
+ - !ruby/object:Gem::Dependency
111
+ version_requirements: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ none: false
117
+ name: pry
118
+ type: :development
119
+ prerelease: false
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ none: false
126
+ description:
127
+ email:
128
+ - carl@carlmercier.com
129
+ executables: []
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - .gitignore
134
+ - .rspec
135
+ - Gemfile
136
+ - LICENSE.txt
137
+ - README.md
138
+ - Rakefile
139
+ - lib/sendyr.rb
140
+ - lib/sendyr/client.rb
141
+ - lib/sendyr/version.rb
142
+ - sendyr.gemspec
143
+ - spec/sendyr_client_spec.rb
144
+ - spec/sendyr_spec.rb
145
+ - spec/spec_helper.rb
146
+ homepage: http://github.com/cmer/sendyr
147
+ licenses:
148
+ - MIT
149
+ post_install_message:
150
+ rdoc_options: []
151
+ require_paths:
152
+ - lib
153
+ required_ruby_version: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ none: false
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ! '>='
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ none: false
165
+ requirements: []
166
+ rubyforge_project:
167
+ rubygems_version: 1.8.23
168
+ signing_key:
169
+ specification_version: 3
170
+ summary: A Ruby interface for the wonderful e-mail newsletter application Sendy.
171
+ test_files:
172
+ - spec/sendyr_client_spec.rb
173
+ - spec/sendyr_spec.rb
174
+ - spec/spec_helper.rb