reviewr 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,11 @@
1
1
 
2
+ === 0.0.3 / 2010-04-09
3
+
4
+ * 1 bug fix:
5
+
6
+ * Make it push to the correct remote repository
7
+ * Format the diff against the correct remote repository
8
+
2
9
  === 0.0.2 / 2010-04-08
3
10
 
4
11
  * 1 minor enhancement:
data/README.md CHANGED
@@ -12,15 +12,13 @@ This will result in the following actions:
12
12
 
13
13
  * Create a code review branch
14
14
  * Create a commit with information about the code review request
15
- * Push the code review branch to the origin repository
15
+ * Push the code review branch to the remote repository
16
16
  * Send an email to <email> requesting a code review of the branch
17
17
  The email will include a link to Github's compare view for the
18
18
  changes
19
19
 
20
20
  ## Limitations
21
21
 
22
- * Right now reviewr considers the origin/master the branch that the
23
- reviewed code will be merged into when approved
24
22
  * Email can only be sent from a Gmail (or Google Apps for my domain)
25
23
  address
26
24
 
@@ -33,6 +33,7 @@ module Reviewr
33
33
  no_echo(input) do
34
34
  project.email_password = input.gets.chomp
35
35
  end
36
+ output.print("\n")
36
37
 
37
38
  output.print("Remote repository (default origin): ")
38
39
  repo = input.gets.chomp
@@ -34,7 +34,7 @@ module Reviewr
34
34
  end
35
35
 
36
36
  def push_branch(branch_name)
37
- execute("git push origin #{branch_name}")
37
+ execute("git push #{remote_repo} #{branch_name}")
38
38
  end
39
39
 
40
40
  def origin_location
@@ -43,7 +43,7 @@ module Reviewr
43
43
  end
44
44
 
45
45
  def origin_master_commit
46
- r = execute("git ls-remote origin refs/heads/master")
46
+ r = execute("git ls-remote #{remote_repo} refs/heads/master")
47
47
  r && r.split(/\s+/)[0]
48
48
  end
49
49
 
@@ -1,3 +1,3 @@
1
1
  module Reviewr
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Burrows
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-08 00:00:00 -07:00
17
+ date: 2010-04-09 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency