git-utils 0.5.10 → 0.6.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/git-utils/open.rb +25 -2
- data/lib/git-utils/version.rb +1 -1
- metadata +3 -5
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 008fb7e956b7a0a47ee492bbf7b135d23f2d75a7
|
4
|
+
data.tar.gz: d1ea56f88a6cf7b8fefec992dae65e0eda0cab01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbacadcfa1363c7fcf2a32f3cde2a1e09fe3b48425ee14a20ea22cb9fb44872f72ab08e5b6375f14adb8cbf8290991c5860b45b51e8387626ecbb03d3f1d32a9
|
7
|
+
data.tar.gz: 701946312d4dcf18667a899f5fa931224a7c8bdc3bc1a32ab0098bd654c1de84d8aa43bd3072149c6ff9d978edcc3a394dc231f7e470437a290512478acd7354
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ The `git-utils` used to be pure Bash scripts, but they are now available as a Ru
|
|
15
15
|
* `git bump`: makes a commit with the message "Bump version number"
|
16
16
|
* `git cleanup`: deletes every branch already merged into current branch (apart from `master`, `staging`, `development`, and any branches listed in `~/.git-cleanup-preserved`)
|
17
17
|
* `git merge-branch [branch]`: merges current branch into given branch (defaults to `master`)
|
18
|
-
* `git open`: opens the remote page for the repo (OS X
|
18
|
+
* `git open`: opens the remote page for the repo (OS X & Linux)
|
19
19
|
* `git polish`: makes a commit with the message "Polish"
|
20
20
|
* `git pull-request`: pushes the branch and opens the remote page for issuing a new a pull request (OS X only)
|
21
21
|
* `git push-branch`: pushes the current branch up to origin
|
data/lib/git-utils/open.rb
CHANGED
@@ -31,8 +31,31 @@ class Open < Command
|
|
31
31
|
origin_url.sub(pattern, replacement)
|
32
32
|
end
|
33
33
|
|
34
|
-
# Returns a command appropriate for executing at the command line
|
34
|
+
# Returns a command appropriate for executing at the command line.
|
35
35
|
def cmd
|
36
|
-
"open #{page_url}"
|
36
|
+
"#{open} #{page_url}"
|
37
37
|
end
|
38
|
+
|
39
|
+
private
|
40
|
+
|
41
|
+
# Returns the system-dependent `open` command.
|
42
|
+
def open
|
43
|
+
if os_x?
|
44
|
+
'open'
|
45
|
+
elsif linux?
|
46
|
+
'xdg-open'
|
47
|
+
else
|
48
|
+
raise "Platform #{RUBY_PLATFORM} not supported"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# Returns true if platform is OS X.
|
53
|
+
def os_x?
|
54
|
+
RUBY_PLATFORM.match(/darwin/)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Returns true if platform is Linux.
|
58
|
+
def linux?
|
59
|
+
RUBY_PLATFORM.match(/linux/)
|
60
|
+
end
|
38
61
|
end
|
data/lib/git-utils/version.rb
CHANGED
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.
|
4
|
+
version: 0.6.0
|
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-
|
11
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Add some Git utilities
|
14
14
|
email:
|
@@ -33,8 +33,6 @@ files:
|
|
33
33
|
- .gitignore
|
34
34
|
- .project_id
|
35
35
|
- .rspec
|
36
|
-
- .ruby-gemset
|
37
|
-
- .ruby-version
|
38
36
|
- Gemfile
|
39
37
|
- Gemfile.lock
|
40
38
|
- LICENSE.txt
|
@@ -96,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
94
|
version: '0'
|
97
95
|
requirements: []
|
98
96
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.0.
|
97
|
+
rubygems_version: 2.0.14
|
100
98
|
signing_key:
|
101
99
|
specification_version: 4
|
102
100
|
summary: See the README for full documentation
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pivotal-github
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.0.0
|