gitmine 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gitmine.gemspec +1 -1
- data/lib/gitmine.rb +2 -1
- data/lib/gitmine/config.rb +3 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/gitmine.gemspec
CHANGED
data/lib/gitmine.rb
CHANGED
@@ -9,7 +9,8 @@ class Gitmine
|
|
9
9
|
def self.list
|
10
10
|
gm = Gitmine.new
|
11
11
|
gm.commits.each do |commit|
|
12
|
-
status = commit.issue
|
12
|
+
status = commit.issue.status if commit.issue
|
13
|
+
status ||= 'N/A'
|
13
14
|
puts "#{commit.id[0..6]} #{status.ljust(12)} #{(commit.committer.name || "").ljust(15)} #{commit.message[0..50].gsub("\n", '')}"
|
14
15
|
end
|
15
16
|
end
|
data/lib/gitmine/config.rb
CHANGED
@@ -20,15 +20,15 @@ class Gitmine
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def hudson_host
|
23
|
-
config['hudson']['host']
|
23
|
+
(config['hudson'] || {})['host']
|
24
24
|
end
|
25
25
|
|
26
26
|
def hudson_username
|
27
|
-
config['hudson']['username']
|
27
|
+
(config['hudson'] || {})['username']
|
28
28
|
end
|
29
29
|
|
30
30
|
def hudson_password
|
31
|
-
config['hudson']['password']
|
31
|
+
(config['hudson'] || {})['password']
|
32
32
|
end
|
33
33
|
|
34
34
|
def statuses
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 10
|
10
|
+
version: 0.1.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Philippe Creux
|