gaah 0.3.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a16efe59c59236cd281e0934f3d32e6c2264c98
4
- data.tar.gz: f85aed9cea104da4e08bcb0705f9a6fadddc5fe1
3
+ metadata.gz: 875016d4e7a33cf2aefd4ff1c73cddd53eed65ba
4
+ data.tar.gz: 0cebac315f77df54a04a79d9c81943b844130beb
5
5
  SHA512:
6
- metadata.gz: 236261f5a46efec37556f8d2652a1f534095fdc356d21c9399e701f0803d6b927001f0c45cf6b0c6270273750c05baa15ca3dce34cf8834db8e34c76c8bdb877
7
- data.tar.gz: 5c76ca104b49c8b7033da5f27f53671d3b593a1a8cc5c0089a0f04433afffe154eff2b507b3403b3f2209f4649bcaf0326946a54f1229277efbb69000bc7e6ff
6
+ metadata.gz: 2131f79b7c7f8559850dd3b5f10a7a8ab1715e8d4e89f5659bcbc977cf84dcace4c82ad11561350b3d6b543af458509b020523f19bdab787bf801884741a3ac0
7
+ data.tar.gz: 7b8a340846a25e1d4f4084c17a3da213a41cfbf6b6676d73abcd4c48f3034daebd7aa7fd101d685187756a45077a0505695a37d1f76970413d4142185d14dd62
@@ -4,7 +4,13 @@ module Gaah
4
4
 
5
5
  def self.batch_create(xml)
6
6
  if xml.is_a? Array
7
- xml.map(&method(:new))
7
+ xml.map do |item|
8
+ begin
9
+ self.new(item)
10
+ rescue
11
+ raise ApiParsingException.new(item)
12
+ end
13
+ end
8
14
  else
9
15
  (xml/:entry).map(&method(:new))
10
16
  end
@@ -21,4 +21,5 @@ module Gaah
21
21
  end
22
22
 
23
23
  class UnknownHTTPException < StandardError;end
24
+ class ApiParsingException < StandardError; end
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module Gaah
2
- VERSION = "0.3.3.2"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hwan-Joon Choi
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.0.6
137
+ rubygems_version: 2.1.11
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Limited API Wrapper for Google Apps API.