git-utils 0.5.3 → 0.5.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cfcfbedfb2c8601aa1c055bb90e65565733b827
4
- data.tar.gz: 8cd464425a4c964ed8d8cb5383123dc29b1c68d9
3
+ metadata.gz: 9575438e8eef35c1866aa1b1b7b07827d0f85591
4
+ data.tar.gz: efe2619d04db58e530f6bbaf8f4d1c094bb6d72a
5
5
  SHA512:
6
- metadata.gz: d5e427cbd606a4e82dffd88b12044b06edfa58d4bcb6605794e3eeb7b06f06b33a7f997273c8309f338acbd6de3cea8cd4ffc3df6940ed1c2752fefc66bdccb7
7
- data.tar.gz: 4eec133bbc7e61b048991e173a1a9ccdeb2818cf6971bbfd676d0d34a5985a1535cd8bbeff8058d7ca0a45df2b2b17efe1484acfccba6f5500e5670caf3f87a2
6
+ metadata.gz: cdee614a780bd62201745d293628e12d97116f814b9c6cebe1f16d0d062391bda611fd8da3d0e867aac1bb42ed41a5369eddce3d9ef6739e9d09522d6ea4b6d7
7
+ data.tar.gz: 3cd2e8626690c17c41dfebe1d3d19725bfd0d7b5b9ca571852435a0eb7528282f7b4d850c1827cdff43c4e2ea92066254d8e9c4f6c03c4b2f01c2c2d011627fb
data/README.md CHANGED
@@ -12,6 +12,7 @@ The `git-utils` used to be pure Bash scripts, but they are now available as a Ru
12
12
 
13
13
  * `git amend`: alias for `git commit --amend`
14
14
  * `git anal` (use with caution): makes a commit with the message "Make anal changes"
15
+ * `git bump`: makes a commit with the message "Bump version number"
15
16
  * `git cleanup`: deletes every branch already merged into current branch (apart from `master`, `staging`, and `development`)
16
17
  * `git merge-branch [branch]`: merges current branch into given branch (defaults to `master`)
17
18
  * `git open`: opens the remote page for the repo (OS X only)
data/bin/git-bump ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Bumps version number.
4
+ system 'git commit -am "Bump version number"'
@@ -16,7 +16,7 @@ class DeleteRemoteBranch < Command
16
16
 
17
17
  def delete_safely?
18
18
  command = "git log ..origin/#{target_branch} 2> /dev/null"
19
- system(command) && !`#{command}`.strip.empty?
19
+ system(command) && `#{command}`.strip.empty?
20
20
  end
21
21
 
22
22
  # Returns a command appropriate for executing at the command line
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Utils
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-20 00:00:00.000000000 Z
11
+ date: 2013-06-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Add some Git utilities
14
14
  email:
@@ -16,6 +16,7 @@ email:
16
16
  executables:
17
17
  - git-amend
18
18
  - git-anal
19
+ - git-bump
19
20
  - git-cleanup
20
21
  - git-delete-remote-branch
21
22
  - git-merge-branch
@@ -41,6 +42,7 @@ files:
41
42
  - Rakefile
42
43
  - bin/git-amend
43
44
  - bin/git-anal
45
+ - bin/git-bump
44
46
  - bin/git-cleanup
45
47
  - bin/git-delete-remote-branch
46
48
  - bin/git-merge-branch