rhogallery 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rhogallery (0.1.1)
4
+ rhogallery (0.1.2)
5
5
  json (~> 1.5.4)
6
6
  rest-client (~> 1.6.6)
7
7
 
@@ -42,8 +42,12 @@ class RhoGallery::Base
42
42
  end
43
43
 
44
44
  def delete(options, resource)
45
- RestClient.delete RhoGallery.resource_url(options[:username], resource), {:Authorization => options[:token]}
46
- true
45
+ if self.id
46
+ RestClient.delete RhoGallery.resource_url(options[:username], resource), {:Authorization => options[:token]}
47
+ true
48
+ else
49
+ false
50
+ end
47
51
  end
48
52
 
49
53
  def save(data, options, resource)
@@ -1,3 +1,3 @@
1
1
  module Rhogallery
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhogallery
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rhomobile
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-04 00:00:00 Z
18
+ date: 2011-10-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime