mina-twist 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mina/twist/tasks.rb +3 -3
- data/lib/mina/twist/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f1b21b4dd64be2eb76c2645ba771c620e709c7f041114aa977aea29828a4b67
|
4
|
+
data.tar.gz: 83cde60014e0dc64b0ca6bf1e83bd7be5410e7d09411615c4f02c005e977ccd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90c4bd2e80b5a268ea63c5b73e09c23ac9aecd535f185db33d32b237331d34a5416d7fc1e6277737c1f30af92765dfe9669588543f3b7e1acce4248ec919aec6
|
7
|
+
data.tar.gz: 04adc77545c356f817d24cdca5bba168613003f0e6df268cb0aefa9a11f77a550f72fdf53000af9b820d5d52ecddf609d1f17119087373920c02058ade2495e9
|
data/lib/mina/twist/tasks.rb
CHANGED
@@ -9,7 +9,7 @@ namespace :twist do
|
|
9
9
|
set :environment, -> { ENV['to'] }
|
10
10
|
|
11
11
|
task :starting do
|
12
|
-
notification = "#{fetch(:author)
|
12
|
+
notification = "#{fetch(:author)} is deploying branch #{branch_name} to #{fetch(:environment)}"
|
13
13
|
post_twist_thread(notification)
|
14
14
|
set(:start_time, Time.now)
|
15
15
|
end
|
@@ -19,12 +19,12 @@ namespace :twist 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)
|
22
|
+
notification = "#{fetch(:author)} successfully deployed branch #{branch_name} in #{elapsed} seconds."
|
23
23
|
post_twist_thread(notification)
|
24
24
|
end
|
25
25
|
|
26
26
|
def branch_name
|
27
|
-
"#{fetch(:branch)} (#{fetch(:commit)
|
27
|
+
"#{fetch(:branch)} (#{fetch(:commit)})"
|
28
28
|
end
|
29
29
|
|
30
30
|
def post_twist_thread(message)
|
data/lib/mina/twist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-twist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2019-
|
11
|
+
date: 2019-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 1.0.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 1.0.0
|
69
69
|
description: Twist web hook from mina
|
70
70
|
email:
|
71
71
|
- rodrigo.coutinho15@gmail.com
|