git_reflow 0.5.1 → 0.5.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 +2 -2
- data/lib/git_reflow/git_server/git_hub.rb +3 -1
- data/lib/git_reflow/version.rb +1 -1
- data/lib/git_reflow.rb +1 -1
- data/spec/git_reflow_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a347ec9597dc6a1500fe2b1553c1fbccf26bfdb3
|
|
4
|
+
data.tar.gz: ff80647cdef77c93294142807d85ca2b1cf919ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f7092e8b7ff099a93bd7fe4d555bb44d4bc81941931de0218933d5fa7d97565177caf751fda46bcdd6a32f45e75fb00ef80116b27d2f0754c0e2f19043b3bab
|
|
7
|
+
data.tar.gz: 31a1f2ccd61511599d86c6e78b5da81a3f4299473e4e4a7c9c3085ca452ab6cc06c5ab9bc01ae8006423bfa6549360d10ff6a528524287a606911e11296463c9
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
git_reflow (0.5.
|
|
4
|
+
git_reflow (0.5.2)
|
|
5
5
|
colorize (= 0.6.0)
|
|
6
6
|
github_api (= 0.12.3)
|
|
7
7
|
gli (= 2.12.2)
|
|
@@ -42,7 +42,7 @@ GEM
|
|
|
42
42
|
nokogiri (~> 1.6.3)
|
|
43
43
|
oauth2
|
|
44
44
|
gli (2.12.2)
|
|
45
|
-
hashie (3.4.
|
|
45
|
+
hashie (3.4.1)
|
|
46
46
|
highline (1.7.1)
|
|
47
47
|
httpclient (2.6.0.1)
|
|
48
48
|
json_pure (1.8.2)
|
|
@@ -5,6 +5,7 @@ module GitReflow
|
|
|
5
5
|
module GitServer
|
|
6
6
|
class GitHub < Base
|
|
7
7
|
extend GitHelpers
|
|
8
|
+
include Sandbox
|
|
8
9
|
|
|
9
10
|
class PullRequest < Base::PullRequest
|
|
10
11
|
def initialize(attributes)
|
|
@@ -133,7 +134,7 @@ module GitReflow
|
|
|
133
134
|
puts "\nGithub Authentication Error: #{e.inspect}"
|
|
134
135
|
end
|
|
135
136
|
rescue StandardError => e
|
|
136
|
-
puts "\nInvalid username or password: #{e.
|
|
137
|
+
puts "\nInvalid username or password: #{e.inspect}"
|
|
137
138
|
else
|
|
138
139
|
puts "\nYour GitHub account was successfully setup!"
|
|
139
140
|
end
|
|
@@ -199,6 +200,7 @@ module GitReflow
|
|
|
199
200
|
|
|
200
201
|
# remove the current user from the list to check
|
|
201
202
|
comment_authors -= [self.class.user]
|
|
203
|
+
comment_authors.uniq
|
|
202
204
|
end
|
|
203
205
|
|
|
204
206
|
def get_commited_time(commit_sha)
|
data/lib/git_reflow/version.rb
CHANGED
data/lib/git_reflow.rb
CHANGED
|
@@ -77,7 +77,7 @@ module GitReflow
|
|
|
77
77
|
say "No pull request exists for #{remote_user}:#{current_branch}\nPlease submit your branch for review first with \`git reflow review\`", :deliver_halted
|
|
78
78
|
else
|
|
79
79
|
|
|
80
|
-
has_comments = (git_server.has_pull_request_comments?(existing_pull_request) or git_server.approvals(existing_pull_request))
|
|
80
|
+
has_comments = (git_server.has_pull_request_comments?(existing_pull_request) or git_server.approvals(existing_pull_request).any?)
|
|
81
81
|
open_comment_authors = git_server.reviewers_pending_response(existing_pull_request)
|
|
82
82
|
status = git_server.get_build_status existing_pull_request.build_status
|
|
83
83
|
commit_message = if "#{existing_pull_request.description}".length > 0
|
data/spec/git_reflow_spec.rb
CHANGED
|
@@ -349,6 +349,8 @@ describe GitReflow do
|
|
|
349
349
|
context 'but has no comments' do
|
|
350
350
|
before do
|
|
351
351
|
github.stub(:has_pull_request_comments?).and_return(false)
|
|
352
|
+
github.stub(:approvals).and_return([])
|
|
353
|
+
github.stub(:reviewers_pending_response).and_return([])
|
|
352
354
|
end
|
|
353
355
|
|
|
354
356
|
it "notifies the user to get their code reviewed" do
|
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.5.
|
|
4
|
+
version: 0.5.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-03
|
|
13
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: appraisal
|