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 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
@@ -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 'yajl-ruby', '0.8.2'
22
- s.add_dependency 'typhoeus', '0.2.4'
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'
@@ -1,6 +1,6 @@
1
1
  require "amiando/version"
2
2
  require "typhoeus"
3
- require "yajl"
3
+ require "json"
4
4
 
5
5
  module Amiando
6
6
  autoload :Request, 'amiando/request'
@@ -73,7 +73,7 @@ module Amiando
73
73
  raise Error::ServiceDown.new(response.body)
74
74
  end
75
75
 
76
- parsed_body = Yajl::Parser.parse(response.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')
@@ -1,3 +1,3 @@
1
1
  module Amiando
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
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: yajl-ruby
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: 59
30
+ hash: 3
31
31
  segments:
32
32
  - 0
33
- - 8
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: typhoeus
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: 31
44
+ hash: 3
47
45
  segments:
48
46
  - 0
49
- - 2
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