ringioAPI 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.mkdn CHANGED
@@ -8,7 +8,7 @@ Provides a wrapper for the [API of Ringio][ringio] in Ruby, using classes that i
8
8
 
9
9
  Available classes at the moment are:
10
10
 
11
- Contact, Feed, Note, Ring, User
11
+ Account, Contact, Feed, Note, Ring, User
12
12
 
13
13
 
14
14
  ## Installing
@@ -18,7 +18,7 @@ Available classes at the moment are:
18
18
  ### Dependencies
19
19
 
20
20
  RubyGems >= 1.3.6 ,
21
- ActiveResource ~> 3.0.0
21
+ ActiveResource >= 3.0.3
22
22
 
23
23
  ### Configuration
24
24
 
data/lib/ringioAPI.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  require 'ringioAPI/base.rb'
2
+
3
+ require 'ringioAPI/account.rb'
2
4
  require 'ringioAPI/contact.rb'
3
5
  require 'ringioAPI/feed.rb'
4
6
  require 'ringioAPI/note.rb'
@@ -0,0 +1,12 @@
1
+ module RingioAPI
2
+
3
+ class Account < Base
4
+ # override methods as a TEMPORARY solution of the JSON parsing bugs of Rails
5
+
6
+ # move the nested resource to the root
7
+ def self.find(account_id)
8
+ super(account_id).account
9
+ end
10
+ end
11
+
12
+ end
@@ -1,3 +1,3 @@
1
1
  module RingioAPI
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.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
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.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: 2011-01-04 00:00:00 +01:00
17
+ date: 2011-01-20 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -52,6 +52,7 @@ files:
52
52
  - lib/ringioAPI/base.rb
53
53
  - lib/ringioAPI/user.rb
54
54
  - lib/ringioAPI/note.rb
55
+ - lib/ringioAPI/account.rb
55
56
  - lib/ringioAPI/contact.rb
56
57
  has_rdoc: true
57
58
  homepage: http://github.com/ringio/ringioAPI