dnsimple 2.0.0.a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.rspec +1 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +7 -0
  7. data/CHANGELOG.markdown +50 -0
  8. data/Gemfile +3 -0
  9. data/LICENSE +22 -0
  10. data/README.markdown +60 -0
  11. data/Rakefile +33 -0
  12. data/dnsimple-ruby.gemspec +26 -0
  13. data/lib/dnsimple-ruby.rb +1 -0
  14. data/lib/dnsimple.rb +33 -0
  15. data/lib/dnsimple/base.rb +10 -0
  16. data/lib/dnsimple/certificate.rb +129 -0
  17. data/lib/dnsimple/client.rb +144 -0
  18. data/lib/dnsimple/contact.rb +154 -0
  19. data/lib/dnsimple/domain.rb +217 -0
  20. data/lib/dnsimple/error.rb +21 -0
  21. data/lib/dnsimple/extended_attribute.rb +52 -0
  22. data/lib/dnsimple/record.rb +94 -0
  23. data/lib/dnsimple/service.rb +42 -0
  24. data/lib/dnsimple/template.rb +63 -0
  25. data/lib/dnsimple/template_record.rb +80 -0
  26. data/lib/dnsimple/transfer_order.rb +34 -0
  27. data/lib/dnsimple/user.rb +26 -0
  28. data/lib/dnsimple/version.rb +3 -0
  29. data/spec/ci/.dnsimple.test +3 -0
  30. data/spec/dnsimple/certificate_spec.rb +56 -0
  31. data/spec/dnsimple/client_spec.rb +107 -0
  32. data/spec/dnsimple/contact_spec.rb +45 -0
  33. data/spec/dnsimple/domain_spec.rb +133 -0
  34. data/spec/dnsimple/extended_attributes_spec.rb +54 -0
  35. data/spec/dnsimple/record_spec.rb +51 -0
  36. data/spec/dnsimple/template_spec.rb +31 -0
  37. data/spec/dnsimple/user_spec.rb +31 -0
  38. data/spec/files/account/user/success.http +19 -0
  39. data/spec/files/certificates/index/success.http +19 -0
  40. data/spec/files/certificates/show/notfound.http +17 -0
  41. data/spec/files/certificates/show/success.http +19 -0
  42. data/spec/files/contacts/show/notfound.http +17 -0
  43. data/spec/files/contacts/show/success.http +19 -0
  44. data/spec/files/domains/auto_renewal_disable/notfound.http +21 -0
  45. data/spec/files/domains/auto_renewal_disable/success.http +23 -0
  46. data/spec/files/domains/auto_renewal_enable/notfound.http +21 -0
  47. data/spec/files/domains/auto_renewal_enable/success.http +23 -0
  48. data/spec/files/domains/show/notfound.http +17 -0
  49. data/spec/files/domains/show/success.http +19 -0
  50. data/spec/files/extended_attributes/ca.http +19 -0
  51. data/spec/files/extended_attributes/com.http +19 -0
  52. data/spec/files/extended_attributes/success.http +19 -0
  53. data/spec/files/records/index/success.http +19 -0
  54. data/spec/files/records/show/notfound.http +17 -0
  55. data/spec/files/records/show/success.http +19 -0
  56. data/spec/files/templates/show/notfound.http +17 -0
  57. data/spec/files/templates/show/success.http +19 -0
  58. data/spec/spec_helper.rb +34 -0
  59. data/spec/support/helpers.rb +15 -0
  60. data/spec/support/webmock.rb +11 -0
  61. metadata +224 -0
