adyen-admin 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. data/.gitignore +5 -0
  2. data/.travis.yml +3 -0
  3. data/CHANGES.md +16 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +26 -0
  6. data/README.md +57 -0
  7. data/Rakefile +24 -0
  8. data/VERSION +1 -0
  9. data/adyen-admin.gemspec +25 -0
  10. data/lib/adyen-admin/client.rb +26 -0
  11. data/lib/adyen-admin/skin.rb +180 -0
  12. data/lib/adyen-admin.rb +16 -0
  13. data/spec/adyen-admin/client_spec.rb +21 -0
  14. data/spec/adyen-admin/skin_spec.rb +177 -0
  15. data/spec/fixtures/cassettes/Adyen_Admin_Client/_login/passes_with_correct_username_password.yml +661 -0
  16. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_all/returns_the_skins.yml +269 -0
  17. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_download/gets_the_file.yml +275 -0
  18. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_test_url/returns_url_to_test.yml +941 -0
  19. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_upload/valid_set/increases_version.yml +7769 -0
  20. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_live_value.yml +77 -0
  21. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_test_value.yml +77 -0
  22. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_uploaded_value.yml +666 -0
  23. data/spec/fixtures/cassettes/login.yml +668 -0
  24. data/spec/fixtures/skins/DV3tf95f/css/screen.css +262 -0
  25. data/spec/fixtures/skins/DV3tf95f/inc/order_data.txt +1 -0
  26. data/spec/fixtures/skins/JH0815/css/screen.css +262 -0
  27. data/spec/fixtures/skins/JH0815/skin.html.erb +13 -0
  28. data/spec/fixtures/skins/base/css/print.css +7 -0
  29. data/spec/fixtures/skins/base/css/screen_ie6.css +1 -0
  30. data/spec/fixtures/skins/base/img/Airliner.airjamaica.a340.arp.750pix.jpg +0 -0
  31. data/spec/fixtures/skins/base/img/Eurofighter.jpg +0 -0
  32. data/spec/fixtures/skins/base/img/bg_gr.jpg +0 -0
  33. data/spec/fixtures/skins/base/img/blog_gr.jpg +0 -0
  34. data/spec/fixtures/skins/base/img/category.gif +0 -0
  35. data/spec/fixtures/skins/base/img/mig.jpg +0 -0
  36. data/spec/fixtures/skins/base/img/top1.jpg +0 -0
  37. data/spec/fixtures/skins/base/img/top2.jpg +0 -0
  38. data/spec/fixtures/skins/base/img/top3.jpg +0 -0
  39. data/spec/fixtures/skins/base/inc/cfooter.txt +15 -0
  40. data/spec/fixtures/skins/base/inc/cheader.txt +11 -0
  41. data/spec/fixtures/skins/base/inc/pmfooter.txt +1 -0
  42. data/spec/fixtures/skins/base/inc/pmheader.txt +4 -0
  43. data/spec/fixtures/skins/base/res/resources.properties +0 -0
  44. data/spec/fixtures/skins/example-7hFAQnmt/css/print.css +17 -0
  45. data/spec/fixtures/skins/example-7hFAQnmt/css/screen.css +704 -0
  46. data/spec/fixtures/skins/example-7hFAQnmt/css/screen_ie6.css +7 -0
  47. data/spec/fixtures/skins/example-7hFAQnmt/img/banner_top.png +0 -0
  48. data/spec/fixtures/skins/example-7hFAQnmt/img/bg.gif +0 -0
  49. data/spec/fixtures/skins/example-7hFAQnmt/img/bg_buttons.png +0 -0
  50. data/spec/fixtures/skins/example-7hFAQnmt/img/button_template.xcf +0 -0
  51. data/spec/fixtures/skins/example-7hFAQnmt/img/gradient.png +0 -0
  52. data/spec/fixtures/skins/example-7hFAQnmt/img/logo.png +0 -0
  53. data/spec/fixtures/skins/example-7hFAQnmt/img/logo.xcf +0 -0
  54. data/spec/fixtures/skins/example-7hFAQnmt/inc/cfooter.txt +1 -0
  55. data/spec/fixtures/skins/example-7hFAQnmt/inc/cheader.txt +2 -0
  56. data/spec/fixtures/skins/example-7hFAQnmt/inc/pmfooter.txt +1 -0
  57. data/spec/fixtures/skins/example-7hFAQnmt/inc/pmheader.txt +2 -0
  58. data/spec/fixtures/skins/example-7hFAQnmt/metadata.yml +5 -0
  59. data/spec/spec_helper.rb +21 -0
  60. metadata +228 -0
