versacommerce_api 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/versacommerce_api/session.rb +1 -1
- data/lib/versacommerce_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab063131eca06a33652084d3c600a5969dfb96d0
|
4
|
+
data.tar.gz: 2a041ef35d5c8862dde36251e509406836612477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2dc87f6cb24352a11fb5d80a09b65f3beeac7808148713ba2750cafc25b7354516b63b0c152007359432dd3c1f05d7ba6dfe936508bdef45758fdafc7d64284
|
7
|
+
data.tar.gz: 855669f52f66ea8f03d03394e960fe7e612237870264801e9544528ccde09c36363da49acb8fda9d4723990ef6fc188944e710ec920293829c22d212eeaeeec4
|
@@ -31,7 +31,7 @@ module VersacommerceAPI
|
|
31
31
|
def self.request_token(domain)
|
32
32
|
return nil if domain.blank? || api_key.blank?
|
33
33
|
begin
|
34
|
-
content = open("
|
34
|
+
content = open("https://#{domain}/api/auth.xml?api_key=#{api_key}") { |io| data = io.read }
|
35
35
|
Hash.from_xml(content)["token"] if content
|
36
36
|
rescue
|
37
37
|
nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: versacommerce_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VersaCommerce
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
218
|
rubyforge_project:
|
219
|
-
rubygems_version: 2.
|
219
|
+
rubygems_version: 2.4.5.1
|
220
220
|
signing_key:
|
221
221
|
specification_version: 4
|
222
222
|
summary: The VersaCommerce API gem is a lightweight gem for accessing the VersaCommerce
|