govdelivery-tms 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/Gemfile +1 -1
  2. data/README.md +8 -8
  3. data/govdelivery-tms.gemspec +2 -2
  4. data/lib/{govdelivery-tms → govdelivery/tms}/base.rb +4 -4
  5. data/lib/{govdelivery-tms → govdelivery/tms}/client.rb +9 -9
  6. data/lib/{govdelivery-tms → govdelivery/tms}/collection_resource.rb +2 -2
  7. data/lib/{govdelivery-tms → govdelivery/tms}/connection.rb +4 -4
  8. data/lib/{govdelivery-tms → govdelivery/tms}/errors.rb +1 -1
  9. data/lib/govdelivery/tms/instance_resource.rb +219 -0
  10. data/lib/{govdelivery-tms → govdelivery/tms}/link_header.rb +0 -0
  11. data/lib/{govdelivery-tms → govdelivery/tms}/logger.rb +1 -1
  12. data/lib/{govdelivery-tms → govdelivery/tms}/mail/delivery_method.rb +11 -11
  13. data/lib/govdelivery/tms/resource/collections.rb +98 -0
  14. data/lib/{govdelivery-tms → govdelivery/tms}/resource/command.rb +7 -7
  15. data/lib/{govdelivery-tms → govdelivery/tms}/resource/command_action.rb +1 -1
  16. data/lib/{govdelivery-tms → govdelivery/tms}/resource/command_type.rb +1 -1
  17. data/lib/{govdelivery-tms → govdelivery/tms}/resource/email_message.rb +1 -1
  18. data/lib/{govdelivery-tms → govdelivery/tms}/resource/email_recipient.rb +1 -1
  19. data/lib/{govdelivery-tms → govdelivery/tms}/resource/email_recipient_click.rb +1 -1
  20. data/lib/{govdelivery-tms → govdelivery/tms}/resource/email_recipient_open.rb +1 -1
  21. data/lib/{govdelivery-tms → govdelivery/tms}/resource/email_template.rb +1 -1
  22. data/lib/{govdelivery-tms → govdelivery/tms}/resource/from_address.rb +1 -1
  23. data/lib/{govdelivery-tms → govdelivery/tms}/resource/inbound_sms_message.rb +1 -1
  24. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_acknowledgement.rb +1 -1
  25. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_alert.rb +1 -1
  26. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_category.rb +1 -1
  27. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_cog_profile.rb +1 -1
  28. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_event_code.rb +1 -1
  29. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_nwem_area.rb +1 -1
  30. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_nwem_authorization.rb +1 -1
  31. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_nwem_auxilary_data.rb +1 -1
  32. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_response_type.rb +1 -1
  33. data/lib/{govdelivery-tms → govdelivery/tms}/resource/ipaws_static_resource.rb +2 -2
  34. data/lib/{govdelivery-tms → govdelivery/tms}/resource/keyword.rb +1 -1
  35. data/lib/{govdelivery-tms → govdelivery/tms}/resource/recipient.rb +1 -1
  36. data/lib/{govdelivery-tms → govdelivery/tms}/resource/sms_message.rb +1 -1
  37. data/lib/{govdelivery-tms → govdelivery/tms}/resource/webhook.rb +1 -1
  38. data/lib/{govdelivery-tms → govdelivery/tms}/util/core_ext.rb +1 -1
  39. data/lib/{govdelivery-tms → govdelivery/tms}/util/hal_link_parser.rb +2 -2
  40. data/lib/govdelivery/tms/version.rb +5 -0
  41. data/lib/govdelivery-tms/instance_resource.rb +7 -7
  42. data/lib/govdelivery-tms.rb +38 -36
  43. data/spec/client_spec.rb +18 -18
  44. data/spec/command_types_spec.rb +6 -6
  45. data/spec/email_message_spec.rb +58 -58
  46. data/spec/email_template_spec.rb +39 -39
  47. data/spec/errors_spec.rb +3 -3
  48. data/spec/from_address_spec.rb +22 -22
  49. data/spec/inbound_sms_messages_spec.rb +5 -5
  50. data/spec/instance_resource_spec.rb +14 -14
  51. data/spec/ipaws_acknowledgement_spec.rb +6 -6
  52. data/spec/ipaws_alerts_spec.rb +31 -31
  53. data/spec/ipaws_cog_profile_spec.rb +26 -26
  54. data/spec/ipaws_event_codes_spec.rb +5 -5
  55. data/spec/ipaws_nwem_areas_spec.rb +22 -22
  56. data/spec/ipaws_nwem_authorization_spec.rb +6 -6
  57. data/spec/keyword_spec.rb +23 -23
  58. data/spec/keywords_spec.rb +5 -5
  59. data/spec/mail/delivery_method_spec.rb +19 -19
  60. data/spec/sms_message_spec.rb +29 -29
  61. data/spec/sms_messages_spec.rb +7 -7
  62. data/spec/spec_helper.rb +2 -3
  63. data/spec/tms_spec.rb +2 -2
  64. metadata +50 -41
  65. checksums.yaml +0 -15
  66. data/lib/govdelivery-tms/resource/collections.rb +0 -98
  67. data/lib/govdelivery-tms/version.rb +0 -3
@@ -1,98 +0,0 @@
1
- class TMS::Emails
2
- include TMS::CollectionResource
3
- end
4
-
5
- class TMS::SmsMessages
6
- include TMS::CollectionResource
7
- end
8
-
9
- class TMS::EmailMessages
10
- include TMS::CollectionResource
11
- end
12
-
13
- class TMS::Recipients
14
- include TMS::CollectionResource
15
- end
16
-
17
- class TMS::EmailRecipients
18
- include TMS::CollectionResource
19
- end
20
-
21
- class TMS::EmailRecipientOpens
22
- include TMS::CollectionResource
23
- end
24
-
25
- class TMS::EmailRecipientClicks
26
- include TMS::CollectionResource
27
- end
28
-
29
- # A collection of Keyword objects.
30
- #
31
- # @example
32
- # keywords = client.keywords.get
33
- #
34
- class TMS::Keywords
35
- include TMS::CollectionResource
36
- end
37
-
38
- class TMS::InboundSmsMessages
39
- include TMS::CollectionResource
40
- end
41
-
42
- # A collection of CommandType instances.
43
- # This resource changes infrequently. It may be used to dynamically construct a
44
- # user interface for configuring arbitrary SMS keywords for an account.
45
- #
46
- # This resource is read-only.
47
- #
48
- # @example
49
- # client.command_types.get
50
- # client.command_types.collection.each {|at| ... }
51
- class TMS::CommandTypes
52
- include TMS::CollectionResource
53
- end
54
-
55
- class TMS::Commands
56
- include TMS::CollectionResource
57
- end
58
-
59
- class TMS::CommandActions
60
- include TMS::CollectionResource
61
- end
62
-
63
- class TMS::IpawsEventCodes
64
- include TMS::CollectionResource
65
- end
66
-
67
- class TMS::IpawsCategories
68
- include TMS::CollectionResource
69
- end
70
-
71
- class TMS::IpawsResponseTypes
72
- include TMS::CollectionResource
73
- end
74
-
75
- class TMS::IpawsAlerts
76
- include TMS::CollectionResource
77
- end
78
-
79
- class TMS::IpawsNwemAreas
80
- include TMS::CollectionResource
81
- end
82
-
83
- class TMS::Webhooks
84
- include TMS::CollectionResource
85
- end
86
-
87
- # A collection of Email Template objects.
88
- #
89
- # @example
90
- # email_template = client.email_template.get
91
- #
92
- class TMS::EmailTemplates
93
- include TMS::CollectionResource
94
- end
95
-
96
- class TMS::FromAddresses
97
- include TMS::CollectionResource
98
- end
@@ -1,3 +0,0 @@
1
- module TMS #:nodoc:
2
- VERSION = "0.8.0"
3
- end