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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b94af7fb8086f5651d69931fb0cd17964338d2f6
4
- data.tar.gz: ca8e01f733d320a2653ae4a752f3f60d9b0e8993
3
+ metadata.gz: e7c02dd3f037c99b8a123a4ff3def4bcbf60f75b
4
+ data.tar.gz: ae27febcd91d3dbd02a1944530ffbf811e18383f
5
5
  SHA512:
6
- metadata.gz: bf368cdebea91b06fa804ece00362abf34e0f744d9a2ce027ffa611bcb797ddf66ffecd4c7e021b2669a446df8dbd22b982a8adabfaf2f1d7415876e011b6547
7
- data.tar.gz: 403157a5293f9dc270b20b66044ddb19f3abe9777769ec297ae3975feb9bfc50ebc13695c47cc42ac5fa8e519a4286bcbdc4faf1f9f7b01af785e379d76712b5
6
+ metadata.gz: 4ca71b8902ab3bf3d048ae9df748d2d1357a9bdd050f11d74e0ecaaa671430154ecf0b9647319880d7efdef7ee330b88c48d3cfd8059d74d79fe033af3669887
7
+ data.tar.gz: 47752e1dc28a9919d22c46a84e8f04418843b2a3224032c116598b5b5544cdbb223d05a8517f0e724982d91052bfaac00a31283b2e098cddfec59fce1bb2ea09
@@ -2,9 +2,19 @@ require 'octokit'
2
2
 
3
3
  module Amitree
4
4
  class GitClient
5
- def initialize(repository, username, password)
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 login: username, password: password, connection_options: Octokit::Default.options[:connection_options].merge(request: {timeout: 60, open_timeout: 60})
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.18
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-01-11 00:00:00.000000000 Z
12
+ date: 2017-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec