bitbucket-pr-post 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 943269ec183d90dba52b893078d88acc08f025d8
4
- data.tar.gz: 6d0fc2d93b6ed42a3670752a810cd7e6d2f3f4a1
3
+ metadata.gz: e246ed7320ac673c0e1d0b66720249cdd2ba47fe
4
+ data.tar.gz: e3045c65de0dc31393243f6bb1fec4c8cdc5d3c9
5
5
  SHA512:
6
- metadata.gz: 6cc3f6c2f43c5bc566d59cf8dcf9a88b3e1898809a06acf2c74fcab0273475d4b05533bc0ba3b8dcb6e66e82cc912eca0a60984cd9755f68ff6913c64260d443
7
- data.tar.gz: ddec92729f5d1145d9823f80708c9fc331876d16c4be0850ac9511191d9e0bece209457a5964aedcd32d39830b1ea5a18e640df22ea9a3d2ccff5510662f6986
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
- TODO: Write usage instructions here
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
 
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # require 'bitbucket/'
3
- # require './lib/bitbucket/pr/post/version'
4
2
 
5
3
  lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
6
4
  $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
Binary file
@@ -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")
@@ -41,12 +41,12 @@ module Bitbucket
41
41
  end
42
42
 
43
43
  if url[:pub]
44
- dummy,domain,@user,@slug = url[:pub].split /[@:\/]/
44
+ dummy,domain,@pub_user,@slug = url[:pub].split /[@:\/]/
45
45
  end
46
46
 
47
47
  if url[:master]
48
- dummy,domain,@user,@slug = url[:master].split /[@:\/]/
49
- @dst_user = @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]
@@ -1,7 +1,7 @@
1
1
  module Bitbucket
2
2
  module Pr
3
3
  class Post
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
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.1
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-20 00:00:00.000000000 Z
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: {}