@@ -0,0 +1,23 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.4.7
3
+ Date: Tue, 01 Jul 2014 16:15:42 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ X-UA-Compatible: chrome=1
13
+ Access-Control-Allow-Origin: *
14
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
15
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
16
+ Content-Security-Policy: default-src 'self'; connect-src 'self'; font-src 'self' data: netdna.bootstrapcdn.com *.edgecastcdn.net; frame-src 'self'; img-src 'self' data: *.nr-data.net; media-src 'self'; object-src 'self'; script-src 'self' data: 'unsafe-inline' 'unsafe-eval' *.getdrip.com *.visualwebsiteoptimizer.com *.doubleclick.net *.pathful.com *.newrelic.com; style-src 'self' data: 'unsafe-inline' 'unsafe-eval' netdna.bootstrapcdn.com cloud.webtype.com cloud.typography.com;
17
+ ETag: "bd3e2e772876c2061a4953449963473a"
18
+ Cache-Control: max-age=0, private, must-revalidate
19
+ X-Request-Id: 55f7d890-6971-4b50-8ea9-802e3d426de8
20
+ X-Runtime: 1.005223
21
+ Strict-Transport-Security: max-age=315360000
22
+
23
+ {"domain":{"id":227,"user_id":19,"registrant_id":28,"name":"example-1389823304.com","unicode_name":"example-1389823304.com","token":"api-token","state":"registered","language":null,"lockable":true,"auto_renew":false,"whois_protected":false,"record_count":7,"service_count":0,"expires_on":"2015-01-16","created_at":"2014-01-15T22:01:55.494Z","updated_at":"2014-07-01T16:15:42.350Z","parsed_expiration_date":"2015-01-16T22:56:00.000Z","expires_at":"1/16/2015 10:56:00 PM","name_server_status":null,"private_whois?":false}}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx/1.4.7
3
+ Date: Tue, 01 Jul 2014 16:16:24 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ X-UA-Compatible: chrome=1
13
+ Access-Control-Allow-Origin: *
14
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
15
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
16
+ Content-Security-Policy: default-src 'self'; connect-src 'self'; font-src 'self' data: netdna.bootstrapcdn.com *.edgecastcdn.net; frame-src 'self'; img-src 'self' data: *.nr-data.net; media-src 'self'; object-src 'self'; script-src 'self' data: 'unsafe-inline' 'unsafe-eval' *.getdrip.com *.visualwebsiteoptimizer.com *.doubleclick.net *.pathful.com *.newrelic.com; style-src 'self' data: 'unsafe-inline' 'unsafe-eval' netdna.bootstrapcdn.com cloud.webtype.com cloud.typography.com;
17
+ Cache-Control: no-cache
18
+ X-Request-Id: a1ec9a9a-6d0f-44a4-9e37-8a4adc7f4d2a
19
+ X-Runtime: 0.022126
20
+
21
+ {"message":"Domain `example.com' not found","error":"Domain `example.com' not found"}
@@ -0,0 +1,23 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.4.7
3
+ Date: Tue, 01 Jul 2014 16:15:06 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ X-UA-Compatible: chrome=1
13
+ Access-Control-Allow-Origin: *
14
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
15
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
16
+ Content-Security-Policy: default-src 'self'; connect-src 'self'; font-src 'self' data: netdna.bootstrapcdn.com *.edgecastcdn.net; frame-src 'self'; img-src 'self' data: *.nr-data.net; media-src 'self'; object-src 'self'; script-src 'self' data: 'unsafe-inline' 'unsafe-eval' *.getdrip.com *.visualwebsiteoptimizer.com *.doubleclick.net *.pathful.com *.newrelic.com; style-src 'self' data: 'unsafe-inline' 'unsafe-eval' netdna.bootstrapcdn.com cloud.webtype.com cloud.typography.com;
17
+ ETag: "ab6304c604f60fabe9a0db5b5d2c7a27"
18
+ Cache-Control: max-age=0, private, must-revalidate
19
+ X-Request-Id: 03f71270-5c5b-44e1-9542-20a21d213222
20
+ X-Runtime: 3.279343
21
+ Strict-Transport-Security: max-age=315360000
22
+
23
+ {"domain":{"id":227,"user_id":19,"registrant_id":28,"name":"example-1389823304.com","unicode_name":"example-1389823304.com","token":"api-token","state":"registered","language":null,"lockable":true,"auto_renew":true,"whois_protected":false,"record_count":7,"service_count":0,"expires_on":"2015-01-16","created_at":"2014-01-15T22:01:55.494Z","updated_at":"2014-07-01T16:15:06.485Z","parsed_expiration_date":"2015-01-16T22:56:00.000Z","expires_at":"1/16/2015 10:56:00 PM","name_server_status":null,"private_whois?":false}}
@@ -0,0 +1,17 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 19:03:59 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ Cache-Control: no-cache
14
+ X-Request-Id: ef98925c644549114ccc4cb17f3c8c75
15
+ X-Runtime: 0.029489
16
+
17
+ {"error":"Couldn't find Domain with name = test1383931357.com"}
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 19:03:37 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ ETag: "3f9496912d04f422c7f083b93bd6e9e3"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: eec6552de5a2aa5ae570139b388ffb9b
16
+ X-Runtime: 0.046892
17
+ Strict-Transport-Security: max-age=315360000
18
+
19
+ {"domain":{"id":6,"user_id":2,"registrant_id":2,"name":"test-1383931357.com","unicode_name":"test-1383931357.com","token":"api-token","state":"registered","language":null,"lockable":true,"auto_renew":true,"whois_protected":false,"record_count":7,"service_count":0,"expires_on":"2015-11-08","created_at":"2013-11-08T17:22:48Z","updated_at":"2014-01-14T18:27:04Z","parsed_expiration_date":"2015-11-08T17:23:00Z","expires_at":"11/8/2015 5:23:00 PM","name_server_status":null,"private_whois?":false}}
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 18:16:58 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ ETag: "9d70235fec764f238bc14ef87c100a64"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: 16326ac884cfb59502a4511bf3092bf6
16
+ X-Runtime: 1.269543
17
+ Strict-Transport-Security: max-age=315360000
18
+
19
+ [{"name":"cira_legal_type","description":"Legal type of registrant contact","required":true,"options":[{"title":"Corporation","value":"CCO","description":"A corporation under the laws of Canada or any province or territory of Canada, Charities, Cooperative, Council.<br/>Requirements: Registrant name must be the full legal name of the corporation and must be followed by the jurisdiction of incorporation (eg. Canada, Ontario, NWT...), unless it is obvious from the corporation's name. Canadian Internet Registration Authority (Canada). For Charities, the NFP should be included in the organization name. If this is a not-for-profit organization, you are also required to submit the registration number i.e.: 123456789 RR0001"},{"title":"Canadian Citizen","value":"CCT","description":"A Canadian citizen of the age of majority under the laws of the province or territory in Canada in which he or she resides or last resided.<br/>Requirements: The Registrant's name must be the full legal name of the Canadian Citizen who will hold the domain name registration as the name would appear on a passport, driver's license or other identification document issued by a government. The name can be followed by a space and "o/a xxxx" where "o/a" stands for "Operating As" and "xxxx" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. "John Doe o/a Doe Consulting Group"). The name may also be followed by a space and a degree granted to the registrant (eg. PhD.) Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark('), hyphen(-), period(.)."},{"title":"Canadian Resident","value":"RES","description":"A permanent resident as defined in the Immigration and Refugee Protection Act (Canada) S.C. 2001, c.27, as amended from time to time, who is "ordinarily resident" (as defined below) in Canada and of the age of majority under the laws of the province or territory in Canada in which he or she resides or last resided. "Ordinarily resident in Canada" means an individual who resides in Canada for more than 183 days in the twelve month period immediately preceding the date of the applicable request for registration of the .ca domain name or sub-domain name and in each twelve month period thereafter for the duration of the domain name registration.<br/>Requirements: The Registrant's name must be the full legal name of the Permanent Resident who will hold the domain name registration as the name would appear on a driver's license or other identification document issued by a government. The full legal name may be followed by a space and "o/a xxxx" where "o/a" stands for "Operating As" and "xxxx" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. "John Doe o/a Doe Consulting Group"). The name may also be followed by a space and a degree granted to the registrant by a recognized degree granting institution or a recognized professional designation which the registrant has the right to use (eg. PhD, MD, DDS.) Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark('), hyphen(-), period(.)."},{"title":"Government Entity","value":"GOV","description":"Her Majesty the Queen in right of Canada, a province or a territory; an agent of Her Majesty the Queen in right of Canada, of a province or of a territory; a federal, provincial or territorial Crown corporation, government agency or government entity; or a regional, municipal or local area government.<br />Requirements: The Registrant's name must be the complete official name of the entity that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the official name in parentheses). If the Registrant is not a government, the Registrant's name must be followed by the name of the jurisdiction (eg. Canada, province, territory, municipality, etc) to which the Registrant is related."},{"title":"Educational","value":"EDU","description":"(i) A university or college which is located in Canada and which is authorized or recognized as a university or college under an Act of the legislature of a province or territory of Canada; or<br />(ii) A college, post-secondary school, vocational school, secondary school, pre-school or other school or educational institution which is located in Canada and which is recognized by the educational authorities of a province or territory of Canada or licensed under or maintained by an Act of Parliament of Canada or of the legislature of a province or territory of Canada.<br />Requirements: The Registrant's name must be the complete official name of the institution that will hold the domain name registration, without any abbreviations. A common abbreviation may follow the official name in parentheses. The Registrant name must be followed by the jurisdiction (e.g. name of province, municipality) in which the institution is accredited if not obvious from the Registrant's name."},{"title":"Unincorporated Association","value":"ASS","description":"This Registrant Type is principally intended for religious congregations, social and sports clubs and community groups, council (not registered) or society (not registered) which are based and operating in Canada. An unincorporated organization, association or club:<br />(i) At least 80% of whose members: (A) are ordinarily resident in Canada (if such members are individuals); or (B) meet the requirements of any one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, Partnership Registered in Canada, Trust established in Canada, Legal Representative of a Canadian Citizen or Permanent Resident; and<br />(ii) At least 80% of whose directors, officers, employees, managers, administrators or other representatives are ordinarily resident in Canada.<br />Requirements: The Registrant's name must be the complete name of the association that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the complete name in parentheses)."},{"title":"Hospital","value":"HOP","description":"A hospital which is located in Canada and which is licensed, authorized or approved to operate as a hospital under an Act of the legislature of a province or territory of Canada<br />Requirements: The Registrant's name must be the complete official name of the hospital that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the complete name in parentheses.) The Registrant's name must be followed by the jurisdiction (eg. name of province) which accredited the hospital if not obvious from the Registrant's name."},{"title":"Partnership","value":"PRT","description":"A partnership, more than 66 2/3 per cent of whose partners meet the requirements of one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, Trust established in Canada or a Legal Representative of a Canadian Citizen or Permanent Resident, which is registered as a partnership under the laws of any province or territory of Canada.<br />Requirements: The Registrant's name must be the registered name of the partnership that will hold the domain name registration. The Registrant name must be followed by the jurisdiction of registration (eg. Alberta) and the registration number."},{"title":"Trade-mark","value":"TDM","description":"A Person which does not fall under any other registrant type, but which is the owner of a trade-mark which is the subject of a registration under the Trade-marks Act (Canada) R.S.C. 1985, c.T-13 as amended from time to time, but in this case such permission is limited to a request to register a .ca domain name consisting of or including the exact word component of that registered trade-mark.<br />This Registrant Type is only intended for Registrants which do not meet the requirements associated with any other registrant type but which have a trade-mark registered in Canada. (Trade-marks subject of trade-mark applications and trade-marks registered in other jurisdictions, such as the United States, do not qualify.)<br />The domain name to be registered must include the trade-mark. (eg. If the trade-mark is AVEA this type of registrant can register avea.ca or aveaisus.ca but not xyz.ca)."},{"title":"Trade Union","value":"TRD","description":"A trade union which is recognized by a labour board under the laws of Canada or any province or territory of Canada and which has its head office in Canada.<br />Requirements: The Registrant's name must be the complete official name of the trade union that will hold the domain name registration, without abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must be followed by the jurisdiction in Canada which recognizes it (if it is not obvious from the Registrant's name.)"},{"title":"Political Party","value":"PLT","description":"A political party registered under a relevant electoral law of Canada or any province or territory of Canada<br />Requirements: The Registrant's name must be the complete official name of the political party holding the domain name registration, without abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must also by followed by the jurisdiction in Canada in which it is registered (if it is not obvious from the official name)."},{"title":"Library, Archive or Museum","value":"LAM","description":"An institution, whether or not incorporated, that:<br />(i) is located in Canada; and<br />(ii) is not established or conducted for profit or does not form part of, or is not administered or directly or indirectly controlled by, a body that is established or conducted for profit in which is held and maintained a collection of documents and other materials that is open to the public or to researchers.<br />Requirements: The Registrant's name must be the complete legal name of the institution which will hold the domain name registration without abbreviations. (A common abbreviation may follow the complete name in parentheses.)"},{"title":"Trust","value":"TRS","description":"A trust established and subsisting under the laws of a province or territory of Canada, more than 66 2/3 % of whose trustees meet the requirements of one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, or a Legal Representative of a Canadian Citizen or Permanent Resident.<br />Requirements: The Registrant's name must be the complete official name of the trust, without any abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must also indicate the total percentage of the trustees that meet one or more of the following requirements: Canadian citizen, permanent resident, Canadian corporation, legal representative."},{"title":"Aboriginal Peoples","value":"ABO","description":"Any individual belonging to any Inuit, First Nation, Metis or other people indigenous to Canada.<br />Requirements: The Registrant's name must be the full legal name of the Aboriginal Person applying for the Registration as it would appear on a driver's license or other identification document issued by government.<br />The Registrant may enter its full legal name followed by a space and "o/a xxxx" where "o/a" stands for "Operating As" and "xxxx" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. "John Doe o/a Doe Consulting Group"). The name may also be followed by a space and a degree granted to the registrant by a recognized degree granting institution or a recognized professional designation which the registrant has the right to use (eg. PhD, MD, DDS.)<br />Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark(''), hyphen(-), period(.).<br/>Groups: Any Inuit, First Nation, Metis or other people indigenous to Canada, and any collectivity of such Aboriginal peoples.<br />Requirements: The Registrant's name must be the complete official name of the indigenous people a collectivity of Aboriginal Persons or, if there is no official name, the name by which the collectivity is commonly known."},{"title":"Indian Band","value":"INB","description":"Any Indian band as defined in the Indian Act, R.S.C. 1985, c. I-5, as amended from time to time, and any group of Indian bands;<br />Requirements: The name of Registrant must be the Indian Band Name as registered with the Department of Indian and Northern Affairs, Canada."},{"title":"Legal Representative","value":"LGR","description":"An executor, administrator or other legal representative of a Person listed as a Canadian Citizen or Permanent Resident of Canada.<br />Note: This registrant type is only available to a person or entity that has been appointed by legal process to represent an individual who is not competent to represent him or herself. It is not available to anyone who represents a Canadian or foreign corporation in any capacity.<br />Requirements: The Registrant's name must be the full legal name of the Canadian Citizen or Permanent Resident of Canada who is being represented as it would appear on a passport, driver's license or other government identification document. This must be followed by the full legal name and capacity of at least one of the official representatives. The representative should be identified as the administrative contact for these registrations."},{"title":"Official Mark","value":"OMK","description":"A Person which does not meet the requirements for any other Registrant Type, but which is a Person intended to be protected by Subsection 9(1) of the Trade-Marks Act (Canada) at whose request the Registrar of Trade-marks has published notice of adoption of any badge, crest, emblem, official mark or other mark pursuant to Subsection 9(1), but in this case such permission is limited to a request to register a .ca domain name consisting of or including the exact word component of such badge, crest, emblem, official mark or other mark in respect of which such Person requested publications.<br />Notes: This registrant type is only intended for Registrants which do not meet the requirements associated with any other registrant type but which have an Official Mark registered in Canada. The domain name must include the official mark (eg. If the official mark is WIPO, the registrant can register wipo.ca but not intellectual-property.ca)<br />Requirements: The Registrant's name must be the complete official name of the entity holding the domain name registration without any abbreviations. (A common abbreviation may follow the complete name in parentheses.) The registration number of the official mark must follow the Registrant Name."},{"title":"The Queen","value":"MAJ","description":"Her Majesty Queen Elizabeth the Second and her successors. Requirements: The Registrant's name must be that of Her Majesty the Queen or, after a succession, the name of her successor."}]},{"name":"cira_whois_display","description":"Hide registrant data in CIRA WHOIS","required":false,"options":[{"title":"No","value":"FULL","description":"Do not hide the registrant contact information in CIRA WHOIS."},{"title":"Yes","value":"PRIVATE","description":"Hide the registrant contact information in Cira WHOIS (only available to individuals)."}]},{"name":"cira_language","description":"The contact's preferred language for communication","required":true,"options":[{"title":"English","value":"en","description":"Use English for Registry to Registrant communication"},{"title":"French","value":"fr","description":"Use French for Registry to Registrant communication"}]},{"name":"cira_agreement_version","description":"Version of the CIRA Registrant Agreement displayed and agreed to by the Registrant on the Registrar website","required":true,"options":[{"title":"2.0","value":"2.0","description":"Current Version of Registrant Agreement"}]},{"name":"cira_agreement_value","description":"Registrant has agreed to CIRA's Registrant Agreement","required":true,"options":[{"title":"No","value":"N","description":""You have read, understood and agree to the terms and conditions of the Registrant\nAgreement, and that CIRA may, from time to time and at its discretion, amend any or all of\nthe terms and conditions of the Registrant Agreement, as CIRA deems appropriate, by\nposting a notice of the changes on the CIRA website and by sending a notice of any\nmaterial changes to Registrant."\n\n"You meet all the requirements of the Registrant Agreement to be a Registrant, to apply for\nthe registration of a Domain Name Registration, and to hold and maintain a Domain Name\nRegistration, including without limitation CIRA's Canadian Presence Requirements for\nRegistrants, at: www.cira.ca/assets/Documents/Legal/Registrants/CPR.pdf."\n\n"CIRA will collect, use and disclose your personal information, as set out in CIRA's\nPrivacy Policy, at: www.cira.ca/assets/Documents/Legal/Registrants/privacy.pdf.""},{"title":"Yes","value":"Y","description":""You have read, understood and agree to the terms and conditions of the Registrant\nAgreement, and that CIRA may, from time to time and at its discretion, amend any or all of\nthe terms and conditions of the Registrant Agreement, as CIRA deems appropriate, by\nposting a notice of the changes on the CIRA website and by sending a notice of any\nmaterial changes to Registrant."\n\n"You meet all the requirements of the Registrant Agreement to be a Registrant, to apply for\nthe registration of a Domain Name Registration, and to hold and maintain a Domain Name\nRegistration, including without limitation CIRA's Canadian Presence Requirements for\nRegistrants, at: www.cira.ca/assets/Documents/Legal/Registrants/CPR.pdf."\n\n"CIRA will collect, use and disclose your personal information, as set out in CIRA's\nPrivacy Policy, at: www.cira.ca/assets/Documents/Legal/Registrants/privacy.pdf.""}]}]
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 18:15:49 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ ETag: "d751713988987e9331980363e24189ce"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: 62a995440fe468f93a58a38393bdd746
16
+ X-Runtime: 0.828757
17
+ Strict-Transport-Security: max-age=315360000
18
+
19
+ []
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 18:16:58 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ ETag: "9d70235fec764f238bc14ef87c100a64"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: 16326ac884cfb59502a4511bf3092bf6
16
+ X-Runtime: 1.269543
17
+ Strict-Transport-Security: max-age=315360000
18
+
19
+ [{"name":"cira_legal_type","description":"Legal type of registrant contact","required":true,"options":[{"title":"Corporation","value":"CCO","description":"A corporation under the laws of Canada or any province or territory of Canada, Charities, Cooperative, Council.<br/>Requirements: Registrant name must be the full legal name of the corporation and must be followed by the jurisdiction of incorporation (eg. Canada, Ontario, NWT...), unless it is obvious from the corporation's name. Canadian Internet Registration Authority (Canada). For Charities, the NFP should be included in the organization name. If this is a not-for-profit organization, you are also required to submit the registration number i.e.: 123456789 RR0001"},{"title":"Canadian Citizen","value":"CCT","description":"A Canadian citizen of the age of majority under the laws of the province or territory in Canada in which he or she resides or last resided.<br/>Requirements: The Registrant's name must be the full legal name of the Canadian Citizen who will hold the domain name registration as the name would appear on a passport, driver's license or other identification document issued by a government. The name can be followed by a space and "o/a xxxx" where "o/a" stands for "Operating As" and "xxxx" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. "John Doe o/a Doe Consulting Group"). The name may also be followed by a space and a degree granted to the registrant (eg. PhD.) Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark('), hyphen(-), period(.)."},{"title":"Canadian Resident","value":"RES","description":"A permanent resident as defined in the Immigration and Refugee Protection Act (Canada) S.C. 2001, c.27, as amended from time to time, who is "ordinarily resident" (as defined below) in Canada and of the age of majority under the laws of the province or territory in Canada in which he or she resides or last resided. "Ordinarily resident in Canada" means an individual who resides in Canada for more than 183 days in the twelve month period immediately preceding the date of the applicable request for registration of the .ca domain name or sub-domain name and in each twelve month period thereafter for the duration of the domain name registration.<br/>Requirements: The Registrant's name must be the full legal name of the Permanent Resident who will hold the domain name registration as the name would appear on a driver's license or other identification document issued by a government. The full legal name may be followed by a space and "o/a xxxx" where "o/a" stands for "Operating As" and "xxxx" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. "John Doe o/a Doe Consulting Group"). The name may also be followed by a space and a degree granted to the registrant by a recognized degree granting institution or a recognized professional designation which the registrant has the right to use (eg. PhD, MD, DDS.) Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark('), hyphen(-), period(.)."},{"title":"Government Entity","value":"GOV","description":"Her Majesty the Queen in right of Canada, a province or a territory; an agent of Her Majesty the Queen in right of Canada, of a province or of a territory; a federal, provincial or territorial Crown corporation, government agency or government entity; or a regional, municipal or local area government.<br />Requirements: The Registrant's name must be the complete official name of the entity that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the official name in parentheses). If the Registrant is not a government, the Registrant's name must be followed by the name of the jurisdiction (eg. Canada, province, territory, municipality, etc) to which the Registrant is related."},{"title":"Educational","value":"EDU","description":"(i) A university or college which is located in Canada and which is authorized or recognized as a university or college under an Act of the legislature of a province or territory of Canada; or<br />(ii) A college, post-secondary school, vocational school, secondary school, pre-school or other school or educational institution which is located in Canada and which is recognized by the educational authorities of a province or territory of Canada or licensed under or maintained by an Act of Parliament of Canada or of the legislature of a province or territory of Canada.<br />Requirements: The Registrant's name must be the complete official name of the institution that will hold the domain name registration, without any abbreviations. A common abbreviation may follow the official name in parentheses. The Registrant name must be followed by the jurisdiction (e.g. name of province, municipality) in which the institution is accredited if not obvious from the Registrant's name."},{"title":"Unincorporated Association","value":"ASS","description":"This Registrant Type is principally intended for religious congregations, social and sports clubs and community groups, council (not registered) or society (not registered) which are based and operating in Canada. An unincorporated organization, association or club:<br />(i) At least 80% of whose members: (A) are ordinarily resident in Canada (if such members are individuals); or (B) meet the requirements of any one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, Partnership Registered in Canada, Trust established in Canada, Legal Representative of a Canadian Citizen or Permanent Resident; and<br />(ii) At least 80% of whose directors, officers, employees, managers, administrators or other representatives are ordinarily resident in Canada.<br />Requirements: The Registrant's name must be the complete name of the association that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the complete name in parentheses)."},{"title":"Hospital","value":"HOP","description":"A hospital which is located in Canada and which is licensed, authorized or approved to operate as a hospital under an Act of the legislature of a province or territory of Canada<br />Requirements: The Registrant's name must be the complete official name of the hospital that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the complete name in parentheses.) The Registrant's name must be followed by the jurisdiction (eg. name of province) which accredited the hospital if not obvious from the Registrant's name."},{"title":"Partnership","value":"PRT","description":"A partnership, more than 66 2/3 per cent of whose partners meet the requirements of one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, Trust established in Canada or a Legal Representative of a Canadian Citizen or Permanent Resident, which is registered as a partnership under the laws of any province or territory of Canada.<br />Requirements: The Registrant's name must be the registered name of the partnership that will hold the domain name registration. The Registrant name must be followed by the jurisdiction of registration (eg. Alberta) and the registration number."},{"title":"Trade-mark","value":"TDM","description":"A Person which does not fall under any other registrant type, but which is the owner of a trade-mark which is the subject of a registration under the Trade-marks Act (Canada) R.S.C. 1985, c.T-13 as amended from time to time, but in this case such permission is limited to a request to register a .ca domain name consisting of or including the exact word component of that registered trade-mark.<br />This Registrant Type is only intended for Registrants which do not meet the requirements associated with any other registrant type but which have a trade-mark registered in Canada. (Trade-marks subject of trade-mark applications and trade-marks registered in other jurisdictions, such as the United States, do not qualify.)<br />The domain name to be registered must include the trade-mark. (eg. If the trade-mark is AVEA this type of registrant can register avea.ca or aveaisus.ca but not xyz.ca)."},{"title":"Trade Union","value":"TRD","description":"A trade union which is recognized by a labour board under the laws of Canada or any province or territory of Canada and which has its head office in Canada.<br />Requirements: The Registrant's name must be the complete official name of the trade union that will hold the domain name registration, without abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must be followed by the jurisdiction in Canada which recognizes it (if it is not obvious from the Registrant's name.)"},{"title":"Political Party","value":"PLT","description":"A political party registered under a relevant electoral law of Canada or any province or territory of Canada<br />Requirements: The Registrant's name must be the complete official name of the political party holding the domain name registration, without abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must also by followed by the jurisdiction in Canada in which it is registered (if it is not obvious from the official name)."},{"title":"Library, Archive or Museum","value":"LAM","description":"An institution, whether or not incorporated, that:<br />(i) is located in Canada; and<br />(ii) is not established or conducted for profit or does not form part of, or is not administered or directly or indirectly controlled by, a body that is established or conducted for profit in which is held and maintained a collection of documents and other materials that is open to the public or to researchers.<br />Requirements: The Registrant's name must be the complete legal name of the institution which will hold the domain name registration without abbreviations. (A common abbreviation may follow the complete name in parentheses.)"},{"title":"Trust","value":"TRS","description":"A trust established and subsisting under the laws of a province or territory of Canada, more than 66 2/3 % of whose trustees meet the requirements of one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, or a Legal Representative of a Canadian Citizen or Permanent Resident.<br />Requirements: The Registrant's name must be the complete official name of the trust, without any abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must also indicate the total percentage of the trustees that meet one or more of the following requirements: Canadian citizen, permanent resident, Canadian corporation, legal representative."},{"title":"Aboriginal Peoples","value":"ABO","description":"Any individual belonging to any Inuit, First Nation, Metis or other people indigenous to Canada.<br />Requirements: The Registrant's name must be the full legal name of the Aboriginal Person applying for the Registration as it would appear on a driver's license or other identification document issued by government.<br />The Registrant may enter its full legal name followed by a space and "o/a xxxx" where "o/a" stands for "Operating As" and "xxxx" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. "John Doe o/a Doe Consulting Group"). The name may also be followed by a space and a degree granted to the registrant by a recognized degree granting institution or a recognized professional designation which the registrant has the right to use (eg. PhD, MD, DDS.)<br />Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark(''), hyphen(-), period(.).<br/>Groups: Any Inuit, First Nation, Metis or other people indigenous to Canada, and any collectivity of such Aboriginal peoples.<br />Requirements: The Registrant's name must be the complete official name of the indigenous people a collectivity of Aboriginal Persons or, if there is no official name, the name by which the collectivity is commonly known."},{"title":"Indian Band","value":"INB","description":"Any Indian band as defined in the Indian Act, R.S.C. 1985, c. I-5, as amended from time to time, and any group of Indian bands;<br />Requirements: The name of Registrant must be the Indian Band Name as registered with the Department of Indian and Northern Affairs, Canada."},{"title":"Legal Representative","value":"LGR","description":"An executor, administrator or other legal representative of a Person listed as a Canadian Citizen or Permanent Resident of Canada.<br />Note: This registrant type is only available to a person or entity that has been appointed by legal process to represent an individual who is not competent to represent him or herself. It is not available to anyone who represents a Canadian or foreign corporation in any capacity.<br />Requirements: The Registrant's name must be the full legal name of the Canadian Citizen or Permanent Resident of Canada who is being represented as it would appear on a passport, driver's license or other government identification document. This must be followed by the full legal name and capacity of at least one of the official representatives. The representative should be identified as the administrative contact for these registrations."},{"title":"Official Mark","value":"OMK","description":"A Person which does not meet the requirements for any other Registrant Type, but which is a Person intended to be protected by Subsection 9(1) of the Trade-Marks Act (Canada) at whose request the Registrar of Trade-marks has published notice of adoption of any badge, crest, emblem, official mark or other mark pursuant to Subsection 9(1), but in this case such permission is limited to a request to register a .ca domain name consisting of or including the exact word component of such badge, crest, emblem, official mark or other mark in respect of which such Person requested publications.<br />Notes: This registrant type is only intended for Registrants which do not meet the requirements associated with any other registrant type but which have an Official Mark registered in Canada. The domain name must include the official mark (eg. If the official mark is WIPO, the registrant can register wipo.ca but not intellectual-property.ca)<br />Requirements: The Registrant's name must be the complete official name of the entity holding the domain name registration without any abbreviations. (A common abbreviation may follow the complete name in parentheses.) The registration number of the official mark must follow the Registrant Name."},{"title":"The Queen","value":"MAJ","description":"Her Majesty Queen Elizabeth the Second and her successors. Requirements: The Registrant's name must be that of Her Majesty the Queen or, after a succession, the name of her successor."}]},{"name":"cira_whois_display","description":"Hide registrant data in CIRA WHOIS","required":false,"options":[{"title":"No","value":"FULL","description":"Do not hide the registrant contact information in CIRA WHOIS."},{"title":"Yes","value":"PRIVATE","description":"Hide the registrant contact information in Cira WHOIS (only available to individuals)."}]},{"name":"cira_language","description":"The contact's preferred language for communication","required":true,"options":[{"title":"English","value":"en","description":"Use English for Registry to Registrant communication"},{"title":"French","value":"fr","description":"Use French for Registry to Registrant communication"}]},{"name":"cira_agreement_version","description":"Version of the CIRA Registrant Agreement displayed and agreed to by the Registrant on the Registrar website","required":true,"options":[{"title":"2.0","value":"2.0","description":"Current Version of Registrant Agreement"}]},{"name":"cira_agreement_value","description":"Registrant has agreed to CIRA's Registrant Agreement","required":true,"options":[{"title":"No","value":"N","description":""You have read, understood and agree to the terms and conditions of the Registrant\nAgreement, and that CIRA may, from time to time and at its discretion, amend any or all of\nthe terms and conditions of the Registrant Agreement, as CIRA deems appropriate, by\nposting a notice of the changes on the CIRA website and by sending a notice of any\nmaterial changes to Registrant."\n\n"You meet all the requirements of the Registrant Agreement to be a Registrant, to apply for\nthe registration of a Domain Name Registration, and to hold and maintain a Domain Name\nRegistration, including without limitation CIRA's Canadian Presence Requirements for\nRegistrants, at: www.cira.ca/assets/Documents/Legal/Registrants/CPR.pdf."\n\n"CIRA will collect, use and disclose your personal information, as set out in CIRA's\nPrivacy Policy, at: www.cira.ca/assets/Documents/Legal/Registrants/privacy.pdf.""},{"title":"Yes","value":"Y","description":""You have read, understood and agree to the terms and conditions of the Registrant\nAgreement, and that CIRA may, from time to time and at its discretion, amend any or all of\nthe terms and conditions of the Registrant Agreement, as CIRA deems appropriate, by\nposting a notice of the changes on the CIRA website and by sending a notice of any\nmaterial changes to Registrant."\n\n"You meet all the requirements of the Registrant Agreement to be a Registrant, to apply for\nthe registration of a Domain Name Registration, and to hold and maintain a Domain Name\nRegistration, including without limitation CIRA's Canadian Presence Requirements for\nRegistrants, at: www.cira.ca/assets/Documents/Legal/Registrants/CPR.pdf."\n\n"CIRA will collect, use and disclose your personal information, as set out in CIRA's\nPrivacy Policy, at: www.cira.ca/assets/Documents/Legal/Registrants/privacy.pdf.""}]}]
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 18:28:28 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ ETag: "daf44332ad1b854ea9aafb6d2345bf25"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: 77bcd47eda1ce40c083364cbbdd845bf
16
+ X-Runtime: 0.047482
17
+ Strict-Transport-Security: max-age=315360000
18
+
19
+ [{"record":{"id":36,"domain_id":6,"parent_id":null,"name":"","content":"ns1.dnsimple.com admin.dnsimple.com 2013110801 86400 10800 604800 300","ttl":3600,"prio":null,"record_type":"SOA","system_record":true,"created_at":"2013-11-08T17:22:48Z","updated_at":"2013-11-08T17:22:58Z"}},{"record":{"id":37,"domain_id":6,"parent_id":null,"name":"","content":"ns1.dnsimple.com","ttl":3600,"prio":null,"record_type":"NS","system_record":true,"created_at":"2013-11-08T17:22:48Z","updated_at":"2013-11-08T17:22:58Z"}},{"record":{"id":38,"domain_id":6,"parent_id":null,"name":"","content":"ns2.dnsimple.com","ttl":3600,"prio":null,"record_type":"NS","system_record":true,"created_at":"2013-11-08T17:22:48Z","updated_at":"2013-11-08T17:22:59Z"}},{"record":{"id":39,"domain_id":6,"parent_id":null,"name":"","content":"ns3.dnsimple.com","ttl":3600,"prio":null,"record_type":"NS","system_record":true,"created_at":"2013-11-08T17:22:48Z","updated_at":"2013-11-08T17:23:00Z"}},{"record":{"id":40,"domain_id":6,"parent_id":null,"name":"","content":"ns4.dnsimple.com","ttl":3600,"prio":null,"record_type":"NS","system_record":true,"created_at":"2013-11-08T17:22:48Z","updated_at":"2013-11-08T17:23:00Z"}},{"record":{"id":1495,"domain_id":6,"parent_id":null,"name":"www","content":"1.2.3.4","ttl":3600,"prio":null,"record_type":"A","system_record":null,"created_at":"2014-01-14T18:25:56Z","updated_at":"2014-01-14T18:26:04Z"}},{"record":{"id":1496,"domain_id":6,"parent_id":null,"name":"","content":"1.2.3.5","ttl":3600,"prio":null,"record_type":"A","system_record":null,"created_at":"2014-01-14T18:27:04Z","updated_at":"2014-01-14T18:27:08Z"}}]
@@ -0,0 +1,17 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 18:28:07 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ Cache-Control: no-cache
14
+ X-Request-Id: b7af596690cb83c7a7167f4d47aa50c3
15
+ X-Runtime: 0.044234
16
+
17
+ {"error":"Couldn't find Record with id=14395 [WHERE \"records\".\"domain_id\" = 6]"}
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.4.4
3
+ Date: Tue, 14 Jan 2014 18:27:45 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ ETag: "67a9bfb8046724e79c7244d3c2458e65"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: bb7cbc5a32833ea4d59c185b0ab67915
16
+ X-Runtime: 0.205329
17
+ Strict-Transport-Security: max-age=315360000
18
+
19
+ {"record":{"id":1495,"domain_id":6,"parent_id":null,"name":"www","content":"1.2.3.4","ttl":3600,"prio":null,"record_type":"A","system_record":null,"created_at":"2014-01-14T18:25:56Z","updated_at":"2014-01-14T18:26:04Z"}}
@@ -0,0 +1,17 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx/1.5.8
3
+ Date: Tue, 14 Jan 2014 17:53:49 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 404 Not Found
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ Cache-Control: no-cache
14
+ X-Request-Id: 787cb35a027da017afdcceca2c87bcf5
15
+ X-Runtime: 0.240254
16
+
17
+ {"error":"Couldn't find DnsTemplate with short_name = googleapps"}
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.5.8
3
+ Date: Tue, 14 Jan 2014 17:53:21 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Status: 200 OK
8
+ X-DNSimple-API-Version: 1.0.0
9
+ Access-Control-Allow-Origin: *
10
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
11
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
12
+ X-UA-Compatible: IE=Edge,chrome=1
13
+ ETag: "10b0cf9b0739e857322f4a7fce8f66a8"
14
+ Cache-Control: max-age=0, private, must-revalidate
15
+ X-Request-Id: b70969199a7f50224e1f5ed08f765692
16
+ X-Runtime: 0.032644
17
+ Strict-Transport-Security: max-age=315360000
18
+
19
+ {"dns_template":{"id":63,"user_id":null,"name":"Google Apps","short_name":"google-apps","description":"The Google Mail Servers and Google Apps CNAME records in a single template.","created_at":"2010-12-15T08:08:02Z","updated_at":"2013-09-02T07:16:53Z"}}
@@ -0,0 +1,34 @@
1
+ require 'rspec'
2
+
3
+ $:.unshift(File.dirname(__FILE__) + '/lib')
4
+ require 'dnsimple'
5
+
6
+ unless defined?(SPEC_ROOT)
7
+ SPEC_ROOT = File.expand_path("../", __FILE__)
8
+ end
9
+
10
+ if ENV['DNSIMPLE_TEST_CONFIG']
11
+ DNSimple::Client.load_credentials(ENV['DNSIMPLE_TEST_CONFIG'])
12
+ CONFIG = { 'username' => DNSimple::Client.username, 'password' => DNSimple::Client.password, 'base_uri' => DNSimple::Client.base_uri, 'host' => URI.parse(DNSimple::Client.base_uri).host }
13
+ else
14
+ CONFIG = { 'username' => 'username', 'password' => 'password', 'base_uri' => 'https://api.sandbox.dnsimple.com/', 'host' => 'api.sandbox.dnsimple.com' }
15
+ DNSimple::Client.base_uri = CONFIG['base_uri']
16
+ DNSimple::Client.username = CONFIG['username']
17
+ DNSimple::Client.password = CONFIG['password']
18
+ end
19
+
20
+
21
+ RSpec.configure do |c|
22
+ c.mock_framework = :mocha
23
+
24
+ # Silent the puts call in the commands
25
+ # c.before do
26
+ # @_stdout = $stdout
27
+ # $stdout = StringIO.new
28
+ # end
29
+ # c.after do
30
+ # $stdout = @_stdout
31
+ # end
32
+ end
33
+
34
+ Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each { |f| require f }
@@ -0,0 +1,15 @@
1
+ module RSpecSupportHelpers
2
+
3
+ def fixture(*names)
4
+ File.join(SPEC_ROOT, "files", *names)
5
+ end
6
+
7
+ def read_fixture(*names)
8
+ File.read(fixture(*names))
9
+ end
10
+
11
+ end
12
+
13
+ RSpec.configure do |config|
14
+ config.include RSpecSupportHelpers
15
+ end
@@ -0,0 +1,11 @@
1
+ require 'webmock/rspec'
2
+
3
+ RSpec.configure do |config|
4
+ config.before(:suite) do
5
+ WebMock.disable_net_connect!
6
+ end
7
+
8
+ config.after(:suite) do
9
+ WebMock.allow_net_connect!
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,224 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dnsimple
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0.a
5
+ platform: ruby
6
+ authors:
7
+ - Anthony Eden
8
+ - Simone Carletti
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-09-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: httparty
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: '0.12'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: '0.12'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: mocha
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: yard
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: webmock
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ description: A ruby wrapper for the DNSimple API.
99
+ email:
100
+ - anthony.eden@dnsimple.com
101
+ - simone.carletti@dnsimple.com
102
+ executables: []
103
+ extensions: []
104
+ extra_rdoc_files:
105
+ - README.markdown
106
+ - CHANGELOG.markdown
107
+ - LICENSE
108
+ files:
109
+ - .gitignore
110
+ - .rspec
111
+ - .ruby-gemset
112
+ - .ruby-version
113
+ - .travis.yml
114
+ - CHANGELOG.markdown
115
+ - Gemfile
116
+ - LICENSE
117
+ - README.markdown
118
+ - Rakefile
119
+ - dnsimple-ruby.gemspec
120
+ - lib/dnsimple-ruby.rb
121
+ - lib/dnsimple.rb
122
+ - lib/dnsimple/base.rb
123
+ - lib/dnsimple/certificate.rb
124
+ - lib/dnsimple/client.rb
125
+ - lib/dnsimple/contact.rb
126
+ - lib/dnsimple/domain.rb
127
+ - lib/dnsimple/error.rb
128
+ - lib/dnsimple/extended_attribute.rb
129
+ - lib/dnsimple/record.rb
130
+ - lib/dnsimple/service.rb
131
+ - lib/dnsimple/template.rb
132
+ - lib/dnsimple/template_record.rb
133
+ - lib/dnsimple/transfer_order.rb
134
+ - lib/dnsimple/user.rb
135
+ - lib/dnsimple/version.rb
136
+ - spec/ci/.dnsimple.test
137
+ - spec/dnsimple/certificate_spec.rb
138
+ - spec/dnsimple/client_spec.rb
139
+ - spec/dnsimple/contact_spec.rb
140
+ - spec/dnsimple/domain_spec.rb
141
+ - spec/dnsimple/extended_attributes_spec.rb
142
+ - spec/dnsimple/record_spec.rb
143
+ - spec/dnsimple/template_spec.rb
144
+ - spec/dnsimple/user_spec.rb
145
+ - spec/files/account/user/success.http
146
+ - spec/files/certificates/index/success.http
147
+ - spec/files/certificates/show/notfound.http
148
+ - spec/files/certificates/show/success.http
149
+ - spec/files/contacts/show/notfound.http
150
+ - spec/files/contacts/show/success.http
151
+ - spec/files/domains/auto_renewal_disable/notfound.http
152
+ - spec/files/domains/auto_renewal_disable/success.http
153
+ - spec/files/domains/auto_renewal_enable/notfound.http
154
+ - spec/files/domains/auto_renewal_enable/success.http
155
+ - spec/files/domains/show/notfound.http
156
+ - spec/files/domains/show/success.http
157
+ - spec/files/extended_attributes/ca.http
158
+ - spec/files/extended_attributes/com.http
159
+ - spec/files/extended_attributes/success.http
160
+ - spec/files/records/index/success.http
161
+ - spec/files/records/show/notfound.http
162
+ - spec/files/records/show/success.http
163
+ - spec/files/templates/show/notfound.http
164
+ - spec/files/templates/show/success.http
165
+ - spec/spec_helper.rb
166
+ - spec/support/helpers.rb
167
+ - spec/support/webmock.rb
168
+ homepage: http://github.com/aetrion/dnsimple-ruby
169
+ licenses: []
170
+ metadata: {}
171
+ post_install_message:
172
+ rdoc_options: []
173
+ require_paths:
174
+ - lib
175
+ required_ruby_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - '>='
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ required_rubygems_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - '>'
183
+ - !ruby/object:Gem::Version
184
+ version: 1.3.1
185
+ requirements: []
186
+ rubyforge_project:
187
+ rubygems_version: 2.2.2
188
+ signing_key:
189
+ specification_version: 4
190
+ summary: A ruby wrapper for the DNSimple API
191
+ test_files:
192
+ - spec/ci/.dnsimple.test
193
+ - spec/dnsimple/certificate_spec.rb
194
+ - spec/dnsimple/client_spec.rb
195
+ - spec/dnsimple/contact_spec.rb
196
+ - spec/dnsimple/domain_spec.rb
197
+ - spec/dnsimple/extended_attributes_spec.rb
198
+ - spec/dnsimple/record_spec.rb
199
+ - spec/dnsimple/template_spec.rb
200
+ - spec/dnsimple/user_spec.rb
201
+ - spec/files/account/user/success.http
202
+ - spec/files/certificates/index/success.http
203
+ - spec/files/certificates/show/notfound.http
204
+ - spec/files/certificates/show/success.http
205
+ - spec/files/contacts/show/notfound.http
206
+ - spec/files/contacts/show/success.http
207
+ - spec/files/domains/auto_renewal_disable/notfound.http
208
+ - spec/files/domains/auto_renewal_disable/success.http
209
+ - spec/files/domains/auto_renewal_enable/notfound.http
210
+ - spec/files/domains/auto_renewal_enable/success.http
211
+ - spec/files/domains/show/notfound.http
212
+ - spec/files/domains/show/success.http
213
+ - spec/files/extended_attributes/ca.http
214
+ - spec/files/extended_attributes/com.http
215
+ - spec/files/extended_attributes/success.http
216
+ - spec/files/records/index/success.http
217
+ - spec/files/records/show/notfound.http
218
+ - spec/files/records/show/success.http
219
+ - spec/files/templates/show/notfound.http
220
+ - spec/files/templates/show/success.http
221
+ - spec/spec_helper.rb
222
+ - spec/support/helpers.rb
223
+ - spec/support/webmock.rb
224
+ has_rdoc: