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 CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -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.3.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-03-28}
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}
@@ -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) { |f| XmlSimple.xml_in(f)}
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: 19
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
8
+ - 4
9
9
  - 0
10
- version: 0.3.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-03-28 00:00:00 +08:00
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