opensms 0.1.0 → 0.1.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/README.md +1 -1
- data/lib/opensms/client.rb +1 -1
- data/lib/opensms/transport.rb +1 -1
- data/lib/opensms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62b7296228035302126b6ce561fc0dcef546d23283505b7b0bd223e8a27afade
|
|
4
|
+
data.tar.gz: f369d654c4121fc07bdea60a72b82903e1961fb27dee2f271715d63a91f72508
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0eb3d9123b598d562954b0b94733c52cb0319d391f411275f28cbe98343b98811035bdda63fa9f0cc40773a03eb09ccd384a8ab9739386768b6b71e0c6d031e7
|
|
7
|
+
data.tar.gz: 07c20355606887035154d6e01bdb05cfd41072eaa5480419d0bcd34f952d271ed3f72c6dd35511971d2196ced085767abadaf79d0686992e6d7f28f625744f7a
|
data/README.md
CHANGED
|
@@ -13,7 +13,7 @@ gem "opensms"
|
|
|
13
13
|
|
|
14
14
|
Not on RubyGems yet: until then, install from this checkout with
|
|
15
15
|
`gem "opensms", path: "path/to/sdks/packages/ruby"` in your Gemfile, or
|
|
16
|
-
`gem build opensms.gemspec && gem install ./opensms-0.1.
|
|
16
|
+
`gem build opensms.gemspec && gem install ./opensms-0.1.1.gem`.
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
data/lib/opensms/client.rb
CHANGED
|
@@ -44,7 +44,7 @@ module Opensms
|
|
|
44
44
|
attr_reader :base_url
|
|
45
45
|
|
|
46
46
|
# @param api_key [String] required; "sk_test_..." or "sk_live_..."
|
|
47
|
-
# @param base_url [String] default "https://
|
|
47
|
+
# @param base_url [String] default "https://opensms.io"
|
|
48
48
|
# @param timeout [Numeric] per-attempt timeout in seconds, default 30
|
|
49
49
|
# @param max_retries [Integer] retries after the first attempt, default 2
|
|
50
50
|
# @param http_client [#call, nil] replaces the Net::HTTP adapter (see {Opensms::NetHttpClient})
|
data/lib/opensms/transport.rb
CHANGED
|
@@ -48,7 +48,7 @@ module Opensms
|
|
|
48
48
|
# timeouts, retries with backoff, and turning non-2xx responses into
|
|
49
49
|
# {Opensms::Error}. Resources depend on this, never on Net::HTTP directly.
|
|
50
50
|
class Transport
|
|
51
|
-
DEFAULT_BASE_URL = "https://
|
|
51
|
+
DEFAULT_BASE_URL = "https://opensms.io"
|
|
52
52
|
USER_AGENT = "opensms-ruby/#{VERSION}"
|
|
53
53
|
RETRY_STATUSES = [429, 500, 502, 503, 504].freeze
|
|
54
54
|
MAX_RETRY_AFTER = 60
|
data/lib/opensms/version.rb
CHANGED