mosaic-lyris 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ pkg
2
+ *.swp
3
+ Gemfile.lock
4
+ test/config.yml
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rake'
2
2
  require 'rake/testtask'
3
+ require "bundler/gem_tasks"
3
4
 
4
5
  task :default => [:test]
5
6
 
@@ -10,22 +11,3 @@ end
10
11
 
11
12
  Rake::Task[:test].comment = "Run all tests"
12
13
 
13
- begin
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gemspec|
16
- gemspec.name = "mosaic-lyris"
17
- gemspec.summary = "Lyris/EmailLabs API"
18
- gemspec.description = "A wrapper for the Lyris/EmailLabs API to simplify integration"
19
- gemspec.email = "brent.faulkner@mosaic.com"
20
- gemspec.homepage = "http://github.com/mosaicxm/mosaic-lyris"
21
- gemspec.authors = ["S. Brent Faulkner"]
22
- gemspec.add_dependency('builder')
23
- gemspec.add_dependency('active_support')
24
- gemspec.add_dependency('htmlentities')
25
- gemspec.add_dependency('nokogiri')
26
- gemspec.add_dependency('tzinfo')
27
- gemspec.add_development_dependency('mocha')
28
- end
29
- rescue LoadError
30
- puts "Jeweler not available. Install it with: sudo gem install jeweler"
31
- end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -0,0 +1,2 @@
1
+ require 'mosaic/lyris'
2
+ require 'mosaic/lyris_mailer' if defined?(ActionMailer)
@@ -0,0 +1,5 @@
1
+ module Mosaic
2
+ module Lyris
3
+ VERSION = "1.0.5"
4
+ end
5
+ end
data/mosaic-lyris.gemspec CHANGED
@@ -1,115 +1,32 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'mosaic/lyris/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = "mosaic-lyris"
8
- s.version = "1.0.3"
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "mosaic-lyris"
8
+ gem.version = Mosaic::Lyris::VERSION
9
+ gem.date = Date.today.to_s
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["S. Brent Faulkner"]
12
- s.date = "2013-03-07"
13
- s.description = "A wrapper for the Lyris/EmailLabs API to simplify integration"
14
- s.email = "brent.faulkner@mosaic.com"
15
- s.extra_rdoc_files = [
16
- "README"
17
- ]
18
- s.files = [
19
- "Gemfile",
20
- "README",
21
- "Rakefile",
22
- "VERSION",
23
- "init.rb",
24
- "lib/lyris.rb",
25
- "lib/mosaic/lyris.rb",
26
- "lib/mosaic/lyris/demographic.rb",
27
- "lib/mosaic/lyris/filter.rb",
28
- "lib/mosaic/lyris/list.rb",
29
- "lib/mosaic/lyris/message.rb",
30
- "lib/mosaic/lyris/object.rb",
31
- "lib/mosaic/lyris/partner.rb",
32
- "lib/mosaic/lyris/record.rb",
33
- "lib/mosaic/lyris/trigger.rb",
34
- "lib/mosaic/lyris/upload.rb",
35
- "lib/mosaic/lyris_mailer.rb",
36
- "mosaic-lyris.gemspec",
37
- "test/demographic_test.rb",
38
- "test/filter_test.rb",
39
- "test/http_responder.rb",
40
- "test/list_test.rb",
41
- "test/message_test.rb",
42
- "test/partner_test.rb",
43
- "test/record_test.rb",
44
- "test/responses/demographic/add_error_name_already_exists.xml",
45
- "test/responses/demographic/add_success_12345.xml",
46
- "test/responses/demographic/query_all_success.xml",
47
- "test/responses/demographic/query_enabled_details_success.xml",
48
- "test/responses/demographic/query_enabled_success.xml",
49
- "test/responses/list/add_error_name_already_exists.xml",
50
- "test/responses/list/add_success_12345.xml",
51
- "test/responses/list/delete_error_not_found_99999.xml",
52
- "test/responses/list/delete_success_12345.xml",
53
- "test/responses/list/query_list_data_success.xml",
54
- "test/responses/record/add_error_email_already_exists.xml",
55
- "test/responses/record/add_success.xml",
56
- "test/responses/record/query_all_success.xml",
57
- "test/responses/record/query_all_success_empty.xml",
58
- "test/responses/record/query_all_success_page_1.xml",
59
- "test/responses/record/query_all_success_page_2.xml",
60
- "test/responses/record/query_all_success_page_3.xml",
61
- "test/responses/record/query_email_error_not_found.xml",
62
- "test/responses/record/query_email_success_active.xml",
63
- "test/responses/record/query_email_success_admin_trashed.xml",
64
- "test/responses/record/query_email_success_bounced.xml",
65
- "test/responses/record/query_email_success_unsubscribed.xml",
66
- "test/responses/record/update_error_not_found.xml",
67
- "test/responses/record/update_success.xml",
68
- "test/responses/triggers/fire_error_invalid_recipients.xml",
69
- "test/responses/triggers/fire_error_invalid_trigger_id.xml",
70
- "test/responses/triggers/fire_success.xml",
71
- "test/test_helper.rb",
72
- "test/trigger_test.rb"
73
- ]
74
- s.homepage = "http://github.com/mosaicxm/mosaic-lyris"
75
- s.require_paths = ["lib"]
76
- s.rubygems_version = "1.8.23"
77
- s.summary = "Lyris/EmailLabs API"
11
+ gem.summary = "Lyris/EmailLabs API"
12
+ gem.description = "A wrapper for the Lyris/EmailLabs API to simplify integration"
78
13
 
79
- if s.respond_to? :specification_version then
80
- s.specification_version = 3
14
+ gem.authors = ["S. Brent Faulkner"]
15
+ gem.email = "brent.faulkner@mosaic.com"
16
+ gem.homepage = "http://github.com/mosaicxm/mosaic-lyris"
81
17
 
82
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
83
- s.add_runtime_dependency(%q<mosaic-lyris>, [">= 0"])
84
- s.add_development_dependency(%q<jeweler>, [">= 0"])
85
- s.add_development_dependency(%q<mocha>, [">= 0"])
86
- s.add_runtime_dependency(%q<builder>, [">= 0"])
87
- s.add_runtime_dependency(%q<active_support>, [">= 0"])
88
- s.add_runtime_dependency(%q<htmlentities>, [">= 0"])
89
- s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
90
- s.add_runtime_dependency(%q<tzinfo>, [">= 0"])
91
- s.add_development_dependency(%q<mocha>, [">= 0"])
92
- else
93
- s.add_dependency(%q<mosaic-lyris>, [">= 0"])
94
- s.add_dependency(%q<jeweler>, [">= 0"])
95
- s.add_dependency(%q<mocha>, [">= 0"])
96
- s.add_dependency(%q<builder>, [">= 0"])
97
- s.add_dependency(%q<active_support>, [">= 0"])
98
- s.add_dependency(%q<htmlentities>, [">= 0"])
99
- s.add_dependency(%q<nokogiri>, [">= 0"])
100
- s.add_dependency(%q<tzinfo>, [">= 0"])
101
- s.add_dependency(%q<mocha>, [">= 0"])
102
- end
103
- else
104
- s.add_dependency(%q<mosaic-lyris>, [">= 0"])
105
- s.add_dependency(%q<jeweler>, [">= 0"])
106
- s.add_dependency(%q<mocha>, [">= 0"])
107
- s.add_dependency(%q<builder>, [">= 0"])
108
- s.add_dependency(%q<active_support>, [">= 0"])
109
- s.add_dependency(%q<htmlentities>, [">= 0"])
110
- s.add_dependency(%q<nokogiri>, [">= 0"])
111
- s.add_dependency(%q<tzinfo>, [">= 0"])
112
- s.add_dependency(%q<mocha>, [">= 0"])
113
- end
18
+ gem.files = `git ls-files`.split($/)
19
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
20
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
21
+ gem.require_paths = ["lib"]
22
+
23
+ gem.add_runtime_dependency "builder", [">= 0"]
24
+ gem.add_runtime_dependency "active_support", [">= 0"]
25
+ gem.add_runtime_dependency "htmlentities", [">= 0"]
26
+ gem.add_runtime_dependency "nokogiri", [">= 0"]
27
+ gem.add_runtime_dependency "tzinfo", [">= 0"]
28
+
29
+ gem.add_development_dependency "rake", [">= 0"]
30
+ gem.add_development_dependency "mocha", [">= 0"]
114
31
  end
115
32
 
@@ -1,4 +1,5 @@
1
1
  require 'net/http'
2
+ require 'cgi'
2
3
 
3
4
  module Net
4
5
  class HTTPOK
@@ -81,7 +82,7 @@ module Net
81
82
  end
82
83
 
83
84
  def urldecode(str)
84
- str.gsub(/%([0-9a-f]{2})/) { |s| $1.hex.chr }
85
+ CGI.unescape(str)
85
86
  end
86
87
  end
87
88
  end
metadata CHANGED
@@ -1,189 +1,122 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mosaic-lyris
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.3
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 5
9
+ version: 1.0.5
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - S. Brent Faulkner
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2013-03-07 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: mosaic-lyris
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: jeweler
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: mocha
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: mocha
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2013-03-07 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
79
21
  name: builder
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :runtime
87
22
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
95
- name: active_support
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
102
30
  type: :runtime
31
+ version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: active_support
103
34
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: htmlentities
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ version: "0"
118
42
  type: :runtime
43
+ version_requirements: *id002
44
+ - !ruby/object:Gem::Dependency
45
+ name: htmlentities
119
46
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: nokogiri
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
47
+ requirement: &id003 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
53
+ version: "0"
134
54
  type: :runtime
55
+ version_requirements: *id003
56
+ - !ruby/object:Gem::Dependency
57
+ name: nokogiri
135
58
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- - !ruby/object:Gem::Dependency
59
+ requirement: &id004 !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ type: :runtime
67
+ version_requirements: *id004
68
+ - !ruby/object:Gem::Dependency
143
69
  name: tzinfo
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
70
+ prerelease: false
71
+ requirement: &id005 !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ segments:
76
+ - 0
77
+ version: "0"
150
78
  type: :runtime
79
+ version_requirements: *id005
80
+ - !ruby/object:Gem::Dependency
81
+ name: rake
151
82
  prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: mocha
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
83
+ requirement: &id006 !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ segments:
88
+ - 0
89
+ version: "0"
166
90
  type: :development
91
+ version_requirements: *id006
92
+ - !ruby/object:Gem::Dependency
93
+ name: mocha
167
94
  prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
95
+ requirement: &id007 !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ segments:
100
+ - 0
101
+ version: "0"
102
+ type: :development
103
+ version_requirements: *id007
174
104
  description: A wrapper for the Lyris/EmailLabs API to simplify integration
175
105
  email: brent.faulkner@mosaic.com
176
106
  executables: []
107
+
177
108
  extensions: []
178
- extra_rdoc_files:
179
- - README
180
- files:
109
+
110
+ extra_rdoc_files: []
111
+
112
+ files:
113
+ - .gitignore
181
114
  - Gemfile
182
115
  - README
183
116
  - Rakefile
184
117
  - VERSION
185
118
  - init.rb
186
- - lib/lyris.rb
119
+ - lib/mosaic-lyris.rb
187
120
  - lib/mosaic/lyris.rb
188
121
  - lib/mosaic/lyris/demographic.rb
189
122
  - lib/mosaic/lyris/filter.rb
@@ -194,6 +127,7 @@ files:
194
127
  - lib/mosaic/lyris/record.rb
195
128
  - lib/mosaic/lyris/trigger.rb
196
129
  - lib/mosaic/lyris/upload.rb
130
+ - lib/mosaic/lyris/version.rb
197
131
  - lib/mosaic/lyris_mailer.rb
198
132
  - mosaic-lyris.gemspec
199
133
  - test/demographic_test.rb
@@ -232,31 +166,70 @@ files:
232
166
  - test/responses/triggers/fire_success.xml
233
167
  - test/test_helper.rb
234
168
  - test/trigger_test.rb
169
+ has_rdoc: true
235
170
  homepage: http://github.com/mosaicxm/mosaic-lyris
236
171
  licenses: []
172
+
237
173
  post_install_message:
238
174
  rdoc_options: []
239
- require_paths:
175
+
176
+ require_paths:
240
177
  - lib
241
- required_ruby_version: !ruby/object:Gem::Requirement
242
- none: false
243
- requirements:
244
- - - ! '>='
245
- - !ruby/object:Gem::Version
246
- version: '0'
247
- segments:
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ segments:
248
183
  - 0
249
- hash: -141251039374570934
250
- required_rubygems_version: !ruby/object:Gem::Requirement
251
- none: false
252
- requirements:
253
- - - ! '>='
254
- - !ruby/object:Gem::Version
255
- version: '0'
184
+ version: "0"
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ segments:
190
+ - 0
191
+ version: "0"
256
192
  requirements: []
193
+
257
194
  rubyforge_project:
258
- rubygems_version: 1.8.23
195
+ rubygems_version: 1.3.6
259
196
  signing_key:
260
197
  specification_version: 3
261
198
  summary: Lyris/EmailLabs API
262
- test_files: []
199
+ test_files:
200
+ - test/demographic_test.rb
201
+ - test/filter_test.rb
202
+ - test/http_responder.rb
203
+ - test/list_test.rb
204
+ - test/message_test.rb
205
+ - test/partner_test.rb
206
+ - test/record_test.rb
207
+ - test/responses/demographic/add_error_name_already_exists.xml
208
+ - test/responses/demographic/add_success_12345.xml
209
+ - test/responses/demographic/query_all_success.xml
210
+ - test/responses/demographic/query_enabled_details_success.xml
211
+ - test/responses/demographic/query_enabled_success.xml
212
+ - test/responses/list/add_error_name_already_exists.xml
213
+ - test/responses/list/add_success_12345.xml
214
+ - test/responses/list/delete_error_not_found_99999.xml
215
+ - test/responses/list/delete_success_12345.xml
216
+ - test/responses/list/query_list_data_success.xml
217
+ - test/responses/record/add_error_email_already_exists.xml
218
+ - test/responses/record/add_success.xml
219
+ - test/responses/record/query_all_success.xml
220
+ - test/responses/record/query_all_success_empty.xml
221
+ - test/responses/record/query_all_success_page_1.xml
222
+ - test/responses/record/query_all_success_page_2.xml
223
+ - test/responses/record/query_all_success_page_3.xml
224
+ - test/responses/record/query_email_error_not_found.xml
225
+ - test/responses/record/query_email_success_active.xml
226
+ - test/responses/record/query_email_success_admin_trashed.xml
227
+ - test/responses/record/query_email_success_bounced.xml
228
+ - test/responses/record/query_email_success_unsubscribed.xml
229
+ - test/responses/record/update_error_not_found.xml
230
+ - test/responses/record/update_success.xml
231
+ - test/responses/triggers/fire_error_invalid_recipients.xml
232
+ - test/responses/triggers/fire_error_invalid_trigger_id.xml
233
+ - test/responses/triggers/fire_success.xml
234
+ - test/test_helper.rb
235
+ - test/trigger_test.rb
data/lib/lyris.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'mosaic/lyris'
2
- require 'mosaic/lyris_mailer'