flash_flow 1.4.7 → 1.4.8

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: 15f833dbdf036b8b927f9aa237a16eeb7517dddd
4
- data.tar.gz: 23a4cfc9d4c72be08b0d62033135761ad2b1b312
3
+ metadata.gz: ab463512263ea658c6333055b40843e6bf750774
4
+ data.tar.gz: 8934a6e867ecb14a17bc94f055058adac0d546eb
5
5
  SHA512:
6
- metadata.gz: 7c13b101fa30de5b08f047f5f595505b183d0e93a2ec79ffdef3537d751d0aa0503552c18533c07a3b5b15c63ca1f35e7464192eaec2e5fd193b439d9e51b82e
7
- data.tar.gz: 9eff4cf8331cb77cc4c29db326f08e793c8ce2db05d3e2f5aa3b09502cff9bbde14e16ddb963986bf5f4bfb6889c7ea8489cc74d86d74968ef8eee57cecad947
6
+ metadata.gz: bb3bd57682a03a359a4b984625e3f3ac24a13e938101aeb4a6ca5d0bf89cb2032cf682fdcf65803724d7462ac7ed0d3f044578020de28181eeda09d0df380ad6
7
+ data.tar.gz: dcb89112e10b385d05aa959474e4e71c1049633a3da291ffb15462a6c5a1abcf3cebf1ea1734bfc81065ed14012a82613f8c5a5dcf8202958ee332f4e573e354
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flash_flow (1.4.7)
4
+ flash_flow (1.4.8)
5
5
  hipchat (~> 1.5)
6
6
  mail
7
7
  octokit (~> 4.1)
@@ -60,12 +60,12 @@ module FlashFlow
60
60
  end
61
61
 
62
62
  def branch_contains?(branch, ref)
63
- run("branch -a --contains #{ref}", log: CmdRunner::LOG_CMD)
63
+ run("branch --contains #{ref}", log: CmdRunner::LOG_CMD)
64
64
  last_stdout.split("\n").detect { |str| str[2..-1] == branch }
65
65
  end
66
66
 
67
- def master_branch_contains?(sha)
68
- branch_contains?("remotes/#{remote}/#{master_branch}", sha)
67
+ def master_branch_contains?(ref)
68
+ branch_contains?(master_branch, ref)
69
69
  end
70
70
 
71
71
  def in_original_merge_branch
@@ -77,7 +77,7 @@ module FlashFlow
77
77
 
78
78
  def release_ahead_of_master
79
79
  @git.branch_exists?("#{@git.remote}/#{@git.release_branch}") &&
80
- !@git.master_branch_contains?(@git.get_sha("#{@git.remote}/#{@git.release_branch}"))
80
+ !@git.branch_contains?(@git.master_branch, @git.get_sha("#{@git.remote}/#{@git.release_branch}"))
81
81
  end
82
82
 
83
83
  def write_data(commit_msg)
@@ -20,7 +20,7 @@ module FlashFlow
20
20
  end
21
21
 
22
22
  def gen_pdf_diffs(output_file, threshold=0.0)
23
- @release.gen_pdf_diffs(output_file, threshold) if @release.respond_to?(:gen_pdf_diffs)
23
+ @release.gen_pdf_diffs(output_file, nil, threshold) if @release.respond_to?(:gen_pdf_diffs)
24
24
  end
25
25
 
26
26
  end
@@ -15,6 +15,7 @@ module FlashFlow
15
15
  set_dimensions(*pdf.bounds.top_right)
16
16
  generate_title_page(pdf)
17
17
  info.each do |comparison|
18
+ puts comparison.dig('head-screenshot', :url)
18
19
  add_comparison_to_pdf(pdf, comparison)
19
20
  end
20
21
  pdf.number_pages('<page> of <total>', { start_count_at: 1, align: :right, size: 12 })
@@ -13,6 +13,8 @@ module FlashFlow
13
13
  end
14
14
 
15
15
  def find_latest_by_sha(sha)
16
+
17
+ require 'byebug'; debugger
16
18
  response = get_builds
17
19
  commit = find_commit_by_sha(response, sha)
18
20
  find_build_by_commit_id(response, commit['id'])
@@ -86,7 +88,7 @@ module FlashFlow
86
88
  end
87
89
 
88
90
  def get_latest_sha
89
- @git.get_sha(@git.release_branch)
91
+ @git.get_sha("#{@git.remote}/#{@git.release_branch}")
90
92
  end
91
93
 
92
94
  def mailer
@@ -1,3 +1,3 @@
1
1
  module FlashFlow
2
- VERSION = '1.4.7'
2
+ VERSION = '1.4.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flash_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flashfunders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-17 00:00:00.000000000 Z
11
+ date: 2016-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit