Floppy-amee 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/amee/profile_item.rb +3 -4
- data/lib/amee/version.rb +1 -1
- metadata +2 -2
data/lib/amee/profile_item.rb
CHANGED
@@ -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
|
-
|
234
|
-
|
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
|
-
|
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
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.
|
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-
|
12
|
+
date: 2009-02-27 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|