redmine-ruby 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/redmine-ruby.rb +1 -0
- data/lib/redmine-ruby/base.rb +5 -1
- data/lib/redmine-ruby/exception.rb +6 -0
- data/redmine-ruby.gemspec +3 -2
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/redmine-ruby.rb
CHANGED
data/lib/redmine-ruby/base.rb
CHANGED
@@ -14,7 +14,11 @@ module Redmine
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.parse(data)
|
17
|
-
data.
|
17
|
+
if data.respond_to?(:keys)
|
18
|
+
data.keys.include?(root_element) ? data[root_element] : data
|
19
|
+
else
|
20
|
+
raise Redmine::Exception, data.kind_of?(Array) ? data.join(', ') : data
|
21
|
+
end
|
18
22
|
end
|
19
23
|
|
20
24
|
end
|
data/redmine-ruby.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "redmine-ruby"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jan Schwenzien"]
|
12
|
-
s.date = "2013-08-
|
12
|
+
s.date = "2013-08-15"
|
13
13
|
s.description = "Ruby Redmine Client using Her"
|
14
14
|
s.email = "jan@general-scripting.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
"lib/redmine-ruby.rb",
|
28
28
|
"lib/redmine-ruby/base.rb",
|
29
29
|
"lib/redmine-ruby/custom_field.rb",
|
30
|
+
"lib/redmine-ruby/exception.rb",
|
30
31
|
"lib/redmine-ruby/issue.rb",
|
31
32
|
"lib/redmine-ruby/middleware/xml_parser.rb",
|
32
33
|
"lib/redmine-ruby/project.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
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-08-
|
12
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: her
|
@@ -141,6 +141,7 @@ files:
|
|
141
141
|
- lib/redmine-ruby.rb
|
142
142
|
- lib/redmine-ruby/base.rb
|
143
143
|
- lib/redmine-ruby/custom_field.rb
|
144
|
+
- lib/redmine-ruby/exception.rb
|
144
145
|
- lib/redmine-ruby/issue.rb
|
145
146
|
- lib/redmine-ruby/middleware/xml_parser.rb
|
146
147
|
- lib/redmine-ruby/project.rb
|
@@ -164,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
165
|
version: '0'
|
165
166
|
segments:
|
166
167
|
- 0
|
167
|
-
hash:
|
168
|
+
hash: -884609916255470635
|
168
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
170
|
none: false
|
170
171
|
requirements:
|