mina-teams 0.1.0 → 0.2.0

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
  SHA256:
3
- metadata.gz: 52d5ab87e43e54d122d668e025000887e8174a31ed7d2a033998773b85eb1515
4
- data.tar.gz: cfb291f269ca0b4e73b7cc46f050051e74cb799e6d2930e0f52232c3941d4d1f
3
+ metadata.gz: e665a96f25ba042587527fd9dc805788952958859332174444d7ac264bc0d492
4
+ data.tar.gz: a6f9323e39d1137900e77e0173f144f5146bdc6a5b960884d1c474400a50f185
5
5
  SHA512:
6
- metadata.gz: e7afdbefd803102d58856ccb55a14ae568cff5063942cf771056d3004a7c681ce085ea227148beccce4e09a8c2f3dcdc5bb0b3b1dfae87e2690b162e8b4844d8
7
- data.tar.gz: 0a33644c76db31104c8b72f002943018855d438eeca833ffe4c3e4ac4c7e728cd174df98861a748ba2eac24977284533e3fc00691ace701d288ff3629c258742
6
+ metadata.gz: d54a0d64abb7848b040e09a26c9004832b82cccd26654e48038be4da4bf94a4c68ab5fc714e3ba036fb084248b75f0133497f96e5025df4009c57ac0be133bce
7
+ data.tar.gz: 9e03fed7686db681a3f3c97652a356b344eaf434cdc61b2826528ba32aa297fdd3b3015925366546539151f52dd9360bed2ff87ec7079331e00dd9a1c92ac76d
@@ -9,7 +9,7 @@ namespace :teams do
9
9
  set :environment, -> { ENV['to'] }
10
10
 
11
11
  task :starting do
12
- notification = "#{fetch(:author).call} is deploying branch #{branch_name} to #{fetch(:environment).call}"
12
+ notification = "#{fetch(:author).call} is deploying branch #{branch_name} to #{fetch(:environment).call} 🚀"
13
13
  post_teams_channel(notification)
14
14
  set(:start_time, Time.now)
15
15
  end
@@ -19,12 +19,12 @@ namespace :teams do
19
19
  start_time = fetch(:start_time)
20
20
  elapsed = end_time.to_i - start_time.to_i
21
21
 
22
- notification = "#{fetch(:author).call} successfully deployed branch #{branch_name} in #{elapsed} seconds."
22
+ notification = "🏁 #{fetch(:author).call} successfully deployed branch #{branch_name} in #{elapsed} seconds."
23
23
  post_teams_channel(notification)
24
24
  end
25
25
 
26
26
  task :starting_restart do
27
- notification = "#{fetch(:author).call} is restarting #{fetch(:environment).call} servers"
27
+ notification = "#{fetch(:author).call} is restarting #{fetch(:environment).call} servers ▶️"
28
28
  post_teams_channel(notification)
29
29
  set(:start_time, Time.now)
30
30
  end
@@ -34,7 +34,7 @@ namespace :teams do
34
34
  start_time = fetch(:start_time)
35
35
  elapsed = end_time.to_i - start_time.to_i
36
36
 
37
- notification = "#{fetch(:author).call} successfully restarted #{fetch(:environment).call} servers in #{elapsed} seconds."
37
+ notification = "#{fetch(:author).call} successfully restarted #{fetch(:environment).call} servers in #{elapsed} seconds."
38
38
  post_teams_channel(notification)
39
39
  end
40
40
 
@@ -48,7 +48,7 @@ namespace :teams do
48
48
  http.use_ssl = true
49
49
 
50
50
  payload = {
51
- text: message
51
+ text: "<pre>#{message}<\/pre>"
52
52
  }
53
53
  headers = {'Content-Type': 'application/json'}
54
54
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Mina
3
3
  module Teams
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-teams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Coutinho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-26 00:00:00.000000000 Z
11
+ date: 2021-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler