git-redmine-commit 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/git-redmine-commit.gemspec +2 -2
- data/lib/git-redmine-commit.rb +1 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/git-redmine-commit.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{git-redmine-commit}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Robin Lu"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-25}
|
13
13
|
s.default_executable = %q{git-redmine-commit}
|
14
14
|
s.description = %q{With this tool, you can do a git commit with a redmine issue id. The message of the commit is filled with the title of the issue automatically.}
|
15
15
|
s.email = %q{iamawalrus@gmail.com}
|
data/lib/git-redmine-commit.rb
CHANGED
@@ -83,7 +83,7 @@ class GitRedmineCommit
|
|
83
83
|
set_redmine_config(@options[:url], @options[:key], @options[:repo])
|
84
84
|
|
85
85
|
url = File.join(@options[:url], "issues", "#{@options[:issue_id]}.xml?key=#{@options[:key]}")
|
86
|
-
issue = open(url)
|
86
|
+
issue = XmlSimple.xml_in(open(url).read)
|
87
87
|
title = "fix issue ##{issue['id']} : #{issue['subject']}"
|
88
88
|
temp = Tempfile.new('redmine_commit')
|
89
89
|
temp << title
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-redmine-commit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Robin Lu
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-25 00:00:00 +08:00
|
19
19
|
default_executable: git-redmine-commit
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|