teamsnap_rb 2.0.0.beta6 → 2.0.0.beta7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile +1 -0
  4. data/lib/teamsnap/item.rb +9 -2
  5. data/lib/teamsnap/version.rb +1 -1
  6. data/spec/cassettes/apiv3-init.yml +241 -166
  7. data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/does_not_raise_an_error_when_the_HTTP_actions_are_called.yml +12 -10
  8. data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/passes_them_to_the_faraday_client_using_method_missing.yml +12 -10
  9. data/spec/cassettes/teamsnap__collection/adds_find_if_search_is_available.yml +19 -14
  10. data/spec/cassettes/teamsnap__collection/adds_href_to_items.yml +20 -13
  11. data/spec/cassettes/teamsnap__collection/can_follow_plural_links.yml +87 -45
  12. data/spec/cassettes/teamsnap__collection/can_follow_singular_links.yml +39 -27
  13. data/spec/cassettes/teamsnap__collection/can_handle_links_with_no_data.yml +28 -21
  14. data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands.yml +20 -13
  15. data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands_with_multiple_params.yml +19 -11
  16. data/spec/cassettes/teamsnap__collection/handles_fetching_data_via_queries.yml +19 -14
  17. data/spec/cassettes/teamsnap__collection/handles_queries_with_no_data.yml +15 -11
  18. data/spec/cassettes/teamsnap__collection/raises_an_exception_if_find_returns_nothing.yml +15 -11
  19. data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_plural_relation_is_called/responds_with_an_array_of_objects_when_successful.yml +26 -24
  20. data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_plural_relation_is_called/responds_with_an_empty_array_when_no_objects_exist.yml +22 -20
  21. data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_nil_if_it_does_NOT_exist.yml +25 -22
  22. data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_the_object_if_it_exists.yml +33 -26
  23. data/spec/cassettes/teamsnap__structure/_create_collection_class/registers_new_classes_via_introspection_of_the_root_collection.yml +15 -11
  24. data/spec/cassettes/teamsnap__structure/_create_collection_class/sets_the_href_attribute_on_the_new_class.yml +15 -11
  25. data/spec/cassettes/teamsnap__structure/_init/has_all_classes_in_schema_loaded_except_for_exceptions_list_endpoints.yml +12 -10
  26. data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_empty_bulk_load.yml +8 -8
  27. data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_error_with_bulk_load_without_a_team_id.yml +6 -6
  28. data/spec/cassettes/teamsnap_rb/_bulk_load/can_use_bulk_load.yml +65 -32
  29. data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_DELETE_on_the_given_client.yml +242 -85
  30. data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_GET_on_the_given_client.yml +12 -10
  31. data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_PATCH_on_the_given_client.yml +242 -85
  32. data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_POST_on_the_given_client.yml +242 -85
  33. data/spec/cassettes/teamsnap_rb/_run/processes_the_response.yml +48 -40
  34. data/spec/spec_helper.rb +1 -0
  35. data/spec/teamsnap/item_spec.rb +35 -0
  36. data/spec/teamsnap_spec.rb +1 -1
  37. metadata +2 -2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=11b694d7-d15d-48e9-83d8-81186f36b649&hmac_timestamp=1458775793
5
+ uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=df984ea0-7ffd-4ec3-99af-2861a925f900&hmac_timestamp=1464801842
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.9.2
12
12
  X-Teamsnap-Hmac:
13
- - d0dab1eb1f755398916d002f4cda51a89e0a93fee239ec322d0358ff14d34d8a
13
+ - c1e753facac4404810d6be6c6ce75e067a9ec9634cadc2a54bb2e00ea907e951
14
14
  response:
15
15
  status:
16
16
  code: 200
@@ -19,24 +19,24 @@ http_interactions:
19
19
  Content-Type:
20
20
  - application/vnd.collection+json
21
21
  Content-Length:
22
- - '7815'
22
+ - '7979'
23
23
  X-Content-Type-Options:
24
24
  - nosniff
25
25
  ETag:
26
- - '"fc8dfdf58c6bfc1a57e5001982e2308e"'
26
+ - '"45f87573cadf9c70913ffc9640442bd2"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 5695d558-0e7e-4f77-a5e9-f089c34b557d
30
+ - 435c1c68-0402-4646-9ef7-a952f0427ea4
31
31
  X-Runtime:
