ding 1.3.0 → 1.3.1

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: 180b7234cd043dfd76225d56d47570ec10706bac
4
- data.tar.gz: 172c523dcd96ae30955fc186ddc4aae228e45b1f
3
+ metadata.gz: a765c6f6aa0319830485e038f81055d4b8c262a8
4
+ data.tar.gz: feaaf3539968c2ee82eedab7d9bf96ac130d2497
5
5
  SHA512:
6
- metadata.gz: 91f84d350bd8750d8c61584edbbe890bd24888e9e4f4eceaa02b74e184c07a25be23d32ec9bc6cdbe1021e364e206ea92238b53a63db21c11ea3e5de0cda7b6c
7
- data.tar.gz: fb79be5665c7d84a51ca379a17aac8ba51c3f5b73ca056e47096df9f9452d8970bef249320fac721258b84bd226038fe0cf97da8c9069cbeda728510b86c5baf
6
+ metadata.gz: cda177749bb992a33977f4756846f5e727a754ae75365c1f42205e4e3f77c3e99224634ee88a2cc091055dfddcd902f05a361644ed178aab6d0f2bfde15b30ad
7
+ data.tar.gz: ab75155e6461423196530f1e2d7d54ef265325cf24096e78b4bcd7f886358022624f48baa5d42daa1e7eb11a26782d10d804339c9f174b444eab71f92aff0896
@@ -69,6 +69,7 @@ module Ding
69
69
  end
70
70
 
71
71
  def push(branch)
72
+ raise "Can't push to protected branch #{branch}" if Ding::SACROSANCT_BRANCHES.include?(branch)
72
73
  checkout branch
73
74
  push_cmd = "git push #{remote_name} #{branch}"
74
75
  push_cmd << " --force" if options[:force]
@@ -1,3 +1,3 @@
1
1
  module Ding
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ding
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
  - Warren Bain