mailcannon 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +289 -0
- data/Rakefile +15 -0
- data/lib/generators/highrise_mapper/USAGE +8 -0
- data/lib/generators/highrise_mapper/config_generator.rb +10 -0
- data/lib/mailcannon/context.rb +28 -0
- data/lib/mailcannon/person.rb +65 -0
- data/lib/mailcannon/version.rb +8 -0
- data/lib/mailcannon.rb +30 -0
- data/mailcannon.gemspec +36 -0
- metadata +151 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c76844e3b36af8d15ea57c40d77894449392a62c
|
4
|
+
data.tar.gz: f0283cff4d2c2d18a6c25552b42ae64206334b84
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4872da07cf07f5d27a8be700dfee7c52f1bb6685f9ce02946ede451554b121368168270889f5a3b7385553474ab28720760b3177cf3cae58cc7e4e262977d902
|
7
|
+
data.tar.gz: 53c32841dd0e9f407827b899b76784816489729ad52f0d66d58602e59468617a2ac3b78bf00381975f4fa4225cead3c3563252e3f8397a5900fe55a7ebe4450c
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,289 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mailcannon (0.0.1)
|
5
|
+
librato-metrics
|
6
|
+
mongoid
|
7
|
+
redis
|
8
|
+
rubysl
|
9
|
+
sendgrid_webapi
|
10
|
+
sidekiq
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: https://rubygems.org/
|
14
|
+
specs:
|
15
|
+
activemodel (3.2.16)
|
16
|
+
activesupport (= 3.2.16)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
activesupport (3.2.16)
|
19
|
+
i18n (~> 0.6, >= 0.6.4)
|
20
|
+
multi_json (~> 1.0)
|
21
|
+
aggregate (0.2.2)
|
22
|
+
builder (3.0.4)
|
23
|
+
celluloid (0.15.2)
|
24
|
+
timers (~> 1.1.0)
|
25
|
+
coderay (1.0.9)
|
26
|
+
connection_pool (1.2.0)
|
27
|
+
diff-lcs (1.2.4)
|
28
|
+
faraday (0.8.8)
|
29
|
+
multipart-post (~> 1.2.0)
|
30
|
+
ffi2-generators (0.1.1)
|
31
|
+
i18n (0.6.9)
|
32
|
+
json (1.8.1)
|
33
|
+
librato-metrics (1.3.0)
|
34
|
+
aggregate (~> 0.2.2)
|
35
|
+
faraday (~> 0.7)
|
36
|
+
multi_json
|
37
|
+
method_source (0.8.1)
|
38
|
+
mongoid (3.1.6)
|
39
|
+
activemodel (~> 3.2)
|
40
|
+
moped (~> 1.4)
|
41
|
+
origin (~> 1.0)
|
42
|
+
tzinfo (~> 0.3.29)
|
43
|
+
moped (1.5.1)
|
44
|
+
multi_json (1.8.2)
|
45
|
+
multipart-post (1.2.0)
|
46
|
+
origin (1.1.0)
|
47
|
+
pry (0.9.12.2)
|
48
|
+
coderay (~> 1.0.5)
|
49
|
+
method_source (~> 0.8)
|
50
|
+
slop (~> 3.4)
|
51
|
+
pry-nav (0.2.3)
|
52
|
+
pry (~> 0.9.10)
|
53
|
+
rake (10.0.4)
|
54
|
+
redis (3.0.6)
|
55
|
+
redis-namespace (1.4.1)
|
56
|
+
redis (~> 3.0.4)
|
57
|
+
rspec (2.13.0)
|
58
|
+
rspec-core (~> 2.13.0)
|
59
|
+
rspec-expectations (~> 2.13.0)
|
60
|
+
rspec-mocks (~> 2.13.0)
|
61
|
+
rspec-core (2.13.1)
|
62
|
+
rspec-expectations (2.13.0)
|
63
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
64
|
+
rspec-mocks (2.13.1)
|
65
|
+
rubysl (2.0.15)
|
66
|
+
rubysl-abbrev (~> 2.0)
|
67
|
+
rubysl-base64 (~> 2.0)
|
68
|
+
rubysl-benchmark (~> 2.0)
|
69
|
+
rubysl-bigdecimal (~> 2.0)
|
70
|
+
rubysl-cgi (~> 2.0)
|
71
|
+
rubysl-cgi-session (~> 2.0)
|
72
|
+
rubysl-cmath (~> 2.0)
|
73
|
+
rubysl-complex (~> 2.0)
|
74
|
+
rubysl-continuation (~> 2.0)
|
75
|
+
rubysl-coverage (~> 2.0)
|
76
|
+
rubysl-csv (~> 2.0)
|
77
|
+
rubysl-curses (~> 2.0)
|
78
|
+
rubysl-date (~> 2.0)
|
79
|
+
rubysl-delegate (~> 2.0)
|
80
|
+
rubysl-digest (~> 2.0)
|
81
|
+
rubysl-drb (~> 2.0)
|
82
|
+
rubysl-e2mmap (~> 2.0)
|
83
|
+
rubysl-english (~> 2.0)
|
84
|
+
rubysl-enumerator (~> 2.0)
|
85
|
+
rubysl-erb (~> 2.0)
|
86
|
+
rubysl-etc (~> 2.0)
|
87
|
+
rubysl-expect (~> 2.0)
|
88
|
+
rubysl-fcntl (~> 2.0)
|
89
|
+
rubysl-fiber (~> 2.0)
|
90
|
+
rubysl-fileutils (~> 2.0)
|
91
|
+
rubysl-find (~> 2.0)
|
92
|
+
rubysl-forwardable (~> 2.0)
|
93
|
+
rubysl-getoptlong (~> 2.0)
|
94
|
+
rubysl-gserver (~> 2.0)
|
95
|
+
rubysl-io-console (~> 2.0)
|
96
|
+
rubysl-io-nonblock (~> 2.0)
|
97
|
+
rubysl-io-wait (~> 2.0)
|
98
|
+
rubysl-ipaddr (~> 2.0)
|
99
|
+
rubysl-irb (~> 2.0)
|
100
|
+
rubysl-logger (~> 2.0)
|
101
|
+
rubysl-mathn (~> 2.0)
|
102
|
+
rubysl-matrix (~> 2.0)
|
103
|
+
rubysl-mkmf (~> 2.0)
|
104
|
+
rubysl-monitor (~> 2.0)
|
105
|
+
rubysl-mutex_m (~> 2.0)
|
106
|
+
rubysl-net-ftp (~> 2.0)
|
107
|
+
rubysl-net-http (~> 2.0)
|
108
|
+
rubysl-net-imap (~> 2.0)
|
109
|
+
rubysl-net-pop (~> 2.0)
|
110
|
+
rubysl-net-protocol (~> 2.0)
|
111
|
+
rubysl-net-smtp (~> 2.0)
|
112
|
+
rubysl-net-telnet (~> 2.0)
|
113
|
+
rubysl-nkf (~> 2.0)
|
114
|
+
rubysl-observer (~> 2.0)
|
115
|
+
rubysl-open-uri (~> 2.0)
|
116
|
+
rubysl-open3 (~> 2.0)
|
117
|
+
rubysl-openssl (~> 2.0)
|
118
|
+
rubysl-optparse (~> 2.0)
|
119
|
+
rubysl-ostruct (~> 2.0)
|
120
|
+
rubysl-pathname (~> 2.0)
|
121
|
+
rubysl-prettyprint (~> 2.0)
|
122
|
+
rubysl-prime (~> 2.0)
|
123
|
+
rubysl-profile (~> 2.0)
|
124
|
+
rubysl-profiler (~> 2.0)
|
125
|
+
rubysl-pstore (~> 2.0)
|
126
|
+
rubysl-pty (~> 2.0)
|
127
|
+
rubysl-rational (~> 2.0)
|
128
|
+
rubysl-readline (~> 2.0)
|
129
|
+
rubysl-resolv (~> 2.0)
|
130
|
+
rubysl-rexml (~> 2.0)
|
131
|
+
rubysl-rinda (~> 2.0)
|
132
|
+
rubysl-rss (~> 2.0)
|
133
|
+
rubysl-scanf (~> 2.0)
|
134
|
+
rubysl-securerandom (~> 2.0)
|
135
|
+
rubysl-set (~> 2.0)
|
136
|
+
rubysl-shellwords (~> 2.0)
|
137
|
+
rubysl-singleton (~> 2.0)
|
138
|
+
rubysl-socket (~> 2.0)
|
139
|
+
rubysl-stringio (~> 2.0)
|
140
|
+
rubysl-strscan (~> 2.0)
|
141
|
+
rubysl-sync (~> 2.0)
|
142
|
+
rubysl-syslog (~> 2.0)
|
143
|
+
rubysl-tempfile (~> 2.0)
|
144
|
+
rubysl-thread (~> 2.0)
|
145
|
+
rubysl-thwait (~> 2.0)
|
146
|
+
rubysl-time (~> 2.0)
|
147
|
+
rubysl-timeout (~> 2.0)
|
148
|
+
rubysl-tmpdir (~> 2.0)
|
149
|
+
rubysl-tsort (~> 2.0)
|
150
|
+
rubysl-un (~> 2.0)
|
151
|
+
rubysl-uri (~> 2.0)
|
152
|
+
rubysl-weakref (~> 2.0)
|
153
|
+
rubysl-webrick (~> 2.0)
|
154
|
+
rubysl-xmlrpc (~> 2.0)
|
155
|
+
rubysl-yaml (~> 2.0)
|
156
|
+
rubysl-zlib (~> 2.0)
|
157
|
+
rubysl-abbrev (2.0.4)
|
158
|
+
rubysl-base64 (2.0.0)
|
159
|
+
rubysl-benchmark (2.0.1)
|
160
|
+
rubysl-bigdecimal (2.0.2)
|
161
|
+
rubysl-cgi (2.0.1)
|
162
|
+
rubysl-cgi-session (2.0.1)
|
163
|
+
rubysl-cmath (2.0.0)
|
164
|
+
rubysl-complex (2.0.0)
|
165
|
+
rubysl-continuation (2.0.0)
|
166
|
+
rubysl-coverage (2.0.3)
|
167
|
+
rubysl-csv (2.0.2)
|
168
|
+
rubysl-english (~> 2.0)
|
169
|
+
rubysl-curses (2.0.0)
|
170
|
+
rubysl-date (2.0.6)
|
171
|
+
rubysl-delegate (2.0.1)
|
172
|
+
rubysl-digest (2.0.3)
|
173
|
+
rubysl-drb (2.0.1)
|
174
|
+
rubysl-e2mmap (2.0.0)
|
175
|
+
rubysl-english (2.0.0)
|
176
|
+
rubysl-enumerator (2.0.0)
|
177
|
+
rubysl-erb (2.0.1)
|
178
|
+
rubysl-etc (2.0.3)
|
179
|
+
ffi2-generators (~> 0.1)
|
180
|
+
rubysl-expect (2.0.0)
|
181
|
+
rubysl-fcntl (2.0.4)
|
182
|
+
ffi2-generators (~> 0.1)
|
183
|
+
rubysl-fiber (2.0.0)
|
184
|
+
rubysl-fileutils (2.0.3)
|
185
|
+
rubysl-find (2.0.1)
|
186
|
+
rubysl-forwardable (2.0.1)
|
187
|
+
rubysl-getoptlong (2.0.0)
|
188
|
+
rubysl-gserver (2.0.0)
|
189
|
+
rubysl-socket (~> 2.0)
|
190
|
+
rubysl-thread (~> 2.0)
|
191
|
+
rubysl-io-console (2.0.0)
|
192
|
+
rubysl-io-nonblock (2.0.0)
|
193
|
+
rubysl-io-wait (2.0.0)
|
194
|
+
rubysl-ipaddr (2.0.0)
|
195
|
+
rubysl-irb (2.0.4)
|
196
|
+
rubysl-e2mmap (~> 2.0)
|
197
|
+
rubysl-mathn (~> 2.0)
|
198
|
+
rubysl-readline (~> 2.0)
|
199
|
+
rubysl-thread (~> 2.0)
|
200
|
+
rubysl-logger (2.0.0)
|
201
|
+
rubysl-mathn (2.0.0)
|
202
|
+
rubysl-matrix (2.1.0)
|
203
|
+
rubysl-e2mmap (~> 2.0)
|
204
|
+
rubysl-mkmf (2.0.1)
|
205
|
+
rubysl-fileutils (~> 2.0)
|
206
|
+
rubysl-shellwords (~> 2.0)
|
207
|
+
rubysl-monitor (2.0.0)
|
208
|
+
rubysl-mutex_m (2.0.0)
|
209
|
+
rubysl-net-ftp (2.0.1)
|
210
|
+
rubysl-net-http (2.0.4)
|
211
|
+
rubysl-cgi (~> 2.0)
|
212
|
+
rubysl-erb (~> 2.0)
|
213
|
+
rubysl-singleton (~> 2.0)
|
214
|
+
rubysl-net-imap (2.0.1)
|
215
|
+
rubysl-net-pop (2.0.1)
|
216
|
+
rubysl-net-protocol (2.0.1)
|
217
|
+
rubysl-net-smtp (2.0.1)
|
218
|
+
rubysl-net-telnet (2.0.0)
|
219
|
+
rubysl-nkf (2.0.1)
|
220
|
+
rubysl-observer (2.0.0)
|
221
|
+
rubysl-open-uri (2.0.0)
|
222
|
+
rubysl-open3 (2.0.0)
|
223
|
+
rubysl-openssl (2.0.5)
|
224
|
+
rubysl-optparse (2.0.1)
|
225
|
+
rubysl-shellwords (~> 2.0)
|
226
|
+
rubysl-ostruct (2.0.4)
|
227
|
+
rubysl-pathname (2.0.0)
|
228
|
+
rubysl-prettyprint (2.0.2)
|
229
|
+
rubysl-prime (2.0.1)
|
230
|
+
rubysl-profile (2.0.0)
|
231
|
+
rubysl-profiler (2.0.1)
|
232
|
+
rubysl-pstore (2.0.0)
|
233
|
+
rubysl-pty (2.0.2)
|
234
|
+
rubysl-rational (2.0.1)
|
235
|
+
rubysl-readline (2.0.2)
|
236
|
+
rubysl-resolv (2.0.0)
|
237
|
+
rubysl-rexml (2.0.2)
|
238
|
+
rubysl-rinda (2.0.0)
|
239
|
+
rubysl-rss (2.0.0)
|
240
|
+
rubysl-scanf (2.0.0)
|
241
|
+
rubysl-securerandom (2.0.0)
|
242
|
+
rubysl-set (2.0.1)
|
243
|
+
rubysl-shellwords (2.0.0)
|
244
|
+
rubysl-singleton (2.0.0)
|
245
|
+
rubysl-socket (2.0.1)
|
246
|
+
rubysl-stringio (2.0.0)
|
247
|
+
rubysl-strscan (2.0.0)
|
248
|
+
rubysl-sync (2.0.0)
|
249
|
+
rubysl-syslog (2.0.1)
|
250
|
+
ffi2-generators (~> 0.1)
|
251
|
+
rubysl-tempfile (2.0.1)
|
252
|
+
rubysl-thread (2.0.2)
|
253
|
+
rubysl-thwait (2.0.0)
|
254
|
+
rubysl-time (2.0.3)
|
255
|
+
rubysl-timeout (2.0.0)
|
256
|
+
rubysl-tmpdir (2.0.0)
|
257
|
+
rubysl-tsort (2.0.1)
|
258
|
+
rubysl-un (2.0.0)
|
259
|
+
rubysl-fileutils (~> 2.0)
|
260
|
+
rubysl-optparse (~> 2.0)
|
261
|
+
rubysl-uri (2.0.0)
|
262
|
+
rubysl-weakref (2.0.0)
|
263
|
+
rubysl-webrick (2.0.0)
|
264
|
+
rubysl-xmlrpc (2.0.0)
|
265
|
+
rubysl-yaml (2.0.4)
|
266
|
+
rubysl-zlib (2.0.1)
|
267
|
+
sendgrid_webapi (0.0.2)
|
268
|
+
faraday (~> 0.8.0)
|
269
|
+
json (~> 1.8.0)
|
270
|
+
sidekiq (2.17.0)
|
271
|
+
celluloid (>= 0.15.2)
|
272
|
+
connection_pool (>= 1.0.0)
|
273
|
+
json
|
274
|
+
redis (>= 3.0.4)
|
275
|
+
redis-namespace (>= 1.3.1)
|
276
|
+
slop (3.4.5)
|
277
|
+
timers (1.1.0)
|
278
|
+
tzinfo (0.3.38)
|
279
|
+
|
280
|
+
PLATFORMS
|
281
|
+
ruby
|
282
|
+
|
283
|
+
DEPENDENCIES
|
284
|
+
mailcannon!
|
285
|
+
pry
|
286
|
+
pry-nav
|
287
|
+
rake
|
288
|
+
rspec
|
289
|
+
rspec-mocks
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "bundler"
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
require "rspec/core/rake_task"
|
5
|
+
RSpec::Core::RakeTask.new
|
6
|
+
|
7
|
+
task :default => :travis
|
8
|
+
|
9
|
+
task :travis do
|
10
|
+
["rake spec", "rake build"].each do |cmd|
|
11
|
+
puts "Starting to run #{cmd}..."
|
12
|
+
system("export DISPLAY=:99.0 && bundle exec #{cmd}")
|
13
|
+
raise "#{cmd} failed!" unless $?.exitstatus == 0
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module MailCannon
|
2
|
+
class ConfigGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path('../../../../templates/config', __FILE__)
|
4
|
+
|
5
|
+
def create_config_file
|
6
|
+
config_yml = 'mailcannon.yml'
|
7
|
+
copy_file config_yml, "config/#{config_yml}"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module MailCannon
|
2
|
+
module Context
|
3
|
+
|
4
|
+
module InstanceMethods
|
5
|
+
def setup_highrise
|
6
|
+
Highrise::Base.site = self.highrise_base_url
|
7
|
+
Highrise::Base.user = self.highrise_token
|
8
|
+
Highrise::Base.format = :xml
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.included(receiver)
|
13
|
+
receiver.send :include, InstanceMethods
|
14
|
+
check_expected_behavior(receiver)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
def self.check_expected_behavior(receiver)
|
19
|
+
unless receiver.method_defined? 'highrise_base_url'
|
20
|
+
raise 'Your model must respond to "highrise_base_url"'
|
21
|
+
end
|
22
|
+
unless receiver.method_defined? 'highrise_token'
|
23
|
+
raise 'Your model must respond to "highrise_token"'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
module MailCannon
|
2
|
+
module Person
|
3
|
+
|
4
|
+
module InstanceMethods
|
5
|
+
def save_to_highrise
|
6
|
+
unless MailCannon.config['person'].is_a? Hash
|
7
|
+
raise 'Your mailcannon.yml does not contain the "person" configuration key.'
|
8
|
+
end
|
9
|
+
self.highrise_context.setup_highrise
|
10
|
+
highrise_person = Highrise::Person.new(build_highrise_hash)
|
11
|
+
|
12
|
+
begin
|
13
|
+
highrise_person.save!
|
14
|
+
rescue Exception => e
|
15
|
+
#shoud get rails logger if available
|
16
|
+
puts highrise_person.errors
|
17
|
+
end
|
18
|
+
return highrise_person.attributes['id']
|
19
|
+
end
|
20
|
+
|
21
|
+
def delete_from_highrise(force_id=nil)
|
22
|
+
if force_id!=nil
|
23
|
+
highrise_id = force_id
|
24
|
+
else
|
25
|
+
highrise_id = self.highrise_id
|
26
|
+
end
|
27
|
+
self.highrise_context.setup_highrise
|
28
|
+
highrise_person = Highrise::Person.find(highrise_id)
|
29
|
+
highrise_person.destroy
|
30
|
+
end
|
31
|
+
|
32
|
+
def build_highrise_hash
|
33
|
+
new_hash = {}
|
34
|
+
config = MailCannon.config
|
35
|
+
config['person'].each do |k,v|
|
36
|
+
if v!=nil && v!=''
|
37
|
+
case k
|
38
|
+
when 'email_address'
|
39
|
+
new_hash['contact_data']={'email_addresses'=>[{'address'=> self.send(v),'location'=>''}]}
|
40
|
+
else
|
41
|
+
new_hash[k]=self.send(v)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
return new_hash
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.included(receiver)
|
50
|
+
receiver.send :include, InstanceMethods
|
51
|
+
check_expected_behavior(receiver)
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
def self.check_expected_behavior(receiver)
|
56
|
+
unless receiver.method_defined? 'highrise_context'
|
57
|
+
raise 'Your model must respond to "highrise_context", where it returns the Instace of the MailCannon::Context model'
|
58
|
+
end
|
59
|
+
unless receiver.method_defined? 'highrise_id'
|
60
|
+
raise 'Your model must respond to "highrise_id", where it returns the id of its remote representation on Highrise (or nil if not existant)'
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
data/lib/mailcannon.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
Encoding.default_internal = "utf-8"
|
2
|
+
Encoding.default_external = "utf-8"
|
3
|
+
|
4
|
+
#Adds a way to retrieve Submodules of a Module, used for CustomContentParsers
|
5
|
+
class Module
|
6
|
+
def submodules
|
7
|
+
constants.collect {|const_name| const_get(const_name)}.select {|const| const.class == Module}
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
module MailCannon
|
12
|
+
|
13
|
+
#load 'mailcannon/class.rb'
|
14
|
+
|
15
|
+
def self.config(root_dir=nil)
|
16
|
+
@config ||= load_config(root_dir)
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.load_config(root_dir=nil)
|
20
|
+
root_dir ||= Pathname.new(Dir.pwd)
|
21
|
+
|
22
|
+
path = "#{root_dir}/config/mailcannon.yml"
|
23
|
+
|
24
|
+
raise "Couldn't find config yml at #{path}." unless File.file?(path)
|
25
|
+
content = File.read(path)
|
26
|
+
erb = ERB.new(content).result
|
27
|
+
YAML.load(erb).with_indifferent_access
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
data/mailcannon.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "mailcannon/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "mailcannon"
|
7
|
+
s.version = MailCannon::Version::STRING
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.required_ruby_version = ">= 1.9.3"
|
10
|
+
s.authors = ["Lucas Martins"]
|
11
|
+
s.email = ["lucasmartins@railsnapraia.com"]
|
12
|
+
s.homepage = "http://rubygems.org/gems/mailcannon"
|
13
|
+
s.summary = "Parking Gem name"
|
14
|
+
s.description = s.summary
|
15
|
+
s.license = "MIT"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.add_dependency 'redis'
|
23
|
+
s.add_dependency 'mongoid'
|
24
|
+
s.add_dependency 'sidekiq'
|
25
|
+
s.add_dependency 'sendgrid_webapi'
|
26
|
+
s.add_dependency 'librato-metrics'
|
27
|
+
s.add_dependency 'rubysl'
|
28
|
+
#s.add_dependency 'jruby-openssl'
|
29
|
+
|
30
|
+
s.add_development_dependency "rspec"
|
31
|
+
s.add_development_dependency "rspec-mocks"
|
32
|
+
s.add_development_dependency "rake"
|
33
|
+
s.add_development_dependency "pry"
|
34
|
+
s.add_development_dependency "pry-nav"
|
35
|
+
end
|
36
|
+
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mailcannon
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Lucas Martins
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2013-12-15 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: redis
|
16
|
+
prerelease: false
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- &id002
|
20
|
+
- ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
23
|
+
type: :runtime
|
24
|
+
version_requirements: *id001
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mongoid
|
27
|
+
prerelease: false
|
28
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- *id002
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id003
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: sidekiq
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- *id002
|
39
|
+
type: :runtime
|
40
|
+
version_requirements: *id004
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sendgrid_webapi
|
43
|
+
prerelease: false
|
44
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- *id002
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id005
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: librato-metrics
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- *id002
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: *id006
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rubysl
|
59
|
+
prerelease: false
|
60
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- *id002
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: *id007
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: rspec
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- *id002
|
71
|
+
type: :development
|
72
|
+
version_requirements: *id008
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: rspec-mocks
|
75
|
+
prerelease: false
|
76
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- *id002
|
79
|
+
type: :development
|
80
|
+
version_requirements: *id009
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rake
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- *id002
|
87
|
+
type: :development
|
88
|
+
version_requirements: *id010
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: pry
|
91
|
+
prerelease: false
|
92
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- *id002
|
95
|
+
type: :development
|
96
|
+
version_requirements: *id011
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry-nav
|
99
|
+
prerelease: false
|
100
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- *id002
|
103
|
+
type: :development
|
104
|
+
version_requirements: *id012
|
105
|
+
description: Parking Gem name
|
106
|
+
email:
|
107
|
+
- lucasmartins@railsnapraia.com
|
108
|
+
executables: []
|
109
|
+
|
110
|
+
extensions: []
|
111
|
+
|
112
|
+
extra_rdoc_files: []
|
113
|
+
|
114
|
+
files:
|
115
|
+
- Gemfile
|
116
|
+
- Gemfile.lock
|
117
|
+
- Rakefile
|
118
|
+
- lib/generators/highrise_mapper/USAGE
|
119
|
+
- lib/generators/highrise_mapper/config_generator.rb
|
120
|
+
- lib/mailcannon.rb
|
121
|
+
- lib/mailcannon/context.rb
|
122
|
+
- lib/mailcannon/person.rb
|
123
|
+
- lib/mailcannon/version.rb
|
124
|
+
- mailcannon.gemspec
|
125
|
+
homepage: http://rubygems.org/gems/mailcannon
|
126
|
+
licenses:
|
127
|
+
- MIT
|
128
|
+
metadata: {}
|
129
|
+
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options: []
|
132
|
+
|
133
|
+
require_paths:
|
134
|
+
- lib
|
135
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 1.9.3
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- *id002
|
143
|
+
requirements: []
|
144
|
+
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 2.1.10
|
147
|
+
signing_key:
|
148
|
+
specification_version: 4
|
149
|
+
summary: Parking Gem name
|
150
|
+
test_files: []
|
151
|
+
|