ringioAPI 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkdn +3 -3
- data/lib/ringioAPI/base.rb +1 -0
- data/lib/ringioAPI/version.rb +1 -1
- data/ringioAPI.gemspec +1 -1
- metadata +4 -4
data/README.mkdn
CHANGED
@@ -24,10 +24,10 @@ ActiveResource ~> 3.0.0
|
|
24
24
|
|
25
25
|
#### General Configuration
|
26
26
|
|
27
|
-
You can configure the
|
27
|
+
You can configure the API token like this:
|
28
28
|
|
29
29
|
require 'ringioAPI'
|
30
|
-
|
30
|
+
RingioAPI::Base.user = 'RINGIO API TOKEN'
|
31
31
|
|
32
32
|
Currently there is a bug in Rails 3.0.1 that makes JSON objects not parse the root node.
|
33
33
|
Check the possible solutions and patches in [the corresponding thread in the Rails forums for developers][bug]
|
@@ -51,7 +51,7 @@ In the root of the project, run:
|
|
51
51
|
|
52
52
|
For example, to get the contact with id = 14 :
|
53
53
|
|
54
|
-
contact14 = Ringio::Contact.find(
|
54
|
+
contact14 = Ringio::Contact.find(14)
|
55
55
|
|
56
56
|
To change the title of that contact:
|
57
57
|
|
data/lib/ringioAPI/base.rb
CHANGED
data/lib/ringioAPI/version.rb
CHANGED
data/ringioAPI.gemspec
CHANGED
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
You can configure it for example by adding a file with this in config/initializers/ :
|
26
26
|
|
27
27
|
require 'ringioAPI'
|
28
|
-
|
28
|
+
RingioAPI::Base.user = 'RINGIO API TOKEN'
|
29
29
|
EOT
|
30
30
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 8
|
9
|
+
version: 0.0.8
|
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-
|
17
|
+
date: 2010-12-02 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 3.0.0
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
|
-
description: "\tIMPORTANT: this project has just started, so the functionality is not complete yet.\n Provides a wrapper for the Ringio API in Ruby, using ActiveResource.\n\n You can configure it for example by adding a file with this in config/initializers/ :\n\n require 'ringioAPI'\n
|
35
|
+
description: "\tIMPORTANT: this project has just started, so the functionality is not complete yet.\n Provides a wrapper for the Ringio API in Ruby, using ActiveResource.\n\n You can configure it for example by adding a file with this in config/initializers/ :\n\n require 'ringioAPI'\n RingioAPI::Base.user = 'RINGIO API TOKEN'\n"
|
36
36
|
email: amartin@ringio.com
|
37
37
|
executables: []
|
38
38
|
|