git_reflow 0.6.1 → 0.6.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 +4 -4
- data/Gemfile.lock +8 -5
- data/README.rdoc +2 -0
- data/lib/git_reflow/commands/review.rb +6 -1
- data/lib/git_reflow/git_server/base.rb +1 -1
- data/lib/git_reflow/git_server/bit_bucket.rb +1 -1
- data/lib/git_reflow/git_server/git_hub.rb +1 -0
- data/lib/git_reflow/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 264a295a93c7ed9cef158a35d2caf8430676cf5e
|
|
4
|
+
data.tar.gz: 65d39c100010026cf3a3e874bfdfb3f131411e29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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.
|
|
49
|
+
jwt (1.5.1)
|
|
50
50
|
method_source (0.8.2)
|
|
51
51
|
mini_portile (0.6.2)
|
|
52
|
-
multi_json (1.11.
|
|
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.
|
|
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("
|
|
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
|
|
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}"
|
data/lib/git_reflow/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
309
|
+
rubygems_version: 2.4.8
|
|
310
310
|
signing_key:
|
|
311
311
|
specification_version: 4
|
|
312
312
|
summary: A better git process
|