bitbucket-pr-post 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/bin/bit_bucket_pr_post +0 -2
- data/bitbucket-pr-post-0.0.1.gem +0 -0
- data/bitbucket-pr-post.gemspec +1 -1
- data/lib/bitbucket/pr/post.rb +5 -3
- data/lib/bitbucket/pr/post/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e246ed7320ac673c0e1d0b66720249cdd2ba47fe
|
4
|
+
data.tar.gz: e3045c65de0dc31393243f6bb1fec4c8cdc5d3c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 763609183537f9398bbca609d9a11cfb73bb82af8a9bad530356336fb726bf676fe39480b06f7481dcecaf444142520e09f1f018da02e2703286ab21fe021bd5
|
7
|
+
data.tar.gz: 97048dcbbb09f6b56855b1a505c43fb2207b0b684408f763369032da07d8005380bceff7ab3db120b57b129b800a60fcada6845f203ff00cc711ba91d9121ea0
|
data/README.md
CHANGED
@@ -20,7 +20,16 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
```
|
24
|
+
$ cd /local/git/repo/
|
25
|
+
$ git remote add pub git@bitbucket.org:[YOUR_ACCOUNT]/[YOUR_REPO_NAME].git
|
26
|
+
$ git co -b add-foo
|
27
|
+
$ vi foo.rb
|
28
|
+
$ commit -am "add foo."
|
29
|
+
$ git push pub add-foo
|
30
|
+
# and...
|
31
|
+
$ bitbucket_pr_post
|
32
|
+
```
|
24
33
|
|
25
34
|
## Contributing
|
26
35
|
|
data/bin/bit_bucket_pr_post
CHANGED
Binary file
|
data/bitbucket-pr-post.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["kobayashi@ans-web.co.jp"]
|
11
11
|
spec.summary = %q{Create Pull Request on Bitbucket.}
|
12
12
|
spec.description = %q{}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://bitbucket.org/kobayashi_at_answer/bitbucket-pr-post"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/bitbucket/pr/post.rb
CHANGED
@@ -41,12 +41,12 @@ module Bitbucket
|
|
41
41
|
end
|
42
42
|
|
43
43
|
if url[:pub]
|
44
|
-
dummy,domain,@
|
44
|
+
dummy,domain,@pub_user,@slug = url[:pub].split /[@:\/]/
|
45
45
|
end
|
46
46
|
|
47
47
|
if url[:master]
|
48
|
-
dummy,domain,@
|
49
|
-
@dst_user = @
|
48
|
+
dummy,domain,@master_user,@slug = url[:master].split /[@:\/]/
|
49
|
+
@dst_user = @master_user
|
50
50
|
end
|
51
51
|
|
52
52
|
if @opts[:pass]
|
@@ -56,6 +56,8 @@ module Bitbucket
|
|
56
56
|
puts
|
57
57
|
end
|
58
58
|
|
59
|
+
@user = @pub_user || @master_user
|
60
|
+
|
59
61
|
@user = @opts[:user] || @user
|
60
62
|
@slug = @opts[:slug] || @slug.sub('.git', '')
|
61
63
|
@branch = @opts[:branch] || `git branch | grep '*'`.split(" ")[1]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitbucket-pr-post
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hiroshi kobayashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,10 +52,11 @@ files:
|
|
52
52
|
- README.md
|
53
53
|
- Rakefile
|
54
54
|
- bin/bit_bucket_pr_post
|
55
|
+
- bitbucket-pr-post-0.0.1.gem
|
55
56
|
- bitbucket-pr-post.gemspec
|
56
57
|
- lib/bitbucket/pr/post.rb
|
57
58
|
- lib/bitbucket/pr/post/version.rb
|
58
|
-
homepage:
|
59
|
+
homepage: https://bitbucket.org/kobayashi_at_answer/bitbucket-pr-post
|
59
60
|
licenses:
|
60
61
|
- MIT
|
61
62
|
metadata: {}
|