32
- - '0.075351'
32
+ - '0.077901'
33
33
  Connection:
34
34
  - keep-alive
35
35
  Server:
36
36
  - thin
37
37
  body:
38
38
  encoding: UTF-8
39
- string: '{"collection":{"version":"3.207.1","href":"http://localhost:3000/events","rel":"events","template":{"data":[{"name":"type","value":"event"},{"name":"additional_location_details","value":null},{"name":"browser_time_zone","value":null},{"name":"division_location_id","value":null},{"name":"doesnt_count_towards_record","value":null},{"name":"duration_in_minutes","value":null},{"name":"game_type_code","value":null},{"name":"icon_color","value":null},{"name":"is_canceled","value":null},{"name":"is_game","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"is_tbd","value":null},{"name":"label","value":null},{"name":"location_id","value":null},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":null},{"name":"notes","value":null},{"name":"notify_opponent","value":null},{"name":"notify_opponent_contacts_email","value":null},{"name":"notify_opponent_contacts_name","value":null},{"name":"notify_opponent_notes","value":null},{"name":"notify_team","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"opponent_id","value":null},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_include","value":null,"prompt":"When
39
+ string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/events","rel":"events","template":{"data":[{"name":"type","value":"event"},{"name":"additional_location_details","value":null},{"name":"browser_time_zone","value":null},{"name":"division_location_id","value":null},{"name":"doesnt_count_towards_record","value":null},{"name":"duration_in_minutes","value":null},{"name":"game_type_code","value":null},{"name":"icon_color","value":null},{"name":"is_canceled","value":null},{"name":"is_game","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"is_tbd","value":null},{"name":"label","value":null},{"name":"location_id","value":null},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":null},{"name":"notes","value":null},{"name":"notify_opponent","value":null},{"name":"notify_opponent_contacts_email","value":null},{"name":"notify_opponent_contacts_name","value":null},{"name":"notify_opponent_notes","value":null},{"name":"notify_team","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"opponent_id","value":null},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_include","value":null,"prompt":"When
40
40
  updating a repeating event, this is a required field. Values are: \"all\"
41
41
  - updates all events in this series, \"future\" - updates this event and all
42
42
  that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
@@ -46,11 +46,13 @@ http_interactions:
46
46
  date when the repeating event should end, this is inclusive so an event will
47
47
  be created on this day if it falls before the next event specified by \"repeating_type_code\".
48
48
  This attribute is required with \"repeating_type_code\" when creating a repeating
49
- event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
49
+ event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","sort":["start_date"],"href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
50
50
  number of items to return for each page. Sending this parameter with the query
51
51
  will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
52
52
  number of the page to be returned. This requires that paging be turned on
53
- by also providing the page_size parameter."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null}]},{"rel":"overview","href":"http://localhost:3000/events/overview","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_availability_reminders","href":"http://localhost:3000/events/send_availability_reminders","prompt":"members_to_notify
53
+ by also providing the page_size parameter."},{"name":"sort_start_date","value":null,"prompt":"Sort
54
+ the returned dataset based on the start_date field, valid values are ''asc''
55
+ or ''desc''."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null}]},{"rel":"overview","href":"http://localhost:3000/events/overview","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_availability_reminders","href":"http://localhost:3000/events/send_availability_reminders","prompt":"members_to_notify
54
56
  = [member_id, member_id]","data":[{"name":"id","value":null},{"name":"members_to_notify","value":null},{"name":"notify_team_as_member_id","value":null}]},{"rel":"update_final_score","href":"http://localhost:3000/events/update_final_score","prompt":"Update
55
57
  the final score for an event","data":[{"name":"id","value":null},{"name":"points_for_team","value":null},{"name":"points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"results","value":null},{"name":"results_url","value":null}]},{"rel":"bulk_create","href":"http://localhost:3000/events/bulk_create","prompt":"event_ids
56
58
  = [event_id, event_id]","data":[{"name":"templates","value":null},{"name":"team_id","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"notify_team","value":null}]}],"items":[{"href":"http://localhost:3000/events/1","data":[{"name":"id","value":1},{"name":"type","value":"event"},{"name":"additional_location_details","value":"Court
@@ -58,14 +60,14 @@ http_interactions:
58
60
  Specified"},{"name":"game_type_code","value":null},{"name":"icon_color","value":"blue"},{"name":"is_canceled","value":false},{"name":"is_game","value":false},{"name":"is_overtime","value":false},{"name":"is_shootout","value":false},{"name":"is_tbd","value":false},{"name":"label","value":null},{"name":"location_id","value":1},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":"March
59
61
  Madness Game 1"},{"name":"notes","value":null},{"name":"opponent_id","value":1},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_type","value":null},{"name":"repeating_type_code","value":null},{"name":"repeating_uuid","value":null},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"team_id","value":1},{"name":"time_zone","value":"Mountain
60
62
  Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
61
- (US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-03-23T23:07:48Z","type":"DateTime"},{"name":"updated_at","value":"2016-03-23T23:07:50Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?event_id=1"},{"rel":"calendar_single_event","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/event/1.ics"},{"rel":"division_location","href":"http://localhost:3000/division_locations/"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"opponent","href":"http://localhost:3000/opponents/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
63
+ (US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-06-01T16:41:14Z","type":"DateTime"},{"name":"updated_at","value":"2016-06-01T16:41:15Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?event_id=1"},{"rel":"calendar_single_event","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/event/1.ics"},{"rel":"division_location","href":"http://localhost:3000/division_locations/"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"opponent","href":"http://localhost:3000/opponents/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
62
64
  http_version: '1.1'
63
65
  adapter_metadata:
64
- effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=11b694d7-d15d-48e9-83d8-81186f36b649&hmac_timestamp=1458775793
65
- recorded_at: Wed, 23 Mar 2016 23:29:53 GMT
66
+ effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=df984ea0-7ffd-4ec3-99af-2861a925f900&hmac_timestamp=1464801842
67
+ recorded_at: Wed, 01 Jun 2016 17:24:02 GMT
66
68
  - request:
67
69
  method: get
68
- uri: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=6c213e81-2d7b-499c-b4fc-b86a83883950&hmac_timestamp=1458775793
70
+ uri: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=71abe6cc-fbad-456c-b138-d9f99d422570&hmac_timestamp=1464801842
69
71
  body:
70
72
  encoding: US-ASCII
71
73
  string: ''
@@ -73,7 +75,7 @@ http_interactions:
73
75
  User-Agent:
74
76
  - Faraday v0.9.2
75
77
  X-Teamsnap-Hmac:
76
- - 9da8609b67178cb93b5e97a8b2afd30d5693c44e027af9b5903d76578665bce5
78
+ - bce84277b3654d8985fc75a79f4bea81833ff3eefbee8a23969a7ae02de4c726
77
79
  response:
78
80
  status:
79
81
  code: 200
@@ -86,26 +88,26 @@ http_interactions:
86
88
  X-Content-Type-Options:
87
89
  - nosniff
88
90
  ETag:
89
- - '"711c796f660081a45500b2b3e6484d64"'
91
+ - '"7f9d69b2319ca5668a4e3939a1d1f447"'
90
92
  Cache-Control:
91
93
  - max-age=0, private, must-revalidate
92
94
  X-Request-Id:
93
- - 0aaeb698-bc15-4075-b654-0d1b92231b1a
95
+ - aa1c6c40-d36c-4b37-ad1e-cc05646ad31d
94
96
  X-Runtime:
95
- - '0.068792'
97
+ - '0.052566'
96
98
  Connection:
97
99
  - keep-alive
98
100
  Server:
99
101
  - thin
100
102
  body:
101
103
  encoding: UTF-8
102
- string: '{"collection":{"version":"3.207.1","href":"http://localhost:3000/assignments","rel":"assignments","template":{"data":[{"name":"description","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"type","value":"assignment"}]},"links":[{"rel":"event","href":"http://localhost:3000/events"},{"rel":"member","href":"http://localhost:3000/members"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/assignments/search?event_id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/assignments/search","data":[{"name":"team_id","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"started_before","value":null},{"name":"started_after","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
104
+ string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/assignments","rel":"assignments","template":{"data":[{"name":"description","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"type","value":"assignment"}]},"links":[{"rel":"event","href":"http://localhost:3000/events"},{"rel":"member","href":"http://localhost:3000/members"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/assignments/search?event_id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/assignments/search","data":[{"name":"team_id","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"started_before","value":null},{"name":"started_after","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
103
105
  number of items to return for each page. Sending this parameter with the query
104
106
  will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
105
107
  number of the page to be returned. This requires that paging be turned on
106
108
  by also providing the page_size parameter."}]}]}}'
107
109
  http_version: '1.1'
108
110
  adapter_metadata:
109
- effective_url: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=6c213e81-2d7b-499c-b4fc-b86a83883950&hmac_timestamp=1458775793
110
- recorded_at: Wed, 23 Mar 2016 23:29:53 GMT
111
+ effective_url: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=71abe6cc-fbad-456c-b138-d9f99d422570&hmac_timestamp=1464801842
112
+ recorded_at: Wed, 01 Jun 2016 17:24:02 GMT
111
113
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=85f069e0-66aa-42e7-adc9-07c9922331db&hmac_timestamp=1458775794
5
+ uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=95df849d-9351-4885-9079-01563f68ef6e&hmac_timestamp=1464801842
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ http_interactions:
10
10
  User-Agent:
11
11
  - Faraday v0.9.2
12
12
  X-Teamsnap-Hmac:
13
- - 661e1e1c53d8806be16aa0c706529fcc5af0d53d723270a626b559dc8cf2718d
13
+ - e30d92a5fa4f45decd0bcccec345e896e9dc3e6f1b077838d12e9a7b081bfbe0
14
14
  response:
15
15
  status:
16
16
  code: 200
@@ -19,24 +19,24 @@ http_interactions:
19
19
  Content-Type:
20
20
  - application/vnd.collection+json
21
21
  Content-Length:
22
- - '7815'
22
+ - '7979'
23
23
  X-Content-Type-Options:
24
24
  - nosniff
25
25
  ETag:
26
- - '"fc8dfdf58c6bfc1a57e5001982e2308e"'
26
+ - '"45f87573cadf9c70913ffc9640442bd2"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - c09a63e8-b61d-49db-ab71-e8d24cf1f3ca
30
+ - 404a602c-5067-409c-8371-d1a08fdf83fe
31
31
  X-Runtime:
32
- - '0.067326'
32
+ - '0.075012'
33
33
  Connection:
34
34
  - keep-alive
35
35
  Server:
36
36
  - thin
37
37
  body:
38
38
  encoding: UTF-8
39
- string: '{"collection":{"version":"3.207.1","href":"http://localhost:3000/events","rel":"events","template":{"data":[{"name":"type","value":"event"},{"name":"additional_location_details","value":null},{"name":"browser_time_zone","value":null},{"name":"division_location_id","value":null},{"name":"doesnt_count_towards_record","value":null},{"name":"duration_in_minutes","value":null},{"name":"game_type_code","value":null},{"name":"icon_color","value":null},{"name":"is_canceled","value":null},{"name":"is_game","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"is_tbd","value":null},{"name":"label","value":null},{"name":"location_id","value":null},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":null},{"name":"notes","value":null},{"name":"notify_opponent","value":null},{"name":"notify_opponent_contacts_email","value":null},{"name":"notify_opponent_contacts_name","value":null},{"name":"notify_opponent_notes","value":null},{"name":"notify_team","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"opponent_id","value":null},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_include","value":null,"prompt":"When
39
+ string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/events","rel":"events","template":{"data":[{"name":"type","value":"event"},{"name":"additional_location_details","value":null},{"name":"browser_time_zone","value":null},{"name":"division_location_id","value":null},{"name":"doesnt_count_towards_record","value":null},{"name":"duration_in_minutes","value":null},{"name":"game_type_code","value":null},{"name":"icon_color","value":null},{"name":"is_canceled","value":null},{"name":"is_game","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"is_tbd","value":null},{"name":"label","value":null},{"name":"location_id","value":null},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":null},{"name":"notes","value":null},{"name":"notify_opponent","value":null},{"name":"notify_opponent_contacts_email","value":null},{"name":"notify_opponent_contacts_name","value":null},{"name":"notify_opponent_notes","value":null},{"name":"notify_team","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"opponent_id","value":null},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_include","value":null,"prompt":"When
40
40
  updating a repeating event, this is a required field. Values are: \"all\"
41
41
  - updates all events in this series, \"future\" - updates this event and all
42
42
  that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
@@ -46,11 +46,13 @@ http_interactions:
46
46
  date when the repeating event should end, this is inclusive so an event will
47
47
  be created on this day if it falls before the next event specified by \"repeating_type_code\".
48
48
  This attribute is required with \"repeating_type_code\" when creating a repeating
49
- event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
49
+ event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","sort":["start_date"],"href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
50
50
  number of items to return for each page. Sending this parameter with the query
51
51
  will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
52
52
  number of the page to be returned. This requires that paging be turned on
53
- by also providing the page_size parameter."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null}]},{"rel":"overview","href":"http://localhost:3000/events/overview","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_availability_reminders","href":"http://localhost:3000/events/send_availability_reminders","prompt":"members_to_notify
53
+ by also providing the page_size parameter."},{"name":"sort_start_date","value":null,"prompt":"Sort
54
+ the returned dataset based on the start_date field, valid values are ''asc''
55
+ or ''desc''."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null}]},{"rel":"overview","href":"http://localhost:3000/events/overview","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_availability_reminders","href":"http://localhost:3000/events/send_availability_reminders","prompt":"members_to_notify
54
56
  = [member_id, member_id]","data":[{"name":"id","value":null},{"name":"members_to_notify","value":null},{"name":"notify_team_as_member_id","value":null}]},{"rel":"update_final_score","href":"http://localhost:3000/events/update_final_score","prompt":"Update
55
57
  the final score for an event","data":[{"name":"id","value":null},{"name":"points_for_team","value":null},{"name":"points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"results","value":null},{"name":"results_url","value":null}]},{"rel":"bulk_create","href":"http://localhost:3000/events/bulk_create","prompt":"event_ids
56
58
  = [event_id, event_id]","data":[{"name":"templates","value":null},{"name":"team_id","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"notify_team","value":null}]}],"items":[{"href":"http://localhost:3000/events/1","data":[{"name":"id","value":1},{"name":"type","value":"event"},{"name":"additional_location_details","value":"Court
@@ -58,14 +60,14 @@ http_interactions:
58
60
  Specified"},{"name":"game_type_code","value":null},{"name":"icon_color","value":"blue"},{"name":"is_canceled","value":false},{"name":"is_game","value":false},{"name":"is_overtime","value":false},{"name":"is_shootout","value":false},{"name":"is_tbd","value":false},{"name":"label","value":null},{"name":"location_id","value":1},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":"March
59
61
  Madness Game 1"},{"name":"notes","value":null},{"name":"opponent_id","value":1},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_type","value":null},{"name":"repeating_type_code","value":null},{"name":"repeating_uuid","value":null},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"team_id","value":1},{"name":"time_zone","value":"Mountain
60
62
  Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
61
- (US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-03-23T23:07:48Z","type":"DateTime"},{"name":"updated_at","value":"2016-03-23T23:07:50Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?event_id=1"},{"rel":"calendar_single_event","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/event/1.ics"},{"rel":"division_location","href":"http://localhost:3000/division_locations/"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"opponent","href":"http://localhost:3000/opponents/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
63
+ (US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-06-01T16:41:14Z","type":"DateTime"},{"name":"updated_at","value":"2016-06-01T16:41:15Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?event_id=1"},{"rel":"calendar_single_event","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/event/1.ics"},{"rel":"division_location","href":"http://localhost:3000/division_locations/"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"opponent","href":"http://localhost:3000/opponents/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
62
64
  http_version: '1.1'
63
65
  adapter_metadata:
64
- effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=85f069e0-66aa-42e7-adc9-07c9922331db&hmac_timestamp=1458775794
65
- recorded_at: Wed, 23 Mar 2016 23:29:54 GMT
66
+ effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=95df849d-9351-4885-9079-01563f68ef6e&hmac_timestamp=1464801842
67
+ recorded_at: Wed, 01 Jun 2016 17:24:02 GMT
66
68
  - request:
67
69
  method: get
68
- uri: http://localhost:3000/division_locations/?hmac_client_id=classic&hmac_nonce=6b695452-04be-469d-961f-e1ae553be874&hmac_timestamp=1458775794
70
+ uri: http://localhost:3000/division_locations/?hmac_client_id=classic&hmac_nonce=627c6848-6710-4576-bb41-b2f0e1de7387&hmac_timestamp=1464801842
69
71
  body:
70
72
  encoding: US-ASCII
71
73
  string: ''
@@ -73,7 +75,7 @@ http_interactions:
73
75
  User-Agent:
74
76
  - Faraday v0.9.2
75
77
  X-Teamsnap-Hmac:
76
- - a1d0293fd2c7df18141b6fbaa80e41d1262db56f5af1ecf70a8964952d6688aa
78
+ - 37c73ab7c206b1e5e23223f111d995239a2a6a4072e63bd9386fdc84108407b7
77
79
  response:
78
80
  status:
79
81
  code: 200
@@ -82,30 +84,31 @@ http_interactions:
82
84
  Content-Type:
83
85
  - application/vnd.collection+json
84
86
  Content-Length:
85
- - '824'
87
+ - '1396'
86
88
  X-Content-Type-Options:
87
89
  - nosniff
88
90
  ETag:
89
- - '"e5bfa451623665606221d824b5c13897"'
91
+ - '"eb76a9188f60fb2a72fe5c084f8a62bd"'
90
92
  Cache-Control:
91
93
  - max-age=0, private, must-revalidate
92
94
  X-Request-Id:
93
- - 01d72929-9b36-44b9-a270-743c080dbff1
95
+ - 2fee233e-e20e-4d46-9d1a-34c3d510197c
94
96
  X-Runtime:
95
- - '0.062663'
97
+ - '0.050008'
96
98
  Connection:
97
99
  - keep-alive
98
100
  Server:
99
101
  - thin
100
102
  body:
101
103
  encoding: UTF-8
102
- string: '{"collection":{"version":"3.207.1","href":"http://localhost:3000/division_locations","rel":"division_locations","links":[{"rel":"events","href":"http://localhost:3000/events"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/division_locations"}],"queries":[{"rel":"search","href":"http://localhost:3000/division_locations/search","data":[{"name":"division_id","value":null},{"name":"team_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
104
+ string: '{"collection":{"version":"3.276.0","href":"http://localhost:3000/division_locations","rel":"division_locations","template":{"data":[{"name":"name","value":null},{"name":"url","value":null},{"name":"phone","value":null},{"name":"notes","value":null},{"name":"address","value":null},{"name":"division_id","value":null},{"name":"type","value":"division_location"}]},"links":[{"rel":"events","href":"http://localhost:3000/events"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/division_locations"}],"queries":[{"rel":"search","href":"http://localhost:3000/division_locations/search","data":[{"name":"division_id","value":null},{"name":"team_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
103
105
  number of items to return for each page. Sending this parameter with the query
104
106
  will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
105
107
  number of the page to be returned. This requires that paging be turned on
106
- by also providing the page_size parameter."}]}]}}'
108
+ by also providing the page_size parameter."}]}],"commands":[{"rel":"import_from_division","href":"http://localhost:3000/division_locations/import_from_division","prompt":"Copy
109
+ the specified ''source_division_location_ids'' to the specified ''destination_division_id''.","data":[{"name":"destination_division_id","value":null},{"name":"source_location_ids","value":null}]}]}}'
107
110
  http_version: '1.1'
108
111
  adapter_metadata:
109
- effective_url: http://localhost:3000/division_locations/?hmac_client_id=classic&hmac_nonce=6b695452-04be-469d-961f-e1ae553be874&hmac_timestamp=1458775794
110
- recorded_at: Wed, 23 Mar 2016 23:29:54 GMT
112
+ effective_url: http://localhost:3000/division_locations/?hmac_client_id=classic&hmac_nonce=627c6848-6710-4576-bb41-b2f0e1de7387&hmac_timestamp=1464801842
113
+ recorded_at: Wed, 01 Jun 2016 17:24:02 GMT
111
114
  recorded_with: VCR 2.9.3