teamistrano 1.0.0 → 1.0.1

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: 9f11144d6eb840b836dd0150e7427fd12ac5bbbc0f8ee902fa9fcd1e37656d76
4
- data.tar.gz: d554dd263e85435706e7a1b0ddaf3f267f1562c7505e5fb62d01df1c54c8ed3f
3
+ metadata.gz: b260fec1139a27f5461d577ba91af51a8aa653bf4cdeecb4520562f7e8463885
4
+ data.tar.gz: ef2f1f3d7124c4974b03dd6df15f40df8f67f106989808496256f525ec8418ca
5
5
  SHA512:
6
- metadata.gz: 78b8fc81ad8a675bc562c80b081480c4c02367348d23457725013d6768335f8d01caf120f94272a23e07efde819cd3c8fd45cb05e84bf10084ab897d041a9d18
7
- data.tar.gz: fe8bfdda9d4f466bffdd9adf1a70de44c3482ec2795993dce83f83dec813b5e5630d815ea587994c9257e341286d602041f21f6eb8baa64fbc670fb0c3b576f3
6
+ metadata.gz: c1aa103c9454f50e176dbf8af3e048d8c968a79bffcd6df649bfa35d64b02b8d36cd21174824e8053b3a27f1ac3488e010b11849a232d0c94c42ae219789a400
7
+ data.tar.gz: 2555e32000d65b66d6a4152e3be0293c3815ffd6e884b067405a6d16406a107fe553ddf92ce7ae5772ea517b3098ab68a99d65a904878868e39e23611811d8f4
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Teamistrano
2
2
 
3
- The Teamistrano gem can be used to post deployment notices in Microsoft Teams.
4
-
3
+ The Teamistrano gem can be used to post Capistrano deployment notices in Microsoft Teams.
5
4
 
6
5
  ## Installation
7
6
 
@@ -19,9 +18,27 @@ Or install it yourself as:
19
18
 
20
19
  $ gem install teamistrano
21
20
 
21
+
22
22
  ## Usage
23
23
 
24
- TODO: Write usage instructions here
24
+ In Teams, add an "Incoming Webhook" connector in the channel where you want to see deployment notices. Copy the webhook URL that is created when you add the connector.
25
+
26
+ In your config/deploy.rb file add the webhook URL like this:
27
+
28
+ ```
29
+ set :teamistrano, {
30
+ webhook: 'https://outlook.office.com/webhook/.....'
31
+ }
32
+ ```
33
+
34
+ Add a reference in the Capfile:
35
+
36
+ ```
37
+ require 'teamistrano/notifier'
38
+ ```
39
+
40
+ Stand up, turn around three times and then do your 'cap deploy'.
41
+
25
42
 
26
43
  ## Development
27
44
 
@@ -39,4 +56,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
39
56
 
40
57
  ## Code of Conduct
41
58
 
42
- Everyone interacting in the Teamistrano project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/teamistrano/blob/master/CODE_OF_CONDUCT.md).
59
+ Everyone interacting in the Teamistrano project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ecrane/teamistrano/blob/master/CODE_OF_CONDUCT.md).
data/lib/teamistrano.rb CHANGED
@@ -1,6 +1,4 @@
1
1
  require "teamistrano/version"
2
2
 
3
- load File.expand_path("../teamistrano/tasks/teamistrano.rake", __FILE__)
4
-
5
3
  module Teamistrano
6
4
  end
@@ -3,6 +3,8 @@ require 'net/http'
3
3
  require 'uri'
4
4
  require 'json'
5
5
 
6
+ load File.expand_path( "../tasks/teamistrano.rake", __FILE__ )
7
+
6
8
  module Teamistrano
7
9
  class Notifier
8
10
 
@@ -1,3 +1,3 @@
1
1
  module Teamistrano
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/teamistrano.gemspec CHANGED
@@ -14,14 +14,6 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/ecrane/teamistrano"
15
15
  spec.license = "MIT"
16
16
 
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- # if spec.respond_to?(:metadata)
20
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
- # else
22
- # raise "RubyGems 2.0 or newer is required to protect against " \
23
- # "public gem pushes."
24
- # end
25
17
 
26
18
  # Specify which files should be added to the gem when it is released.
27
19
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -36,6 +28,7 @@ Gem::Specification.new do |spec|
36
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
29
  spec.require_paths = ["lib"]
38
30
 
31
+ spec.add_dependency 'capistrano', '>= 3.8.1'
39
32
  spec.add_development_dependency "bundler", "~> 1.16"
40
33
  spec.add_development_dependency "rake", "~> 10.0"
41
34
  spec.add_development_dependency "minitest", "~> 5.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane
@@ -10,6 +10,20 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.8.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.8.1
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement