shipengine_ruby 0.0.1 → 0.0.2
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 +14 -2
- data/lib/shipengine/constants.rb +1 -1
- data/lib/shipengine/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: 2b38961e0815c5bede536556ed4f2bbbd8e8054bd75dad99f467cb9728c34659
|
4
|
+
data.tar.gz: dede7e1bb44fc953d87270108f2d6c640dff6762f7ed701a8a358f176a406017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa3a1c3f2b0f63fba137935dbea0bdfdef0e1922fdd028f7dcef3d808c4b00da6a22a0f914f5ae9d7a2c7799a2b2fd5365def706927f7ff5ea768e6fce4d64f1
|
7
|
+
data.tar.gz: 04b1a384ad22dee43a08e3e61ecfc796c746b86e49ca1ad7f2e6495692f6953876cb333a18e60ef784a9596e23edff431c879b40ff946a5c86dd3029e9317b64
|
data/README.md
CHANGED
@@ -9,6 +9,18 @@ Quick Start
|
|
9
9
|
|
10
10
|
Install ShipEngine via [RubyGems](https://rubygems.org/)
|
11
11
|
```bash
|
12
|
-
gem install
|
12
|
+
gem install shipengine_ruby
|
13
13
|
```
|
14
|
-
- The only configuration requirement is an [API Key](https://www.shipengine.com/docs/auth/#api-keys).
|
14
|
+
- The only configuration requirement is an [API Key](https://www.shipengine.com/docs/auth/#api-keys).
|
15
|
+
|
16
|
+
Configure ShipEngine
|
17
|
+
```ruby
|
18
|
+
ShipEngine.configure do |config|
|
19
|
+
config.api_key = ShipEngine::Constants::API_KEY
|
20
|
+
config.base_url = ShipEngine::Constants::PROD_URL
|
21
|
+
config.retries = ShipEngine::Constants::RETRIES
|
22
|
+
config.timeout = ShipEngine::Constants::TIMEOUT
|
23
|
+
config.page_size = ShipEngine::Constants::PAGE_SIZE
|
24
|
+
end
|
25
|
+
```
|
26
|
+
or set the environment variable `API_KEY`
|
data/lib/shipengine/constants.rb
CHANGED
data/lib/shipengine/version.rb
CHANGED