Floppy-amee 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -230,8 +230,8 @@ module AMEE
230
230
  # Load data from path
231
231
  response = connection.get(path, options)
232
232
  return Item.parse(connection, response)
233
- # rescue
234
- # raise AMEE::BadData.new("Couldn't load ProfileItem. Check that your URL is correct.")
233
+ rescue
234
+ raise AMEE::BadData.new("Couldn't load ProfileItem. Check that your URL is correct.")
235
235
  end
236
236
 
237
237
  def self.create(category, data_item_uid, options = {})
@@ -268,8 +268,7 @@ module AMEE
268
268
  location = response['Location']
269
269
  else
270
270
  category = Category.parse(connection, response)
271
- item = category.items.find{ |x| x[:name] == options[:name] || x[:dataItemUid] == data_item_uid }
272
- location = category.full_path + "/" + item[:path]
271
+ location = category.full_path + "/" + category.items[0][:path]
273
272
  end
274
273
  if get_item == true
275
274
  options = {}
data/lib/amee/version.rb CHANGED
@@ -3,7 +3,7 @@ module AMEE
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 2
5
5
  MINOR = 0
6
- TINY = 3
6
+ TINY = 4
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Floppy-amee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-26 00:00:00 -08:00
12
+ date: 2009-02-27 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency