git-utils 0.1.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/git-utils/version.rb +1 -1
- metadata +1 -2
- data/test-open-pr.sh +0 -71
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35f992b21a0772da5862218f1b69efbcf1cb5316
|
4
|
+
data.tar.gz: 94765421143cf85f8de490d03d96589b5b35ac48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2abd16e8531b70c4bd2b663bbefb0d83972025abaa480f99398201ece31e7094add6a0da34d959eb01e59ac3b0a10114df0e62f8754adab550960d39cb329a97
|
7
|
+
data.tar.gz: 08cdb6605f88f9d481a0f2ef11f06b0ec942a2c0b97d439d99dd1d2aa17ef884b7a029e028da9582e669d13cc40401f59e62b77491d02ef57a3e8ca6a0a92f47
|
data/Gemfile.lock
CHANGED
data/lib/git-utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -74,7 +74,6 @@ files:
|
|
74
74
|
- spec/commands/switch_spec.rb
|
75
75
|
- spec/commands/sync_spec.rb
|
76
76
|
- spec/spec_helper.rb
|
77
|
-
- test-open-pr.sh
|
78
77
|
homepage: https://github.com/mhartl/git-utils
|
79
78
|
licenses:
|
80
79
|
- MIT
|
data/test-open-pr.sh
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
git init test-repo >/dev/null
|
4
|
-
cd test-repo
|
5
|
-
git checkout -b test-br 2>/dev/null
|
6
|
-
touch foo
|
7
|
-
git add foo
|
8
|
-
git commit -m "foo" >/dev/null
|
9
|
-
cat > open <<EOF
|
10
|
-
#!/usr/bin/env ruby
|
11
|
-
|
12
|
-
echo \$*
|
13
|
-
EOF
|
14
|
-
chmod +x open
|
15
|
-
cat > git-push-branch <<EOF
|
16
|
-
#!/usr/bin/env ruby
|
17
|
-
EOF
|
18
|
-
chmod +x git-push-branch
|
19
|
-
export PATH=`pwd`:$PATH
|
20
|
-
git remote add origin foo
|
21
|
-
|
22
|
-
test_open () {
|
23
|
-
REMOTE=$1
|
24
|
-
EXPECTED=$2
|
25
|
-
git remote set-url origin $REMOTE
|
26
|
-
RESULT=`../git-open`
|
27
|
-
if [ "$RESULT" = "$EXPECTED" ]
|
28
|
-
then
|
29
|
-
echo "passed: open $REMOTE"
|
30
|
-
else
|
31
|
-
echo "FAILED: open: Expected $EXPECTED (for origin $REMOTE) but got $RESULT"
|
32
|
-
fi
|
33
|
-
}
|
34
|
-
|
35
|
-
test_open https://mwatson@bitbucket.org/atlassian/amps.git https://bitbucket.org/atlassian/amps
|
36
|
-
test_open git@bitbucket.org:atlassian/amps.git https://bitbucket.org/atlassian/amps
|
37
|
-
test_open git@github.com:mhartl/git-utils.git https://github.com/mhartl/git-utils
|
38
|
-
test_open https://github.com/mhartl/git-utils.git https://github.com/mhartl/git-utils
|
39
|
-
test_open ssh://git@stash.atlassian.com:7999/stash/stash.git https://stash.atlassian.com/projects/stash/repos/stash/browse?at=test-br
|
40
|
-
test_open https://mwatson@stash.atlassian.com:7990/scm/stash/stash.git https://stash.atlassian.com:7990/projects/stash/repos/stash/browse?at=test-br
|
41
|
-
test_open ssh://git@stash.atlassian.com/stash/stash.git https://stash.atlassian.com/projects/stash/repos/stash/browse?at=test-br
|
42
|
-
test_open https://mwatson@stash.atlassian.com/scm/stash/stash.git https://stash.atlassian.com/projects/stash/repos/stash/browse?at=test-br
|
43
|
-
test_open https://mwatson@stash.atlassian.com/stash/scm/stash/stash.git https://stash.atlassian.com/stash/projects/stash/repos/stash/browse?at=test-br
|
44
|
-
test_open https://mwatson@stash.atlassian.com:7990/stash/scm/stash/stash.git https://stash.atlassian.com:7990/stash/projects/stash/repos/stash/browse?at=test-br
|
45
|
-
|
46
|
-
test_pr () {
|
47
|
-
REMOTE=$1
|
48
|
-
EXPECTED=$2
|
49
|
-
git remote set-url origin $REMOTE
|
50
|
-
RESULT=`../git-pull-request`
|
51
|
-
if [ "$RESULT" = "$EXPECTED" ]
|
52
|
-
then
|
53
|
-
echo "passed: pull-request $REMOTE"
|
54
|
-
else
|
55
|
-
echo "FAILED: pull-request: Expected $EXPECTED (for origin $REMOTE) but got $RESULT"
|
56
|
-
fi
|
57
|
-
}
|
58
|
-
|
59
|
-
test_pr https://mwatson@bitbucket.org/atlassian/amps.git https://bitbucket.org/atlassian/amps/pull-request/new
|
60
|
-
test_pr git@bitbucket.org:atlassian/amps.git https://bitbucket.org/atlassian/amps/pull-request/new
|
61
|
-
test_pr git@github.com:mhartl/git-utils.git https://github.com/mhartl/git-utils/pull/new/test-br
|
62
|
-
test_pr https://github.com/mhartl/git-utils.git https://github.com/mhartl/git-utils/pull/new/test-br
|
63
|
-
test_pr ssh://git@stash.atlassian.com:7999/stash/stash.git https://stash.atlassian.com/projects/stash/repos/stash/pull-requests?create\&sourceBranch=test-br
|
64
|
-
test_pr https://mwatson@stash.atlassian.com:7990/scm/stash/stash.git https://stash.atlassian.com:7990/projects/stash/repos/stash/pull-requests?create\&sourceBranch=test-br
|
65
|
-
test_pr ssh://git@stash.atlassian.com/stash/stash.git https://stash.atlassian.com/projects/stash/repos/stash/pull-requests?create\&sourceBranch=test-br
|
66
|
-
test_pr https://mwatson@stash.atlassian.com/scm/stash/stash.git https://stash.atlassian.com/projects/stash/repos/stash/pull-requests?create\&sourceBranch=test-br
|
67
|
-
test_pr https://mwatson@stash.atlassian.com/stash/scm/stash/stash.git https://stash.atlassian.com/stash/projects/stash/repos/stash/pull-requests?create\&sourceBranch=test-br
|
68
|
-
test_pr https://mwatson@stash.atlassian.com:7990/stash/scm/stash/stash.git https://stash.atlassian.com:7990/stash/projects/stash/repos/stash/pull-requests?create\&sourceBranch=test-br
|
69
|
-
|
70
|
-
cd ..
|
71
|
-
rm -rf test-repo
|