flash_flow 1.6.1 → 1.6.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: 684ce44dd9f331aff22691a315db0b43f13978f2
4
- data.tar.gz: 5c6d740d61bf5f91f5f9393ce39c3e4bbafc285c
3
+ metadata.gz: 20fe9b2c9a6e87cc95f3863eef066cf3b2d9e194
4
+ data.tar.gz: b7f8f0877729bd2647d57382c6c8f29b5f6eaaa3
5
5
  SHA512:
6
- metadata.gz: bcecfc69cfb664bada29d6bb38e0843e78d4e6c4aaaa7d01bd210607866eaefb1dedbe349606a5e293da3db9f23406c5127e37087f741402c03d3b7edae1fa9f
7
- data.tar.gz: 69d94e23707c3cfe788ac7a2f2147f8685d0e5ec69aa65b53f31f23c414c535ef0db1d387f912c28b9740675a435368fd9089d0879f3ba0f087a9a22c2a2512f
6
+ metadata.gz: f9a074d152af4e9636bcb5da5013d9fecd09b9d419248c4265198c60eab74feb551ba70a959ac2dafe686d0d68fee888ac58ee4748e8cd3702075c391f78fc4f
7
+ data.tar.gz: 7f361566b040768d30489a18a23c51920bf1e98d4cd3147a9d3dca9575d9684c4377fd3b30eff58cc60d1ff428ff180b52221eeb46f138010d80ec43411b7141
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ *.gem
1
2
  coverage
2
3
  /.bundle
3
4
  .env
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flash_flow (1.6.1)
4
+ flash_flow (1.6.2)
5
5
  google-api-client
6
6
  mail
7
7
  octokit (~> 4.1)
@@ -182,6 +182,7 @@ module FlashFlow
182
182
  end
183
183
 
184
184
  def copy_temp_to_branch(branch, squash_message = nil)
185
+ reset_local_merge_branch
185
186
  run("checkout #{temp_merge_branch}")
186
187
  run("merge --strategy=ours --no-edit #{branch}")
187
188
  run("checkout #{branch}")
@@ -190,6 +191,15 @@ module FlashFlow
190
191
  squash_commits(branch, squash_message) if squash_message
191
192
  end
192
193
 
194
+ def reset_local_merge_branch
195
+ in_branch(master_branch) do
196
+ run("branch -D #{merge_branch}")
197
+ run("checkout -b #{merge_branch}")
198
+ run("reset --hard #{remote}/#{merge_branch}")
199
+ run("clean -x -f -d")
200
+ end
201
+ end
202
+
193
203
  def delete_temp_merge_branch
194
204
  in_branch(master_branch) do
195
205
  run("branch -d #{temp_merge_branch}")
@@ -1,4 +1,4 @@
1
1
  module FlashFlow
2
- VERSION = '1.6.1'
2
+ VERSION = '1.6.2'
3
3
  GIT_VERSION = '2.0.0'
4
4
  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.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Bennett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-11 00:00:00.000000000 Z
11
+ date: 2018-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit