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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e3a9081aefc46e8fe67094b98be084ace56d7d006add7e4fdd311079032a192
4
- data.tar.gz: ac2550ae2bd499e780ac2b0e4636bdf2fd5dd8b36bd872494efed6277ff0efc0
3
+ metadata.gz: 2b38961e0815c5bede536556ed4f2bbbd8e8054bd75dad99f467cb9728c34659
4
+ data.tar.gz: dede7e1bb44fc953d87270108f2d6c640dff6762f7ed701a8a358f176a406017
5
5
  SHA512:
6
- metadata.gz: 959fe6e248c3565201ee629103aaaf5f9ad23bdbb1fbcdcb47887198d8dffeedf8c52f5f88f2c6ef26544dfe0fede672b9cf6d5d245784b99b53643834fce14e
7
- data.tar.gz: 9dda78c41bcf6d60fd2f1d757f2398427c16637fc2d178df13a1a0f994989b8a129b72c1fa230b460bb557884cee10d601eb0de928393fd78b43f43eec042586
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 shipengine
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`
@@ -4,7 +4,7 @@ require "ostruct"
4
4
 
5
5
  module ShipEngine
6
6
  module Constants
7
- API_KEY = ENV.fetch("API_KEY", "TEST_35vcTMIX0/e7rs1t86zzYwF+tnq2jrYewIyRZp+pxAs")
7
+ API_KEY = ENV.fetch("API_KEY", "")
8
8
 
9
9
  PROD_URL = "https://api.shipengine.com"
10
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ShipEngine
4
4
  module VERSION
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipengine_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohammed Abdel Raouf