freckle_io 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/freckle-io.gemspec +1 -1
  3. data/lib/freckle_io/configuration.rb +1 -1
  4. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +6 -6
  5. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/_all/returns_a_entry_for_each_response.yml +6 -6
  6. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/with_valid_params/params_should_be_valid.yml +4 -4
  7. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/with_validator/call_entry_s_validator.yml +6 -6
  8. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +14 -14
  9. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/_all/returns_a_project_group_for_each_response.yml +14 -14
  10. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/with_valid_params/params_should_be_valid.yml +4 -4
  11. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/with_validator/call_project_group_s_validator.yml +14 -14
  12. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +183 -85
  13. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_all/returns_a_project_for_each_response.yml +184 -86
  14. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_show/get_a_spacific_project.yml +6 -6
  15. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_show/raw_links_should_be_a_empty_array.yml +6 -6
  16. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/with_valid_params/params_should_be_valid.yml +4 -4
  17. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/with_validator/call_project_s_validator.yml +184 -86
  18. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +6 -6
  19. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/_all/returns_a_tag_for_each_response.yml +6 -6
  20. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/with_valid_params/params_should_be_valid.yml +4 -4
  21. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/with_validator/call_tag_s_validator.yml +6 -6
  22. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +14 -14
  23. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_all/returns_a_user_for_each_response.yml +14 -14
  24. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_show/get_a_spacific_user.yml +5 -5
  25. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_show/raw_links_should_be_a_empty_array.yml +5 -5
  26. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/with_valid_params/params_should_be_valid.yml +4 -4
  27. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/with_validator/call_user_s_validator.yml +14 -14
  28. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_a_valid_response/must_be_a_json_format.yml +6 -6
  29. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_freckle_token_authentication/set_X-FreckleToken.yml +7 -7
  30. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_header/set_user_agent.yml +7 -7
  31. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_invalid_url/raises_a_resource_not_found_error_for_invalid_resource.yml +3 -3
  32. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_page_param/response_must_be_success.yml +7 -7
  33. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_per_page_param/response_must_have_per_page_elements.yml +7 -7
  34. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_MultiplePages/with_configuration/_get/returns_an_array_of_faraday_response.yml +14 -14
  35. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_MultiplePages/with_configuration/_get/returns_freckle_default_per_page_elements.yml +14 -14
  36. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_MultiplePages/with_per_page/_get/return_per_page_number_elements.yml +24 -24
  37. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_first/next_page_should_be_a_SinglePage.yml +14 -14
  38. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_first/prev_page_should_be_nil.yml +7 -7
  39. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_first/when_get_last_page_from_the_first_page/next_should_be_nil.yml +14 -14
  40. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_get/returns_correct_raw_links_for_the_first_page.yml +7 -7
  41. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_last/next_page_should_be_nil.yml +14 -14
  42. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_last/returns_correct_raw_links_for_the_last_page.yml +14 -14
  43. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_last/when_get_prev_page_from_the_last_page/prev_should_be_nil.yml +21 -21
  44. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_next/previous_page_is_a_SinglePage.yml +21 -21
  45. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_next/previous_page_should_be_not_nil.yml +21 -21
  46. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_prev/next_page_is_a_SinglePage.yml +28 -28
  47. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_prev/when_get_prev_page_from_the_first_page/prev_should_be_nil.yml +21 -21
  48. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_total_page/with_first_page/returns_the_range_of_pages.yml +6 -6
  49. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_total_page/with_next_page/returns_an_empty_array.yml +14 -14
  50. data/spec/spec_helper.rb +1 -0
  51. data/spec/support/entry_info.rb +1 -0
  52. data/spec/support/shared/links/raw_links.rb +2 -2
  53. metadata +3 -4
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://foo.com/6
5
+ uri: http://foo.com/7
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -21,11 +21,11 @@ http_interactions:
21
21
  Server:
22
22
  - nginx
23
23
  Date:
24
- - Mon, 10 Dec 2018 17:23:57 GMT
24
+ - Thu, 29 Aug 2019 08:07:24 GMT
25
25
  Content-Type:
26
26
  - application/json; charset=utf-8
27
27
  Content-Length:
28
- - '2074'
28
+ - '2284'
29
29
  Connection:
30
30
  - keep-alive
31
31
  Status:
@@ -35,14 +35,14 @@ http_interactions:
35
35
  X-Frame-Options:
36
36
  - SAMEORIGIN
37
37
  X-Runtime:
38
- - '68'
38
+ - '50'
39
39
  Vary:
40
40
  - Origin
41
41
  Strict-Transport-Security:
