WTBuildHelpers 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51e1cc5730730ac7564c96bb32309baadcc7a5ca
4
- data.tar.gz: ecb3ffe37474965c38a8de1fe724f76c076dae40
3
+ metadata.gz: 8ec35c6b582f9c0be3c38c5119f245cf7a07f739
4
+ data.tar.gz: f2fbd77dac604af4dd1eb44f3363381f318b8b99
5
5
  SHA512:
6
- metadata.gz: 23e0fef0dfb2d2e4ca208bea7ae178c8cf81e6d8d4d862e459a6be4d268ae062827d93e715809254a935597736a4f2e06f5ad7e6803bde7928b0b7a1a8dbdc75
7
- data.tar.gz: 4d7efd94a058780c7dc39c18f0f68c991d7cc8d9d3bae704eea9876fa3527596ee45ce839cd741e0c3c5977dede69bbc88d9076e000f6653d5e6fba3b155e290
6
+ metadata.gz: 60d57e67f3cf76bc886cd11df27163636edff0b871496a2ec2707a54bc93634adf98ca1f47fb9ff50aea221b33d9e7f78b1ae42a721714442d800a8658ca72f3
7
+ data.tar.gz: aa3c032c5983e43a130d49e005e791fba76d28c09c499b05be3f798ae58bf8e133fb0cd165e1e64717674d8716386df70bc43fb523b8545242dcc1cf2b67a7a5
@@ -1,3 +1,3 @@
1
1
  module WTBuildHelpers
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/lib/jira.rb CHANGED
@@ -123,6 +123,7 @@ module WTBuildHelpers::JIRA
123
123
  end
124
124
 
125
125
  def self.get_git_history(commit_range)
126
+ puts "Getting git history for #{commit_range}"
126
127
  happyface = "\u263A".encode('utf-8')
127
128
  git_log = `git --no-pager log --format="%B#{happyface}" #{commit_range} `
128
129
 
data/lib/teamcity.rb CHANGED
@@ -70,6 +70,7 @@ module WTBuildHelpers::TeamCity
70
70
  end
71
71
 
72
72
  def self.get_last_successful_rev(options, branch)
73
+ STDERR.puts "Getting last successful revision from branch #{branch}"
73
74
  auth = "#{options.username}:#{options.password}"
74
75
  auth_token = Base64.strict_encode64(auth)
75
76
 
@@ -88,6 +89,8 @@ module WTBuildHelpers::TeamCity
88
89
  if json_response["build"] && json_response["build"].count > 0
89
90
  last_build = json_response["build"].first
90
91
  last_build_id = last_build["id"]
92
+ STDERR.puts "Got #{json_response["build"].count} successful builds, last successful was #{last_build_id}"
93
+
91
94
 
92
95
  build_full_url = "#{options.url}/app/rest/builds/id:#{last_build["id"]}"
93
96
  build_response = RestClient.get(build_full_url, headers=headers)
@@ -104,6 +107,7 @@ module WTBuildHelpers::TeamCity
104
107
  branch.strip!
105
108
 
106
109
  start_revision = ENV["BUILD_VCS_NUMBER"]
110
+ STDERR.puts "Start revision is #{start_revision}"
107
111
 
108
112
  begin
109
113
  end_revision = get_last_successful_rev(options, branch)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: WTBuildHelpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - WillowTreeApps
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-16 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: OptionParser