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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da6569713d9b3e598ae5555d81b9b238ff5d1ee8
4
- data.tar.gz: 12f2a9d47bb123f98c74f1459df11fcaf0387de2
3
+ metadata.gz: 35f992b21a0772da5862218f1b69efbcf1cb5316
4
+ data.tar.gz: 94765421143cf85f8de490d03d96589b5b35ac48
5
5
  SHA512:
6
- metadata.gz: 1176a54918de64180e27f9a43830478f2ca2a6ec60dbc3ff42bcd6128a92e30dea123e53252c3537b6df7b26582be77871841f9ff39b4afa62a24e77972a68c2
7
- data.tar.gz: 227d57026bb8bfcbb0a9db545db8a81ebe2ea6417f27ddfd14a990d6afa03440f7f2869b274881689ccfc72cf87b3d961e738f6d4d74e4324e24eeeda81041fb
6
+ metadata.gz: 2abd16e8531b70c4bd2b663bbefb0d83972025abaa480f99398201ece31e7094add6a0da34d959eb01e59ac3b0a10114df0e62f8754adab550960d39cb329a97
7
+ data.tar.gz: 08cdb6605f88f9d481a0f2ef11f06b0ec942a2c0b97d439d99dd1d2aa17ef884b7a029e028da9582e669d13cc40401f59e62b77491d02ef57a3e8ca6a0a92f47
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-utils (0.1.1)
4
+ git-utils (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Utils
3
- VERSION = "0.1.2"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
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.1.2
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