mutx 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8be5dba99d94b6af03b1d5d8c2beb96e3ab997cf
4
- data.tar.gz: 1edc577db14cb4e968ae1f678fc7cb824bb574fe
3
+ metadata.gz: 26914453c8c0f4b526cef077dfe059faf56b729f
4
+ data.tar.gz: 075d01dbb02baf52df6b02eddc1c70631bb609ac
5
5
  SHA512:
6
- metadata.gz: 0a0e248b5d40d2089a33337be0d8857a42fec91172f43534e499973ae7d302b14708a6fe261aa7a917b2d3a8e823d86a329f3b68aabea0ac9a57807139b70d15
7
- data.tar.gz: c82b259b5f14667755e837419102ea1f6077e0c9265e2d52b91b1246ab28421b59b616600b7443213372c1370a00725774a70186ac6615cde11fbdd7d4a706df
6
+ metadata.gz: 137a3d6e3aa87ce40cebddaa5a7302887e4ac105a7cdb6070ad5c893b7db28a5dc62672fe476652b5cdd3d094c20e7f0b8eb76bbc088656f0095050811a9fa54
7
+ data.tar.gz: 7272f504537c168461ebdd3478ad706fe09056e0c657758d25f32ae102eb5a6cbca94c299112fb605cb25abe4da4d01fa3eac425c3a1d43b627aa4baceb3e6d0
data/bin/mutx CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'mutx'
3
+ require 'digest'
3
4
 
4
5
  Mutx::Base.start(ARGV)
@@ -132,6 +132,14 @@ module Mutx
132
132
  FileUtils.cd("#{Dir.pwd}/mutx/templates/")
133
133
  `unzip mutx_template.html.erb.zip`
134
134
  `rm mutx_template.html.erb.zip`
135
+
136
+ FileUtils.cd(dir)
137
+
138
+ template "mutx_body_template.html.erb.zip", "#{Dir.pwd}/mutx/templates/mutx_body_template.html.erb.zip" unless File.exist? "#{Dir.pwd}/mutx/templates/mutx_body_template.html.erb.zip"
139
+ FileUtils.cd("#{Dir.pwd}/mutx/templates/")
140
+ `unzip mutx_body_template.html.erb.zip`
141
+ `rm mutx_body_template.html.erb.zip`
142
+
135
143
  FileUtils.cd(dir)
136
144
  end
137
145
 
@@ -172,17 +180,21 @@ module Mutx
172
180
  content = ""
173
181
  f.each_line{|line| content += line}
174
182
  f.write "\n" unless content[-1] == "\n"
175
- ["gem 'mutx'"].each do |file_name|
176
- f.write "#{file_name}\n" unless content.include? "#{file_name}"
177
- end
183
+ line_to_write = "gem 'mutx'"
184
+ f.write "#{line_to_write}\n" unless content.include? line_to_write
185
+ f.close
178
186
  end
179
187
 
180
188
  end
181
189
 
182
190
  def push_changes
183
191
  unless @local
184
- Mutx::Support::Git.add_commit "Mutx: Commit after install command execution"
185
- Mutx::Support::Git.push_origin_to_actual_branch
192
+ if yes?("\n Your Gemfile has been updated with mutx gem. You should push this change. Do you want mutx do it for you? (yes/no)", color = :red)
193
+ Mutx::Support::Git.add_commit "Mutx: Gemfile updated"
194
+ Mutx::Support::Git.push_origin_to_actual_branch
195
+ else
196
+ puts "Do not forget to use mutx gem on your Gemfile. Otherwise, it will not work properly"
197
+ end
186
198
  end
187
199
  end
188
200
 
@@ -31,10 +31,17 @@
31
31
  "refresh_time" : 10,
32
32
 
33
33
  "notification" : {
34
+ "smtp_address" : null,
35
+ "smtp_port" : null,
36
+ "smtp_domain" : null,
37
+ "smtp_user" : null,
38
+ "smtp_password" : null,
39
+ "smtp_autentication" : null,
34
40
  "use_gmail" : false,
35
41
  "username" : null,
36
42
  "password" : null,
37
43
  "recipients" : "your@email.com",
44
+ "smtp_enable_start_tls_auto" : true,
38
45
  "attach_report" : false
39
46
  },
40
47
 
@@ -0,0 +1,54 @@
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: 14px;'>' <%= task_name %>'</b> execution </h3>
15
+ <h6 style='color:Black; font-size: 12px;'><b>Result ID:</b><b style='color:Red; font-size: 14px;'> '<%= id %>'</b></h6>
16
+ <h6 style='color:Black; font-size: 12px;'><b>Status:</b><b style='color:Red; font-size: 14px;'> '<%= status %>'</b></b></h6>
17
+ <h6 style='color:Black; font-size: 12px;'><b>Duration:</b><b style='color:Red; font-size: 14px;'> '<%= time %>'</b> seconds</h6>
18
+ <h6 style='color:Black; font-size: 12px;'><b>Summary:</b><b style='color:Red; font-size: 14px;'> '<%= info %>'
19
+ <br>
20
+ <br>
21
+ <h3 style='color:Grey; font-size: 13px;'><b>Adjunto se encuentra el output de la ejecucion solicitada</b></h3>
22
+ <h6>&nbsp;</h6>
23
+ </div>
24
+ <tr>
25
+ <td class="legacy-container-width" height="100" valign="top" align="left" bgcolor="#FFFFFF">
26
+ <table width="580" cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="#FFFFFF" class="legacy-container legacy-container-width">
27
+ <tr>
28
+ <td width="0%" height="100" valign="top" align="left" bgcolor="#FFFFFF"></td>
29
+ <td width="100%" height="100" valign="top" align="left" bgcolor="#FFFFFF">
30
+ <!-- Beggin Legacy Content -->
31
+ <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="#FFFFFF">
32
+ <tr><td width="100%" height="10" valign="top"></td></tr>
33
+ <tr>
34
+ <td width="100%" valign="top" bgcolor="#FFFFFF" style="font-family: sans-serif; font-size: 17px; line-height: 16px; color: #d22222; text-align: center;">
35
+ GRACIAS POR UTILIZAR MUTX
36
+ </td>
37
+ </tr>
38
+ <br>
39
+ <tr>
40
+ <td width="100%" valign="top" bgcolor="#FFFFFF" style="font-family: sans-serif; font-size: 15px; line-height: 16px; color: #d22222; text-align: center;">
41
+ Este email es enviado desde una casilla autom&aacute;tica. Por favor, no lo responda.
42
+ </td>
43
+ </tr>
44
+ <tr><td width="100%" height="10" valign="top"></td></tr>
45
+ </table>
46
+ <!-- End Legacy Content -->
47
+ </td>
48
+ <td width="0%" height="100" valign="top" align="left" bgcolor="#FFFFFF"></td>
49
+ </tr>
50
+ </table>
51
+ </td>
52
+ </tr>
53
+ <!-- End Legacy -->
54
+ </html>
data/mutx.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
+ # spec.add_dependency 'digest'
22
23
  spec.add_dependency 'thor'
23
24
  spec.add_dependency 'cuba'
24
25
  spec.add_dependency 'unicorn'
@@ -34,7 +35,6 @@ Gem::Specification.new do |spec|
34
35
  spec.add_dependency 'require_all'
35
36
  spec.add_dependency 'byebug'
36
37
  spec.add_dependency 'shotgun'
37
- spec.add_dependency 'digest'
38
38
  spec.add_dependency 'rufus-scheduler'
39
39
  spec.add_dependency 'mail'
40
40
 
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.17
4
+ version: 0.1.18
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-16 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -220,20 +220,6 @@ dependencies:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
- - !ruby/object:Gem::Dependency
224
- name: digest
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - ">="
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :runtime
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
223
  - !ruby/object:Gem::Dependency
238
224
  name: rufus-scheduler
239
225
  requirement: !ruby/object:Gem::Requirement
@@ -342,6 +328,8 @@ files:
342
328
  - lib/generators/templates/cronned_task.rb.tt
343
329
  - lib/generators/templates/mutx.conf.tt
344
330
  - lib/generators/templates/mutx.log.tt
331
+ - lib/generators/templates/mutx_body_template.html.erb
332
+ - lib/generators/templates/mutx_body_template.html.erb.zip
345
333
  - lib/generators/templates/mutx_template.html.erb
346
334
  - lib/generators/templates/mutx_template.html.erb.zip
347
335
  - lib/generators/templates/sidekiq.log.tt