bitbucket-pr-post 0.0.8 → 0.1.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: 18e454a637c0094d983c66861730e580d69f6971
4
- data.tar.gz: 1f3beb2ba960257c1af95c7fa419e271102c5ab2
3
+ metadata.gz: d658526a4f72138256650e535c0052ec0cd29fb8
4
+ data.tar.gz: 2a2178cd2240a835acda9e4a8f8b4c59a87422c4
5
5
  SHA512:
6
- metadata.gz: 3ff4f6f1f5cd8809a95254249cbc38c9bee7ab476195dc292ba216ba3449dd80d448a871f7ecd329b1c575be19f43b25bff9368842e1cd90a2d3ec100be167fa
7
- data.tar.gz: 4fce984c605361b8b999f50c7e64c0832a788527faf4a729a590047d0758433688660b2702db03022b773ad2ff6367b5a97291002d2765e98fca14c9559857a8
6
+ metadata.gz: 7ad4a2179ac01fd78ae132e17d451c91afc61b89a52a39d36b6bf6d572aa24a32b6b0d57d86ea9c523b1e2b065d9992dfbaab9de17bb1914086c42e144c77830
7
+ data.tar.gz: b86d929bfc0b01eedcaadf9100fdbb8a46c7163b01bdc7b59304297d37581e5d08f7c38e0ef4e8c375ba3afdaf41874ccba5e648a28203e63b09b83659da2992
data/.gitignore CHANGED
@@ -4,7 +4,6 @@
4
4
  /_yardoc/
5
5
  /coverage/
6
6
  /doc/
7
- /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
10
9
  *.bundle
@@ -8,6 +8,7 @@ module Bitbucket
8
8
  module Pr
9
9
  class Post
10
10
  DOMAIN = 'bitbucket.org'
11
+ PASSWORD_FILE = '~/.bitbucket_pr_post_password'
11
12
  def request(argv)
12
13
  set_opts argv
13
14
  confirm
@@ -54,8 +55,13 @@ module Bitbucket
54
55
  if @opts[:pass]
55
56
  @pass = @opts[:pass]
56
57
  else
57
- @pass = [(print "Password for #{DOMAIN}: "), STDIN.noecho(&:gets).rstrip][1]
58
- puts
58
+ fullpath = File.expand_path(PASSWORD_FILE)
59
+ if File.exists? fullpath
60
+ @pass = File.read(fullpath).strip
61
+ else
62
+ @pass = [(print "#{DOMAIN} Password ( or Make #{PASSWORD_FILE}): "), STDIN.noecho(&:gets).rstrip][1]
63
+ puts
64
+ end
59
65
  end
60
66
 
61
67
  @user = @pub_user || @master_user
@@ -1,7 +1,7 @@
1
1
  module Bitbucket
2
2
  module Pr
3
3
  class Post
4
- VERSION = "0.0.8"
4
+ VERSION = "0.1.0"
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.8
4
+ version: 0.1.0
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-05-12 00:00:00.000000000 Z
11
+ date: 2015-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,15 +52,17 @@ files:
52
52
  - README.md
53
53
  - Rakefile
54
54
  - bin/bit_bucket_pr_post
55
- - bitbucket-pr-post-0.0.1.gem
56
- - bitbucket-pr-post-0.0.2.gem
57
- - bitbucket-pr-post-0.0.3.gem
58
- - bitbucket-pr-post-0.0.5.gem
59
- - bitbucket-pr-post-0.0.6.gem
60
- - bitbucket-pr-post-0.0.7.gem
61
55
  - bitbucket-pr-post.gemspec
62
56
  - lib/bitbucket/pr/post.rb
63
57
  - lib/bitbucket/pr/post/version.rb
58
+ - pkg/bitbucket-pr-post-0.0.1.gem
59
+ - pkg/bitbucket-pr-post-0.0.2.gem
60
+ - pkg/bitbucket-pr-post-0.0.3.gem
61
+ - pkg/bitbucket-pr-post-0.0.4.gem
62
+ - pkg/bitbucket-pr-post-0.0.5.gem
63
+ - pkg/bitbucket-pr-post-0.0.6.gem
64
+ - pkg/bitbucket-pr-post-0.0.7.gem
65
+ - pkg/bitbucket-pr-post-0.0.8.gem
64
66
  homepage: https://bitbucket.org/kobayashi_at_answer/bitbucket-pr-post
65
67
  licenses:
66
68
  - MIT