mutx 0.1.13 → 0.1.14

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: 19b540109e9aeed8fd8f085c618c93f4106ad1c9
4
- data.tar.gz: 544f37a03832c718a6dc094ee8354c8e5fd03852
3
+ metadata.gz: 7cf281ad778f002c42e7fc7efa00cef89473b54d
4
+ data.tar.gz: afde3d7f6fdfa1aaf363f4f0b917f3406128f26b
5
5
  SHA512:
6
- metadata.gz: 8f569d4c69ba302de6abc7d16255106a7ab7e49ecc2de16751ebda12cd490f1d5322127feddaa29192fd2bd64a5a8817f04be2cb9d65f0296a636a54f1f9779c
7
- data.tar.gz: 5fa70d4a0c8d1e96d04bf756f82d551fb4f201446bb0727a2a429c693664b8174cb9702591a31a7297366c70f9f5574a3c1287cfd790c7d9d0afca9dfdcaf11f
6
+ metadata.gz: 98940d404b266b2cf1bd86f3f85d16023c9b905147ccd17a3285c3920a6d742b772cd92e607580b40262dc0945db53715000dcf78ce7de493907b88be6ddad41
7
+ data.tar.gz: 1c0a8980b7efb2f7d70cfe79c07fc67601413cdabe4c817d0f017dc7b72c7a090fc07a4ba0d908e7aa4b09183dc47832273431f96eb451327c3efa05cacb2740
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
-
3
- gem 'mutx'
2
+ gemspec
3
+ #gem 'mutx'
@@ -77,6 +77,10 @@ module Mutx
77
77
  empty_directory "mutx/cron"
78
78
  end
79
79
 
80
+ def creates_mutx_templates_dir
81
+ empty_directory "mutx/templates"
82
+ end
83
+
80
84
 
81
85
  def copy_server_file
82
86
  unless File.exist? "#{Dir.pwd}/mutx/config.ru"
@@ -117,6 +121,10 @@ module Mutx
117
121
  def copy_mutx_cron
118
122
  template "cron.rb.tt", "#{Dir.pwd}/mutx/cron/cron.rb" unless File.exist? "#{Dir.pwd}/mutx/cron/cron.rb"
119
123
  end
124
+
125
+ def copy_mutx_templates
126
+ template "mutx_template.html.erb.tt", "#{Dir.pwd}/mutx/templates/mutx_template.html.erb" unless File.exist? "#{Dir.pwd}/mutx/templates/mutx_template.html.erb"
127
+ end
120
128
 
121
129
  def copy_mutx_cronned_task
122
130
  template "cronned_task.rb.tt", "#{Dir.pwd}/mutx/cron/cronned_task.rb" unless File.exist? "#{Dir.pwd}/mutx/cron/cronned_task.rb"
@@ -0,0 +1,58 @@
1
+ <html style='background-color: lightgrey'>
2
+ <tbody>
3
+ <img src="https://ci5.googleusercontent.com/proxy/A-quKChfId5qpYvXm_zcW-GEnolJEGQ4PeGkq50pBYmi5QHH-uoN22ysfGajMcE2lKvhMLJTemZwYYnh3MbzlR1IHzu6sZHu5VNS0pjR455lwdKxhgI8Og=s0-d-e1-ft#http://app2.dopplerfiles.net/Users/3778/Campaigns/8930766/logo.png" alt="Garbarino - Pensamos en vos" border="0" width="100%" style="display:block;margin:0 auto;border:0;max-width:300px;min-height:auto;outline:0" class="CToWUd"></a></td></tr>
4
+ <tr>
5
+ <td align="left" style="font-size:10px;border-bottom:1px solid #e5e5e5">&nbsp;</td>
6
+ </tr>
7
+ </tbody>
8
+ <tr>
9
+ <td height="1" align="center" bgcolor="#ffffff" style="font-size:1px"><img src="https://ci4.googleusercontent.com/proxy/mX95orir-khAa9968ZvaEUFjay-YQnjjfRzI5YJXNG30xvJECdmEqqDPUE4KChEE5CsA-0xr-URW-1rIGpQFhhTosSDZj4LQ_ktxrrYjsrJXrntn8L8oOIU=s0-d-e1-ft#http://app2.dopplerfiles.net/Users/3778/Campaigns/8930766/520x1.png" width="100%" height="1" alt="" style="display:block" border="0" class="CToWUd"></td>
10
+ </tr>
11
+ <div class='container'>
12
+ <br>
13
+ <div class='well'>
14
+ <h3 style='color:Black; font-size: 12px;'>Result for:<b style='color:Red; font-size: 13px;'>' <%= task_name %>'</b> execution </h3>
15
+ <h6 style='color:Black; font-size: 12px;'><b>Result ID:</b><b style='color:Red; font-size: 13px;'> '<%= id %>'</b></h6>
16
+ <h6 style='color:Black; font-size: 12px;'><b>Status:</b><b style='color:Red; font-size: 13px;'> '<%= status %></b></b>'</h6>
17
+ <h6 style='color:Black; font-size: 12px;'><b>Duration:</b><b style='color:Red; font-size: 13px;'> '<%= time %>'</b> seconds</h6>
18
+ <h6>&nbsp;</h6>
19
+ </div>
20
+ <h3>
21
+ <medium>
22
+ <pre style="height:400px; white-space:pre; word-wrap:normal;">
23
+ <b style='color:Black; font-size: 15px;'><%= output %></b>
24
+ </pre>
25
+ </medium>
26
+ </h3>
27
+ <!-- Beggin Legacy -->
28
+ <tr>
29
+ <td class="legacy-container-width" height="100" valign="top" align="left" bgcolor="#FFFFFF">
30
+ <table width="580" cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="#FFFFFF" class="legacy-container legacy-container-width">
31
+ <tr>
32
+ <td width="0%" height="100" valign="top" align="left" bgcolor="#FFFFFF"></td>
33
+ <td width="100%" height="100" valign="top" align="left" bgcolor="#FFFFFF">
34
+ <!-- Beggin Legacy Content -->
35
+ <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="#FFFFFF">
36
+ <tr><td width="100%" height="10" valign="top"></td></tr>
37
+ <tr>
38
+ <td width="100%" valign="top" bgcolor="#FFFFFF" style="font-family: sans-serif; font-size: 17px; line-height: 16px; color: #d22222; text-align: center;">
39
+ GRACIAS POR UTILIZAR MUTX
40
+ </td>
41
+ </tr>
42
+ <br>
43
+ <tr>
44
+ <td width="100%" valign="top" bgcolor="#FFFFFF" style="font-family: sans-serif; font-size: 15px; line-height: 16px; color: #d22222; text-align: center;">
45
+ Este email es enviado desde una casilla autom&aacute;tica. Por favor, no lo responda.
46
+ </td>
47
+ </tr>
48
+ <tr><td width="100%" height="10" valign="top"></td></tr>
49
+ </table>
50
+ <!-- End Legacy Content -->
51
+ </td>
52
+ <td width="0%" height="100" valign="top" align="left" bgcolor="#FFFFFF"></td>
53
+ </tr>
54
+ </table>
55
+ </td>
56
+ </tr>
57
+ <!-- End Legacy -->
58
+ </html>
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_dependency 'shotgun'
37
37
  spec.add_dependency 'digest'
38
38
  spec.add_dependency 'rufus-scheduler'
39
+ spec.add_dependency 'mail'
39
40
 
40
41
 
41
42
  spec.add_development_dependency "bundler", "~> 1.5"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Rodriguez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -248,6 +248,20 @@ dependencies:
248
248
  - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: mail
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :runtime
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
251
265
  - !ruby/object:Gem::Dependency
252
266
  name: bundler
253
267
  requirement: !ruby/object:Gem::Requirement
@@ -328,6 +342,7 @@ files:
328
342
  - lib/generators/templates/cronned_task.rb.tt
329
343
  - lib/generators/templates/mutx.conf.tt
330
344
  - lib/generators/templates/mutx.log.tt
345
+ - lib/generators/templates/mutx_template.html.erb.tt
331
346
  - lib/generators/templates/sidekiq.log.tt
332
347
  - lib/generators/templates/tasks.mutx.tt
333
348
  - lib/generators/templates/unicorn.rb.tt