gitnext 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/gitnext.gemspec +3 -2
- data/lib/git_next.rb +1 -1
- data/spec/git_next_spec.rb +13 -3
- metadata +9 -7
data/gitnext.gemspec
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'gitnext'
|
3
|
-
s.version = '0.1.
|
4
|
-
s.summary = '
|
3
|
+
s.version = '0.1.2'
|
4
|
+
s.summary = 'Use next or previous to navigate through a git repository'
|
5
|
+
s.description = "A simple command line tool to use when doing presentations."
|
5
6
|
s.platform = Gem::Platform::RUBY
|
6
7
|
s.authors = ["Nigel"]
|
7
8
|
s.email = ["nigelr@brisbanerails.com"]
|
data/lib/git_next.rb
CHANGED
data/spec/git_next_spec.rb
CHANGED
@@ -61,9 +61,19 @@ describe GitNext do
|
|
61
61
|
it("should create have value of 4") { File.read(gitnext_config).should == "3" }
|
62
62
|
end
|
63
63
|
context "after gitnext initialised" do
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
context "clean repo" do
|
65
|
+
before { GitNext.run sample_dir }
|
66
|
+
it("should go to next version") { File.read(file_1).should == "b" }
|
67
|
+
it("config should have 2") { File.read(gitnext_config).should == "2" }
|
68
|
+
end
|
69
|
+
context "dirty repo" do
|
70
|
+
before do
|
71
|
+
File.open(file_1, "w") { |f| f.write "1" }
|
72
|
+
GitNext.run sample_dir
|
73
|
+
end
|
74
|
+
it("should go to next version") { File.read(file_1).should == "b" }
|
75
|
+
it("config should have 2") { File.read(gitnext_config).should == "2" }
|
76
|
+
end
|
67
77
|
end
|
68
78
|
|
69
79
|
describe "remove" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitnext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nigel
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-13 00:00:00 +10:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rspec
|
@@ -49,7 +50,7 @@ dependencies:
|
|
49
50
|
version: 1.2.5
|
50
51
|
type: :runtime
|
51
52
|
version_requirements: *id002
|
52
|
-
description:
|
53
|
+
description: A simple command line tool to use when doing presentations.
|
53
54
|
email:
|
54
55
|
- nigelr@brisbanerails.com
|
55
56
|
executables:
|
@@ -63,6 +64,7 @@ files:
|
|
63
64
|
- lib/git_next.rb
|
64
65
|
- bin/gitnext
|
65
66
|
- gitnext.gemspec
|
67
|
+
has_rdoc: true
|
66
68
|
homepage: http://github.com/nigelr/gitnext
|
67
69
|
licenses: []
|
68
70
|
|
@@ -92,9 +94,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
94
|
requirements: []
|
93
95
|
|
94
96
|
rubyforge_project:
|
95
|
-
rubygems_version: 1.
|
97
|
+
rubygems_version: 1.5.2
|
96
98
|
signing_key:
|
97
99
|
specification_version: 3
|
98
|
-
summary:
|
100
|
+
summary: Use next or previous to navigate through a git repository
|
99
101
|
test_files: []
|
100
102
|
|