action_kit_rest 0.4.11 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/CHANGELOG.md +15 -0
  4. data/Gemfile +3 -14
  5. data/Rakefile +4 -38
  6. data/action_kit_rest.gemspec +43 -105
  7. data/lib/action_kit_rest/api.rb +21 -10
  8. data/lib/action_kit_rest/response/raise_error.rb +1 -1
  9. data/lib/action_kit_rest/response/wrapper.rb +1 -1
  10. data/lib/action_kit_rest/user.rb +1 -1
  11. data/lib/action_kit_rest/version.rb +3 -3
  12. metadata +65 -47
  13. data/.document +0 -5
  14. data/.github/workflows/ci.yml +0 -24
  15. data/spec/fixtures/action/event_create_action.json +0 -24
  16. data/spec/fixtures/action/event_signup_action.json +0 -24
  17. data/spec/fixtures/allowed_user_field/get.json +0 -19
  18. data/spec/fixtures/allowed_user_field/list.json +0 -49
  19. data/spec/fixtures/allowed_user_field/list_filtered.json +0 -30
  20. data/spec/fixtures/error.json +0 -1
  21. data/spec/fixtures/page/campaign.json +0 -32
  22. data/spec/fixtures/page/collection.json +0 -984
  23. data/spec/fixtures/page/find_campaign.json +0 -43
  24. data/spec/fixtures/page/find_event_create.json +0 -42
  25. data/spec/fixtures/page/find_event_signup.json +0 -41
  26. data/spec/fixtures/page/object.json +0 -18
  27. data/spec/fixtures/phone/object.json +0 -33
  28. data/spec/fixtures/user/object_with_phones.json +0 -1
  29. data/spec/fixtures/user/object_without_phones.json +0 -1
  30. data/spec/lib/action_kit_rest/actions/event_create_action_spec.rb +0 -22
  31. data/spec/lib/action_kit_rest/actions/event_signup_action_spec.rb +0 -22
  32. data/spec/lib/action_kit_rest/allowed_user_field_spec.rb +0 -80
  33. data/spec/lib/action_kit_rest/api_spec.rb +0 -111
  34. data/spec/lib/action_kit_rest/logger_spec.rb +0 -22
  35. data/spec/lib/action_kit_rest/page_spec.rb +0 -112
  36. data/spec/lib/action_kit_rest/pages/event_campaign_page_spec.rb +0 -77
  37. data/spec/lib/action_kit_rest/pages/import_page_spec.rb +0 -53
  38. data/spec/lib/action_kit_rest/response/collection_spec.rb +0 -28
  39. data/spec/lib/action_kit_rest/response/validation_error_spec.rb +0 -39
  40. data/spec/lib/action_kit_rest/response/wrapper_spec.rb +0 -27
  41. data/spec/lib/action_kit_rest/user_spec.rb +0 -73
  42. data/spec/spec_helper.rb +0 -51
  43. data/spec/support/shared_contexts/stub_logger.rb +0 -11
@@ -1,49 +0,0 @@
1
- {
2
- "meta": {
3
- "limit": 20,
4
- "next": "/rest/v1/alloweduserfield/?_offset=20&_limit=20",
5
- "offset": 0,
6
- "previous": null,
7
- "total_count": 124
8
- },
9
- "objects": [
10
- {
11
- "allow_multiple": false,
12
- "always_show": false,
13
- "choices": [],
14
- "created_at": "2016-10-19T01:39:35",
15
- "description": "",
16
- "display_name": "age",
17
- "field_choices": "",
18
- "field_default": "",
19
- "field_length": null,
20
- "field_regex": "",
21
- "field_type": "integer",
22
- "hidden": false,
23
- "name": "age",
24
- "order_index": 0,
25
- "required": false,
26
- "resource_uri": "/rest/v1/alloweduserfield/age/",
27
- "updated_at": "2016-10-19T01:39:35"
28
- },
29
- {
30
- "allow_multiple": false,
31
- "always_show": false,
32
- "choices": [],
33
- "created_at": "2017-08-21T00:50:53",
34
- "description": "",
35
- "display_name": "email",
36
- "field_choices": "",
37
- "field_default": "",
38
- "field_length": null,
39
- "field_regex": "",
40
- "field_type": "text",
41
- "hidden": false,
42
- "name": "email",
43
- "order_index": 0,
44
- "required": false,
45
- "resource_uri": "/rest/v1/alloweduserfield/email/",
46
- "updated_at": "2017-08-21T00:50:53"
47
- }
48
- ]
49
- }
@@ -1,30 +0,0 @@
1
- {
2
- "meta": {
3
- "limit": 20,
4
- "next": "/rest/v1/alloweduserfield/?_offset=20&_limit=20",
5
- "offset": 0,
6
- "previous": null,
7
- "total_count": 124
8
- },
9
- "objects": [
10
- {
11
- "allow_multiple": false,
12
- "always_show": false,
13
- "choices": [],
14
- "created_at": "2016-10-19T01:39:35",
15
- "description": "",
16
- "display_name": "age",
17
- "field_choices": "",
18
- "field_default": "",
19
- "field_length": null,
20
- "field_regex": "",
21
- "field_type": "integer",
22
- "hidden": false,
23
- "name": "age",
24
- "order_index": 0,
25
- "required": false,
26
- "resource_uri": "/rest/v1/alloweduserfield/age/",
27
- "updated_at": "2016-10-19T01:39:35"
28
- }
29
- ]
30
- }
@@ -1 +0,0 @@
1
- {"errors": {"zip": ["There seems to be a problem with what you entered for ZIP Code. Check to make sure your information is typo-free and correctly formatted."]}}
@@ -1,32 +0,0 @@
1
- {
2
- "allow_private":true,
3
- "created_at":"2010-11-30T18:45:43",
4
- "default_event_size":50,
5
- "default_title":"",
6
- "eventcreatepages":[],
7
- "events":"/rest/v1/event/?campaign=88",
8
- "eventsignuppages":[],
9
- "id":88,
10
- "max_event_size":null,
11
- "name":"climate-change-paris-2015",
12
- "public_create_page":true,
13
- "public_search_page":true,
14
- "require_email_confirmation":true,
15
- "require_staff_approval":false,
16
- "resource_uri":"/rest/v1/campaign/88/",
17
- "show_address1":false,
18
- "show_attendee_count":false,
19
- "show_city":true,
20
- "show_directions":false,
21
- "show_public_description":true,
22
- "show_state":true,
23
- "show_title":true,
24
- "show_venue":true,
25
- "show_zip":true,
26
- "starts_at":null,
27
- "title":"Climate Change Paris 2015",
28
- "updated_at":"2015-06-19T01:39:09",
29
- "use_start_date":true,
30
- "use_start_time":true,
31
- "use_title":true
32
- }