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 CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -3,6 +3,7 @@ require 'her'
3
3
  require 'multi_xml'
4
4
  require 'redmine-ruby/middleware/xml_parser.rb'
5
5
 
6
+ require 'redmine-ruby/exception.rb'
6
7
  require 'redmine-ruby/base.rb'
7
8
  require 'redmine-ruby/project.rb'
8
9
  require 'redmine-ruby/issue.rb'
@@ -14,7 +14,11 @@ module Redmine
14
14
  end
15
15
 
16
16
  def self.parse(data)
17
- data.keys.include?(root_element) ? data[root_element] : 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
@@ -0,0 +1,6 @@
1
+ module Redmine
2
+ class Exception < StandardError
3
+
4
+
5
+ end
6
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "redmine-ruby"
8
- s.version = "0.2.0"
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-01"
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.0
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-01 00:00:00.000000000 Z
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: 2027505479982214640
168
+ hash: -884609916255470635
168
169
  required_rubygems_version: !ruby/object:Gem::Requirement
169
170
  none: false
170
171
  requirements: