gather_content-api 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +13 -0
  5. data/README.md +395 -0
  6. data/Rakefile +14 -0
  7. data/gather_content-api.gemspec +25 -0
  8. data/lib/gather_content/api/account.rb +25 -0
  9. data/lib/gather_content/api/accounts.rb +23 -0
  10. data/lib/gather_content/api/base.rb +67 -0
  11. data/lib/gather_content/api/config.rb +35 -0
  12. data/lib/gather_content/api/file.rb +19 -0
  13. data/lib/gather_content/api/files.rb +27 -0
  14. data/lib/gather_content/api/item.rb +53 -0
  15. data/lib/gather_content/api/items.rb +50 -0
  16. data/lib/gather_content/api/me.rb +19 -0
  17. data/lib/gather_content/api/project.rb +25 -0
  18. data/lib/gather_content/api/projects.rb +51 -0
  19. data/lib/gather_content/api/status.rb +26 -0
  20. data/lib/gather_content/api/statuses.rb +27 -0
  21. data/lib/gather_content/api/template.rb +25 -0
  22. data/lib/gather_content/api/templates.rb +35 -0
  23. data/lib/gather_content/api.rb +19 -0
  24. data/lib/gather_content/error/request_error.rb +33 -0
  25. data/lib/gather_content/error.rb +5 -0
  26. data/lib/gather_content/version.rb +3 -0
  27. data/lib/gather_content.rb +5 -0
  28. data/spec/gather_content/api/account_spec.rb +28 -0
  29. data/spec/gather_content/api/accounts_spec.rb +24 -0
  30. data/spec/gather_content/api/base_spec.rb +5 -0
  31. data/spec/gather_content/api/config_spec.rb +98 -0
  32. data/spec/gather_content/api/files_spec.rb +39 -0
  33. data/spec/gather_content/api/item_spec.rb +158 -0
  34. data/spec/gather_content/api/items_spec.rb +127 -0
  35. data/spec/gather_content/api/me_spec.rb +26 -0
  36. data/spec/gather_content/api/project_spec.rb +32 -0
  37. data/spec/gather_content/api/projects_spec.rb +96 -0
  38. data/spec/gather_content/api/status_spec.rb +44 -0
  39. data/spec/gather_content/api/statuses_spec.rb +39 -0
  40. data/spec/gather_content/api/template_spec.rb +36 -0
  41. data/spec/gather_content/api/templates_spec.rb +23 -0
  42. data/spec/spec_helper.rb +26 -0
  43. data/spec/vcr_cassettes/GatherContent_Api_Account/_/returns_the_data_related_to_the_supplied_key.yml +39 -0
  44. data/spec/vcr_cassettes/GatherContent_Api_Account/_fetch/1_2_1.yml +39 -0
  45. data/spec/vcr_cassettes/GatherContent_Api_Account/_fetch/1_3_1.yml +39 -0
  46. data/spec/vcr_cassettes/GatherContent_Api_Account/_get_account/1_3_1.yml +39 -0
  47. data/spec/vcr_cassettes/GatherContent_Api_Accounts/_each/should_contain_Account_objects.yml +40 -0
  48. data/spec/vcr_cassettes/GatherContent_Api_Accounts/_each/should_have_memoized_data.yml +40 -0
  49. data/spec/vcr_cassettes/GatherContent_Api_Files/_each/should_contain_File_objects.yml +40 -0
  50. data/spec/vcr_cassettes/GatherContent_Api_Files/_each/should_have_memoized_data.yml +40 -0
  51. data/spec/vcr_cassettes/GatherContent_Api_Item/_/returns_the_data_related_to_the_supplied_key.yml +40 -0
  52. data/spec/vcr_cassettes/GatherContent_Api_Item/_fetch/1_2_1.yml +40 -0
  53. data/spec/vcr_cassettes/GatherContent_Api_Item/_get_item/1_3_1.yml +40 -0
  54. data/spec/vcr_cassettes/GatherContent_Api_Item/apply_template/successful/returns_true.yml +42 -0
  55. data/spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/parses_the_message.yml +42 -0
  56. data/spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/raises_an_RequestError.yml +42 -0
  57. data/spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/sets_the_RequestError_status.yml +42 -0
  58. data/spec/vcr_cassettes/GatherContent_Api_Item/choose_status/successful/returns_true.yml +42 -0
  59. data/spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/parses_the_message.yml +42 -0
  60. data/spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/raises_an_RequestError.yml +42 -0
  61. data/spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/sets_the_RequestError_status.yml +42 -0
  62. data/spec/vcr_cassettes/GatherContent_Api_Item/save/successful/returns_true.yml +42 -0
  63. data/spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/parses_the_message.yml +42 -0
  64. data/spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/raises_an_RequestError.yml +42 -0
  65. data/spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/sets_the_RequestError_status.yml +42 -0
  66. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/raises_an_RequestError.yml +42 -0
  67. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/sets_the_RequestError_message.yml +42 -0
  68. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/sets_the_RequestError_status.yml +42 -0
  69. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/created_an_item.yml +44 -0
  70. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/set_the_item_id.yml +44 -0
  71. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/sets_the_content.yml +88 -0
  72. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_name/created_an_item.yml +44 -0
  73. data/spec/vcr_cassettes/GatherContent_Api_Items/_create/with_name/set_the_item_id.yml +44 -0
  74. data/spec/vcr_cassettes/GatherContent_Api_Items/_each/should_contain_Item_objects.yml +43 -0
  75. data/spec/vcr_cassettes/GatherContent_Api_Items/_each/should_have_memoized_data.yml +43 -0
  76. data/spec/vcr_cassettes/GatherContent_Api_Me/_/returns_the_data_related_to_the_supplied_key.yml +40 -0
  77. data/spec/vcr_cassettes/GatherContent_Api_Me/_fetch/1_2_1.yml +40 -0
  78. data/spec/vcr_cassettes/GatherContent_Api_Me/_get_me/1_2_1.yml +40 -0
  79. data/spec/vcr_cassettes/GatherContent_Api_Project/_/returns_the_data_related_to_the_supplied_key.yml +41 -0
  80. data/spec/vcr_cassettes/GatherContent_Api_Project/_fetch/1_3_1.yml +41 -0
  81. data/spec/vcr_cassettes/GatherContent_Api_Project/_get_project/1_3_1.yml +41 -0
  82. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/raises_an_RequestError.yml +42 -0
  83. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/sets_the_RequestError_message.yml +42 -0
  84. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/sets_the_RequestError_status.yml +42 -0
  85. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_empty_type/created_a_project.yml +44 -0
  86. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_name_and_valid_type/created_a_project.yml +44 -0
  87. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_name_and_valid_type/set_the_project_id.yml +44 -0
  88. data/spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_no_type/created_a_project.yml +44 -0
  89. data/spec/vcr_cassettes/GatherContent_Api_Projects/_each/should_contain_Project_objects.yml +41 -0
  90. data/spec/vcr_cassettes/GatherContent_Api_Status/_/returns_the_data_related_to_the_supplied_key.yml +39 -0
  91. data/spec/vcr_cassettes/GatherContent_Api_Status/_fetch/1_2_1.yml +39 -0
  92. data/spec/vcr_cassettes/GatherContent_Api_Statuses/_each/should_contain_Status_objects.yml +40 -0
  93. data/spec/vcr_cassettes/GatherContent_Api_Statuses/_each/should_have_memoized_data.yml +41 -0
  94. data/spec/vcr_cassettes/GatherContent_Api_Template/_/returns_the_data_related_to_the_supplied_key.yml +40 -0
  95. data/spec/vcr_cassettes/GatherContent_Api_Template/_fetch/1_2_1.yml +40 -0
  96. data/spec/vcr_cassettes/GatherContent_Api_Templates/_each/should_contain_Template_objects.yml +40 -0
  97. data/spec/vcr_cassettes/GatherContent_Api_Templates/_each/should_have_memoized_data.yml +40 -0
  98. metadata +254 -0
@@ -0,0 +1,39 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/projects/123456/statuses/123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Tue, 27 Feb 2018 23:00:22 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '123'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true}}'
38
+ http_version:
39
+ recorded_at: Tue, 27 Feb 2018 23:00:22 GMT
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/projects/123456/statuses
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Tue, 27 Feb 2018 23:08:54 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '497'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":[{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true},{"id":"123457","is_default":false,"position":"2","color":"#FAA732","name":"Review","description":"","can_edit":true},{"id":"123458","is_default":false,"position":"3","color":"#5EB95E","name":"Final edits","description":"","can_edit":true},{"id":"123459","is_default":false,"position":"4","color":"#DD4398","name":"Ready to be published","description":"","can_edit":false}]}'
38
+ http_version:
39
+ recorded_at: Tue, 27 Feb 2018 23:08:54 GMT
40
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,41 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/projects/123456/statuses
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Tue, 27 Feb 2018 23:08:54 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '497'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":[{"id":"123456","is_default":true,"position":"1","color":"#C5C5C5","name":"Draft","description":"","can_edit":true},{"id":"123457","is_default":false,"position":"2","color":"#FAA732","name":"Review","description":"","can_edit":true},{"id":"123458","is_default":false,"position":"3","color":"#5EB95E","name":"Final
38
+ edits","description":"","can_edit":true},{"id":"123459","is_default":false,"position":"4","color":"#DD4398","name":"Ready
39
+ to be published","description":"","can_edit":false}]}'
40
+ http_version:
41
+ recorded_at: Tue, 27 Feb 2018 23:08:54 GMT
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/templates/123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Wed, 28 Feb 2018 02:43:14 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '779'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"id":123456,"project_id":123456,"created_by":123456,"updated_by":123456,"name":"Blog Theme","description":"Blog theme","config":[{"label":"Content","name":"tab1440604292948","hidden":false,"elements":[{"type":"text","name":"el1440604298968","required":false,"label":"Title","value":"<p>\n ​\n</p>","microcopy":"","limit_type":"words","limit":"0","plain_text":false},{"type":"text","name":"el1440604306459","required":false,"label":"Main Content","value":"<p>\n ​\n</p>","microcopy":"","limit_type":"words","limit":"0","plain_text":false},{"type":"files","name":"el1440604311606","required":false,"label":"Featured Image","microcopy":"Microcopy text"}]}],"used_at":"2015-08-26 17:03:20","created_at":1440604320,"updated_at":1440608600,"usage":{"item_count":1}}}'
38
+ http_version:
39
+ recorded_at: Wed, 28 Feb 2018 02:43:14 GMT
40
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/templates/123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Wed, 28 Feb 2018 02:43:14 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '779'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":{"id":123456,"project_id":123456,"created_by":123456,"updated_by":123456,"name":"Blog Theme","description":"Blog theme","config":[{"label":"Content","name":"tab1440604292948","hidden":false,"elements":[{"type":"text","name":"el1440604298968","required":false,"label":"Title","value":"<p>\n ​\n</p>","microcopy":"","limit_type":"words","limit":"0","plain_text":false},{"type":"text","name":"el1440604306459","required":false,"label":"Main Content","value":"<p>\n ​\n</p>","microcopy":"","limit_type":"words","limit":"0","plain_text":false},{"type":"files","name":"el1440604311606","required":false,"label":"Featured Image","microcopy":"Microcopy text"}]}],"used_at":"2015-08-26 17:03:20","created_at":1440604320,"updated_at":1440608600,"usage":{"item_count":1}}}'
38
+ http_version:
39
+ recorded_at: Wed, 28 Feb 2018 02:43:14 GMT
40
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/templates?project_id=123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Wed, 28 Feb 2018 02:51:13 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '2294'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":[{"id":123456,"project_id":123456,"created_by":123456,"updated_by":123456,"name":"Blog Theme","description":"Blog theme","used_at":"2015-08-26 17:03:20","created_at":1440604320,"updated_at":1440608600,"usage":{"item_count":1}}]}'
38
+ http_version:
39
+ recorded_at: Wed, 28 Feb 2018 02:51:14 GMT
40
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gathercontent.com/templates?project_id=123456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.14.0
12
+ Accept:
13
+ - application/vnd.gathercontent.v0.5+json
14
+ Authorization:
15
+ - Basic YW5kcmV3QGdhdGhlcmNvbnRlbnQuY29tOjJkMmE4YmY2LTA4YzAtNDllNi05NDYwLTI1MTM5ZmRiOGIyNA==
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json
27
+ Date:
28
+ - Wed, 28 Feb 2018 02:51:13 GMT
29
+ Server:
30
+ - nginx
31
+ Content-Length:
32
+ - '2294'
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: '{"data":[{"id":123456,"project_id":123456,"created_by":123456,"updated_by":123456,"name":"Blog Theme","description":"Blog theme","used_at":"2015-08-26 17:03:20","created_at":1440604320,"updated_at":1440608600,"usage":{"item_count":1}}]}'
38
+ http_version:
39
+ recorded_at: Wed, 28 Feb 2018 02:51:14 GMT
40
+ recorded_with: VCR 3.0.3
metadata ADDED
@@ -0,0 +1,254 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gather_content-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Barnaby Alter
8
+ - Hannan Butt
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2018-05-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '10'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '10'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rest-client
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '2'
42
+ - !ruby/object:Gem::Dependency
43
+ name: faraday
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ description: Ruby wrapper for the GatherContent API
57
+ email:
58
+ - barnaby.alter@nyu.edu
59
+ - hab278@nyu.edu
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - ".travis.yml"
66
+ - Gemfile
67
+ - README.md
68
+ - Rakefile
69
+ - gather_content-api.gemspec
70
+ - lib/gather_content.rb
71
+ - lib/gather_content/api.rb
72
+ - lib/gather_content/api/account.rb
73
+ - lib/gather_content/api/accounts.rb
74
+ - lib/gather_content/api/base.rb
75
+ - lib/gather_content/api/config.rb
76
+ - lib/gather_content/api/file.rb
77
+ - lib/gather_content/api/files.rb
78
+ - lib/gather_content/api/item.rb
79
+ - lib/gather_content/api/items.rb
80
+ - lib/gather_content/api/me.rb
81
+ - lib/gather_content/api/project.rb
82
+ - lib/gather_content/api/projects.rb
83
+ - lib/gather_content/api/status.rb
84
+ - lib/gather_content/api/statuses.rb
85
+ - lib/gather_content/api/template.rb
86
+ - lib/gather_content/api/templates.rb
87
+ - lib/gather_content/error.rb
88
+ - lib/gather_content/error/request_error.rb
89
+ - lib/gather_content/version.rb
90
+ - spec/gather_content/api/account_spec.rb
91
+ - spec/gather_content/api/accounts_spec.rb
92
+ - spec/gather_content/api/base_spec.rb
93
+ - spec/gather_content/api/config_spec.rb
94
+ - spec/gather_content/api/files_spec.rb
95
+ - spec/gather_content/api/item_spec.rb
96
+ - spec/gather_content/api/items_spec.rb
97
+ - spec/gather_content/api/me_spec.rb
98
+ - spec/gather_content/api/project_spec.rb
99
+ - spec/gather_content/api/projects_spec.rb
100
+ - spec/gather_content/api/status_spec.rb
101
+ - spec/gather_content/api/statuses_spec.rb
102
+ - spec/gather_content/api/template_spec.rb
103
+ - spec/gather_content/api/templates_spec.rb
104
+ - spec/spec_helper.rb
105
+ - spec/vcr_cassettes/GatherContent_Api_Account/_/returns_the_data_related_to_the_supplied_key.yml
106
+ - spec/vcr_cassettes/GatherContent_Api_Account/_fetch/1_2_1.yml
107
+ - spec/vcr_cassettes/GatherContent_Api_Account/_fetch/1_3_1.yml
108
+ - spec/vcr_cassettes/GatherContent_Api_Account/_get_account/1_3_1.yml
109
+ - spec/vcr_cassettes/GatherContent_Api_Accounts/_each/should_contain_Account_objects.yml
110
+ - spec/vcr_cassettes/GatherContent_Api_Accounts/_each/should_have_memoized_data.yml
111
+ - spec/vcr_cassettes/GatherContent_Api_Files/_each/should_contain_File_objects.yml
112
+ - spec/vcr_cassettes/GatherContent_Api_Files/_each/should_have_memoized_data.yml
113
+ - spec/vcr_cassettes/GatherContent_Api_Item/_/returns_the_data_related_to_the_supplied_key.yml
114
+ - spec/vcr_cassettes/GatherContent_Api_Item/_fetch/1_2_1.yml
115
+ - spec/vcr_cassettes/GatherContent_Api_Item/_get_item/1_3_1.yml
116
+ - spec/vcr_cassettes/GatherContent_Api_Item/apply_template/successful/returns_true.yml
117
+ - spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/parses_the_message.yml
118
+ - spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/raises_an_RequestError.yml
119
+ - spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/sets_the_RequestError_status.yml
120
+ - spec/vcr_cassettes/GatherContent_Api_Item/choose_status/successful/returns_true.yml
121
+ - spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/parses_the_message.yml
122
+ - spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/raises_an_RequestError.yml
123
+ - spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/sets_the_RequestError_status.yml
124
+ - spec/vcr_cassettes/GatherContent_Api_Item/save/successful/returns_true.yml
125
+ - spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/parses_the_message.yml
126
+ - spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/raises_an_RequestError.yml
127
+ - spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/sets_the_RequestError_status.yml
128
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/raises_an_RequestError.yml
129
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/sets_the_RequestError_message.yml
130
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/sets_the_RequestError_status.yml
131
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/created_an_item.yml
132
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/set_the_item_id.yml
133
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/sets_the_content.yml
134
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_name/created_an_item.yml
135
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_name/set_the_item_id.yml
136
+ - spec/vcr_cassettes/GatherContent_Api_Items/_each/should_contain_Item_objects.yml
137
+ - spec/vcr_cassettes/GatherContent_Api_Items/_each/should_have_memoized_data.yml
138
+ - spec/vcr_cassettes/GatherContent_Api_Me/_/returns_the_data_related_to_the_supplied_key.yml
139
+ - spec/vcr_cassettes/GatherContent_Api_Me/_fetch/1_2_1.yml
140
+ - spec/vcr_cassettes/GatherContent_Api_Me/_get_me/1_2_1.yml
141
+ - spec/vcr_cassettes/GatherContent_Api_Project/_/returns_the_data_related_to_the_supplied_key.yml
142
+ - spec/vcr_cassettes/GatherContent_Api_Project/_fetch/1_3_1.yml
143
+ - spec/vcr_cassettes/GatherContent_Api_Project/_get_project/1_3_1.yml
144
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/raises_an_RequestError.yml
145
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/sets_the_RequestError_message.yml
146
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/sets_the_RequestError_status.yml
147
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_empty_type/created_a_project.yml
148
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_name_and_valid_type/created_a_project.yml
149
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_name_and_valid_type/set_the_project_id.yml
150
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_no_type/created_a_project.yml
151
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_each/should_contain_Project_objects.yml
152
+ - spec/vcr_cassettes/GatherContent_Api_Status/_/returns_the_data_related_to_the_supplied_key.yml
153
+ - spec/vcr_cassettes/GatherContent_Api_Status/_fetch/1_2_1.yml
154
+ - spec/vcr_cassettes/GatherContent_Api_Statuses/_each/should_contain_Status_objects.yml
155
+ - spec/vcr_cassettes/GatherContent_Api_Statuses/_each/should_have_memoized_data.yml
156
+ - spec/vcr_cassettes/GatherContent_Api_Template/_/returns_the_data_related_to_the_supplied_key.yml
157
+ - spec/vcr_cassettes/GatherContent_Api_Template/_fetch/1_2_1.yml
158
+ - spec/vcr_cassettes/GatherContent_Api_Templates/_each/should_contain_Template_objects.yml
159
+ - spec/vcr_cassettes/GatherContent_Api_Templates/_each/should_have_memoized_data.yml
160
+ homepage: https://github.com/NYULibraries/gather_content-api
161
+ licenses:
162
+ - MIT
163
+ metadata: {}
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: 1.9.3
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ requirements: []
179
+ rubyforge_project:
180
+ rubygems_version: 2.6.13
181
+ signing_key:
182
+ specification_version: 4
183
+ summary: Ruby wrapper for the GatherContent API
184
+ test_files:
185
+ - spec/gather_content/api/account_spec.rb
186
+ - spec/gather_content/api/accounts_spec.rb
187
+ - spec/gather_content/api/base_spec.rb
188
+ - spec/gather_content/api/config_spec.rb
189
+ - spec/gather_content/api/files_spec.rb
190
+ - spec/gather_content/api/item_spec.rb
191
+ - spec/gather_content/api/items_spec.rb
192
+ - spec/gather_content/api/me_spec.rb
193
+ - spec/gather_content/api/project_spec.rb
194
+ - spec/gather_content/api/projects_spec.rb
195
+ - spec/gather_content/api/status_spec.rb
196
+ - spec/gather_content/api/statuses_spec.rb
197
+ - spec/gather_content/api/template_spec.rb
198
+ - spec/gather_content/api/templates_spec.rb
199
+ - spec/spec_helper.rb
200
+ - spec/vcr_cassettes/GatherContent_Api_Account/_/returns_the_data_related_to_the_supplied_key.yml
201
+ - spec/vcr_cassettes/GatherContent_Api_Account/_fetch/1_2_1.yml
202
+ - spec/vcr_cassettes/GatherContent_Api_Account/_fetch/1_3_1.yml
203
+ - spec/vcr_cassettes/GatherContent_Api_Account/_get_account/1_3_1.yml
204
+ - spec/vcr_cassettes/GatherContent_Api_Accounts/_each/should_contain_Account_objects.yml
205
+ - spec/vcr_cassettes/GatherContent_Api_Accounts/_each/should_have_memoized_data.yml
206
+ - spec/vcr_cassettes/GatherContent_Api_Files/_each/should_contain_File_objects.yml
207
+ - spec/vcr_cassettes/GatherContent_Api_Files/_each/should_have_memoized_data.yml
208
+ - spec/vcr_cassettes/GatherContent_Api_Item/_/returns_the_data_related_to_the_supplied_key.yml
209
+ - spec/vcr_cassettes/GatherContent_Api_Item/_fetch/1_2_1.yml
210
+ - spec/vcr_cassettes/GatherContent_Api_Item/_get_item/1_3_1.yml
211
+ - spec/vcr_cassettes/GatherContent_Api_Item/apply_template/successful/returns_true.yml
212
+ - spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/parses_the_message.yml
213
+ - spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/raises_an_RequestError.yml
214
+ - spec/vcr_cassettes/GatherContent_Api_Item/apply_template/unsuccessful/sets_the_RequestError_status.yml
215
+ - spec/vcr_cassettes/GatherContent_Api_Item/choose_status/successful/returns_true.yml
216
+ - spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/parses_the_message.yml
217
+ - spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/raises_an_RequestError.yml
218
+ - spec/vcr_cassettes/GatherContent_Api_Item/choose_status/unsuccessful/sets_the_RequestError_status.yml
219
+ - spec/vcr_cassettes/GatherContent_Api_Item/save/successful/returns_true.yml
220
+ - spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/parses_the_message.yml
221
+ - spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/raises_an_RequestError.yml
222
+ - spec/vcr_cassettes/GatherContent_Api_Item/save/unsuccessful/sets_the_RequestError_status.yml
223
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/raises_an_RequestError.yml
224
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/sets_the_RequestError_message.yml
225
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/on_non-202_response/sets_the_RequestError_status.yml
226
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/created_an_item.yml
227
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/set_the_item_id.yml
228
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_config/sets_the_content.yml
229
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_name/created_an_item.yml
230
+ - spec/vcr_cassettes/GatherContent_Api_Items/_create/with_name/set_the_item_id.yml
231
+ - spec/vcr_cassettes/GatherContent_Api_Items/_each/should_contain_Item_objects.yml
232
+ - spec/vcr_cassettes/GatherContent_Api_Items/_each/should_have_memoized_data.yml
233
+ - spec/vcr_cassettes/GatherContent_Api_Me/_/returns_the_data_related_to_the_supplied_key.yml
234
+ - spec/vcr_cassettes/GatherContent_Api_Me/_fetch/1_2_1.yml
235
+ - spec/vcr_cassettes/GatherContent_Api_Me/_get_me/1_2_1.yml
236
+ - spec/vcr_cassettes/GatherContent_Api_Project/_/returns_the_data_related_to_the_supplied_key.yml
237
+ - spec/vcr_cassettes/GatherContent_Api_Project/_fetch/1_3_1.yml
238
+ - spec/vcr_cassettes/GatherContent_Api_Project/_get_project/1_3_1.yml
239
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/raises_an_RequestError.yml
240
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/sets_the_RequestError_message.yml
241
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/on_non-202_response/sets_the_RequestError_status.yml
242
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_empty_type/created_a_project.yml
243
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_name_and_valid_type/created_a_project.yml
244
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_name_and_valid_type/set_the_project_id.yml
245
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_create/with_no_type/created_a_project.yml
246
+ - spec/vcr_cassettes/GatherContent_Api_Projects/_each/should_contain_Project_objects.yml
247
+ - spec/vcr_cassettes/GatherContent_Api_Status/_/returns_the_data_related_to_the_supplied_key.yml
248
+ - spec/vcr_cassettes/GatherContent_Api_Status/_fetch/1_2_1.yml
249
+ - spec/vcr_cassettes/GatherContent_Api_Statuses/_each/should_contain_Status_objects.yml
250
+ - spec/vcr_cassettes/GatherContent_Api_Statuses/_each/should_have_memoized_data.yml
251
+ - spec/vcr_cassettes/GatherContent_Api_Template/_/returns_the_data_related_to_the_supplied_key.yml
252
+ - spec/vcr_cassettes/GatherContent_Api_Template/_fetch/1_2_1.yml
253
+ - spec/vcr_cassettes/GatherContent_Api_Templates/_each/should_contain_Template_objects.yml
254
+ - spec/vcr_cassettes/GatherContent_Api_Templates/_each/should_have_memoized_data.yml