amiando 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +18 -0
- data/amiando.gemspec +2 -2
- data/lib/amiando.rb +1 -1
- data/lib/amiando/resource.rb +1 -1
- data/lib/amiando/version.rb +1 -1
- metadata +11 -15
data/README.md
CHANGED
@@ -28,3 +28,21 @@ You can also do synchronous requests by prepending 'sync_' to the method name:
|
|
28
28
|
All attributes should be used in snake_case format instead of the CamelCase
|
29
29
|
used in the official documentation. For example, for a user, you should call
|
30
30
|
first_name instead of firstName.
|
31
|
+
|
32
|
+
## Documentation
|
33
|
+
|
34
|
+
The full amiando API isn't fully implemented yet, however you can find here the
|
35
|
+
ones currently available.
|
36
|
+
|
37
|
+
* [ApiKey](http://rdoc.info/github/xing/amiando/master/Amiando/ApiKeyt)
|
38
|
+
* Partner
|
39
|
+
* [User](http://rdoc.info/github/xing/amiando/master/Amiando/User) (some methods
|
40
|
+
still missing)
|
41
|
+
* [Event](http://rdoc.info/github/xing/amiando/master/Amiando/Event)
|
42
|
+
* [TicketShop](http://rdoc.info/github/xing/amiando/master/Amiando/TicketShop)
|
43
|
+
* Ticket
|
44
|
+
* [TicketCategory](http://rdoc.info/github/xing/amiando/master/Amiando/TicketCategory)
|
45
|
+
* Payment
|
46
|
+
* [PaymentType](http://rdoc.info/github/xing/amiando/master/Amiando/PaymentType)
|
47
|
+
* Data Synchronization
|
48
|
+
* Email
|
data/amiando.gemspec
CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_dependency '
|
22
|
-
s.add_dependency '
|
21
|
+
s.add_dependency 'typhoeus'
|
22
|
+
s.add_dependency 'json'
|
23
23
|
|
24
24
|
s.add_development_dependency 'minitest'
|
25
25
|
s.add_development_dependency 'webmock'
|
data/lib/amiando.rb
CHANGED
data/lib/amiando/resource.rb
CHANGED
@@ -73,7 +73,7 @@ module Amiando
|
|
73
73
|
raise Error::ServiceDown.new(response.body)
|
74
74
|
end
|
75
75
|
|
76
|
-
parsed_body =
|
76
|
+
parsed_body = JSON.parse(response.body)
|
77
77
|
|
78
78
|
if parsed_body['errors'] && parsed_body['errors'].include?('com.amiando.api.rest.MissingParam.apikey')
|
79
79
|
raise Error::MissingApiKey.new('This call requires an apikey')
|
data/lib/amiando/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amiando
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jorge Dias
|
@@ -20,35 +20,31 @@ date: 2011-10-26 00:00:00 +02:00
|
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
name:
|
23
|
+
name: typhoeus
|
24
24
|
prerelease: false
|
25
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
27
27
|
requirements:
|
28
|
-
- - "
|
28
|
+
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 3
|
31
31
|
segments:
|
32
32
|
- 0
|
33
|
-
|
34
|
-
- 2
|
35
|
-
version: 0.8.2
|
33
|
+
version: "0"
|
36
34
|
type: :runtime
|
37
35
|
version_requirements: *id001
|
38
36
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
37
|
+
name: json
|
40
38
|
prerelease: false
|
41
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
40
|
none: false
|
43
41
|
requirements:
|
44
|
-
- - "
|
42
|
+
- - ">="
|
45
43
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
44
|
+
hash: 3
|
47
45
|
segments:
|
48
46
|
- 0
|
49
|
-
|
50
|
-
- 4
|
51
|
-
version: 0.2.4
|
47
|
+
version: "0"
|
52
48
|
type: :runtime
|
53
49
|
version_requirements: *id002
|
54
50
|
- !ruby/object:Gem::Dependency
|