createsend 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da211cead45e0ca1c6b083f7b53c535212885abe
4
- data.tar.gz: b27340d9c34db21fc2cf3aa12886c482854b75f7
3
+ metadata.gz: 0b6d359c59a5a502e3dfd9ab96c93fddfef4cb89
4
+ data.tar.gz: f62ec5fc1dcf2d060765fd5706dcfe95e054a36e
5
5
  SHA512:
6
- metadata.gz: d0d99c593cd1beb56782bca4664d51ad8794ef4445e4953a47f200977d8ce186b64ec63e4616b7a22fb18fd394e4e1a73c52ed9ef88801db32468df5602ca8a5
7
- data.tar.gz: 84c93a100fcb6fff17e48d6fe00ccd332252dd4f8f54467452b1b7a20ddb4324b51902878b3c59840f08446cf3fe79377434931ff1a64856f728fbc4763ab00f
6
+ metadata.gz: c3766044c218638746e5c2083b36d5dd00b42315b20494474abbb1de5c152772452567d18783a09ad105cbd65e6119ab9a242b9839cf4a0848b658fb92e81a24
7
+ data.tar.gz: 3f9526331fc42e6e32ed3ab83ac33fb68622cfc6c4fad6864c04ec5da4b2b770854aaf40b04dc665833b618456a1e593b32b607dee973c121b4f882a98934318
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.0
3
+ - 2.1
4
4
  - 2.0.0
5
5
  - 1.9.3
6
6
  - jruby-19mode
data/HISTORY.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # createsend-ruby history
2
2
 
3
+ ## v4.0.1 - 3 May, 2014
4
+
5
+ * This is a patch release which only changes development dependencies.
6
+ * Removed development dependency on `shoulda` and added more suitable dependency on `shoulda-context` instead.
7
+
3
8
  ## v4.0.0 - 19 Feb, 2014
4
9
 
5
10
  * Removed `CreateSend::CreateSend#apikey` to promote using OAuth rather than basic auth with an API key.
@@ -23,7 +28,7 @@
23
28
  ```ruby
24
29
  rule_groups = [ { :Rules => [ { :RuleType => "EmailAddress", :Clause => "CONTAINS example.com" } ] } ]
25
30
  ```
26
-
31
+
27
32
  * The Add Rule call is now Add Rule Group, taking a collection of rules in a single `rule_group` argument instead of separate `subject` & `clauses` arguments.
28
33
 
29
34
  ```ruby
data/README.md CHANGED
@@ -1,25 +1,19 @@
1
1
  # createsend
2
- [![Build Status](https://secure.travis-ci.org/campaignmonitor/createsend-ruby.png)][travis] [![Coverage Status](https://coveralls.io/repos/campaignmonitor/createsend-ruby/badge.png?branch=master)][coveralls] [![Dependency Status](https://gemnasium.com/campaignmonitor/createsend-ruby.png)][gemnasium] [![Gem Version](https://badge.fury.io/rb/createsend.png)][gembadge]
3
-
4
- A Ruby library which implements the complete functionality of the [Campaign Monitor API](http://www.campaignmonitor.com/api/).
5
2
 
6
- [travis]: http://travis-ci.org/campaignmonitor/createsend-ruby
7
- [coveralls]: https://coveralls.io/r/campaignmonitor/createsend-ruby
8
- [gemnasium]: https://gemnasium.com/campaignmonitor/createsend-ruby
9
- [gembadge]: http://badge.fury.io/rb/createsend
3
+ A Ruby library which implements the complete functionality of the [Campaign Monitor API](http://www.campaignmonitor.com/api/). Requires Ruby >= 1.9.3.
10
4
 
11
- ## Installation
5
+ ## Quick start
12
6
 
13
- To install:
7
+ Add the gem to your `Gemfile`:
14
8
 
15
- ```
16
- gem install createsend
9
+ ```ruby
10
+ gem 'createsend'
17
11
  ```
18
12
 
19
- Or, add a dependency to your `Gemfile` then `bundle install`.
13
+ Or, install the gem:
20
14
 
