tophatter-merchant 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27aaeb4469a48695add0dc4f43535fb25f525a05
|
4
|
+
data.tar.gz: 3279b557d45c7e6e18b3f42f85420cf96c638f4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40027b3c227cdf74d30aec8747b9e5ba31c526988a304bb9c8bb87bfdb7ea43aed14f0358c563729d1197be37bb77e00b7ede933278374e80a27ffbf6848974e
|
7
|
+
data.tar.gz: 3171249bdcd0035b517c121202488afc27c2683504e281e81a976633a36343941003b7fa192726086941fb90d441daf6b087a239d56bb519fd904225bd3cd3c3
|
@@ -5,14 +5,14 @@ require 'rest-client'
|
|
5
5
|
require 'tophatter_merchant'
|
6
6
|
|
7
7
|
begin
|
8
|
-
TophatterMerchant.api_path = File.read('
|
8
|
+
TophatterMerchant.api_path = File.read('/tmp/.tophatter-api-path').chomp
|
9
9
|
puts "TophatterMerchant.api_path: #{TophatterMerchant.api_path}"
|
10
10
|
rescue Errno::ENOENT
|
11
11
|
puts "No .api_path file, using default: #{TophatterMerchant.api_path}"
|
12
12
|
end
|
13
13
|
|
14
14
|
begin
|
15
|
-
TophatterMerchant.access_token = File.read('
|
15
|
+
TophatterMerchant.access_token = File.read('/tmp/.tophatter-access-token').chomp
|
16
16
|
puts "TophatterMerchant.access_token: #{TophatterMerchant.access_token}"
|
17
17
|
rescue Errno::ENOENT
|
18
18
|
puts "No .access_token file - you'll have to set TophatterMerchant.access_token manually from the console."
|
@@ -67,7 +67,11 @@ module TophatterMerchant
|
|
67
67
|
method: method,
|
68
68
|
url: url,
|
69
69
|
payload: TophatterMerchant.access_token.empty? ? params : params.merge(access_token: TophatterMerchant.access_token),
|
70
|
-
headers: {
|
70
|
+
headers: {
|
71
|
+
accept: :json,
|
72
|
+
content_type: :json,
|
73
|
+
user_agent: 'Merchant API [Ruby] (https://github.com/tophatter/merchant-api-ruby)'
|
74
|
+
}
|
71
75
|
)
|
72
76
|
end
|
73
77
|
|
data/tophatter-merchant.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# gem push tophatter-merchant-{VERSION}.gem
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'tophatter-merchant'
|
8
|
-
s.version = '1.3.
|
8
|
+
s.version = '1.3.1'
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.licenses = ['MIT']
|
11
11
|
s.authors = ['Chris Estreich']
|
@@ -20,8 +20,6 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.add_dependency 'rest-client', '~> 1.6'
|
22
22
|
|
23
|
-
s.post_install_message = 'Documentation is available at: https://tophatter.readme.io/'
|
24
|
-
|
25
23
|
s.files = `git ls-files`.split("\n")
|
26
24
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
27
25
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tophatter-merchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Estreich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -29,7 +29,7 @@ description: The Tophatter merchant platform is an e-commerce platform. It allow
|
|
29
29
|
email:
|
30
30
|
- chris@tophatter.com
|
31
31
|
executables:
|
32
|
-
- console
|
32
|
+
- tophatter-merchant-console
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files:
|
35
35
|
- README.md
|
@@ -43,7 +43,7 @@ files:
|
|
43
43
|
- LICENSE.md
|
44
44
|
- README.md
|
45
45
|
- Rakefile
|
46
|
-
- bin/console
|
46
|
+
- bin/tophatter-merchant-console
|
47
47
|
- lib/tophatter_merchant.rb
|
48
48
|
- lib/tophatter_merchant/metadata.rb
|
49
49
|
- lib/tophatter_merchant/order.rb
|
@@ -60,7 +60,7 @@ homepage: https://github.com/tophatter/merchant-api-ruby
|
|
60
60
|
licenses:
|
61
61
|
- MIT
|
62
62
|
metadata: {}
|
63
|
-
post_install_message:
|
63
|
+
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
66
66
|
- lib
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.6.
|
79
|
+
rubygems_version: 2.6.12
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Manage your inventory and fulfill orders on Tophatter.
|