amiando 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/.gitignore +6 -0
  2. data/Gemfile +17 -0
  3. data/Guardfile +11 -0
  4. data/README.md +26 -0
  5. data/Rakefile +12 -0
  6. data/amiando.gemspec +27 -0
  7. data/lib/amiando.rb +59 -0
  8. data/lib/amiando/api_key.rb +35 -0
  9. data/lib/amiando/boolean.rb +33 -0
  10. data/lib/amiando/event.rb +131 -0
  11. data/lib/amiando/request.rb +38 -0
  12. data/lib/amiando/resource.rb +152 -0
  13. data/lib/amiando/result.rb +33 -0
  14. data/lib/amiando/ticket_category.rb +99 -0
  15. data/lib/amiando/ticket_shop.rb +63 -0
  16. data/lib/amiando/user.rb +148 -0
  17. data/lib/amiando/version.rb +3 -0
  18. data/test/amiando/amiando_test.rb +13 -0
  19. data/test/amiando/api_key_test.rb +58 -0
  20. data/test/amiando/boolean_test.rb +21 -0
  21. data/test/amiando/event_test.rb +141 -0
  22. data/test/amiando/resource_test.rb +68 -0
  23. data/test/amiando/result_test.rb +25 -0
  24. data/test/amiando/ticket_category_test.rb +89 -0
  25. data/test/amiando/ticket_shop_test.rb +42 -0
  26. data/test/amiando/user_test.rb +130 -0
  27. data/test/fixtures/ApiKey/018fa0a2281ec9026bc122bc346366f6.yml +60 -0
  28. data/test/fixtures/ApiKey/1f62195e173114773b3ec2613582ece9.yml +60 -0
  29. data/test/fixtures/ApiKey/76860dbafe66279f25f56cd66b3f6ba1.yml +62 -0
  30. data/test/fixtures/ApiKey/97d82801a10696aaf385bf5873034b60.yml +60 -0
  31. data/test/fixtures/ApiKey/a703d1fcec1576fa8cb4ca1c5f53f545.yml +62 -0
  32. data/test/fixtures/ApiKey/a948a98b153ab66978e37160f352bfbc.yml +60 -0
  33. data/test/fixtures/ApiKey/b7ecc9e79dd856dec661554cd00490ed.yml +62 -0
  34. data/test/fixtures/ApiKey/ded8694c21d2e1c0cec845f72ba452b5.yml +60 -0
  35. data/test/fixtures/ApiKey/fa883db60c0390aa8948098d32497015.yml +60 -0
  36. data/test/fixtures/Event/29a95cd545b2fba8121dce97a3c859e3.yml +60 -0
  37. data/test/fixtures/Event/361940ebc5f074b1d6d96c2dbeb573ab.yml +60 -0
  38. data/test/fixtures/Event/3a90bf0a17eb1d647f1496d04640797a.yml +60 -0
  39. data/test/fixtures/Event/3b8ae154ad13c7152366b79c0d34b053.yml +60 -0
  40. data/test/fixtures/Event/49877df5f8c251e3364a3560ab1ab46c.yml +60 -0
  41. data/test/fixtures/Event/50cb3d76b40032b0fa5731ce7d2ae2f6.yml +62 -0
  42. data/test/fixtures/Event/5d6016557d86e7b7ff83d07d1ef4bf44.yml +60 -0
  43. data/test/fixtures/Event/67e55d2f91fa702eb8dc612cbfa661f9.yml +60 -0
  44. data/test/fixtures/Event/813535fc6ee153c1a6d8e826f1fe04dc.yml +60 -0
  45. data/test/fixtures/Event/8eabb0f839e03cde5818397c7121e6b4.yml +61 -0
  46. data/test/fixtures/Event/96a5ccd0281a67a4bdb276516b77e756.yml +62 -0
  47. data/test/fixtures/Event/9e689bd5495dc898a710cba8e6d1d779.yml +62 -0
  48. data/test/fixtures/Event/a816e5664ff66b8e3d27b74435a0c123.yml +60 -0
  49. data/test/fixtures/Event/c5ad7e1d1c160d7d1132297892a9ec94.yml +60 -0
  50. data/test/fixtures/Event/c88c85889575508f75deee325e16e49d.yml +60 -0
  51. data/test/fixtures/Event/d6a585196f1a2a94d22f22a2140d4c07.yml +60 -0
  52. data/test/fixtures/Event/e00eebd4faf194fe592fa6e7615909b8.yml +60 -0
  53. data/test/fixtures/Event/e753b6f404795c6635856ea43b0c7d35.yml +60 -0
  54. data/test/fixtures/Event/eb341dbccefaad75aad439f10cc7d82d.yml +60 -0
  55. data/test/fixtures/Event/ebab641e40ca57f8e0883d8ea003bd78.yml +60 -0
  56. data/test/fixtures/Event/ef17351e4bbc84eb776fe16dda31e1e4.yml +62 -0
  57. data/test/fixtures/Global/505952258352958b3b59a3812372ed02.yml +60 -0
  58. data/test/fixtures/Global/d41a6ca323b5db99b4e3c06e108c52cc.yml +60 -0
  59. data/test/fixtures/TicketCategory/0412c9d453efd804e171c6ba57fd980a.yml +66 -0
  60. data/test/fixtures/TicketCategory/49877df5f8c251e3364a3560ab1ab46c.yml +60 -0
  61. data/test/fixtures/TicketCategory/4d3f8d9ff3fb728fc37aaa6e40355a00.yml +62 -0
  62. data/test/fixtures/TicketCategory/5d4fdfda01ed8193c6bbc5e089db5a4b.yml +60 -0
  63. data/test/fixtures/TicketCategory/655e7a8089d67b8eeea1176398e4b289.yml +60 -0
  64. data/test/fixtures/TicketCategory/a9b19dc83437d00ffc4603c04f78159f.yml +62 -0
  65. data/test/fixtures/TicketCategory/bee3d6eb4247fec0849d91fb2f768524.yml +60 -0
  66. data/test/fixtures/TicketCategory/c6f8563714904f006b28ac06312b107d.yml +60 -0
  67. data/test/fixtures/TicketCategory/e6076c26b1b75eec091c5b91c9f75ad9.yml +62 -0
  68. data/test/fixtures/TicketCategory/ebfcf07be91b8cb6d05156713592abc9.yml +60 -0
  69. data/test/fixtures/TicketCategory/fe63648cf867613ec93b380e06257349.yml +60 -0
  70. data/test/fixtures/TicketShop/03d35073550910e61201cf425b4ff73e.yml +60 -0
  71. data/test/fixtures/TicketShop/0524d80dc6e3fad88d49adf71ffa2ab9.yml +60 -0
  72. data/test/fixtures/TicketShop/09729fb0d9f1490bec3acfa0e6742190.yml +60 -0
  73. data/test/fixtures/TicketShop/15c36c73e9f1d3255a61a559e3b98562.yml +60 -0
  74. data/test/fixtures/TicketShop/4605dd240202cd7510bfecaf474ac615.yml +62 -0
  75. data/test/fixtures/TicketShop/5c1f5488a196f44f2c18cc186816fd42.yml +60 -0
  76. data/test/fixtures/TicketShop/71f80402a72be32fdd34074d4426b765.yml +62 -0
  77. data/test/fixtures/TicketShop/bc24338e918c6edb07a55f4d580c5af3.yml +60 -0
  78. data/test/fixtures/TicketShop/d095062bf22d235f277c979b025e5cac.yml +60 -0
  79. data/test/fixtures/TicketShop/ece5150c24e5000bf4eff8dcdb6311bb.yml +60 -0
  80. data/test/fixtures/User/0b4a60c6c962b4b3af9ab21832cd76b2.yml +60 -0
  81. data/test/fixtures/User/0f635f4bb82fdc84af205efe76f43ae0.yml +60 -0
  82. data/test/fixtures/User/1c2f2c8a5372e998f38b9d387107cee2.yml +60 -0
  83. data/test/fixtures/User/1e3ab0fb92b5b1992f35256b4be7497b.yml +71 -0
  84. data/test/fixtures/User/3bac6d29256056f2b9a1ea6fad26966d.yml +60 -0
  85. data/test/fixtures/User/3ffaba64188557400a8678dbefd75990.yml +60 -0
  86. data/test/fixtures/User/5a26c7f9edf6d6027b19b57feda4a96f.yml +60 -0
  87. data/test/fixtures/User/5c17b4b5287f5d0ba390e25e99cf2270.yml +49 -0
  88. data/test/fixtures/User/6501a4db53a97afe6f7b9afeeb996888.yml +60 -0
  89. data/test/fixtures/User/6ad0dd77081f413e3df25d6a625d38cd.yml +60 -0
  90. data/test/fixtures/User/7d493f7758d9795ad522bc827cb51b77.yml +60 -0
  91. data/test/fixtures/User/89e6cb6ae39e29a154c99e0e33bb1b91.yml +60 -0
  92. data/test/fixtures/User/90a3bfe214f17305e356ad3f1a9c9ce7.yml +60 -0
  93. data/test/fixtures/User/92ad6537c8be5aab7cbd778d424f4944.yml +60 -0
  94. data/test/fixtures/User/9485b68940997e23e3721a413d4fbdd5.yml +49 -0
  95. data/test/fixtures/User/98348fe6fbecb7916faadd835916d94d.yml +60 -0
  96. data/test/fixtures/User/b63d7aa4703a3140b4d9884e9f302362.yml +60 -0
  97. data/test/fixtures/User/b8c3fd04d7bd0925c3ccd3a3978ab8e6.yml +49 -0
  98. data/test/fixtures/User/baa28f50439b903e423dbdf918fff20b.yml +62 -0
  99. data/test/fixtures/User/e51278f9f771be0c6c3ac0e4ee1b6459.yml +59 -0
  100. data/test/fixtures/User/eb30a195ac7829d506954f472e9e6dea.yml +60 -0
  101. data/test/support/factory.rb +45 -0
  102. data/test/support/hydra_cache.rb +59 -0
  103. data/test/test_helper.rb +36 -0
  104. metadata +330 -0
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 4.9e-05
3
+ body: "{\"success\":true}"
4
+ code: 200
5
+ connect_time: 4.8e-05
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/user/256142107/logout?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1
9
+ first_header_line: HTTP/1.1 200 OK
10
+ headers: |
11
+ HTTP/1.1 200 OK
12
+ Date: Fri, 21 Oct 2011 16:47:29 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=C8A7B7152B2226CF8B2E6A55F4C6C3C0.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=C8A7B7152B2226CF8B2E6A55F4C6C3C0.web01; Path=/
16
+ accept-charset: utf-8
17
+ P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
18
+ Access-Control-Allow-Origin: *
19
+ Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
20
+ Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=MlVwT1FBbzZkeXlCS0pjUzoxMzIwNDI1NDI2NjA0OmU0N2I4ZTgzZjdiNmU2YWY3NzEzNjBhNzZiZTQ1NWM3; Expires=Wed, 19-Oct-2016 16:50:26 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Fri, 21 Oct 2011 18:47:29 GMT
24
+ Vary: User-Agent
25
+ Transfer-Encoding: chunked
26
+ Content-Type: application/json;charset=UTF-8
27
+
28
+
29
+ headers_hash: !map:Typhoeus::NormalizedHeaderHash
30
+ Vary: User-Agent
31
+ Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
32
+ P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
33
+ Transfer-Encoding: chunked
34
+ Access-Control-Allow-Origin: "*"
35
+ Content-Type: application/json;charset=UTF-8
36
+ Date: Fri, 21 Oct 2011 16:47:29 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=C8A7B7152B2226CF8B2E6A55F4C6C3C0.web01; Path=/; Secure
41
+ - JSESSIONID=C8A7B7152B2226CF8B2E6A55F4C6C3C0.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=MlVwT1FBbzZkeXlCS0pjUzoxMzIwNDI1NDI2NjA0OmU0N2I4ZTgzZjdiNmU2YWY3NzEzNjBhNzZiZTQ1NWM3; Expires=Wed, 19-Oct-2016 16:50:26 GMT; Path=/
43
+ Expires: Fri, 21 Oct 2011 18:47:29 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 4.8e-05
49
+ pretransfer_time: 7.3e-05
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/user/256142107/logout?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1,
53
+ :headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
54
+ requested_http_method:
55
+ requested_url:
56
+ start_time:
57
+ start_transfer_time: 0.089673
58
+ status_message: OK
59
+ time: 0.089711
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Typhoeus::Response
2
+ app_connect_time: 0.724811
3
+ body: "{\"success\":true}"
4
+ code: 200
5
+ connect_time: 0.228575
6
+ curl_error_message: No error
7
+ curl_return_code: 0
8
+ effective_url: https://test.amiando.com/api/user/256142228?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1
9
+ first_header_line: HTTP/1.1 200 OK
10
+ headers: |
11
+ HTTP/1.1 200 OK
12
+ Date: Mon, 24 Oct 2011 09:36:37 GMT
13
+ Server: Apache/2.0.55 (Red Hat)
14
+ Set-Cookie: JSESSIONID=A1397AF3E229B10DBBB07D6685317C2A.web01; Path=/; Secure
15
+ Set-Cookie: JSESSIONID=A1397AF3E229B10DBBB07D6685317C2A.web01; Path=/
16
+ accept-charset: utf-8
17
+ P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
18
+ Access-Control-Allow-Origin: *
19
+ Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
20
+ Set-Cookie: ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=VzV1UzIyT01sRzRSM3ZnRDoxMzIwNjU4NzgzMDU2OmQzYWU1NjU2Njk5MjMxMzQzMzdmMTQzYWVhZjQxMmNm; Expires=Sat, 22-Oct-2016 09:39:43 GMT; Path=/
21
+ Accept-Ranges: bytes
22
+ Cache-Control: max-age=7200
23
+ Expires: Mon, 24 Oct 2011 11:36:37 GMT
24
+ Vary: User-Agent
25
+ Transfer-Encoding: chunked
26
+ Content-Type: application/json;charset=UTF-8
27
+
28
+
29
+ headers_hash: !map:Typhoeus::NormalizedHeaderHash
30
+ Vary: User-Agent
31
+ Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
32
+ P3p: policyref="/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD CON OUR IND UNI PUR COM CNT"
33
+ Transfer-Encoding: chunked
34
+ Access-Control-Allow-Origin: "*"
35
+ Content-Type: application/json;charset=UTF-8
36
+ Date: Mon, 24 Oct 2011 09:36:37 GMT
37
+ Accept-Ranges: bytes
38
+ Server: Apache/2.0.55 (Red Hat)
39
+ Set-Cookie:
40
+ - JSESSIONID=A1397AF3E229B10DBBB07D6685317C2A.web01; Path=/; Secure
41
+ - JSESSIONID=A1397AF3E229B10DBBB07D6685317C2A.web01; Path=/
42
+ - ANONYMOUS_HASHED_REMEMBER_ME_COOKIE_KEY=VzV1UzIyT01sRzRSM3ZnRDoxMzIwNjU4NzgzMDU2OmQzYWU1NjU2Njk5MjMxMzQzMzdmMTQzYWVhZjQxMmNm; Expires=Sat, 22-Oct-2016 09:39:43 GMT; Path=/
43
+ Expires: Mon, 24 Oct 2011 11:36:37 GMT
44
+ Cache-Control: max-age=7200
45
+ Accept-Charset: utf-8
46
+ http_version:
47
+ mock: false
48
+ name_lookup_time: 0.002357
49
+ pretransfer_time: 0.724814
50
+ request: |-
51
+ :method => :post,
52
+ :url => https://test.amiando.com/api/user/256142228?apikey=5Tgoob95gX5WqjF0FIjxoJHLNp7YEgAlLuXZdzMuYXaxZZaah3&format=json&version=1,
53
+ :params => {:telephone=>"0034666666666"},
54
+ :headers => {"User-Agent"=>"Typhoeus - http://github.com/dbalatero/typhoeus/tree/master"}
55
+ requested_http_method:
56
+ requested_url:
57
+ start_time:
58
+ start_transfer_time: 1.568958
59
+ status_message: OK
60
+ time: 1.700418
@@ -0,0 +1,45 @@
1
+ module Amiando
2
+ def self.Factory(name, options = {})
3
+ Factory.build(name, options)
4
+ end
5
+
6
+ module Factory
7
+ extend self
8
+
9
+ def build(name, options = {})
10
+ options = options.dup
11
+ case name
12
+ when :api_key
13
+ Amiando::ApiKey.create({:name => 'wadus'}.merge(options))
14
+ when :user
15
+ Amiando::User.create({
16
+ :first_name => 'Jorge',
17
+ :last_name => 'Llop',
18
+ :password => '123456',
19
+ :language => 'es'
20
+ }.merge(options))
21
+ when :event
22
+ Amiando::Event.create({
23
+ :host_id => Amiando::TEST_USER.id,
24
+ :title => 'Secret title',
25
+ :country => 'es',
26
+ :selected_date => Time.at(0)
27
+ }.merge(options))
28
+ when :ticket_category
29
+ event = options.delete(:event) || Amiando::Factory.create(:event)
30
+ Amiando::TicketCategory.create(
31
+ event.id, {
32
+ :name => "Name",
33
+ :price => "50",
34
+ :available => "1"
35
+ }.merge(options))
36
+ end
37
+ end
38
+
39
+ def create(name, options = {})
40
+ object = build(name, options)
41
+ Amiando.run
42
+ object
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,59 @@
1
+ module HydraCache
2
+ extend self
3
+
4
+ attr_accessor :prefix
5
+ attr_accessor :revision
6
+
7
+ def setter(request)
8
+ set_cache request
9
+ end
10
+
11
+ def getter(request)
12
+ if response = get_cache(request)
13
+ response.request = request
14
+ else
15
+ request.cache_timeout = 1
16
+ end
17
+
18
+ response
19
+ end
20
+
21
+ def get_cache(request)
22
+ filename = cache_filename(request)
23
+
24
+ if File.exist?(filename)
25
+ YAML.load_file(filename)
26
+ else
27
+ false
28
+ end
29
+ end
30
+
31
+ def set_cache(request)
32
+ filename = cache_filename(request)
33
+ response = request.response
34
+ response.request = request.inspect
35
+
36
+ FileUtils.mkdir_p(File.dirname(filename))
37
+ File.open(filename, 'w') do |f|
38
+ f << response.to_yaml
39
+ end
40
+ end
41
+
42
+ def cache_filename(request)
43
+ uri = URI.parse(request.url)
44
+ uri.query = uri.query.split('&').sort.join('&')
45
+
46
+ body = request.body.to_s.split(/\n/).map do |line|
47
+ Digest::SHA1.hexdigest(line)
48
+ end.sort.join
49
+
50
+ params = Array(request.params).map do |k,v|
51
+ Digest::SHA1.hexdigest("#{k},#{v}")
52
+ end.sort.join
53
+
54
+ digest = Digest::MD5.hexdigest("#{uri}|#{body}|#{params}")
55
+
56
+ File.join(File.dirname(__FILE__),'..','fixtures', prefix.to_s.gsub(/\W+/,'_'), "#{digest}.yml")
57
+ end
58
+
59
+ end
@@ -0,0 +1,36 @@
1
+ require 'bundler/setup'
2
+ require 'minitest/autorun'
3
+ require 'minitest/spec'
4
+ require 'webmock/minitest'
5
+ require 'amiando'
6
+ begin
7
+ require 'ruby-debug'
8
+ rescue LoadError
9
+ end
10
+
11
+ require 'support/hydra_cache'
12
+ require 'support/factory'
13
+
14
+ Amiando.hydra.cache_setter &HydraCache.method(:setter)
15
+ Amiando.hydra.cache_getter &HydraCache.method(:getter)
16
+ HydraCache.revision = 1
17
+
18
+ WebMock.allow_net_connect!
19
+
20
+ HydraCache.prefix = 'Global'
21
+
22
+ module Amiando
23
+ TEST_KEY = begin
24
+ key = Amiando::Factory(:api_key, :name => 'test key')
25
+ Amiando.run
26
+ key.key
27
+ end
28
+ TEST_USER = begin
29
+ Amiando.api_key = TEST_KEY
30
+ user = Amiando::Factory.create(:user, :username => "jorgellop-base-#{HydraCache.revision}@example.com")
31
+ Amiando.api_key = nil
32
+ user
33
+ end
34
+ end
35
+
36
+ HydraCache.prefix = nil
metadata ADDED
@@ -0,0 +1,330 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: amiando
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Jorge Dias
14
+ - Albert Llop
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2011-10-24 00:00:00 +02:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: yajl-ruby
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - "="
29
+ - !ruby/object:Gem::Version
30
+ hash: 59
31
+ segments:
32
+ - 0
33
+ - 8
34
+ - 2
35
+ version: 0.8.2
36
+ type: :runtime
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ name: typhoeus
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - "="
45
+ - !ruby/object:Gem::Version
46
+ hash: 31
47
+ segments:
48
+ - 0
49
+ - 2
50
+ - 4
51
+ version: 0.2.4
52
+ type: :runtime
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
55
+ name: minitest
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ type: :development
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: webmock
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
79
+ version: "0"
80
+ type: :development
81
+ version_requirements: *id004
82
+ - !ruby/object:Gem::Dependency
83
+ name: rake
84
+ prerelease: false
85
+ requirement: &id005 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ hash: 3
91
+ segments:
92
+ - 0
93
+ version: "0"
94
+ type: :development
95
+ version_requirements: *id005
96
+ description: A ruby client for the amiando REST API with parallel requests in mind
97
+ email:
98
+ - jorge@mrdias.com
99
+ - mrsimo@gmail.com
100
+ executables: []
101
+
102
+ extensions: []
103
+
104
+ extra_rdoc_files: []
105
+
106
+ files:
107
+ - .gitignore
108
+ - Gemfile
109
+ - Guardfile
110
+ - README.md
111
+ - Rakefile
112
+ - amiando.gemspec
113
+ - lib/amiando.rb
114
+ - lib/amiando/api_key.rb
115
+ - lib/amiando/boolean.rb
116
+ - lib/amiando/event.rb
117
+ - lib/amiando/request.rb
118
+ - lib/amiando/resource.rb
119
+ - lib/amiando/result.rb
120
+ - lib/amiando/ticket_category.rb
121
+ - lib/amiando/ticket_shop.rb
122
+ - lib/amiando/user.rb
123
+ - lib/amiando/version.rb
124
+ - test/amiando/amiando_test.rb
125
+ - test/amiando/api_key_test.rb
126
+ - test/amiando/boolean_test.rb
127
+ - test/amiando/event_test.rb
128
+ - test/amiando/resource_test.rb
129
+ - test/amiando/result_test.rb
130
+ - test/amiando/ticket_category_test.rb
131
+ - test/amiando/ticket_shop_test.rb
132
+ - test/amiando/user_test.rb
133
+ - test/fixtures/ApiKey/018fa0a2281ec9026bc122bc346366f6.yml
134
+ - test/fixtures/ApiKey/1f62195e173114773b3ec2613582ece9.yml
135
+ - test/fixtures/ApiKey/76860dbafe66279f25f56cd66b3f6ba1.yml
136
+ - test/fixtures/ApiKey/97d82801a10696aaf385bf5873034b60.yml
137
+ - test/fixtures/ApiKey/a703d1fcec1576fa8cb4ca1c5f53f545.yml
138
+ - test/fixtures/ApiKey/a948a98b153ab66978e37160f352bfbc.yml
139
+ - test/fixtures/ApiKey/b7ecc9e79dd856dec661554cd00490ed.yml
140
+ - test/fixtures/ApiKey/ded8694c21d2e1c0cec845f72ba452b5.yml
141
+ - test/fixtures/ApiKey/fa883db60c0390aa8948098d32497015.yml
142
+ - test/fixtures/Event/29a95cd545b2fba8121dce97a3c859e3.yml
143
+ - test/fixtures/Event/361940ebc5f074b1d6d96c2dbeb573ab.yml
144
+ - test/fixtures/Event/3a90bf0a17eb1d647f1496d04640797a.yml
145
+ - test/fixtures/Event/3b8ae154ad13c7152366b79c0d34b053.yml
146
+ - test/fixtures/Event/49877df5f8c251e3364a3560ab1ab46c.yml
147
+ - test/fixtures/Event/50cb3d76b40032b0fa5731ce7d2ae2f6.yml
148
+ - test/fixtures/Event/5d6016557d86e7b7ff83d07d1ef4bf44.yml
149
+ - test/fixtures/Event/67e55d2f91fa702eb8dc612cbfa661f9.yml
150
+ - test/fixtures/Event/813535fc6ee153c1a6d8e826f1fe04dc.yml
151
+ - test/fixtures/Event/8eabb0f839e03cde5818397c7121e6b4.yml
152
+ - test/fixtures/Event/96a5ccd0281a67a4bdb276516b77e756.yml
153
+ - test/fixtures/Event/9e689bd5495dc898a710cba8e6d1d779.yml
154
+ - test/fixtures/Event/a816e5664ff66b8e3d27b74435a0c123.yml
155
+ - test/fixtures/Event/c5ad7e1d1c160d7d1132297892a9ec94.yml
156
+ - test/fixtures/Event/c88c85889575508f75deee325e16e49d.yml
157
+ - test/fixtures/Event/d6a585196f1a2a94d22f22a2140d4c07.yml
158
+ - test/fixtures/Event/e00eebd4faf194fe592fa6e7615909b8.yml
159
+ - test/fixtures/Event/e753b6f404795c6635856ea43b0c7d35.yml
160
+ - test/fixtures/Event/eb341dbccefaad75aad439f10cc7d82d.yml
161
+ - test/fixtures/Event/ebab641e40ca57f8e0883d8ea003bd78.yml
162
+ - test/fixtures/Event/ef17351e4bbc84eb776fe16dda31e1e4.yml
163
+ - test/fixtures/Global/505952258352958b3b59a3812372ed02.yml
164
+ - test/fixtures/Global/d41a6ca323b5db99b4e3c06e108c52cc.yml
165
+ - test/fixtures/TicketCategory/0412c9d453efd804e171c6ba57fd980a.yml
166
+ - test/fixtures/TicketCategory/49877df5f8c251e3364a3560ab1ab46c.yml
167
+ - test/fixtures/TicketCategory/4d3f8d9ff3fb728fc37aaa6e40355a00.yml
168
+ - test/fixtures/TicketCategory/5d4fdfda01ed8193c6bbc5e089db5a4b.yml
169
+ - test/fixtures/TicketCategory/655e7a8089d67b8eeea1176398e4b289.yml
170
+ - test/fixtures/TicketCategory/a9b19dc83437d00ffc4603c04f78159f.yml
171
+ - test/fixtures/TicketCategory/bee3d6eb4247fec0849d91fb2f768524.yml
172
+ - test/fixtures/TicketCategory/c6f8563714904f006b28ac06312b107d.yml
173
+ - test/fixtures/TicketCategory/e6076c26b1b75eec091c5b91c9f75ad9.yml
174
+ - test/fixtures/TicketCategory/ebfcf07be91b8cb6d05156713592abc9.yml
175
+ - test/fixtures/TicketCategory/fe63648cf867613ec93b380e06257349.yml
176
+ - test/fixtures/TicketShop/03d35073550910e61201cf425b4ff73e.yml
177
+ - test/fixtures/TicketShop/0524d80dc6e3fad88d49adf71ffa2ab9.yml
178
+ - test/fixtures/TicketShop/09729fb0d9f1490bec3acfa0e6742190.yml
179
+ - test/fixtures/TicketShop/15c36c73e9f1d3255a61a559e3b98562.yml
180
+ - test/fixtures/TicketShop/4605dd240202cd7510bfecaf474ac615.yml
181
+ - test/fixtures/TicketShop/5c1f5488a196f44f2c18cc186816fd42.yml
182
+ - test/fixtures/TicketShop/71f80402a72be32fdd34074d4426b765.yml
183
+ - test/fixtures/TicketShop/bc24338e918c6edb07a55f4d580c5af3.yml
184
+ - test/fixtures/TicketShop/d095062bf22d235f277c979b025e5cac.yml
185
+ - test/fixtures/TicketShop/ece5150c24e5000bf4eff8dcdb6311bb.yml
186
+ - test/fixtures/User/0b4a60c6c962b4b3af9ab21832cd76b2.yml
187
+ - test/fixtures/User/0f635f4bb82fdc84af205efe76f43ae0.yml
188
+ - test/fixtures/User/1c2f2c8a5372e998f38b9d387107cee2.yml
189
+ - test/fixtures/User/1e3ab0fb92b5b1992f35256b4be7497b.yml
190
+ - test/fixtures/User/3bac6d29256056f2b9a1ea6fad26966d.yml
191
+ - test/fixtures/User/3ffaba64188557400a8678dbefd75990.yml
192
+ - test/fixtures/User/5a26c7f9edf6d6027b19b57feda4a96f.yml
193
+ - test/fixtures/User/5c17b4b5287f5d0ba390e25e99cf2270.yml
194
+ - test/fixtures/User/6501a4db53a97afe6f7b9afeeb996888.yml
195
+ - test/fixtures/User/6ad0dd77081f413e3df25d6a625d38cd.yml
196
+ - test/fixtures/User/7d493f7758d9795ad522bc827cb51b77.yml
197
+ - test/fixtures/User/89e6cb6ae39e29a154c99e0e33bb1b91.yml
198
+ - test/fixtures/User/90a3bfe214f17305e356ad3f1a9c9ce7.yml
199
+ - test/fixtures/User/92ad6537c8be5aab7cbd778d424f4944.yml
200
+ - test/fixtures/User/9485b68940997e23e3721a413d4fbdd5.yml
201
+ - test/fixtures/User/98348fe6fbecb7916faadd835916d94d.yml
202
+ - test/fixtures/User/b63d7aa4703a3140b4d9884e9f302362.yml
203
+ - test/fixtures/User/b8c3fd04d7bd0925c3ccd3a3978ab8e6.yml
204
+ - test/fixtures/User/baa28f50439b903e423dbdf918fff20b.yml
205
+ - test/fixtures/User/e51278f9f771be0c6c3ac0e4ee1b6459.yml
206
+ - test/fixtures/User/eb30a195ac7829d506954f472e9e6dea.yml
207
+ - test/support/factory.rb
208
+ - test/support/hydra_cache.rb
209
+ - test/test_helper.rb
210
+ has_rdoc: true
211
+ homepage: ""
212
+ licenses: []
213
+
214
+ post_install_message:
215
+ rdoc_options: []
216
+
217
+ require_paths:
218
+ - lib
219
+ required_ruby_version: !ruby/object:Gem::Requirement
220
+ none: false
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ hash: 3
225
+ segments:
226
+ - 0
227
+ version: "0"
228
+ required_rubygems_version: !ruby/object:Gem::Requirement
229
+ none: false
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ hash: 3
234
+ segments:
235
+ - 0
236
+ version: "0"
237
+ requirements: []
238
+
239
+ rubyforge_project: amiando
240
+ rubygems_version: 1.3.7
241
+ signing_key:
242
+ specification_version: 3
243
+ summary: A ruby client for the amiando REST API
244
+ test_files:
245
+ - test/amiando/amiando_test.rb
246
+ - test/amiando/api_key_test.rb
247
+ - test/amiando/boolean_test.rb
248
+ - test/amiando/event_test.rb
249
+ - test/amiando/resource_test.rb
250
+ - test/amiando/result_test.rb
251
+ - test/amiando/ticket_category_test.rb
252
+ - test/amiando/ticket_shop_test.rb
253
+ - test/amiando/user_test.rb
254
+ - test/fixtures/ApiKey/018fa0a2281ec9026bc122bc346366f6.yml
255
+ - test/fixtures/ApiKey/1f62195e173114773b3ec2613582ece9.yml
256
+ - test/fixtures/ApiKey/76860dbafe66279f25f56cd66b3f6ba1.yml
257
+ - test/fixtures/ApiKey/97d82801a10696aaf385bf5873034b60.yml
258
+ - test/fixtures/ApiKey/a703d1fcec1576fa8cb4ca1c5f53f545.yml
259
+ - test/fixtures/ApiKey/a948a98b153ab66978e37160f352bfbc.yml
260
+ - test/fixtures/ApiKey/b7ecc9e79dd856dec661554cd00490ed.yml
261
+ - test/fixtures/ApiKey/ded8694c21d2e1c0cec845f72ba452b5.yml
262
+ - test/fixtures/ApiKey/fa883db60c0390aa8948098d32497015.yml
263
+ - test/fixtures/Event/29a95cd545b2fba8121dce97a3c859e3.yml
264
+ - test/fixtures/Event/361940ebc5f074b1d6d96c2dbeb573ab.yml
265
+ - test/fixtures/Event/3a90bf0a17eb1d647f1496d04640797a.yml
266
+ - test/fixtures/Event/3b8ae154ad13c7152366b79c0d34b053.yml
267
+ - test/fixtures/Event/49877df5f8c251e3364a3560ab1ab46c.yml
268
+ - test/fixtures/Event/50cb3d76b40032b0fa5731ce7d2ae2f6.yml
269
+ - test/fixtures/Event/5d6016557d86e7b7ff83d07d1ef4bf44.yml
270
+ - test/fixtures/Event/67e55d2f91fa702eb8dc612cbfa661f9.yml
271
+ - test/fixtures/Event/813535fc6ee153c1a6d8e826f1fe04dc.yml
272
+ - test/fixtures/Event/8eabb0f839e03cde5818397c7121e6b4.yml
273
+ - test/fixtures/Event/96a5ccd0281a67a4bdb276516b77e756.yml
274
+ - test/fixtures/Event/9e689bd5495dc898a710cba8e6d1d779.yml
275
+ - test/fixtures/Event/a816e5664ff66b8e3d27b74435a0c123.yml
276
+ - test/fixtures/Event/c5ad7e1d1c160d7d1132297892a9ec94.yml
277
+ - test/fixtures/Event/c88c85889575508f75deee325e16e49d.yml
278
+ - test/fixtures/Event/d6a585196f1a2a94d22f22a2140d4c07.yml
279
+ - test/fixtures/Event/e00eebd4faf194fe592fa6e7615909b8.yml
280
+ - test/fixtures/Event/e753b6f404795c6635856ea43b0c7d35.yml
281
+ - test/fixtures/Event/eb341dbccefaad75aad439f10cc7d82d.yml
282
+ - test/fixtures/Event/ebab641e40ca57f8e0883d8ea003bd78.yml
283
+ - test/fixtures/Event/ef17351e4bbc84eb776fe16dda31e1e4.yml
284
+ - test/fixtures/Global/505952258352958b3b59a3812372ed02.yml
285
+ - test/fixtures/Global/d41a6ca323b5db99b4e3c06e108c52cc.yml
286
+ - test/fixtures/TicketCategory/0412c9d453efd804e171c6ba57fd980a.yml
287
+ - test/fixtures/TicketCategory/49877df5f8c251e3364a3560ab1ab46c.yml
288
+ - test/fixtures/TicketCategory/4d3f8d9ff3fb728fc37aaa6e40355a00.yml
289
+ - test/fixtures/TicketCategory/5d4fdfda01ed8193c6bbc5e089db5a4b.yml
290
+ - test/fixtures/TicketCategory/655e7a8089d67b8eeea1176398e4b289.yml
291
+ - test/fixtures/TicketCategory/a9b19dc83437d00ffc4603c04f78159f.yml
292
+ - test/fixtures/TicketCategory/bee3d6eb4247fec0849d91fb2f768524.yml
293
+ - test/fixtures/TicketCategory/c6f8563714904f006b28ac06312b107d.yml
294
+ - test/fixtures/TicketCategory/e6076c26b1b75eec091c5b91c9f75ad9.yml
295
+ - test/fixtures/TicketCategory/ebfcf07be91b8cb6d05156713592abc9.yml
296
+ - test/fixtures/TicketCategory/fe63648cf867613ec93b380e06257349.yml
297
+ - test/fixtures/TicketShop/03d35073550910e61201cf425b4ff73e.yml
298
+ - test/fixtures/TicketShop/0524d80dc6e3fad88d49adf71ffa2ab9.yml
299
+ - test/fixtures/TicketShop/09729fb0d9f1490bec3acfa0e6742190.yml
300
+ - test/fixtures/TicketShop/15c36c73e9f1d3255a61a559e3b98562.yml
301
+ - test/fixtures/TicketShop/4605dd240202cd7510bfecaf474ac615.yml
302
+ - test/fixtures/TicketShop/5c1f5488a196f44f2c18cc186816fd42.yml
303
+ - test/fixtures/TicketShop/71f80402a72be32fdd34074d4426b765.yml
304
+ - test/fixtures/TicketShop/bc24338e918c6edb07a55f4d580c5af3.yml
305
+ - test/fixtures/TicketShop/d095062bf22d235f277c979b025e5cac.yml
306
+ - test/fixtures/TicketShop/ece5150c24e5000bf4eff8dcdb6311bb.yml
307
+ - test/fixtures/User/0b4a60c6c962b4b3af9ab21832cd76b2.yml
308
+ - test/fixtures/User/0f635f4bb82fdc84af205efe76f43ae0.yml
309
+ - test/fixtures/User/1c2f2c8a5372e998f38b9d387107cee2.yml
310
+ - test/fixtures/User/1e3ab0fb92b5b1992f35256b4be7497b.yml
311
+ - test/fixtures/User/3bac6d29256056f2b9a1ea6fad26966d.yml
312
+ - test/fixtures/User/3ffaba64188557400a8678dbefd75990.yml
313
+ - test/fixtures/User/5a26c7f9edf6d6027b19b57feda4a96f.yml
314
+ - test/fixtures/User/5c17b4b5287f5d0ba390e25e99cf2270.yml
315
+ - test/fixtures/User/6501a4db53a97afe6f7b9afeeb996888.yml
316
+ - test/fixtures/User/6ad0dd77081f413e3df25d6a625d38cd.yml
317
+ - test/fixtures/User/7d493f7758d9795ad522bc827cb51b77.yml
318
+ - test/fixtures/User/89e6cb6ae39e29a154c99e0e33bb1b91.yml
319
+ - test/fixtures/User/90a3bfe214f17305e356ad3f1a9c9ce7.yml
320
+ - test/fixtures/User/92ad6537c8be5aab7cbd778d424f4944.yml
321
+ - test/fixtures/User/9485b68940997e23e3721a413d4fbdd5.yml
322
+ - test/fixtures/User/98348fe6fbecb7916faadd835916d94d.yml
323
+ - test/fixtures/User/b63d7aa4703a3140b4d9884e9f302362.yml
324
+ - test/fixtures/User/b8c3fd04d7bd0925c3ccd3a3978ab8e6.yml
325
+ - test/fixtures/User/baa28f50439b903e423dbdf918fff20b.yml
326
+ - test/fixtures/User/e51278f9f771be0c6c3ac0e4ee1b6459.yml
327
+ - test/fixtures/User/eb30a195ac7829d506954f472e9e6dea.yml
328
+ - test/support/factory.rb
329
+ - test/support/hydra_cache.rb
330
+ - test/test_helper.rb