gitmine 0.1.9 → 0.1.10

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gitmine}
8
- s.version = "0.1.9"
8
+ s.version = "0.1.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Philippe Creux"]
@@ -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 ? commit.issue.status : 'N/A'
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
@@ -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: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 9
10
- version: 0.1.9
9
+ - 10
10
+ version: 0.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Philippe Creux