heroku_deployer 0.7.18 → 0.7.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amitree/git_client.rb +12 -2
- data/lib/amitree/heroku_deployer.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7c02dd3f037c99b8a123a4ff3def4bcbf60f75b
|
4
|
+
data.tar.gz: ae27febcd91d3dbd02a1944530ffbf811e18383f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca71b8902ab3bf3d048ae9df748d2d1357a9bdd050f11d74e0ecaaa671430154ecf0b9647319880d7efdef7ee330b88c48d3cfd8059d74d79fe033af3669887
|
7
|
+
data.tar.gz: 47752e1dc28a9919d22c46a84e8f04418843b2a3224032c116598b5b5544cdbb223d05a8517f0e724982d91052bfaac00a31283b2e098cddfec59fce1bb2ea09
|
data/lib/amitree/git_client.rb
CHANGED
@@ -2,9 +2,19 @@ require 'octokit'
|
|
2
2
|
|
3
3
|
module Amitree
|
4
4
|
class GitClient
|
5
|
-
def
|
5
|
+
def self.verbose_middleware
|
6
|
+
Octokit::Default::MIDDLEWARE.dup.tap do |middleware|
|
7
|
+
middleware.response :logger, nil, bodies: true
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize(repository, username, password, options={})
|
6
12
|
@repository = repository
|
7
|
-
@client = Octokit::Client.new
|
13
|
+
@client = Octokit::Client.new \
|
14
|
+
login: username,
|
15
|
+
password: password,
|
16
|
+
middleware: (self.class.verbose_middleware if options[:verbose]),
|
17
|
+
connection_options: Octokit::Default.options[:connection_options].merge(request: {timeout: 60, open_timeout: 60})
|
8
18
|
end
|
9
19
|
|
10
20
|
def commits_between(rev1, rev2)
|
@@ -35,7 +35,7 @@ module Amitree
|
|
35
35
|
|
36
36
|
def initialize(options={})
|
37
37
|
@heroku = options[:heroku] || Amitree::HerokuClient.new(options[:heroku_api_key], options[:heroku_staging_app], options[:heroku_production_app])
|
38
|
-
@git = options[:git] || Amitree::GitClient.new(options[:github_repo], options[:github_username], options[:github_password])
|
38
|
+
@git = options[:git] || Amitree::GitClient.new(options[:github_repo], options[:github_username], options[:github_password], verbose: options[:verbose])
|
39
39
|
PivotalTracker::Client.token = options[:tracker_token]
|
40
40
|
PivotalTracker::Client.use_ssl = true
|
41
41
|
@tracker_projects = PivotalTracker::Project.all
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Wargnier
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|