git-pulls 0.3.11 → 0.4.11
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 +15 -0
- data/lib/git-pulls.rb +11 -3
- metadata +5 -13
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjMwOTk4MWI4MTFlNzc5NzIwMDgxM2QxMzM1MGJjYzYwYmNhMjFhMA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZmFmNWE4YmMwZDZlMDZjNzFlZjUzNzRhOTMyZjQ1YTcwZDQ2MDc3Yg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWI0NmNmYzJhMzI3ZTAxNzI3ZjBlN2U2ZDRmNzYxNjgzZGE5MGZjNjRlNTIy
|
10
|
+
MTgyMzYxNTNiOTAwOTFlNTBjZTI3ZWE0Mjg2YWM5YzIxMjQzZTZjYzBmNTZk
|
11
|
+
MmM1ODA4N2MxOTQxNDhhY2MzMWMxMTY4ZDJkYjZiNTRkZWY3OWU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjQxNmM4YjM2MmEwN2Y5OGYxNTNlZGFlMDgwZWU0MDg1NTZhOTRlOTQzZWRm
|
14
|
+
MWNkODI2NTA1ZWE5ODk1NzExOWY1ZDcwODQ2MTk3ZWExM2Y2OWI0ZTZjZGI4
|
15
|
+
MTRhMzJjNTBkN2E5NTdmNWM3NWE5ZTc3ZGIxMDUyZGY3ZmExMDM=
|
data/lib/git-pulls.rb
CHANGED
@@ -346,11 +346,19 @@ Usage: git pulls update
|
|
346
346
|
if m
|
347
347
|
return m[1], m[2].sub(/\.git\Z/, "")
|
348
348
|
end
|
349
|
+
|
349
350
|
# that works with default github but not enterprise
|
350
|
-
|
351
|
-
|
351
|
+
return enterprise_user_and_proj(u)
|
352
|
+
end
|
353
|
+
|
354
|
+
def enterprise_user_and_proj(u)
|
355
|
+
# if git, u is probably something like: git@github.hq.corp.lan:SomeGroup/some_repo.git
|
356
|
+
m = /.*?:(.*)\/(.*)/.match(u) if u =~ /^git/
|
357
|
+
|
358
|
+
# if http(s), u is probably something like: https://github.hq.corp.lan/SomeGroup/some_repo.git
|
359
|
+
m = /https?:\/\/.*?\/(.*)\/(.*)/.match(u) if u =~ /^http/
|
352
360
|
if m
|
353
|
-
return m[1], m[2]
|
361
|
+
return m[1], m[2].sub(/\.git\Z/, "")
|
354
362
|
end
|
355
363
|
return nil, nil
|
356
364
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-pulls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.11
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Adrien Giboire
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-05-26 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: json
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ! '>='
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ! '>='
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: launchy
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ! '>='
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ! '>='
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: octokit
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ! '>='
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ! '>='
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -72,26 +65,25 @@ files:
|
|
72
65
|
- bin/git-pulls
|
73
66
|
homepage: http://github.com/schacon/git-pulls
|
74
67
|
licenses: []
|
68
|
+
metadata: {}
|
75
69
|
post_install_message:
|
76
70
|
rdoc_options: []
|
77
71
|
require_paths:
|
78
72
|
- lib
|
79
73
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
74
|
requirements:
|
82
75
|
- - ! '>='
|
83
76
|
- !ruby/object:Gem::Version
|
84
77
|
version: '0'
|
85
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
79
|
requirements:
|
88
80
|
- - ! '>='
|
89
81
|
- !ruby/object:Gem::Version
|
90
82
|
version: '0'
|
91
83
|
requirements: []
|
92
84
|
rubyforge_project:
|
93
|
-
rubygems_version:
|
85
|
+
rubygems_version: 2.0.3
|
94
86
|
signing_key:
|
95
|
-
specification_version:
|
87
|
+
specification_version: 4
|
96
88
|
summary: facilitates github pull requests
|
97
89
|
test_files: []
|