constantcontact 1.1.0 → 1.1.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
- ---
2
- SHA1:
3
- metadata.gz: 0c4cc9d1ea9b203b5ca089c9da4b644f42c8ee9f
4
- data.tar.gz: 8f618777d2131ad9e2bd55f5a97016e6d7b25849
5
- SHA512:
6
- metadata.gz: 048e7ffe96661bf3941f9fa76287ad9463cf93b7eb92cbfadc00bdc526b7905c4f5ccf08615b0d4d5461e78c719fdb26468706746ebf64b1e8de89c2aac7da80
7
- data.tar.gz: c1671514b610d40ee3cec33bad16652665ccd87a4b0b4610deb370187492ffb9c39140725297af8fbed716b6ab37c9c76ba925c46d4419620007df87a8d767e7
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c1f21c4f4d7b25101c458b81ebe7cb55a8133a6a
4
+ data.tar.gz: 0ba84731df6fe55f36f095f3245157877a8ad390
5
+ SHA512:
6
+ metadata.gz: 5c9df658db0ea507397fa36e9f7cb293fdf9af5f946562141f2c7a48128b04d6febfe5643b8c567999ea17b1af233fd3f7c27df0052583ee8a17bf9023dd8999
7
+ data.tar.gz: 00161cc94f2b62eca871d47e1c829d61458e987d2657c411b2c4c1102fa68763dec124820f9ddc83bb958c17db7336e107a3befd077387ee793420697bfc448a
@@ -2,11 +2,10 @@
2
2
 
