git-utils 0.6.1 → 0.6.2

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: 1b2d7e38400e1e99371928e84c1e312cfbdfd9b4
4
- data.tar.gz: 8af2bb3f335d3487668ea9939ff0cc78b7c7e54e
3
+ metadata.gz: afcfa0e6ef3e6fd41d9ab5485ea6ab5b06c24dd0
4
+ data.tar.gz: b909ff1cc51a48dd2c1365a2322ca0a76ca2897c
5
5
  SHA512:
6
- metadata.gz: 4d34cc6e1211b39d7438207addbdb6661b7b256a64f099f777b91ce1d77c790915b7b5bba1bbd21b48e8839f40fadf4bc11161369b335dbba9a487e37479f0ff
7
- data.tar.gz: 8b3d3483070a544b8b9a5f7a1e8e7a6cf2c19c059efe305cfeca027c9fbcb25bb7e61328856d0b4c04975a7e0627a59ce9f955a79fb828c05857b9c97641ec54
6
+ metadata.gz: 80a28df650412c734c26e7f396584ed68c6b3699efb5e6852bc6d55cd6c3c1fd3ae88fd2c0536783b720109d4306e0f210070260cd9984ec840140f276db32ae
7
+ data.tar.gz: d2b1dca73f3393db8fbae563798d117856d5cea48ec8cb5d5cdb188d7297a5d1b19df1306bc43f2ac5b276a21c9fd19032810ddb907487ba632803f164ec1054
data/README.md CHANGED
@@ -13,7 +13,7 @@ The `git-utils` used to be pure Bash scripts, but they are now available as a Ru
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
15
  * `git bump`: makes a commit with the message "Bump version number"
16
- * `git cleanup`: deletes every branch already merged into current branch (apart from `master`, `staging`, `development`, and any branches listed in `~/.git-cleanup-preserved`)
16
+ * `git cleanup`: deletes every branch already merged into current branch (apart from `master`, `staging`, `development`, and any branches listed in `~/.git-cleanup-preserved`). Pass the `-r` option to delete remote merged branches.
17
17
  * `git merge-branch [branch]`: merges current branch into given branch (defaults to `master`)
18
18
  * `git open`: opens the remote page for the repo (OS X & Linux)
19
19
  * `git polish`: makes a commit with the message "Polish"
@@ -5,6 +5,9 @@ class Open < Command
5
5
  def parser
6
6
  OptionParser.new do |opts|
7
7
  opts.banner = "Usage: git open"
8
+ opts.on("-p", "--print", "print URL instead of opening") do |opt|
9
+ self.options.print = opt
10
+ end
8
11
  opts.on_tail("-h", "--help", "this usage guide") do
9
12
  puts opts.to_s; exit 0
10
13
  end
@@ -33,7 +36,12 @@ class Open < Command
33
36
 
34
37
  # Returns a command appropriate for executing at the command line.
35
38
  def cmd
36
- "#{open} #{page_url}"
39
+ if options[:print]
40
+ puts page_url
41
+ ""
42
+ else
43
+ "#{open} #{page_url}"
44
+ end
37
45
  end
38
46
 
39
47
  private
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Utils
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-08-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Add some Git utilities
14
14
  email:
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.0.14
97
+ rubygems_version: 2.3.0
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: See the README for full documentation