21
- ```ruby
22
- gem 'createsend'
15
+ ```
16
+ gem install createsend
23
17
  ```
24
18
 
25
19
  ## Authenticating
@@ -190,9 +184,10 @@ Error Message: Campaign Subject Required
190
184
  ```
191
185
 
192
186
  ## Expected input and output
187
+
193
188
  The best way of finding out the expected input and output of a particular method in a particular class is to use the unit tests as a reference.
194
189
 
195
- For example, if you wanted to find out how to call the CreateSend::Subscriber.add method, you would look at the file test/subscriber_test.rb
190
+ For example, if you wanted to find out how to call the `CreateSend::Subscriber.add` method, you would look at the file [test/subscriber_test.rb](https://github.com/campaignmonitor/createsend-ruby/blob/master/test/subscriber_test.rb)
196
191
 
197
192
  ```ruby
198
193
  should "add a subscriber with custom fields" do
@@ -205,7 +200,7 @@ end
205
200
 
206
201
  ## Documentation
207
202
 
208
- Full documentation is hosted by [RubyDoc.info](http://rubydoc.info/gems/createsend/frames).
203
+ Ruby documentation is available at [RubyDoc.info](http://rubydoc.info/gems/createsend/frames).
209
204
 
210
205
  ## Contributing
211
206
 
@@ -214,3 +209,12 @@ Please check the [guidelines for contributing](https://github.com/campaignmonito
214
209
  ## Releasing
215
210
 
216
211
  Please check the [instructions for releasing](https://github.com/campaignmonitor/createsend-ruby/blob/master/RELEASE.md) the `createsend` gem.
212
+
213
+ ## This stuff should be green
214
+
215
+ [![Build Status](https://secure.travis-ci.org/campaignmonitor/createsend-ruby.png)][travis] [![Coverage Status](https://coveralls.io/repos/campaignmonitor/createsend-ruby/badge.png?branch=master)][coveralls] [![Dependency Status](https://gemnasium.com/campaignmonitor/createsend-ruby.png)][gemnasium] [![Gem Version](https://badge.fury.io/rb/createsend.png)][gembadge]
216
+
217
+ [travis]: http://travis-ci.org/campaignmonitor/createsend-ruby
218
+ [coveralls]: https://coveralls.io/r/campaignmonitor/createsend-ruby
219
+ [gemnasium]: https://gemnasium.com/campaignmonitor/createsend-ruby
220
+ [gembadge]: http://badge.fury.io/rb/createsend
data/createsend.gemspec CHANGED
@@ -4,15 +4,15 @@ require 'bundler/version'
4
4
  require File.expand_path('lib/createsend/version')
5
5
 
6
6
  Gem::Specification.new do |s|
7
+ s.add_runtime_dependency 'json', '>= 0'
8
+ s.add_runtime_dependency 'hashie', ['>= 1.2', '< 3']
9
+ s.add_runtime_dependency 'httparty', '~> 0.10'
7
10
  s.add_development_dependency 'rake', '~> 10.0'
8
11
  s.add_development_dependency 'fakeweb', '~> 1.3'
9
12
  s.add_development_dependency 'jnunemaker-matchy', '~> 0.4'
10
- s.add_development_dependency 'shoulda', '~> 3.3'
13
+ s.add_development_dependency 'shoulda-context', '~> 1.2'
11
14
  s.add_development_dependency 'simplecov'
12
15
  s.add_development_dependency 'coveralls'
13
- s.add_runtime_dependency 'json', '>= 0'
14
- s.add_runtime_dependency 'hashie', ['>= 1.2', '< 3']
15
- s.add_runtime_dependency 'httparty', '~> 0.10'
16
16
  s.name = "createsend"
17
17
  s.author = "James Dennes"
18
18
  s.description = %q{Implements the complete functionality of the Campaign Monitor API.}
@@ -1,3 +1,3 @@
1
1
  module CreateSend
2
- VERSION = "4.0.0" unless defined?(CreateSend::VERSION)
2
+ VERSION = "4.0.1" unless defined?(CreateSend::VERSION)
3
3
  end
data/test/helper.rb CHANGED
@@ -10,7 +10,7 @@ SimpleCov.start
10
10
  require 'test/unit'
11
11
  require 'pathname'
12
12
 
13
- require 'shoulda'
13
+ require 'shoulda/context'
14
14
  require 'matchy'
15
15
  require 'fakeweb'
16
16
 
@@ -75,4 +75,4 @@ def authenticated_using_api_key_context(&blk)
75
75
  end
76
76
  merge_block(&blk)
77
77
  end
78
- end
78
+ end
metadata CHANGED
@@ -1,147 +1,147 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: createsend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Dennes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '10.0'
20
- type: :development
19
+ version: '0'
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '10.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: fakeweb
28
+ name: hashie
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
34
- type: :development
33
+ version: '1.2'
34
+ - - <
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
37
+ type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - ~>
41
+ - - '>='
39
42
  - !ruby/object:Gem::Version
40
- version: '1.3'
43
+ version: '1.2'
44
+ - - <
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
41
47
  - !ruby/object:Gem::Dependency
42
- name: jnunemaker-matchy
48
+ name: httparty
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
47
- version: '0.4'
48
- type: :development
53
+ version: '0.10'
54
+ type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - ~>
53
59
  - !ruby/object:Gem::Version
54
- version: '0.4'
60
+ version: '0.10'
55
61
  - !ruby/object:Gem::Dependency
56
- name: shoulda
62
+ name: rake
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - ~>
60
66
  - !ruby/object:Gem::Version
61
- version: '3.3'
67
+ version: '10.0'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
72
  - - ~>
67
73
  - !ruby/object:Gem::Version
68
- version: '3.3'
74
+ version: '10.0'
69
75
  - !ruby/object:Gem::Dependency
70
- name: simplecov
76
+ name: fakeweb
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
- - - '>='
79
+ - - ~>
74
80
  - !ruby/object:Gem::Version
75
- version: '0'
81
+ version: '1.3'
76
82
  type: :development
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
79
85
  requirements:
80
- - - '>='
86
+ - - ~>
81
87
  - !ruby/object:Gem::Version
82
- version: '0'
88
+ version: '1.3'
83
89
  - !ruby/object:Gem::Dependency
84
- name: coveralls
90
+ name: jnunemaker-matchy
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - '>='
93
+ - - ~>
88
94
  - !ruby/object:Gem::Version
89
- version: '0'
95
+ version: '0.4'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - '>='
100
+ - - ~>
95
101
  - !ruby/object:Gem::Version
96
- version: '0'
102
+ version: '0.4'
97
103
  - !ruby/object:Gem::Dependency
98
- name: json
104
+ name: shoulda-context
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
- - - '>='
107
+ - - ~>
102
108
  - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
109
+ version: '1.2'
110
+ type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
- - - '>='
114
+ - - ~>
109
115
  - !ruby/object:Gem::Version
110
- version: '0'
116
+ version: '1.2'
111
117
  - !ruby/object:Gem::Dependency
112
- name: hashie
118
+ name: simplecov
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
121
  - - '>='
116
122
  - !ruby/object:Gem::Version
117
- version: '1.2'
118
- - - <
119
- - !ruby/object:Gem::Version
120
- version: '3'
121
- type: :runtime
123
+ version: '0'
124
+ type: :development
122
125
  prerelease: false
123
126
  version_requirements: !ruby/object:Gem::Requirement
124
127
  requirements:
125
128
  - - '>='
126
129
  - !ruby/object:Gem::Version
127
- version: '1.2'
128
- - - <
129
- - !ruby/object:Gem::Version
130
- version: '3'
130
+ version: '0'
131
131
  - !ruby/object:Gem::Dependency
132
- name: httparty
132
+ name: coveralls
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ~>
135
+ - - '>='
136
136
  - !ruby/object:Gem::Version
137
- version: '0.10'
138
- type: :runtime
137
+ version: '0'
138
+ type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ~>
142
+ - - '>='
143
143
  - !ruby/object:Gem::Version
144
- version: '0.10'
144
+ version: '0'
145
145
  description: Implements the complete functionality of the Campaign Monitor API.
146
146
  email:
147
147
  - jdennes@gmail.com