rebase_pusher 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: ea6b60854fd639a3a3568a751ed96b6e8dbc60990af06c897352a0945d930ec5
4
- data.tar.gz: dabea95fa123961a2303c5843a4772251a7abd0e5f63051459ed781693a0933a
3
+ metadata.gz: c227c7874dd6e4cf6fcab7351ed5090ca1736e6f6ef4d1f1f4e21fe6e655c74e
4
+ data.tar.gz: 8ae3f18aa6ead9e2b533f5433d8b0dd1707631b3b4ab18486625facf78fcfd6b
5
5
  SHA512:
6
- metadata.gz: ca2fbba0884864ea4904621f896a0a85506fa65a292934bc3087aea23fb342c4dc6d56620dd0e1bce1a42f68fb174ea216ca5a6243372536b367d03ea97a1f8f
7
- data.tar.gz: 20bc3a2fe1848e6fb6374585116410bf603e67528517d1413e2bc81c58e3f329c40dbfbc5e1d470d14a282e742d25d51f92127ec984a084a3954fc54a9486724
6
+ metadata.gz: 71049930e742049c27b7f087e6db0009865018942817849740d2286691c63bd7a2052977303fd24c43a30c2cd68a06c87f5aeef467b55dddd2d4310b77a71ea4
7
+ data.tar.gz: 27f8adc215aa56d3de8e9739ca9e868017a6c5f74e8c1b2a6f2458887953ce4b83b52cf2be03de8535dac168d57958141b3fc99a6c0e6707f2db6f80824452ed
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class RebasePusher
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
data/lib/rebase_pusher.rb CHANGED
@@ -68,12 +68,12 @@ class RebasePusher
68
68
  # Make sure I never touch other people's branch
69
69
  author_emails = sh("git log --format='%ae' #{merge_base_commitid}..#{branch}").split("\n").uniq
70
70
 
71
- !ignored_branches?(branch) && !author_emails.empty? && author_emails.all? { |email| email == my_email }
71
+ !ignored_branches.include?(branch) && !author_emails.empty? && author_emails.all? { |email| email == my_email }
72
72
  end
73
73
  end
74
74
 
75
- def ignored_branches?(branch)
76
- options[:ignored_branches].include?(branch)
75
+ def ignored_branches
76
+ options[:ignored_branches] || []
77
77
  end
78
78
 
79
79
  def default_branch
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rebase_pusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - lijunwei