Floppy-amee 0.4.26 → 0.4.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -105,12 +105,12 @@ module AMEE
105
105
  response = profile.connection.post(profile.full_path, options)
106
106
  category = Category.parse(profile.connection, response)
107
107
  return category.item(options)
108
- #rescue
109
- # raise AMEE::BadData.new("Couldn't create ProfileItem. Check that your information is correct.")
108
+ rescue
109
+ raise AMEE::BadData.new("Couldn't create ProfileItem. Check that your information is correct.")
110
110
  end
111
111
 
112
112
  def update(options = {})
113
- connection.put(full_path, options)
113
+ response = connection.put(full_path, options)
114
114
  return Item.parse(connection, response)
115
115
  rescue
116
116
  raise AMEE::BadData.new("Couldn't update ProfileItem. Check that your information is correct.")
data/lib/amee/version.rb CHANGED
@@ -3,7 +3,7 @@ module AMEE
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 4
6
- TINY = 26
6
+ TINY = 27
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: 0.4.26
4
+ version: 0.4.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith