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.
- checksums.yaml +4 -4
- data/.gitignore +7 -6
- data/.idea/inspectionProfiles/Project_Default.xml +5 -5
- data/.idea/ruby-client.iml +51 -4
- data/Gemfile +2 -2
- data/LICENSE +21 -21
- data/README.md +3 -3
- data/Rakefile +5 -5
- data/doc/{Sms77 → SevenApi}/Client.html +229 -229
- data/doc/{Sms77 → SevenApi}/Contacts/Action.html +130 -130
- data/doc/{Sms77 → SevenApi}/Contacts.html +125 -125
- data/doc/{Sms77 → SevenApi}/Endpoint.html +186 -186
- data/doc/{Sms77 → SevenApi}/Hooks/Action.html +130 -130
- data/doc/{Sms77 → SevenApi}/Hooks/EventType.html +145 -145
- data/doc/{Sms77 → SevenApi}/Hooks/RequestMethod.html +130 -130
- data/doc/{Sms77 → SevenApi}/Hooks/Validator.html +597 -597
- data/doc/{Sms77 → SevenApi}/Hooks.html +125 -125
- data/doc/{Sms77 → SevenApi}/Journal/Type.html +135 -135
- data/doc/{Sms77 → SevenApi}/Journal/Validator.html +393 -393
- data/doc/{Sms77 → SevenApi}/Journal.html +125 -125
- data/doc/{Sms77 → SevenApi}/Lookup/Type.html +135 -135
- data/doc/{Sms77 → SevenApi}/Lookup.html +125 -125
- data/doc/{Sms77 → SevenApi}/Resource.html +869 -869
- data/doc/{Sms77 → SevenApi}/Resources/Analytics.html +262 -262
- data/doc/{Sms77 → SevenApi}/Resources/Balance.html +245 -245
- data/doc/{Sms77 → SevenApi}/Resources/Contacts.html +448 -448
- data/doc/{Sms77 → SevenApi}/Resources/Hooks.html +456 -456
- data/doc/{Sms77 → SevenApi}/Resources/Journal.html +260 -260
- data/doc/{Sms77 → SevenApi}/Resources/Lookup.html +539 -539
- data/doc/{Sms77 → SevenApi}/Resources/Pricing.html +262 -262
- data/doc/{Sms77 → SevenApi}/Resources/Sms.html +260 -260
- data/doc/{Sms77 → SevenApi}/Resources/Status.html +260 -260
- data/doc/{Sms77 → SevenApi}/Resources/Subaccounts.html +650 -650
- data/doc/{Sms77 → SevenApi}/Resources/ValidateForVoice.html +260 -260
- data/doc/{Sms77 → SevenApi}/Resources/Voice.html +260 -260
- data/doc/SevenApi/Resources.html +128 -0
- data/doc/{Sms77 → SevenApi}/Sms/Type.html +125 -125
- data/doc/{Sms77 → SevenApi}/Sms.html +125 -125
- data/doc/{Sms77 → SevenApi}/Subaccounts/Action.html +140 -140
- data/doc/SevenApi/Subaccounts/Validator.html +490 -0
- data/doc/{Sms77 → SevenApi}/Subaccounts.html +125 -125
- data/doc/{Sms77 → SevenApi}/Util.html +1032 -1032
- data/doc/{Sms77.html → SevenApi.html} +145 -145
- data/doc/_index.html +443 -443
- data/doc/class_list.html +51 -51
- data/doc/css/full_list.css +58 -58
- data/doc/css/style.css +497 -497
- data/doc/file.README.html +110 -111
- data/doc/file_list.html +56 -56
- data/doc/frames.html +17 -17
- data/doc/index.html +110 -111
- data/doc/js/app.js +314 -314
- data/doc/js/full_list.js +216 -216
- data/doc/js/jquery.js +3 -3
- data/doc/method_list.html +563 -563
- data/doc/top-level-namespace.html +109 -109
- data/document.sh +3 -0
- data/lib/seven_api/client.rb +32 -30
- data/lib/seven_api/contacts.rb +5 -10
- data/lib/seven_api/endpoint.rb +5 -0
- data/lib/seven_api/hooks.rb +69 -67
- data/lib/seven_api/journal.rb +39 -39
- data/lib/seven_api/lookup.rb +12 -11
- data/lib/seven_api/numbers.rb +9 -0
- data/lib/seven_api/paginated.rb +10 -0
- data/lib/seven_api/rcs.rb +9 -0
- data/lib/seven_api/resource.rb +8 -4
- data/lib/seven_api/resources/analytics.rb +54 -21
- data/lib/seven_api/resources/balance.rb +19 -19
- data/lib/seven_api/resources/contacts.rb +56 -38
- data/lib/seven_api/resources/groups.rb +57 -0
- data/lib/seven_api/resources/hooks.rb +40 -40
- data/lib/seven_api/resources/journal.rb +20 -20
- data/lib/seven_api/resources/lookup.rb +63 -47
- data/lib/seven_api/resources/numbers.rb +71 -0
- data/lib/seven_api/resources/pricing.rb +20 -20
- data/lib/seven_api/resources/rcs.rb +39 -0
- data/lib/seven_api/resources/sms.rb +29 -20
- data/lib/seven_api/resources/status.rb +20 -20
- data/lib/seven_api/resources/subaccounts.rb +65 -65
- data/lib/seven_api/resources/validate_for_voice.rb +20 -20
- data/lib/seven_api/resources/voice.rb +29 -20
- data/lib/seven_api/sms.rb +9 -9
- data/lib/seven_api/subaccounts.rb +55 -55
- data/lib/seven_api/util.rb +68 -68
- data/lib/seven_api/version.rb +5 -5
- data/lib/seven_api.rb +6 -6
- data/release.sh +4 -4
- data/seven_api.gemspec +5 -5
- data/spec/EnvKeyStore.rb +14 -14
- data/spec/matchers.rb +22 -22
- data/spec/seven_api/analytics_spec.rb +49 -0
- data/spec/seven_api/balance_spec.rb +18 -12
- data/spec/seven_api/client_spec.rb +15 -15
- data/spec/seven_api/contacts_spec.rb +100 -129
- data/spec/seven_api/groups_spec.rb +74 -0
- data/spec/seven_api/hooks_spec.rb +108 -108
- data/spec/seven_api/instance_spec.rb +22 -22
- data/spec/seven_api/journal_spec.rb +86 -86
- data/spec/seven_api/lookup_spec.rb +197 -179
- data/spec/seven_api/numbers_spec.rb +135 -0
- data/spec/seven_api/pricing_spec.rb +76 -76
- data/spec/seven_api/rcs_spec.rb +99 -0
- data/spec/seven_api/sms_spec.rb +103 -103
- data/spec/seven_api/subaccounts_spec.rb +121 -121
- data/spec/seven_api/validate_for_voice_spec.rb +19 -19
- data/spec/seven_api/voice_spec.rb +51 -51
- data/spec/seven_api_spec.rb +9 -9
- data/spec/spec_helper.rb +8 -17
- metadata +62 -50
- data/doc/Sms77/Resources.html +0 -128
- data/doc/Sms77/Subaccounts/Validator.html +0 -490
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aa567bc756a90d14f21015b2c4ce2cef7c43295ab3b312b8996a5c206138d12
|
4
|
+
data.tar.gz: 3dabdc0fe5e705298df2eb56f07fad5236439fcb02c15ab37110f62551b69ab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
data/.idea/ruby-client.iml
CHANGED
@@ -4,15 +4,62 @@
|
|
4
4
|
<shared />
|
5
5
|
</component>
|
6
6
|
<component name="NewModuleRootManager">
|
7
|
-
<content url="file://$MODULE_DIR$"
|
8
|
-
|
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.
|
11
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
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
|
-
|
1
|
+
<img src="https://www.seven.io/wp-content/uploads/Logo.svg" width="250" />
|
2
2
|
|
3
|
-
# Ruby Client for
|
4
|
-
This gem requires Ruby >=
|
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
|