@@ -0,0 +1,77 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://live.adyen.com/hpp/version.shtml?skinCode=Kx9axnRf
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ User-Agent:
13
+ - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
14
+ Accept-Encoding:
15
+ - gzip,deflate,identity
16
+ Accept-Charset:
17
+ - ISO-8859-1,utf-8;q=0.7,*;q=0.7
18
+ Accept-Language:
19
+ - en-us,en;q=0.5
20
+ Host:
21
+ - live.adyen.com
22
+ Connection:
23
+ - keep-alive
24
+ Keep-Alive:
25
+ - 300
26
+ response:
27
+ status:
28
+ code: 200
29
+ message: OK
30
+ headers:
31
+ Date:
32
+ - Tue, 10 Apr 2012 17:04:20 GMT
33
+ Server:
34
+ - Apache
35
+ Set-Cookie:
36
+ - JSESSIONID=14ADA2D0153C18695283DD9EF94A3688.live6e; Path=/hpp/; Secure; HttpOnly
37
+ P3p:
38
+ - policyref="/w3c/policy.xml", CP="NOI DSP COR CURa ADMa DEVa OUR NOR BUS FIN STA"
39
+ Cache-Control:
40
+ - no-cache, no-store, must-revalidate, max-age=0, post-check=0, pre-check=0
41
+ Pragma:
42
+ - no-cache
43
+ Expires:
44
+ - "-1"
45
+ Keep-Alive:
46
+ - timeout=10, max=250
47
+ Connection:
48
+ - Keep-Alive
49
+ Transfer-Encoding:
50
+ - chunked
51
+ Content-Type:
52
+ - text/html;charset=UTF-8
53
+ body:
54
+ encoding: US-ASCII
55
+ string: |-
56
+ <html>
57
+ <head>
58
+ <title>Version</title>
59
+ <style type="text/css">
60
+ body {
61
+ font-family: sans-serif;
62
+ font-size: 0.85em;
63
+ font-weight: bold;
64
+ }
65
+ </style>
66
+ </head>
67
+ <body>
68
+ <p>
69
+ Version:0
70
+ <br />
71
+ Modification Date:unknown
72
+ </p>
73
+ </body>
74
+ </html>
75
+ http_version:
76
+ recorded_at: Tue, 10 Apr 2012 17:04:20 GMT
77
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,77 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://test.adyen.com/hpp/version.shtml?skinCode=Kx9axnRf
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ User-Agent:
13
+ - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
14
+ Accept-Encoding:
15
+ - gzip,deflate,identity
16
+ Accept-Charset:
17
+ - ISO-8859-1,utf-8;q=0.7,*;q=0.7
18
+ Accept-Language:
19
+ - en-us,en;q=0.5
20
+ Host:
21
+ - test.adyen.com
22
+ Connection:
23
+ - keep-alive
24
+ Keep-Alive:
25
+ - 300
26
+ response:
27
+ status:
28
+ code: 200
29
+ message: OK
30
+ headers:
31
+ Date:
32
+ - Tue, 10 Apr 2012 17:04:20 GMT
33
+ Server:
34
+ - Apache
35
+ Set-Cookie:
36
+ - JSESSIONID=DDDAA0BDFEDBA22D64E1251CC52E70E7.test4e; Path=/hpp/; Secure; HttpOnly
37
+ P3p:
38
+ - policyref="/w3c/policy.xml", CP="NOI DSP COR CURa ADMa DEVa OUR NOR BUS FIN STA"
39
+ Cache-Control:
40
+ - no-cache, no-store, must-revalidate, max-age=0, post-check=0, pre-check=0
41
+ Pragma:
42
+ - no-cache
43
+ Expires:
44
+ - "-1"
45
+ Keep-Alive:
46
+ - timeout=15, max=100
47
+ Connection:
48
+ - Keep-Alive
49
+ Transfer-Encoding:
50
+ - chunked
51
+ Content-Type:
52
+ - text/html;charset=UTF-8
53
+ body:
54
+ encoding: US-ASCII
55
+ string: |-
56
+ <html>
57
+ <head>
58
+ <title>Version</title>
59
+ <style type="text/css">
60
+ body {
61
+ font-family: sans-serif;
62
+ font-size: 0.85em;
63
+ font-weight: bold;
64
+ }
65
+ </style>
66
+ </head>
67
+ <body>
68
+ <p>
69
+ Version:2
70
+ <br />
71
+ Modification Date:2012-04-05T15:36:56.43Z
72
+ </p>
73
+ </body>
74
+ </html>
75
+ http_version:
76
+ recorded_at: Tue, 10 Apr 2012 17:04:20 GMT
77
+ recorded_with: VCR 2.0.1