dev 2.0.132 → 2.0.133

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/commands/commit.rb +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3aaa20df5feb9937713ca0112583b283f2feb98
4
- data.tar.gz: 8915e66d835045f1344e53cffcd6e4d1e4b929c5
3
+ metadata.gz: a71cf0adc16e8314dd1dc8bcb294224c648d7377
4
+ data.tar.gz: 289536798eaed2c6709b0c4d2ef32176af09a12f
5
5
  SHA512:
6
- metadata.gz: c71c4108f74a563406549864b8c82bbf380042ced61a8070ba20065219d732e62f3e94f01bc0b45d48e25a10956e9c0e4e8ef848bae5f149f58d09159547ccba
7
- data.tar.gz: 30ff78e9b8814e00538dfc1dea46f930da4f8c01629feebcee61a4f7837e89a11638a795262feebc44a9f0d06c51270e4a033ae48e992ee18dd7f8fb4bf2ba23
6
+ metadata.gz: df8b0a5dbb2ae301432aa64804ee7b8264d2dbeb1d1938a7b9736b98cd096e156f25a8e478d30906df637b51efcf72353673aabb1e4def749ab19ceeb1f4415c
7
+ data.tar.gz: 6c1376b6ba87b6aa9a1054d379aecf8a73a00e964b701ff758f9f5f78be7d14c1b503bd341dfa8167f4a01eb71cdbca0a298c5b1a2b0728f0ec9ea2fbd2b1d0e
@@ -20,14 +20,20 @@ class Commit < Array
20
20
  if(!File.exists?('commit.message') || message.length==0)
21
21
  if(defined?(REQUIRE_COMMIT_MESSAGE))
22
22
  puts "commit.message required to perform commit"
23
+ Command.reset_commit_message
24
+ raise "commit.message required to perform commit"
23
25
  else
24
26
  add 'svn commit -m"commit all"'
25
27
  end
26
28
  else
27
29
  add 'svn commit --file commit.message'
28
- add "<%File.open('commit.message','w'){|f|f.write('')}%>"
30
+ add "<%Command.reset_commit_message%>"
29
31
  #add "<%FileUtils.rm('commit.message')%>" if File.exists?('commit.message')
30
32
  end
31
33
  end
32
34
  end
35
+
36
+ def self.reset_commit_message
37
+ File.open('commit.message','w'){|f|f.write('')}
38
+ end
33
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.132
4
+ version: 2.0.133
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow