mail_engine 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardoc/checksums +4 -4
- data/.yardoc/objects/ActionMailer/Base/collect_responses_and_parts_order_i.dat +0 -0
- data/.yardoc/objects/ActionMailer/Base/mail_i.dat +0 -0
- data/.yardoc/objects/ActionMailer/Base/origin_mail_i.dat +0 -0
- data/.yardoc/objects/ActionMailer/Base/set_layout_and_partials_i.dat +0 -0
- data/.yardoc/objects/ActionMailer/Base.dat +0 -0
- data/.yardoc/objects/ActionMailer/Collector/custom_i.dat +0 -0
- data/.yardoc/objects/ActionMailer/Collector.dat +0 -0
- data/.yardoc/objects/ActionMailer.dat +0 -0
- data/.yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/acts_as_mail_receiver_i.dat +0 -0
- data/.yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat +0 -0
- data/.yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods.dat +0 -0
- data/.yardoc/objects/MailEngine/ActsAsMailReceiver.dat +0 -0
- data/.yardoc/objects/MailEngine/Base/_40_40configurations.dat +0 -0
- data/.yardoc/objects/MailEngine/Base/current_config_c.dat +0 -0
- data/.yardoc/objects/MailEngine/Base/send_marketing_mail_c.dat +0 -0
- data/.yardoc/objects/MailEngine/Base.dat +0 -0
- data/.yardoc/objects/MailEngine/Configuration/load_c.dat +0 -0
- data/.yardoc/objects/MailEngine/Configuration.dat +0 -0
- data/.yardoc/objects/MailEngine/CopyMigrations/copy_migrations_i.dat +0 -0
- data/.yardoc/objects/MailEngine/CopyMigrations.dat +0 -0
- data/.yardoc/objects/MailEngine/CopyResources/copy_resources_i.dat +0 -0
- data/.yardoc/objects/MailEngine/CopyResources.dat +0 -0
- data/.yardoc/objects/MailEngine/CreateConfig/create_config_file_i.dat +0 -0
- data/.yardoc/objects/MailEngine/CreateConfig.dat +0 -0
- data/.yardoc/objects/MailEngine/Engine.dat +0 -0
- data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer/check_21_c.dat +0 -0
- data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer/get_resource_url_c.dat +0 -0
- data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer/process_c.dat +0 -0
- data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer/replace_resource_in_html_c.dat +0 -0
- data/.yardoc/objects/MailEngine/HtmlDocumentAssetsReplacer.dat +0 -0
- data/.yardoc/objects/MailEngine/Install/copy_migrations_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Install/copy_resources_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Install/create_config_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Install.dat +0 -0
- data/.yardoc/objects/MailEngine/MailLogSubscriber/deliver_i.dat +0 -0
- data/.yardoc/objects/MailEngine/MailLogSubscriber.dat +0 -0
- data/.yardoc/objects/MailEngine/PLACEHOLDERS_IN_LAYOUT.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/Base/ClassMethods/sendgrid_header_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/Base/ClassMethods.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/Base/InstanceMethods.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/Base.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting/data_3D_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting/data_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting/initialize_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting/validate_config_21_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/FilterSetting.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/RestApi/blocks_c.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/RestApi/bounces_c.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/RestApi/invalidemails_c.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/RestApi/spamreports_c.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/RestApi/stats_c.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/RestApi.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/RestApiError.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/add_sub_val_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/add_to_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/category_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/filters_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/initialize_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/set_unique_args_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_hash_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_json_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi/to_s_i.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid/SmtpApi.dat +0 -0
- data/.yardoc/objects/MailEngine/Sendgrid.dat +0 -0
- data/.yardoc/objects/MailEngine/VERSION.dat +0 -0
- data/.yardoc/objects/MailEngine/ZipProcessor/extract_all_files_c.dat +0 -0
- data/.yardoc/objects/MailEngine/ZipProcessor.dat +0 -0
- data/.yardoc/objects/MailEngine.dat +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile +5 -13
- data/Gemfile.lock +5 -7
- data/README.mkd +4 -0
- data/VERSION +1 -1
- data/config/routes.rb +37 -36
- data/doc/ActionMailer/Base.html +1 -1
- data/doc/ActionMailer/Collector.html +1 -1
- data/doc/ActionMailer.html +1 -1
- data/doc/MailEngine/ActsAsMailReceiver/ClassMethods.html +1 -1
- data/doc/MailEngine/ActsAsMailReceiver.html +1 -1
- data/doc/MailEngine/Base.html +2 -2
- data/doc/MailEngine/Configuration.html +4 -4
- data/doc/MailEngine/CopyMigrations.html +1 -1
- data/doc/MailEngine/CopyResources.html +1 -1
- data/doc/MailEngine/CreateConfig.html +1 -1
- data/doc/MailEngine/Engine.html +1 -1
- data/doc/MailEngine/HtmlDocumentAssetsReplacer.html +1 -1
- data/doc/MailEngine/Install.html +16 -16
- data/doc/MailEngine/MailLogSubscriber.html +1 -1
- data/doc/MailEngine/Sendgrid/Base/ClassMethods.html +1 -1
- data/doc/MailEngine/Sendgrid/Base/InstanceMethods.html +1 -1
- data/doc/MailEngine/Sendgrid/Base.html +1 -1
- data/doc/MailEngine/Sendgrid/FilterSetting.html +1 -1
- data/doc/MailEngine/Sendgrid/RestApi.html +1 -1
- data/doc/MailEngine/Sendgrid/RestApiError.html +1 -1
- data/doc/MailEngine/Sendgrid/SmtpApi.html +1 -1
- data/doc/MailEngine/Sendgrid.html +1 -1
- data/doc/MailEngine/ZipProcessor.html +1 -1
- data/doc/MailEngine.html +1 -1
- data/doc/_index.html +9 -9
- data/doc/file.README.html +5 -1
- data/doc/index.html +5 -1
- data/doc/method_list.html +8 -8
- data/doc/top-level-namespace.html +1 -1
- data/lib/mail_engine/base.rb +1 -1
- data/lib/mail_engine/configuration.rb +3 -3
- data/lib/mail_engine/engine.rb +13 -4
- data/lib/mail_engine/generators/install.rb +5 -4
- data/mail_engine.gemspec +16 -16
- data/test/dummy/config/database.yml +44 -44
- metadata +16 -16
@@ -141,7 +141,7 @@
|
|
141
141
|
</div>
|
142
142
|
|
143
143
|
<div id="footer">
|
144
|
-
Generated on Fri Mar 4
|
144
|
+
Generated on Fri Mar 4 17:56:26 2011 by
|
145
145
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
146
146
|
0.6.4 (ruby-1.8.7).
|
147
147
|
</div>
|
@@ -248,7 +248,7 @@ Returns the value of attribute data
|
|
248
248
|
</div>
|
249
249
|
|
250
250
|
<div id="footer">
|
251
|
-
Generated on Fri Mar 4
|
251
|
+
Generated on Fri Mar 4 17:56:26 2011 by
|
252
252
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
253
253
|
0.6.4 (ruby-1.8.7).
|
254
254
|
</div>
|
@@ -467,7 +467,7 @@
|
|
467
467
|
</div>
|
468
468
|
|
469
469
|
<div id="footer">
|
470
|
-
Generated on Fri Mar 4
|
470
|
+
Generated on Fri Mar 4 17:56:25 2011 by
|
471
471
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
472
472
|
0.6.4 (ruby-1.8.7).
|
473
473
|
</div>
|
@@ -595,7 +595,7 @@ A new instance of SmtpApi
|
|
595
595
|
</div>
|
596
596
|
|
597
597
|
<div id="footer">
|
598
|
-
Generated on Fri Mar 4
|
598
|
+
Generated on Fri Mar 4 17:56:25 2011 by
|
599
599
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
600
600
|
0.6.4 (ruby-1.8.7).
|
601
601
|
</div>
|
@@ -258,7 +258,7 @@ zip file. the second item is the unzip path.
|
|
258
258
|
</div>
|
259
259
|
|
260
260
|
<div id="footer">
|
261
|
-
Generated on Fri Mar 4
|
261
|
+
Generated on Fri Mar 4 17:56:25 2011 by
|
262
262
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
263
263
|
0.6.4 (ruby-1.8.7).
|
264
264
|
</div>
|
data/doc/MailEngine.html
CHANGED
@@ -137,7 +137,7 @@ used for looking up which layout needs which placeholders.
|
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div id="footer">
|
140
|
-
Generated on Fri Mar 4
|
140
|
+
Generated on Fri Mar 4 17:56:25 2011 by
|
141
141
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
142
142
|
0.6.4 (ruby-1.8.7).
|
143
143
|
</div>
|
data/doc/_index.html
CHANGED
@@ -99,16 +99,16 @@
|
|
99
99
|
</li>
|
100
100
|
|
101
101
|
<li>
|
102
|
-
<span class='object_link'><a href="
|
102
|
+
<span class='object_link'><a href="ActionMailer/Base.html" title="ActionMailer::Base (class)">Base</a></span>
|
103
103
|
|
104
|
-
<small>(
|
104
|
+
<small>(ActionMailer)</small>
|
105
105
|
|
106
106
|
</li>
|
107
107
|
|
108
108
|
<li>
|
109
|
-
<span class='object_link'><a href="
|
109
|
+
<span class='object_link'><a href="MailEngine/Base.html" title="MailEngine::Base (class)">Base</a></span>
|
110
110
|
|
111
|
-
<small>(
|
111
|
+
<small>(MailEngine)</small>
|
112
112
|
|
113
113
|
</li>
|
114
114
|
|
@@ -121,16 +121,16 @@
|
|
121
121
|
<ul>
|
122
122
|
|
123
123
|
<li>
|
124
|
-
<span class='object_link'><a href="MailEngine/
|
124
|
+
<span class='object_link'><a href="MailEngine/Sendgrid/Base/ClassMethods.html" title="MailEngine::Sendgrid::Base::ClassMethods (module)">ClassMethods</a></span>
|
125
125
|
|
126
|
-
<small>(MailEngine::
|
126
|
+
<small>(MailEngine::Sendgrid::Base)</small>
|
127
127
|
|
128
128
|
</li>
|
129
129
|
|
130
130
|
<li>
|
131
|
-
<span class='object_link'><a href="MailEngine/
|
131
|
+
<span class='object_link'><a href="MailEngine/ActsAsMailReceiver/ClassMethods.html" title="MailEngine::ActsAsMailReceiver::ClassMethods (module)">ClassMethods</a></span>
|
132
132
|
|
133
|
-
<small>(MailEngine::
|
133
|
+
<small>(MailEngine::ActsAsMailReceiver)</small>
|
134
134
|
|
135
135
|
</li>
|
136
136
|
|
@@ -327,7 +327,7 @@
|
|
327
327
|
</div></div>
|
328
328
|
|
329
329
|
<div id="footer">
|
330
|
-
Generated on Fri Mar 4
|
330
|
+
Generated on Fri Mar 4 17:56:24 2011 by
|
331
331
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
332
332
|
0.6.4 (ruby-1.8.7).
|
333
333
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -139,6 +139,10 @@ condition for the scheduler, like if no specified data in collection, don't send
|
|
139
139
|
<p>You also can send mail in your program by using:
|
140
140
|
MailEngine::MailDispatcher.marketing mail template name(:to => "Michael he <a href="mailto:hlxwell@gmail.com">hlxwell@gmail.com</a>", :values => => "Michael He").deliver</p>
|
141
141
|
|
142
|
+
<h1>Notes</h1>
|
143
|
+
|
144
|
+
<p>Currently only support above rails3.</p>
|
145
|
+
|
142
146
|
<h1>Screenshots</h1>
|
143
147
|
|
144
148
|
<h2>Dashboard</h2>
|
@@ -222,7 +226,7 @@ MailEngine::MailDispatcher.marketing mail template name(:to => "Michael he <a hr
|
|
222
226
|
<p><img src="https://github.com/hlxwell/mail-engine/raw/master/screenshots/bounce_report.png" title="Bounce Report" alt="Bounce Report" /></p></div></div>
|
223
227
|
|
224
228
|
<div id="footer">
|
225
|
-
Generated on Fri Mar 4
|
229
|
+
Generated on Fri Mar 4 17:56:24 2011 by
|
226
230
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
231
|
0.6.4 (ruby-1.8.7).
|
228
232
|
</div>
|
data/doc/index.html
CHANGED
@@ -139,6 +139,10 @@ condition for the scheduler, like if no specified data in collection, don't send
|
|
139
139
|
<p>You also can send mail in your program by using:
|
140
140
|
MailEngine::MailDispatcher.marketing mail template name(:to => "Michael he <a href="mailto:hlxwell@gmail.com">hlxwell@gmail.com</a>", :values => => "Michael He").deliver</p>
|
141
141
|
|
142
|
+
<h1>Notes</h1>
|
143
|
+
|
144
|
+
<p>Currently only support above rails3.</p>
|
145
|
+
|
142
146
|
<h1>Screenshots</h1>
|
143
147
|
|
144
148
|
<h2>Dashboard</h2>
|
@@ -222,7 +226,7 @@ MailEngine::MailDispatcher.marketing mail template name(:to => "Michael he <a hr
|
|
222
226
|
<p><img src="https://github.com/hlxwell/mail-engine/raw/master/screenshots/bounce_report.png" title="Bounce Report" alt="Bounce Report" /></p></div></div>
|
223
227
|
|
224
228
|
<div id="footer">
|
225
|
-
Generated on Fri Mar 4
|
229
|
+
Generated on Fri Mar 4 17:56:24 2011 by
|
226
230
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
231
|
0.6.4 (ruby-1.8.7).
|
228
232
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -85,33 +85,33 @@
|
|
85
85
|
|
86
86
|
|
87
87
|
<li class="r2 ">
|
88
|
-
<span class='object_link'><a href="MailEngine/
|
88
|
+
<span class='object_link'><a href="MailEngine/Install.html#copy_migrations-instance_method" title="MailEngine::Install#copy_migrations (method)">#copy_migrations</a></span>
|
89
89
|
|
90
|
-
<small>MailEngine::
|
90
|
+
<small>MailEngine::Install</small>
|
91
91
|
|
92
92
|
</li>
|
93
93
|
|
94
94
|
|
95
95
|
<li class="r1 ">
|
96
|
-
<span class='object_link'><a href="MailEngine/
|
96
|
+
<span class='object_link'><a href="MailEngine/CopyMigrations.html#copy_migrations-instance_method" title="MailEngine::CopyMigrations#copy_migrations (method)">#copy_migrations</a></span>
|
97
97
|
|
98
|
-
<small>MailEngine::
|
98
|
+
<small>MailEngine::CopyMigrations</small>
|
99
99
|
|
100
100
|
</li>
|
101
101
|
|
102
102
|
|
103
103
|
<li class="r2 ">
|
104
|
-
<span class='object_link'><a href="MailEngine/
|
104
|
+
<span class='object_link'><a href="MailEngine/Install.html#copy_resources-instance_method" title="MailEngine::Install#copy_resources (method)">#copy_resources</a></span>
|
105
105
|
|
106
|
-
<small>MailEngine::
|
106
|
+
<small>MailEngine::Install</small>
|
107
107
|
|
108
108
|
</li>
|
109
109
|
|
110
110
|
|
111
111
|
<li class="r1 ">
|
112
|
-
<span class='object_link'><a href="MailEngine/
|
112
|
+
<span class='object_link'><a href="MailEngine/CopyResources.html#copy_resources-instance_method" title="MailEngine::CopyResources#copy_resources (method)">#copy_resources</a></span>
|
113
113
|
|
114
|
-
<small>MailEngine::
|
114
|
+
<small>MailEngine::CopyResources</small>
|
115
115
|
|
116
116
|
</li>
|
117
117
|
|
data/lib/mail_engine/base.rb
CHANGED
@@ -4,10 +4,10 @@ module MailEngine
|
|
4
4
|
class Configuration
|
5
5
|
class << self
|
6
6
|
def load
|
7
|
-
require 'erb'
|
8
|
-
|
7
|
+
require 'erb' # make config file support erb tags. like <% %>
|
9
8
|
config_path = File.join(Rails.root, "config", "mail_engine_config.yml")
|
10
|
-
MailEngine::Base.configurations =
|
9
|
+
MailEngine::Base.configurations = {}
|
10
|
+
MailEngine::Base.configurations = YAML::load(ERB.new(IO.read(config_path)).result) if File.exist?(config_path)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/mail_engine/engine.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
module MailEngine
|
2
2
|
class Engine < Rails::Engine
|
3
3
|
require 'mail_engine'
|
4
|
-
|
4
|
+
require 'carrierwave'
|
5
|
+
require 'kaminari'
|
6
|
+
|
5
7
|
initializer "mail_engine" do
|
6
8
|
ActionMailer::Base.send(:include, MailEngine::Sendgrid::Base)
|
7
9
|
require 'mail_engine/action_mailer_patch'
|
@@ -17,7 +19,7 @@ module MailEngine
|
|
17
19
|
ActionMailer::Base.layout "layouts/mail_engine/mail_template_layouts/none"
|
18
20
|
ActionMailer::Base.send(:prepend_view_path, MailEngine::MailTemplate::Resolver.instance)
|
19
21
|
end
|
20
|
-
|
22
|
+
|
21
23
|
initializer "mail_engine.add_acts_as_mail_receiver" do
|
22
24
|
ActiveRecord::Base.send(:include, MailEngine::ActsAsMailReceiver)
|
23
25
|
end
|
@@ -34,9 +36,16 @@ module MailEngine
|
|
34
36
|
end
|
35
37
|
|
36
38
|
config.to_prepare do
|
39
|
+
# load config
|
37
40
|
MailEngine::Configuration.load
|
38
|
-
|
39
|
-
|
41
|
+
|
42
|
+
# don't process config file if not fine it.
|
43
|
+
if MailEngine::Base.current_config.present?
|
44
|
+
raise "Please add :user_class_name config into mail_engine_config.yml." if MailEngine::Base.current_config["user_class_name"].blank?
|
45
|
+
MailEngine::USER_MODEL = MailEngine::Base.current_config["user_class_name"].constantize unless defined?(MailEngine::USER_MODEL)
|
46
|
+
else
|
47
|
+
puts "\e[1;31;40m[Mail Engine Warning]\e[0m Not found mail_engine_config.yml, so mail_engine won't be able to work."
|
48
|
+
end
|
40
49
|
end
|
41
50
|
end
|
42
51
|
end
|
@@ -3,6 +3,11 @@ module MailEngine
|
|
3
3
|
desc "Install Mail Engine."
|
4
4
|
source_root File.join(File.dirname(__FILE__))
|
5
5
|
|
6
|
+
def create_config
|
7
|
+
say "Create Configure file to project...", :yellow
|
8
|
+
MailEngine::CreateConfig.start
|
9
|
+
end
|
10
|
+
|
6
11
|
def copy_resources
|
7
12
|
say "Copying Resource Files to project...", :yellow
|
8
13
|
MailEngine::CopyResources.start
|
@@ -13,9 +18,5 @@ module MailEngine
|
|
13
18
|
MailEngine::CopyMigrations.start
|
14
19
|
end
|
15
20
|
|
16
|
-
def create_config
|
17
|
-
say "Create Configure file to project...", :yellow
|
18
|
-
MailEngine::CreateConfig.start
|
19
|
-
end
|
20
21
|
end
|
21
22
|
end # MailEngine
|
data/mail_engine.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mail_engine}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["michael he"]
|
@@ -595,15 +595,15 @@ Gem::Specification.new do |s|
|
|
595
595
|
s.specification_version = 3
|
596
596
|
|
597
597
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
598
|
-
s.add_runtime_dependency(%q<
|
598
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
|
599
|
+
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
600
|
+
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
601
|
+
s.add_runtime_dependency(%q<deep_cloneable>, [">= 0"])
|
602
|
+
s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 0"])
|
599
603
|
s.add_runtime_dependency(%q<rack>, [">= 0"])
|
600
|
-
s.add_runtime_dependency(%q<mysql>, [">= 0"])
|
601
604
|
s.add_runtime_dependency(%q<liquid>, [">= 0"])
|
602
|
-
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
603
605
|
s.add_runtime_dependency(%q<kaminari>, [">= 0"])
|
604
606
|
s.add_runtime_dependency(%q<carrierwave>, [">= 0"])
|
605
|
-
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
606
|
-
s.add_runtime_dependency(%q<deep_cloneable>, [">= 0"])
|
607
607
|
s.add_development_dependency(%q<bluecloth>, [">= 0"])
|
608
608
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
609
609
|
s.add_development_dependency(%q<bundler>, [">= 0"])
|
@@ -611,15 +611,15 @@ Gem::Specification.new do |s|
|
|
611
611
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
612
612
|
s.add_development_dependency(%q<reek>, [">= 0"])
|
613
613
|
else
|
614
|
-
s.add_dependency(%q<
|
614
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0"])
|
615
|
+
s.add_dependency(%q<httparty>, [">= 0"])
|
616
|
+
s.add_dependency(%q<nokogiri>, [">= 0"])
|
617
|
+
s.add_dependency(%q<deep_cloneable>, [">= 0"])
|
618
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
615
619
|
s.add_dependency(%q<rack>, [">= 0"])
|
616
|
-
s.add_dependency(%q<mysql>, [">= 0"])
|
617
620
|
s.add_dependency(%q<liquid>, [">= 0"])
|
618
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
619
621
|
s.add_dependency(%q<kaminari>, [">= 0"])
|
620
622
|
s.add_dependency(%q<carrierwave>, [">= 0"])
|
621
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
622
|
-
s.add_dependency(%q<deep_cloneable>, [">= 0"])
|
623
623
|
s.add_dependency(%q<bluecloth>, [">= 0"])
|
624
624
|
s.add_dependency(%q<yard>, [">= 0"])
|
625
625
|
s.add_dependency(%q<bundler>, [">= 0"])
|
@@ -628,15 +628,15 @@ Gem::Specification.new do |s|
|
|
628
628
|
s.add_dependency(%q<reek>, [">= 0"])
|
629
629
|
end
|
630
630
|
else
|
631
|
-
s.add_dependency(%q<
|
631
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0"])
|
632
|
+
s.add_dependency(%q<httparty>, [">= 0"])
|
633
|
+
s.add_dependency(%q<nokogiri>, [">= 0"])
|
634
|
+
s.add_dependency(%q<deep_cloneable>, [">= 0"])
|
635
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
632
636
|
s.add_dependency(%q<rack>, [">= 0"])
|
633
|
-
s.add_dependency(%q<mysql>, [">= 0"])
|
634
637
|
s.add_dependency(%q<liquid>, [">= 0"])
|
635
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
636
638
|
s.add_dependency(%q<kaminari>, [">= 0"])
|
637
639
|
s.add_dependency(%q<carrierwave>, [">= 0"])
|
638
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
639
|
-
s.add_dependency(%q<deep_cloneable>, [">= 0"])
|
640
640
|
s.add_dependency(%q<bluecloth>, [">= 0"])
|
641
641
|
s.add_dependency(%q<yard>, [">= 0"])
|
642
642
|
s.add_dependency(%q<bundler>, [">= 0"])
|
@@ -1,52 +1,52 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# development:
|
4
|
-
# adapter: sqlite3
|
5
|
-
# database: db/development.sqlite3
|
6
|
-
# pool: 5
|
7
|
-
# timeout: 5000
|
8
|
-
#
|
9
|
-
# # Warning: The database defined as "test" will be erased and
|
10
|
-
# # re-generated from your development database when you run "rake".
|
11
|
-
# # Do not set this db to the same as development or production.
|
12
|
-
# test:
|
13
|
-
# adapter: sqlite3
|
14
|
-
# database: db/test.sqlite3
|
15
|
-
# pool: 5
|
16
|
-
# timeout: 5000
|
17
|
-
#
|
18
|
-
# production:
|
19
|
-
# adapter: sqlite3
|
20
|
-
# database: db/production.sqlite3
|
21
|
-
# pool: 5
|
22
|
-
# timeout: 5000
|
23
|
-
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
24
3
|
development:
|
25
|
-
adapter:
|
26
|
-
|
27
|
-
reconnect: false
|
28
|
-
database: mail_engine_development
|
4
|
+
adapter: sqlite3
|
5
|
+
database: db/development.sqlite3
|
29
6
|
pool: 5
|
30
|
-
|
31
|
-
password:
|
32
|
-
socket: /tmp/mysql.sock
|
7
|
+
timeout: 5000
|
33
8
|
|
9
|
+
# Warning: The database defined as "test" will be erased and
|
10
|
+
# re-generated from your development database when you run "rake".
|
11
|
+
# Do not set this db to the same as development or production.
|
34
12
|
test:
|
35
|
-
adapter:
|
36
|
-
|
37
|
-
reconnect: false
|
38
|
-
database: mail_engine_test
|
13
|
+
adapter: sqlite3
|
14
|
+
database: db/test.sqlite3
|
39
15
|
pool: 5
|
40
|
-
|
41
|
-
password:
|
42
|
-
socket: /tmp/mysql.sock
|
16
|
+
timeout: 5000
|
43
17
|
|
44
18
|
production:
|
45
|
-
adapter:
|
46
|
-
|
47
|
-
reconnect: false
|
48
|
-
database: mail_engine_production
|
19
|
+
adapter: sqlite3
|
20
|
+
database: db/production.sqlite3
|
49
21
|
pool: 5
|
50
|
-
|
51
|
-
|
52
|
-
|
22
|
+
timeout: 5000
|
23
|
+
|
24
|
+
# development:
|
25
|
+
# adapter: mysql
|
26
|
+
# encoding: utf8
|
27
|
+
# reconnect: false
|
28
|
+
# database: mail_engine_development
|
29
|
+
# pool: 5
|
30
|
+
# username: root
|
31
|
+
# password:
|
32
|
+
# socket: /tmp/mysql.sock
|
33
|
+
#
|
34
|
+
# test:
|
35
|
+
# adapter: mysql
|
36
|
+
# encoding: utf8
|
37
|
+
# reconnect: false
|
38
|
+
# database: mail_engine_test
|
39
|
+
# pool: 5
|
40
|
+
# username: root
|
41
|
+
# password:
|
42
|
+
# socket: /tmp/mysql.sock
|
43
|
+
#
|
44
|
+
# production:
|
45
|
+
# adapter: mysql
|
46
|
+
# encoding: utf8
|
47
|
+
# reconnect: false
|
48
|
+
# database: mail_engine_production
|
49
|
+
# pool: 5
|
50
|
+
# username: root
|
51
|
+
# password:
|
52
|
+
# socket: /tmp/mysql.sock
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- michael he
|
@@ -22,17 +22,17 @@ dependencies:
|
|
22
22
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
23
|
none: false
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
hash:
|
27
|
+
hash: 7
|
28
28
|
segments:
|
29
29
|
- 3
|
30
30
|
- 0
|
31
|
-
-
|
32
|
-
version: 3.0.
|
31
|
+
- 0
|
32
|
+
version: 3.0.0
|
33
33
|
requirement: *id001
|
34
34
|
prerelease: false
|
35
|
-
name:
|
35
|
+
name: activesupport
|
36
36
|
type: :runtime
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: "0"
|
47
47
|
requirement: *id002
|
48
48
|
prerelease: false
|
49
|
-
name:
|
49
|
+
name: httparty
|
50
50
|
type: :runtime
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
version: "0"
|
61
61
|
requirement: *id003
|
62
62
|
prerelease: false
|
63
|
-
name:
|
63
|
+
name: nokogiri
|
64
64
|
type: :runtime
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
66
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
version: "0"
|
75
75
|
requirement: *id004
|
76
76
|
prerelease: false
|
77
|
-
name:
|
77
|
+
name: deep_cloneable
|
78
78
|
type: :runtime
|
79
79
|
- !ruby/object:Gem::Dependency
|
80
80
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
@@ -88,7 +88,7 @@ dependencies:
|
|
88
88
|
version: "0"
|
89
89
|
requirement: *id005
|
90
90
|
prerelease: false
|
91
|
-
name:
|
91
|
+
name: sqlite3-ruby
|
92
92
|
type: :runtime
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
@@ -102,7 +102,7 @@ dependencies:
|
|
102
102
|
version: "0"
|
103
103
|
requirement: *id006
|
104
104
|
prerelease: false
|
105
|
-
name:
|
105
|
+
name: rack
|
106
106
|
type: :runtime
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
@@ -116,7 +116,7 @@ dependencies:
|
|
116
116
|
version: "0"
|
117
117
|
requirement: *id007
|
118
118
|
prerelease: false
|
119
|
-
name:
|
119
|
+
name: liquid
|
120
120
|
type: :runtime
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
@@ -130,7 +130,7 @@ dependencies:
|
|
130
130
|
version: "0"
|
131
131
|
requirement: *id008
|
132
132
|
prerelease: false
|
133
|
-
name:
|
133
|
+
name: kaminari
|
134
134
|
type: :runtime
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
@@ -144,7 +144,7 @@ dependencies:
|
|
144
144
|
version: "0"
|
145
145
|
requirement: *id009
|
146
146
|
prerelease: false
|
147
|
-
name:
|
147
|
+
name: carrierwave
|
148
148
|
type: :runtime
|
149
149
|
- !ruby/object:Gem::Dependency
|
150
150
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|