3
3
  lib = File.expand_path('../lib', __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'constantcontact/version'
6
5
 
7
6
  Gem::Specification.new do |s|
8
7
  s.name = "constantcontact"
9
- s.version = ConstantContact::SDK::VERSION
8
+ s.version = '1.1.1'
10
9
  s.platform = Gem::Platform::RUBY
11
10
  s.authors = ["ConstantContact"]
12
11
  s.homepage = "http://www.constantcontact.com"
@@ -23,10 +22,10 @@ Gem::Specification.new do |s|
23
22
  s.files += Dir['lib/**/*.rb']
24
23
  s.executables = []
25
24
  s.require_paths = [ "lib" ]
26
- s.test_files = Dir['spec/**/*.rb']
25
+ s.test_files = Dir['spec/**/*_spec.rb']
27
26
 
28
- s.add_dependency("rest-client")
29
- s.add_dependency("json")
30
- s.add_dependency('mime-types', ['1.25.1'])
31
- s.add_development_dependency("rspec")
27
+ s.add_runtime_dependency("rest-client", '~> 1.6', '>= 1.6.7')
28
+ s.add_runtime_dependency("json", '~> 1.8', '>= 1.8.1')
29
+ s.add_runtime_dependency('mime-types', '~> 1.25', '>= 1.25.1')
30
+ s.add_development_dependency("rspec", '~> 2.14')
32
31
  end
@@ -11,9 +11,9 @@ require 'cgi'
11
11
  require 'cgi/session'
12
12
  require 'cgi/session/pstore'
13
13
 
14
-
15
14
  module ConstantContact
16
15
  autoload :Api, 'constantcontact/api'
16
+ autoload :SDK, 'constantcontact/version'
17
17
 
18
18
  module Auth
19
19
  autoload :OAuth2, 'constantcontact/auth/oauth2'
@@ -7,6 +7,6 @@
7
7
  module ConstantContact
8
8
  module SDK
9
9
  # Gem version
10
- VERSION = "1.1.0"
10
+ VERSION = "1.1.1"
11
11
  end
12
12
  end
@@ -0,0 +1,24 @@
1
+ #
2
+ # api_spec.rb
3
+ # ConstantContact
4
+ #
5
+ # Copyright (c) 2013 Constant Contact. All rights reserved.
6
+
7
+ require 'spec_helper'
8
+
9
+ describe ConstantContact::SDK do
10
+
11
+ let(:dummy_class) { Class.new { include ConstantContact::SDK } }
12
+
13
+ it "should respond to VERSION" do
14
+ expect((dummy_class.const_get("VERSION") rescue nil)).to be_true
15
+ end
16
+
17
+ it "should have a VERSION of type string" do
18
+ expect(dummy_class::VERSION).to be_a String
19
+ end
20
+
21
+ it "should have a VERSION of the format x.y.z" do
22
+ expect(dummy_class::VERSION.match(/[1-9]+\.\d+\.\d+/)).to_not be_nil
23
+ end
24
+ end
metadata CHANGED
@@ -1,81 +1,77 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: constantcontact
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - ConstantContact
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-22 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2014-01-31 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: rest-client
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: json
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: "1.6"
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 1.6.7
34
25
  type: :runtime
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
35
29
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '>='
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: mime-types
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '='
46
- - !ruby/object:Gem::Version
47
- version: 1.25.1
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: "1.8"
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 1.8.1
48
38
  type: :runtime
39
+ version_requirements: *id002
40
+ - !ruby/object:Gem::Dependency
41
+ name: mime-types
49
42
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '='
53
- - !ruby/object:Gem::Version
43
+ requirement: &id003 !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: "1.25"
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
54
50
  version: 1.25.1
55
- - !ruby/object:Gem::Dependency
51
+ type: :runtime
52
+ version_requirements: *id003
53
+ - !ruby/object:Gem::Dependency
56
54
  name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
55
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
56
+ requirement: &id004 !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: "2.14"
61
+ type: :development
62
+ version_requirements: *id004
69
63
  description: Ruby library for interactions with Constant Contact v2 API
70
64
  email: apisupport@constantcontact.com
71
65
  executables: []
66
+
72
67
  extensions: []
68
+
73
69
  extra_rdoc_files: []
74
- files:
70
+
71
+ files:
75
72
  - .rspec
76
- - README.md
77
73
  - constantcontact.gemspec
78
- - lib/constantcontact.rb
74
+ - README.md
79
75
  - lib/constantcontact/api.rb
80
76
  - lib/constantcontact/auth/oauth2.rb
81
77
  - lib/constantcontact/auth/session_data_store.rb
@@ -139,6 +135,7 @@ files:
139
135
  - lib/constantcontact/util/config.rb
140
136
  - lib/constantcontact/util/helpers.rb
141
137
  - lib/constantcontact/version.rb
138
+ - lib/constantcontact.rb
142
139
  - spec/constantcontact/api_spec.rb
143
140
  - spec/constantcontact/auth/oauth2_spec.rb
144
141
  - spec/constantcontact/components/contacts/address_spec.rb
@@ -146,6 +143,7 @@ files:
146
143
  - spec/constantcontact/components/contacts/contact_spec.rb
147
144
  - spec/constantcontact/components/contacts/custom_field_spec.rb
148
145
  - spec/constantcontact/components/contacts/email_address_spec.rb
146
+ - spec/constantcontact/sdk_spec.rb
149
147
  - spec/constantcontact/services/activity_service_spec.rb
150
148
  - spec/constantcontact/services/base_service_spec.rb
151
149
  - spec/constantcontact/services/campaign_schedule_service_spec.rb
@@ -156,32 +154,33 @@ files:
156
154
  - spec/constantcontact/services/event_spot_spec.rb
157
155
  - spec/constantcontact/services/library_service_spec.rb
158
156
  - spec/constantcontact/services/list_service_spec.rb
159
- - spec/spec_helper.rb
160
157
  homepage: http://www.constantcontact.com
161
- licenses:
158
+ licenses:
162
159
  - MIT
163
160
  metadata: {}
161
+
164
162
  post_install_message:
165
163
  rdoc_options: []
166
- require_paths:
164
+
165
+ require_paths:
167
166
  - lib
168
- required_ruby_version: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - '>='
171
- - !ruby/object:Gem::Version
172
- version: '0'
173
- required_rubygems_version: !ruby/object:Gem::Requirement
174
- requirements:
175
- - - '>='
176
- - !ruby/object:Gem::Version
177
- version: '0'
167
+ required_ruby_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - &id005
170
+ - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: "0"
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - *id005
178
176
  requirements: []
177
+
179
178
  rubyforge_project:
180
- rubygems_version: 2.2.1
179
+ rubygems_version: 2.0.14
181
180
  signing_key:
182
181
  specification_version: 4
183
182
  summary: Constant Contact SDK for Ruby
184
- test_files:
183
+ test_files:
185
184
  - spec/constantcontact/api_spec.rb
186
185
  - spec/constantcontact/auth/oauth2_spec.rb
187
186
  - spec/constantcontact/components/contacts/address_spec.rb
@@ -189,6 +188,7 @@ test_files:
189
188
  - spec/constantcontact/components/contacts/contact_spec.rb
190
189
  - spec/constantcontact/components/contacts/custom_field_spec.rb
191
190
  - spec/constantcontact/components/contacts/email_address_spec.rb
191
+ - spec/constantcontact/sdk_spec.rb
192
192
  - spec/constantcontact/services/activity_service_spec.rb
193
193
  - spec/constantcontact/services/base_service_spec.rb
194
194
  - spec/constantcontact/services/campaign_schedule_service_spec.rb
@@ -199,4 +199,3 @@ test_files:
199
199
  - spec/constantcontact/services/event_spot_spec.rb
200
200
  - spec/constantcontact/services/library_service_spec.rb
201
201
  - spec/constantcontact/services/list_service_spec.rb
202
- - spec/spec_helper.rb
data/spec/spec_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- #
2
- # spec_helper.rb
3
- # ConstantContact
4
- #
5
- # Copyright (c) 2013 Constant Contact. All rights reserved.
6
-
7
- $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
8
- require 'constantcontact'
9
- #require 'simplecov'
10
-
11
- #SimpleCov.start
12
-
13
- def load_file(file_name)
14
- json = File.read(File.join(File.dirname(__FILE__), 'fixtures', file_name))
15
- end