git_presenter 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "git_presenter"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Colin Gemmell"]
@@ -16,7 +16,8 @@ module GitPresenter
16
16
  end
17
17
 
18
18
  def to_s
19
- "#{@commit[0..9]}, #{@message}"
19
+ return "#{@commit[0..9]}, #{@message}" unless @commit.nil?
20
+ "run: #{@run}"
20
21
  end
21
22
 
22
23
  private
@@ -6,6 +6,11 @@ describe GitPresenter::Slide do
6
6
  slide = GitPresenter::Slide.new({"commit" => "012345678901234567890","message" => "message"})
7
7
  slide.to_s.should eql "0123456789, message"
8
8
  end
9
+
10
+ it "should not blow up if no command exists" do
11
+ slide = GitPresenter::Slide.new({"run" => "echo hello world"})
12
+ slide.to_s.should eql "run: echo hello world"
13
+ end
9
14
  end
10
15
 
11
16
  describe "execute" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: grit
16
- requirement: &70214612260380 !ruby/object:Gem::Requirement
16
+ requirement: &70356685804220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.4'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70214612260380
24
+ version_requirements: *70356685804220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70214612259060 !ruby/object:Gem::Requirement
27
+ requirement: &70356685802700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.7'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70214612259060
35
+ version_requirements: *70356685802700
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70214612272960 !ruby/object:Gem::Requirement
38
+ requirement: &70356685810100 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70214612272960
46
+ version_requirements: *70356685810100
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70214612265840 !ruby/object:Gem::Requirement
49
+ requirement: &70356685867960 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.6'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70214612265840
57
+ version_requirements: *70356685867960
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rcov
60
- requirement: &70214612322680 !ruby/object:Gem::Requirement
60
+ requirement: &70356685865520 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0.9'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70214612322680
68
+ version_requirements: *70356685865520
69
69
  description: Code presentation tool using git
70
70
  email: pythonandchips@gmail.com
71
71
  executables:
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: 2885974692794376119
117
+ hash: 3558123772429957961
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements: