git_reflow 0.6.1 → 0.6.2

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: 157ec9c6f9262f4f5f8f67a9b9311f7b043b01c4
4
- data.tar.gz: 9c4a441992272ddfe73fbce1cbc545af55193ad9
3
+ metadata.gz: 264a295a93c7ed9cef158a35d2caf8430676cf5e
4
+ data.tar.gz: 65d39c100010026cf3a3e874bfdfb3f131411e29
5
5
  SHA512:
6
- metadata.gz: a08a0ac6fefbe661734ecc85d39c61b7e97dba979893857781c8fa423212704467032b1de0bbbdc49db8209329710b1d09a8a311d3b6f0241ac3df268177b883
7
- data.tar.gz: 6cda20098a7eebb8deb02c4d6ec138553c90d0d71fc0ec83fbe1f0ce116836000012b9f58c4fd99327cc8161ec731a236f88192757228e85a416dc34dfaf4848
6
+ metadata.gz: 864c8818f9e7dea8334612242ab2e3d6f38275c2bf892348ecf2b0bce78f08136dd5c6c69f14fef384db86009e477ed08b37c152455e9c1e585a8c4196a0e6aa
7
+ data.tar.gz: 563fca509a72403ef8f4f5ab8cce1af90226026c5df3b34c1b0c4ac99026f44fa53396aa6d03bef65a82f72ffe089ac6a97f37c490b02e78ddeabf344fa293ec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_reflow (0.6.1)
4
+ git_reflow (0.6.2)
5
5
  colorize (= 0.6.0)
6
6
  github_api (= 0.12.3)
7
7
  gli (= 2.12.2)
@@ -42,14 +42,14 @@ GEM
42
42
  nokogiri (~> 1.6.3)
43
43
  oauth2
44
44
  gli (2.12.2)
45
- hashie (3.4.1)
45
+ hashie (3.4.2)
46
46
  highline (1.7.2)
47
47
  httpclient (2.6.0.1)
48
48
  json_pure (1.8.2)
49
- jwt (1.5.0)
49
+ jwt (1.5.1)
50
50
  method_source (0.8.2)
51
51
  mini_portile (0.6.2)
52
- multi_json (1.11.0)
52
+ multi_json (1.11.2)
53
53
  multi_xml (0.5.5)
54
54
  multipart-post (2.0.0)
55
55
  nokogiri (1.6.6.2)
@@ -67,7 +67,7 @@ GEM
67
67
  pry-byebug (3.1.0)
68
68
  byebug (~> 4.0)
69
69
  pry (~> 0.10)
70
- rack (1.6.1)
70
+ rack (1.6.4)
71
71
  rake (10.4.2)
72
72
  rb-readline (0.5.2)
73
73
  rdoc (4.2.0)
@@ -113,3 +113,6 @@ DEPENDENCIES
113
113
  rspec (~> 3.0.0)
114
114
  webmock
115
115
  wwtd (= 0.7.0)
116
+
117
+ BUNDLED WITH
118
+ 1.10.5
data/README.rdoc CHANGED
@@ -52,6 +52,8 @@ If your code is 'LGTM'd, squash merge to +master+ and delete the feature branch:
52
52
  or
53
53
  $ gem install git_reflow
54
54
 
55
+ (`git_reflow` is the official gem, and `reflow` just declares `git_reflow` as a dependency.)
56
+
55
57
  === Setup
56
58
  On your first install, you'll need to setup your Github credentials. These are used only to get an oauth token that's stored in your global git config.
57
59
  We use the Github credentials so we can create pull requests from the command line.
@@ -15,11 +15,16 @@ command :review do |c|
15
15
  'body' => global_options[:message]
16
16
  }
17
17
  else
18
+ default_editor = ENV['EDITOR']
19
+ if default_editor.empty?
20
+ default_editor = 'vi'
21
+ end
22
+
18
23
  File.open(pull_request_msg_file, 'w') do |file|
19
24
  file.write(GitReflow.current_branch)
20
25
  end
21
26
 
22
- GitReflow.run("$EDITOR #{pull_request_msg_file}", with_system: true)
27
+ GitReflow.run("#{default_editor} #{pull_request_msg_file}", with_system: true)
23
28
 
24
29
  pr_msg = File.open(pull_request_msg_file).each_line.map(&:strip).to_a
25
30
  title = pr_msg.shift
@@ -7,7 +7,7 @@ module GitReflow
7
7
  @@connection = nil
8
8
 
9
9
  class PullRequest
10
- attr_accessor :description, :html_url, :feature_branch_name, :base_branch_name, :build_status, :source_object
10
+ attr_accessor :description, :html_url, :feature_branch_name, :base_branch_name, :build_status, :source_object, :number
11
11
 
12
12
  def initialize(attributes)
13
13
  raise "PullRequest#initialize must be implemented"
@@ -7,7 +7,7 @@ module GitReflow
7
7
 
8
8
  class PullRequest < Base::PullRequest
9
9
  def initialize(attributes)
10
- self.description = attributes.description
10
+ self.description = attributes.description
11
11
  self.source_object = attributes
12
12
  self.number = attributes.id
13
13
  self.html_url = "#{attributes.source.repository.links.html.href}/pull-request/#{self.number}"
@@ -9,6 +9,7 @@ module GitReflow
9
9
 
10
10
  class PullRequest < Base::PullRequest
11
11
  def initialize(attributes)
12
+ self.number = attributes.number
12
13
  self.description = attributes.body
13
14
  self.html_url = attributes.html_url
14
15
  self.feature_branch_name = attributes.head.label
@@ -1,3 +1,3 @@
1
1
  module GitReflow
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_reflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentino Stoll
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-02 00:00:00.000000000 Z
13
+ date: 2015-08-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: appraisal
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
306
  version: '0'
307
307
  requirements: []
308
308
  rubyforge_project:
309
- rubygems_version: 2.4.6
309
+ rubygems_version: 2.4.8
310
310
  signing_key:
311
311
  specification_version: 4
312
312
  summary: A better git process