git-commit-story 0.1.3 → 0.1.4
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/git-commit-story.gemspec +2 -2
- data/lib/git-commit-story.rb +1 -1
- data/spec/lib/git-commit-story_spec.rb +2 -2
- metadata +2 -2
data/git-commit-story.gemspec
CHANGED
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = "git-commit-story"
|
3
3
|
s.executables << "git-commit-story"
|
4
4
|
s.executables << "git-cs"
|
5
|
-
s.version = "0.1.
|
6
|
-
s.date = "2013-
|
5
|
+
s.version = "0.1.4"
|
6
|
+
s.date = "2013-05-10"
|
7
7
|
s.summary = "StreamSend git commit wrapper"
|
8
8
|
s.description = "Thin wrapper around git commit that adds a story id to commit messages"
|
9
9
|
s.authors = ["Jeff Roush"]
|
data/lib/git-commit-story.rb
CHANGED
@@ -78,7 +78,7 @@ describe GitCommitStory do
|
|
78
78
|
|
79
79
|
describe "with a commit message" do
|
80
80
|
it "adds the story id to the commit message" do
|
81
|
-
commit_message = "the commit message"
|
81
|
+
commit_message = "the 'commit' message"
|
82
82
|
gcs = GitCommitStory.new(commit_message: commit_message, story_id: "whatever")
|
83
83
|
message = "#{commit_message}\n\nstory: whatever"
|
84
84
|
gcs.final_commit_message.should == message
|
@@ -96,7 +96,7 @@ describe GitCommitStory do
|
|
96
96
|
|
97
97
|
it "saves a commit" do
|
98
98
|
gcs = GitCommitStory.new(:commit_message => "commit message", story_id: "whatever")
|
99
|
-
shell_command_string =
|
99
|
+
shell_command_string = %Q(git commit -m "#{gcs.final_commit_message}")
|
100
100
|
gcs.should_receive(:system).with(shell_command_string)
|
101
101
|
gcs.commit
|
102
102
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-commit-story
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|