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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/flash_flow/git.rb +3 -3
- data/lib/flash_flow/merge/base.rb +1 -1
- data/lib/flash_flow/release.rb +1 -1
- data/lib/flash_flow/release/pdf_diff_generator.rb +1 -0
- data/lib/flash_flow/release/percy_client.rb +3 -1
- data/lib/flash_flow/version.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: ab463512263ea658c6333055b40843e6bf750774
|
4
|
+
data.tar.gz: 8934a6e867ecb14a17bc94f055058adac0d546eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3bd57682a03a359a4b984625e3f3ac24a13e938101aeb4a6ca5d0bf89cb2032cf682fdcf65803724d7462ac7ed0d3f044578020de28181eeda09d0df380ad6
|
7
|
+
data.tar.gz: dcb89112e10b385d05aa959474e4e71c1049633a3da291ffb15462a6c5a1abcf3cebf1ea1734bfc81065ed14012a82613f8c5a5dcf8202958ee332f4e573e354
|
data/Gemfile.lock
CHANGED
data/lib/flash_flow/git.rb
CHANGED
@@ -60,12 +60,12 @@ module FlashFlow
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def branch_contains?(branch, ref)
|
63
|
-
run("branch
|
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?(
|
68
|
-
branch_contains?(
|
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.
|
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)
|
data/lib/flash_flow/release.rb
CHANGED
@@ -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
|
data/lib/flash_flow/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|