maileon 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c0b2f18f27e78c5c0ceb47e0e90ea7c28aa6ba1
4
- data.tar.gz: 36c7a78b08a04c8d55c13a35fa4df3b4731b7621
3
+ metadata.gz: b84994c81ac1b29fa7664b9cfb9c320cbd4ae9da
4
+ data.tar.gz: 8bc2d6b6d1815bcc3c3f0ec2031f8c4469aefc6b
5
5
  SHA512:
6
- metadata.gz: c8c45b2d996c10da1c030264ae04743493cc6313ca79f6592fcda5680339ba95a1f0bcb954c5c3a7077bd8e5d1151d088d3bfe2fe88b2fe06df9af00cb5471de
7
- data.tar.gz: 45f5a872170c2d1173a5722c17638356823be39cdb252d3b59d402c8d6eb97b01a79dec52da13a97e6bfc01f12350175456ebd7a0a1d6a4eb9c146383c386f9a
6
+ metadata.gz: 32dd4fa2d730b7df55beea43b406b6b2c8700bfb5e0ddf5695c28abe2637978e8720f1b7ee427971e8bad19fadb65ac9de7bb924237b627e4f5723920f82972c
7
+ data.tar.gz: fc454a2cc5e7d2292a857270e9d7625074755ac3703874fca8180a6b5798cf358201425002e027c3285ae9f921571ccea7db18653f415b2415de3d5134a2d857
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Maileon [![Build Status](http://travis-ci.org/interactive-pioneers/maileon.svg?branch=master)](https://travis-ci.org/interactive-pioneers/maileon) [![Gem Version](https://badge.fury.io/rb/maileon.svg)](http://badge.fury.io/rb/maileon)
1
+ # Maileon [![Build Status](http://travis-ci.org/interactive-pioneers/maileon.svg?branch=master)](https://travis-ci.org/interactive-pioneers/maileon) [![Gem Version](https://badge.fury.io/rb/maileon.svg)](http://badge.fury.io/rb/maileon) [![Coverage Status](https://coveralls.io/repos/interactive-pioneers/maileon/badge.svg)](https://coveralls.io/r/interactive-pioneers/maileon)
2
2
 
3
3
  Ruby wrapper for Maileon email marketing software API.
4
4
 
@@ -79,7 +79,7 @@ maileon.delete_contact(attribs)
79
79
 
80
80
  1. Fork it ( https://github.com/[my-github-username]/maileon/fork )
81
81
  2. Create your feature branch (`git checkout -b my-new-feature`)
82
- 3. Develop your feature by concepts of test-driven development. Run `guard` in parallel to automatically run your tests
82
+ 3. Develop your feature by concepts of [TDD](http://en.wikipedia.org/wiki/Test-driven_development). Run `guard` in parallel to automatically run your tests
83
83
  3. Commit your changes (`git commit -am 'Add some feature'`)
84
84
  4. Push to the branch (`git push origin my-new-feature`)
85
85
  5. Create a new Pull Request
@@ -29,9 +29,15 @@ module Maileon
29
29
  email = URI::escape(params[:email])
30
30
  permission = params[:permission] ||= 1
31
31
  sync_mode = params[:sync_mode] ||= 2
32
+ src = params[:src]
33
+ subscription_page = params[:subscription_page]
32
34
  doi = params[:doi] ||= true
33
35
  doiplus = params[:doiplus] ||= true
36
+ doimailing = params[:doimailing]
34
37
  url = "contacts/#{email}?permission=#{permission}&sync_mode=#{sync_mode}&doi=#{doi}&doiplus=#{doiplus}"
38
+ url << "&doimailing=#{doimailing}" unless doimailing.nil?
39
+ url << "&src=#{src}" unless src.nil?
40
+ url << "&subscription_page=#{subscription_page}" unless subscription_page.nil?
35
41
  @session.post(:path => "#{@path}#{url}", :headers => get_headers, :body => body.to_json)
36
42
  end
37
43
 
@@ -1,3 +1,3 @@
1
1
  module Maileon
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0")
18
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.test_files = spec.files.grep(%r{^(spec)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_runtime_dependency "excon", "~> 0.44.4"
@@ -32,4 +32,5 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency "pry-nav", "~> 0.2"
33
33
  spec.add_development_dependency "webmock", "~> 1.20"
34
34
  spec.add_development_dependency "sinatra", "~> 1.4"
35
+ spec.add_development_dependency "coveralls", "~> 0.7.11"
35
36
  end
@@ -29,6 +29,12 @@ describe Maileon::API do
29
29
  end
30
30
  end
31
31
 
32
+ describe Maileon::API.new('asdfasdfasdfa', true) do
33
+ context 'with debug flag' do
34
+ it { is_expected.to have_attributes(:debug => true) }
35
+ end
36
+ end
37
+
32
38
  describe '.ping' do
33
39
  context 'with invalid API key' do
34
40
  it {
@@ -1,3 +1,8 @@
1
+ require 'coveralls'
2
+
3
+ # Code coverage
4
+ Coveralls.wear!
5
+
1
6
  require 'pry'
2
7
  require 'maileon'
3
8
  require 'webmock/rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maileon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ain Tohvri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-06 00:00:00.000000000 Z
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -192,6 +192,20 @@ dependencies:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: '1.4'
195
+ - !ruby/object:Gem::Dependency
196
+ name: coveralls
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 0.7.11
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 0.7.11
195
209
  description: Ruby wrapper for Maileon email marketing software API.
196
210
  email:
197
211
  - at@interactive-pioneers.de
@@ -199,6 +213,7 @@ executables: []
199
213
  extensions: []
200
214
  extra_rdoc_files: []
201
215
  files:
216
+ - ".coveralls.yml"
202
217
  - ".gitignore"
203
218
  - ".rspec"
204
219
  - ".travis.yml"