ringioAPI 0.0.9 → 0.1.0

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.
@@ -2,6 +2,10 @@ module RingioAPI
2
2
 
3
3
  class Contact < Base
4
4
 
5
+ class Datum < Base
6
+
7
+ end
8
+
5
9
  # override methods as a TEMPORARY solution of the JSON parsing bugs of Rails
6
10
 
7
11
  # move the nested resource to the root
@@ -2,28 +2,13 @@ module RingioAPI
2
2
 
3
3
  class Ring < Base
4
4
 
5
- # override methods as a temporary solution of the JSON parsing bugs of Rails
5
+ # override method as a temporary solution of the JSON parsing bugs of Rails
6
6
  def self.find(ring_id)
7
7
  super(ring_id).ring
8
8
  end
9
9
 
10
10
  def save
11
-
12
- result = super
13
-
14
- # move the fields returned after an update response to their proper place in the root
15
- begin
16
- self.id = self.ring.id
17
- rescue NoMethodError
18
- end
19
-
20
- # clean the unused nested resource
21
- begin
22
- self.ring = nil
23
- rescue NoMethodError
24
- end
25
-
26
- result
11
+ raise "Cannot change Ringio rings"
27
12
  end
28
13
 
29
14
 
@@ -1,3 +1,3 @@
1
1
  module RingioAPI
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 9
9
- version: 0.0.9
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - "\xC3\x81lvaro Mart\xC3\xADn Fraguas"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-13 00:00:00 +01:00
17
+ date: 2011-01-04 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency