rake_commit 0.1.0 → 0.2.0

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.
Files changed (3) hide show
  1. data/Rakefile +5 -0
  2. data/lib/git.rb +1 -0
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -16,4 +16,9 @@ namespace :gem do
16
16
  task :build => :clean do
17
17
  sh "gem build rake_commit.gemspec"
18
18
  end
19
+
20
+ desc "push the gem"
21
+ task :push => :build do
22
+ sh "gem push #{Dir.glob("*.gem").first}"
23
+ end
19
24
  end
data/lib/git.rb CHANGED
@@ -50,6 +50,7 @@ class Git
50
50
  end
51
51
 
52
52
  def temp_commit
53
+ return if Shell.backtick("git status --short").strip.empty?
53
54
  Shell.system "git commit -m 'rake_commit backup commit'"
54
55
  end
55
56
 
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Gross