reviewr 0.0.1 → 0.0.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.
- data/History.txt +12 -0
- data/lib/reviewr/cli/main.rb +4 -0
- data/lib/reviewr/git.rb +7 -1
- data/lib/reviewr/project.rb +4 -2
- data/lib/reviewr/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/reviewr/cli/main.rb
CHANGED
data/lib/reviewr/git.rb
CHANGED
@@ -10,6 +10,12 @@ module Reviewr
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
+
attr_writer :remote_repo
|
14
|
+
|
15
|
+
def remote_repo
|
16
|
+
@remote_repo ||= "origin"
|
17
|
+
end
|
18
|
+
|
13
19
|
def last_commit
|
14
20
|
execute('git show --pretty=format:"%H" HEAD').split("\n")[0]
|
15
21
|
end
|
@@ -32,7 +38,7 @@ module Reviewr
|
|
32
38
|
end
|
33
39
|
|
34
40
|
def origin_location
|
35
|
-
r = execute("git remote show
|
41
|
+
r = execute("git remote show #{remote_repo}")
|
36
42
|
r && r.match(/URL: (.+)$/)[1]
|
37
43
|
end
|
38
44
|
|
data/lib/reviewr/project.rb
CHANGED
@@ -5,9 +5,11 @@ module Reviewr
|
|
5
5
|
extend Forwardable
|
6
6
|
|
7
7
|
attr_reader :to, :git, :email_server
|
8
|
-
attr_accessor :
|
8
|
+
attr_accessor :email_password
|
9
|
+
attr_writer :user_email
|
9
10
|
|
10
|
-
def_delegators :git, :push_branch, :origin_location
|
11
|
+
def_delegators :git, :push_branch, :origin_location, :remote_repo,
|
12
|
+
:remote_repo=
|
11
13
|
|
12
14
|
def initialize(to, git = Git.instance)
|
13
15
|
@to, @git = to, git
|
data/lib/reviewr/version.rb
CHANGED