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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6399b832e58919ed9038525d65b67f3680ea17e69e859f62eb30ee88ac9ef2fa
4
- data.tar.gz: 6fe37badaf5ff6ab4f40fd05da0d7984e9d4d330d3c82f592f3316dcd31a3272
3
+ metadata.gz: 5f1b21b4dd64be2eb76c2645ba771c620e709c7f041114aa977aea29828a4b67
4
+ data.tar.gz: 83cde60014e0dc64b0ca6bf1e83bd7be5410e7d09411615c4f02c005e977ccd8
5
5
  SHA512:
6
- metadata.gz: 6d609292b022584d2a54f138d24d5339fa1f2a39d07d61f884b3f6166faf6657f9a27921539055ab5d7683fc30333673c845db9b25184c09ad33dc11060ba190
7
- data.tar.gz: 793de5a1141bfeca18e8f3ebdec7addd8e9e833befc99200c992f415157df9cb7934f60424d4e8fca5d5a915a829e6a7716c22224bf4736743d09402d2f80d9f
6
+ metadata.gz: 90c4bd2e80b5a268ea63c5b73e09c23ac9aecd535f185db33d32b237331d34a5416d7fc1e6277737c1f30af92765dfe9669588543f3b7e1acce4248ec919aec6
7
+ data.tar.gz: 04adc77545c356f817d24cdca5bba168613003f0e6df268cb0aefa9a11f77a550f72fdf53000af9b820d5d52ecddf609d1f17119087373920c02058ade2495e9
@@ -9,7 +9,7 @@ namespace :twist 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)} 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).call} successfully deployed branch #{branch_name} in #{elapsed} seconds."
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).call})"
27
+ "#{fetch(:branch)} (#{fetch(:commit)})"
28
28
  end
29
29
 
30
30
  def post_twist_thread(message)
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Mina
3
3
  module Twist
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
6
6
  end
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.2.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-06-24 00:00:00.000000000 Z
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.3.8
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.3.8
68
+ version: 1.0.0
69
69
  description: Twist web hook from mina
70
70
  email:
71
71
  - rodrigo.coutinho15@gmail.com