42
42
  - max-age=31536000; includeSubdomains
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"id":0,"name":"name_0","description":"","billing_increment":5,"enabled":true,"billable":true,"color":"#13a480","created_at":"2018-07-16T08:32:45Z","updated_at":"2018-12-04T16:45:07Z","group":{"id":1,"name":"name_1","url":"http://foo.com/0"},"minutes":8430,"billable_minutes":6270,"unbillable_minutes":2160,"invoiced_minutes":0,"uninvoiced_minutes":6270,"remaining_minutes":8730,"budgeted_minutes":15000,"participants":[{"id":2,"email":"email_0@domain.com","first_name":"first_name_0","last_name":"last_name_0","profile_image_url":"http://foo.com/0","url":"http://foo.com/1"},{"id":3,"email":"email_1@domain.com","first_name":"first_name_1","last_name":"last_name_1","profile_image_url":"http://foo.com/1","url":"http://foo.com/2"},{"id":4,"email":"email_2@domain.com","first_name":"first_name_2","last_name":"last_name_2","profile_image_url":"http://foo.com/2","url":"http://foo.com/3"},{"id":5,"email":"email_3@domain.com","first_name":"first_name_3","last_name":"last_name_3","profile_image_url":"http://foo.com/3","url":"http://foo.com/4"},{"id":6,"email":"email_4@domain.com","first_name":"first_name_4","last_name":"last_name_4","profile_image_url":"","url":"http://foo.com/5"}],"entries":36,"entries_url":"http://foo.com/6/entries","url":"http://foo.com/6","merge_url":"http://foo.com/6/merge","archive_url":"http://foo.com/6/archive","unarchive_url":"http://foo.com/6/unarchive"}'
45
+ string: '{"id":0,"name":"name_0","description":"","billing_increment":5,"enabled":false,"billable":true,"color":"#13a480","created_at":"2018-07-16T08:32:45Z","updated_at":"2019-02-27T06:18:19Z","group":{"id":1,"name":"name_1","url":"http://foo.com/0"},"minutes":24670,"billable_minutes":22510,"unbillable_minutes":2160,"invoiced_minutes":0,"uninvoiced_minutes":22510,"remaining_minutes":-310,"budgeted_minutes":22200,"participants":[{"id":2,"email":"email_0@domain.com","first_name":"first_name_0","last_name":"last_name_0","profile_image_url":"http://foo.com/0","url":"http://foo.com/1"},{"id":3,"email":"email_1@domain.com","first_name":"first_name_1","last_name":"last_name_1","profile_image_url":"http://foo.com/1","url":"http://foo.com/2"},{"id":4,"email":"email_2@domain.com","first_name":"first_name_2","last_name":"last_name_2","profile_image_url":"http://foo.com/2","url":"http://foo.com/3"},{"id":5,"email":"email_3@domain.com","first_name":"first_name_3","last_name":"last_name_3","profile_image_url":"","url":"http://foo.com/4"},{"id":6,"email":"email_4@domain.com","first_name":"first_name_4","last_name":"last_name_4","profile_image_url":"http://foo.com/3","url":"http://foo.com/5"},{"id":7,"email":"email_5@domain.com","first_name":"first_name_5","last_name":"last_name_5","profile_image_url":"http://foo.com/4","url":"http://foo.com/6"}],"entries":102,"entries_url":"http://foo.com/7/entries","url":"http://foo.com/7","merge_url":"http://foo.com/7/merge","archive_url":"http://foo.com/7/archive","unarchive_url":"http://foo.com/7/unarchive"}'
46
46
  http_version:
47
- recorded_at: Mon, 10 Dec 2018 17:23:57 GMT
47
+ recorded_at: Thu, 29 Aug 2019 08:07:24 GMT
48
48
  recorded_with: VCR 4.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://foo.com/6
5
+ uri: http://foo.com/7
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -21,11 +21,11 @@ http_interactions:
21
21
  Server:
22
22
  - nginx
23
23
  Date:
24
- - Mon, 10 Dec 2018 17:23:57 GMT
24
+ - Thu, 29 Aug 2019 08:07:25 GMT
25
25
  Content-Type:
26
26
  - application/json; charset=utf-8
27
27
  Content-Length:
28
- - '2074'
28
+ - '2284'
29
29
  Connection:
30
30
  - keep-alive
31
31
  Status:
@@ -35,14 +35,14 @@ http_interactions:
35
35
  X-Frame-Options:
36
36
  - SAMEORIGIN
37
37
  X-Runtime:
38
- - '62'
38
+ - '57'
39
39
  Vary:
40
40
  - Origin
41
41
  Strict-Transport-Security:
42
42
  - max-age=31536000; includeSubdomains
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"id":0,"name":"name_0","description":"","billing_increment":5,"enabled":true,"billable":true,"color":"#13a480","created_at":"2018-07-16T08:32:45Z","updated_at":"2018-12-04T16:45:07Z","group":{"id":1,"name":"name_1","url":"http://foo.com/0"},"minutes":8430,"billable_minutes":6270,"unbillable_minutes":2160,"invoiced_minutes":0,"uninvoiced_minutes":6270,"remaining_minutes":8730,"budgeted_minutes":15000,"participants":[{"id":2,"email":"email_0@domain.com","first_name":"first_name_0","last_name":"last_name_0","profile_image_url":"http://foo.com/0","url":"http://foo.com/1"},{"id":3,"email":"email_1@domain.com","first_name":"first_name_1","last_name":"last_name_1","profile_image_url":"http://foo.com/1","url":"http://foo.com/2"},{"id":4,"email":"email_2@domain.com","first_name":"first_name_2","last_name":"last_name_2","profile_image_url":"http://foo.com/2","url":"http://foo.com/3"},{"id":5,"email":"email_3@domain.com","first_name":"first_name_3","last_name":"last_name_3","profile_image_url":"http://foo.com/3","url":"http://foo.com/4"},{"id":6,"email":"email_4@domain.com","first_name":"first_name_4","last_name":"last_name_4","profile_image_url":"","url":"http://foo.com/5"}],"entries":36,"entries_url":"http://foo.com/6/entries","url":"http://foo.com/6","merge_url":"http://foo.com/6/merge","archive_url":"http://foo.com/6/archive","unarchive_url":"http://foo.com/6/unarchive"}'
45
+ string: '{"id":0,"name":"name_0","description":"","billing_increment":5,"enabled":false,"billable":true,"color":"#13a480","created_at":"2018-07-16T08:32:45Z","updated_at":"2019-02-27T06:18:19Z","group":{"id":1,"name":"name_1","url":"http://foo.com/0"},"minutes":24670,"billable_minutes":22510,"unbillable_minutes":2160,"invoiced_minutes":0,"uninvoiced_minutes":22510,"remaining_minutes":-310,"budgeted_minutes":22200,"participants":[{"id":2,"email":"email_0@domain.com","first_name":"first_name_0","last_name":"last_name_0","profile_image_url":"http://foo.com/0","url":"http://foo.com/1"},{"id":3,"email":"email_1@domain.com","first_name":"first_name_1","last_name":"last_name_1","profile_image_url":"http://foo.com/1","url":"http://foo.com/2"},{"id":4,"email":"email_2@domain.com","first_name":"first_name_2","last_name":"last_name_2","profile_image_url":"http://foo.com/2","url":"http://foo.com/3"},{"id":5,"email":"email_3@domain.com","first_name":"first_name_3","last_name":"last_name_3","profile_image_url":"","url":"http://foo.com/4"},{"id":6,"email":"email_4@domain.com","first_name":"first_name_4","last_name":"last_name_4","profile_image_url":"http://foo.com/3","url":"http://foo.com/5"},{"id":7,"email":"email_5@domain.com","first_name":"first_name_5","last_name":"last_name_5","profile_image_url":"http://foo.com/4","url":"http://foo.com/6"}],"entries":102,"entries_url":"http://foo.com/7/entries","url":"http://foo.com/7","merge_url":"http://foo.com/7/merge","archive_url":"http://foo.com/7/archive","unarchive_url":"http://foo.com/7/unarchive"}'
46
46
  http_version:
47
- recorded_at: Mon, 10 Dec 2018 17:23:57 GMT
47
+ recorded_at: Thu, 29 Aug 2019 08:07:25 GMT
48
48
  recorded_with: VCR 4.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.letsfreckle.com/v2/projects?billable=true&billing_increment=1&enabled=true&name=valid_string&per_page=30&project_group_ids=1
5
+ uri: https://api.nokotime.com/v2/projects?billable=true&billing_increment=1&enabled=true&name=valid_string&per_page=30&project_group_ids=1
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -21,7 +21,7 @@ http_interactions:
21
21
  Server:
22
22
  - nginx
23
23
  Date:
24
- - Mon, 10 Dec 2018 17:23:58 GMT
24
+ - Thu, 29 Aug 2019 08:07:25 GMT
25
25
  Content-Type:
26
26
  - application/json; charset=utf-8
27
27
  Content-Length:
@@ -35,7 +35,7 @@ http_interactions:
35
35
  X-Frame-Options:
36
36
  - SAMEORIGIN
37
37
  X-Runtime:
38
- - '40'
38
+ - '46'
39
39
  Vary:
40
40
  - Origin
41
41
  Strict-Transport-Security:
@@ -44,5 +44,5 @@ http_interactions:
44
44
  encoding: UTF-8
45
45
  string: "[]"
46
46
  http_version:
47
- recorded_at: Mon, 10 Dec 2018 17:23:58 GMT
47
+ recorded_at: Thu, 29 Aug 2019 08:07:25 GMT
48
48
  recorded_with: VCR 4.0.0