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.
@@ -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.3"
6
- s.date = "2013-04-30"
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"]
@@ -68,7 +68,7 @@ class GitCommitStory
68
68
  end
69
69
 
70
70
  def commit
71
- message = "git commit -m '#{final_commit_message}'"
71
+ message = %Q(git commit -m "#{final_commit_message}")
72
72
  result = system(message)
73
73
  options[:previous_story_id] = story_id
74
74
  save_config_file
@@ -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 = "git commit -m '#{gcs.final_commit_message}'"
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.3
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-04-30 00:00:00.000000000 Z
12
+ date: 2013-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec