seven_api 0.5.0 → 0.6.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 (112) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +7 -6
  3. data/.idea/inspectionProfiles/Project_Default.xml +5 -5
  4. data/.idea/ruby-client.iml +51 -4
  5. data/Gemfile +2 -2
  6. data/LICENSE +21 -21
  7. data/README.md +3 -3
  8. data/Rakefile +5 -5
  9. data/doc/{Sms77 → SevenApi}/Client.html +229 -229
  10. data/doc/{Sms77 → SevenApi}/Contacts/Action.html +130 -130
  11. data/doc/{Sms77 → SevenApi}/Contacts.html +125 -125
  12. data/doc/{Sms77 → SevenApi}/Endpoint.html +186 -186
  13. data/doc/{Sms77 → SevenApi}/Hooks/Action.html +130 -130
  14. data/doc/{Sms77 → SevenApi}/Hooks/EventType.html +145 -145
  15. data/doc/{Sms77 → SevenApi}/Hooks/RequestMethod.html +130 -130
  16. data/doc/{Sms77 → SevenApi}/Hooks/Validator.html +597 -597
  17. data/doc/{Sms77 → SevenApi}/Hooks.html +125 -125
  18. data/doc/{Sms77 → SevenApi}/Journal/Type.html +135 -135
  19. data/doc/{Sms77 → SevenApi}/Journal/Validator.html +393 -393
  20. data/doc/{Sms77 → SevenApi}/Journal.html +125 -125
  21. data/doc/{Sms77 → SevenApi}/Lookup/Type.html +135 -135
  22. data/doc/{Sms77 → SevenApi}/Lookup.html +125 -125
  23. data/doc/{Sms77 → SevenApi}/Resource.html +869 -869
  24. data/doc/{Sms77 → SevenApi}/Resources/Analytics.html +262 -262
  25. data/doc/{Sms77 → SevenApi}/Resources/Balance.html +245 -245
  26. data/doc/{Sms77 → SevenApi}/Resources/Contacts.html +448 -448
  27. data/doc/{Sms77 → SevenApi}/Resources/Hooks.html +456 -456
  28. data/doc/{Sms77 → SevenApi}/Resources/Journal.html +260 -260
  29. data/doc/{Sms77 → SevenApi}/Resources/Lookup.html +539 -539
  30. data/doc/{Sms77 → SevenApi}/Resources/Pricing.html +262 -262
  31. data/doc/{Sms77 → SevenApi}/Resources/Sms.html +260 -260
  32. data/doc/{Sms77 → SevenApi}/Resources/Status.html +260 -260
  33. data/doc/{Sms77 → SevenApi}/Resources/Subaccounts.html +650 -650
  34. data/doc/{Sms77 → SevenApi}/Resources/ValidateForVoice.html +260 -260
  35. data/doc/{Sms77 → SevenApi}/Resources/Voice.html +260 -260
  36. data/doc/SevenApi/Resources.html +128 -0
  37. data/doc/{Sms77 → SevenApi}/Sms/Type.html +125 -125
  38. data/doc/{Sms77 → SevenApi}/Sms.html +125 -125
  39. data/doc/{Sms77 → SevenApi}/Subaccounts/Action.html +140 -140
  40. data/doc/SevenApi/Subaccounts/Validator.html +490 -0
  41. data/doc/{Sms77 → SevenApi}/Subaccounts.html +125 -125
  42. data/doc/{Sms77 → SevenApi}/Util.html +1032 -1032
  43. data/doc/{Sms77.html → SevenApi.html} +145 -145
  44. data/doc/_index.html +443 -443
  45. data/doc/class_list.html +51 -51
  46. data/doc/css/full_list.css +58 -58
  47. data/doc/css/style.css +497 -497
  48. data/doc/file.README.html +110 -111
  49. data/doc/file_list.html +56 -56
  50. data/doc/frames.html +17 -17
  51. data/doc/index.html +110 -111
  52. data/doc/js/app.js +314 -314
  53. data/doc/js/full_list.js +216 -216
  54. data/doc/js/jquery.js +3 -3
  55. data/doc/method_list.html +563 -563
  56. data/doc/top-level-namespace.html +109 -109
  57. data/document.sh +3 -0
  58. data/lib/seven_api/client.rb +32 -30
  59. data/lib/seven_api/contacts.rb +5 -10
  60. data/lib/seven_api/endpoint.rb +5 -0
  61. data/lib/seven_api/hooks.rb +69 -67
  62. data/lib/seven_api/journal.rb +39 -39
  63. data/lib/seven_api/lookup.rb +12 -11
  64. data/lib/seven_api/numbers.rb +9 -0
  65. data/lib/seven_api/paginated.rb +10 -0
  66. data/lib/seven_api/rcs.rb +9 -0
  67. data/lib/seven_api/resource.rb +8 -4
  68. data/lib/seven_api/resources/analytics.rb +54 -21
  69. data/lib/seven_api/resources/balance.rb +19 -19
  70. data/lib/seven_api/resources/contacts.rb +56 -38
  71. data/lib/seven_api/resources/groups.rb +57 -0
  72. data/lib/seven_api/resources/hooks.rb +40 -40
  73. data/lib/seven_api/resources/journal.rb +20 -20
  74. data/lib/seven_api/resources/lookup.rb +63 -47
  75. data/lib/seven_api/resources/numbers.rb +71 -0
  76. data/lib/seven_api/resources/pricing.rb +20 -20
  77. data/lib/seven_api/resources/rcs.rb +39 -0
  78. data/lib/seven_api/resources/sms.rb +29 -20
  79. data/lib/seven_api/resources/status.rb +20 -20
  80. data/lib/seven_api/resources/subaccounts.rb +65 -65
  81. data/lib/seven_api/resources/validate_for_voice.rb +20 -20
  82. data/lib/seven_api/resources/voice.rb +29 -20
  83. data/lib/seven_api/sms.rb +9 -9
  84. data/lib/seven_api/subaccounts.rb +55 -55
  85. data/lib/seven_api/util.rb +68 -68
  86. data/lib/seven_api/version.rb +5 -5
  87. data/lib/seven_api.rb +6 -6
  88. data/release.sh +4 -4
  89. data/seven_api.gemspec +5 -5
  90. data/spec/EnvKeyStore.rb +14 -14
  91. data/spec/matchers.rb +22 -22
  92. data/spec/seven_api/analytics_spec.rb +49 -0
  93. data/spec/seven_api/balance_spec.rb +18 -12
  94. data/spec/seven_api/client_spec.rb +15 -15
  95. data/spec/seven_api/contacts_spec.rb +100 -129
  96. data/spec/seven_api/groups_spec.rb +74 -0
  97. data/spec/seven_api/hooks_spec.rb +108 -108
  98. data/spec/seven_api/instance_spec.rb +22 -22
  99. data/spec/seven_api/journal_spec.rb +86 -86
  100. data/spec/seven_api/lookup_spec.rb +197 -179
  101. data/spec/seven_api/numbers_spec.rb +135 -0
  102. data/spec/seven_api/pricing_spec.rb +76 -76
  103. data/spec/seven_api/rcs_spec.rb +99 -0
  104. data/spec/seven_api/sms_spec.rb +103 -103
  105. data/spec/seven_api/subaccounts_spec.rb +121 -121
  106. data/spec/seven_api/validate_for_voice_spec.rb +19 -19
  107. data/spec/seven_api/voice_spec.rb +51 -51
  108. data/spec/seven_api_spec.rb +9 -9
  109. data/spec/spec_helper.rb +8 -17
  110. metadata +62 -50
  111. data/doc/Sms77/Resources.html +0 -128
  112. data/doc/Sms77/Subaccounts/Validator.html +0 -490
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 458916d1f889d75ff3b7d6e75ac0cfc9e2e617e6a9e256f8ec602449ec1fb8cb
4
- data.tar.gz: a33191c4445f918cbcd767efa48aa9cbd57fd029b9e72612883ee9b53ac7a6b5
3
+ metadata.gz: 1aa567bc756a90d14f21015b2c4ce2cef7c43295ab3b312b8996a5c206138d12
4
+ data.tar.gz: 3dabdc0fe5e705298df2eb56f07fad5236439fcb02c15ab37110f62551b69ab0
5
5
  SHA512:
6
- metadata.gz: 9725cf72df6dbdc53b842ba088fdfce9e7ea46807e34cd4b51d8ea8ea46c5205f6bf53a91021da86881dfa3653880905aae7183067d355f22bdf363e624463f6
7
- data.tar.gz: 357920ff2c0aacba10f32c6410bd590d6b1299cef21be60142df44f92426cbd9bf7aba58d34cfa73d9fd040bc34a3579389e27d26a3ead7940c406db1c5c02fa
6
+ metadata.gz: 7712c3d3681ee54da04d1b024ca3b4cd734981bf4d46d052e1a4a1d00c0a21413f6b724ab3b55309831a2504f29a27375e7b8387e424f88408c29fd3a744cbb3
7
+ data.tar.gz: a96e4a8f3b0b77cbc72c3f9bc3442f7c65cf981b1f0a004317669b5e598f06e861c94797fbc76ec0c5e3d67b12b974c6bcd7bf6c9d6d0ec7dc17db32ce07ebe7
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
- .yardoc/
2
- build/
3
- *.gem
4
- Gemfile.lock
5
- .ruby-gemset
6
- .tool-versions
1
+ .yardoc/
2
+ build/
3
+ *.gem
4
+ Gemfile.lock
5
+ .ruby-gemset
6
+ .tool-versions
7
+ md/
@@ -1,6 +1,6 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
- </profile>
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
6
  </component>
@@ -4,15 +4,62 @@
4
4
  <shared />
5
5
  </component>
6
6
  <component name="NewModuleRootManager">
7
- <content url="file://$MODULE_DIR$" />
8
- <orderEntry type="jdk" jdkName="Remote: ruby-3.1.2-p20" jdkType="RUBY_SDK" />
7
+ <content url="file://$MODULE_DIR$">
8
+ <excludeFolder url="file://$MODULE_DIR$/doc" />
9
+ </content>
10
+ <orderEntry type="jdk" jdkName="rbenv: 3.4.4" jdkType="RUBY_SDK" />
9
11
  <orderEntry type="sourceFolder" forTests="false" />
10
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.3.7, Remote: ruby-3.1.2-p20) [gem]" level="application" />
11
- <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, Remote: ruby-3.1.2-p20) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.5.23, rbenv: 3.4.4) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.1, rbenv: 3.4.4) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="faraday (v2.12.0, rbenv: 3.4.4) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="faraday-net_http (v3.3.0, rbenv: 3.4.4) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="json (v2.8.1, rbenv: 3.4.4) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="logger (v1.6.1, rbenv: 3.4.4) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="net-http (v0.5.0, rbenv: 3.4.4) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.2.1, rbenv: 3.4.4) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.13.0, rbenv: 3.4.4) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.13.2, rbenv: 3.4.4) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.13.3, rbenv: 3.4.4) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.13.2, rbenv: 3.4.4) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.13.1, rbenv: 3.4.4) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="uri (v1.0.0, rbenv: 3.4.4) [gem]" level="application" />
12
26
  </component>
13
27
  <component name="RakeTasksCache">
14
28
  <option name="myRootTask">
15
29
  <RakeTaskImpl id="rake" />
16
30
  </option>
17
31
  </component>
32
+ <component name="RakeTasksCache-v2">
33
+ <option name="myRootTask">
34
+ <RakeTaskImpl id="rake">
35
+ <subtasks>
36
+ <RakeTaskImpl description="Build seven_api-0.6.0.gem into the pkg directory" fullCommand="build" id="build" />
37
+ <RakeTaskImpl id="build">
38
+ <subtasks>
39
+ <RakeTaskImpl description="Generate SHA512 checksum of seven_api-0.6.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
40
+ </subtasks>
41
+ </RakeTaskImpl>
42
+ <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
43
+ <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
44
+ <RakeTaskImpl description="Build and install seven_api-0.6.0.gem into system gems" fullCommand="install" id="install" />
45
+ <RakeTaskImpl id="install">
46
+ <subtasks>
47
+ <RakeTaskImpl description="Build and install seven_api-0.6.0.gem into system gems without network access" fullCommand="install:local" id="local" />
48
+ </subtasks>
49
+ </RakeTaskImpl>
50
+ <RakeTaskImpl description="Create tag v0.6.0 and build and push seven_api-0.6.0.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
51
+ <RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
52
+ <RakeTaskImpl description="" fullCommand="default" id="default" />
53
+ <RakeTaskImpl description="" fullCommand="release" id="release" />
54
+ <RakeTaskImpl id="release">
55
+ <subtasks>
56
+ <RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
57
+ <RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
58
+ <RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
59
+ </subtasks>
60
+ </RakeTaskImpl>
61
+ </subtasks>
62
+ </RakeTaskImpl>
63
+ </option>
64
+ </component>
18
65
  </module>
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source 'https://rubygems.org'
2
-
1
+ source 'https://rubygems.org'
2
+
3
3
  gemspec
data/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2020-2022 sms77 e.K.
4
- Copyright (c) 2023-present seven communications GmbH & Co. KG
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2022 sms77 e.K.
4
+ Copyright (c) 2023-present seven communications GmbH & Co. KG
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  SOFTWARE.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- ![](https://www.seven.io/wp-content/uploads/Logo.svg "seven Logo")
1
+ <img src="https://www.seven.io/wp-content/uploads/Logo.svg" width="250" />
2
2
 
3
- # Ruby Client for the [seven SMS Gateway API](https://www.seven.io/)
4
- This gem requires Ruby >= 2.6.0.
3
+ # Official Ruby Client for [seven.io](https://www.seven.io/)
4
+ This gem requires Ruby >= 3.1.0.
5
5
 
6
6
  ## Installation
7
7
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
6
  task default: :spec