flash_flow 1.3.0 → 1.3.1

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: 26e9411883c55d49e496359a23debe7ce7cad73c
4
- data.tar.gz: c08cd64b3c192f4073802a5b1254e5f821ee2d79
3
+ metadata.gz: 2a90282f76b1ac98c205366c66d51e2466b8f725
4
+ data.tar.gz: f882884dda4d2baa6a9dd8b89262d3420bf7cef9
5
5
  SHA512:
6
- metadata.gz: 1dfe5cb15b0e924fac257397528ef2b4b6dcc00ae213abf1b909445f4059e2407056778d6f30e199dfc10711fc62ec72e766f937f869f3c0750dd46958e5c657
7
- data.tar.gz: 45e2f8c31f6900c51f84e9c9d74bf1662c43ef74fc4f91c64f1f267c6f9ba41c2eb5e6cdb687aab711bd701f316118622e6568cafae13ea14cb88d93246a87b5
6
+ metadata.gz: 34b9d57af05dcec0cffdd1983df11660803e0d7abd0391942fc1e5ca8ee848e6ac0082319015e80fd0d31bc116e38cb1ef15e1457ae715ff5b0e0db8c8e4468e
7
+ data.tar.gz: f8ac58bdd94bbd0e0bac5566b086ae44cbdeeb53a2fe4cf7d224e86f88d6fbb3e55bcf8aa689978e8b5172b7d3504b715ac3d83b1e40ce2329664f2184e1832c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flash_flow (1.3.0)
4
+ flash_flow (1.3.1)
5
5
  hipchat (~> 1.5)
6
6
  octokit (~> 4.1)
7
7
  pivotal-tracker (~> 0.5)
@@ -7,7 +7,8 @@ module FlashFlow
7
7
  end
8
8
 
9
9
  def get_order
10
- branches = @branches.sort_by(&:merge_order)
10
+ new_branches, old_branches = @branches.partition { |branch| branch.merge_order.nil? }
11
+ branches = old_branches.sort_by(&:merge_order) + new_branches
11
12
 
12
13
  unchanged, changed = branches.partition { |branch| current_sha(branch) == branch.sha }
13
14
  my_branch_index = changed.find_index { |branch| branch.ref == @git.working_branch }
@@ -1,3 +1,3 @@
1
1
  module FlashFlow
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -63,7 +63,7 @@ module FlashFlow
63
63
 
64
64
  def mergeable_order(*order)
65
65
  order.map.with_index do |nth, merge_order|
66
- sample_branches[nth].merge_order = merge_order
66
+ sample_branches[nth].merge_order = (merge_order == 2 ? nil : merge_order)
67
67
  sample_branches[nth]
68
68
  end
69
69
  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.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flashfunders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-23 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit