mobi_check_in 1.0.2 → 1.0.3

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.
data/lib/mobi_check_in.rb CHANGED
@@ -105,8 +105,12 @@ module MobiCheckIn
105
105
  end
106
106
 
107
107
  def self.amend
108
- command = "git commit --amend -C HEAD"
109
- system(command)
108
+ if `git log --branches --not --remotes --oneline` == ""
109
+ puts "You have no unpushed commits to amend to"
110
+ else
111
+ command = "git commit --amend -C HEAD"
112
+ system(command)
113
+ end
110
114
  end
111
115
 
112
116
  end
@@ -1,3 +1,3 @@
1
1
  module MobiCheckIn
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobi_check_in
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
12
+ date: 2013-01-30 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A check in gem
15
15
  email:
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 1.8.24
59
+ rubygems_version: 1.7.2
60
60
  signing_key:
61
61
  specification_version: 3
62
62
  summary: A way to check in