tophatter-merchant 1.3.2 → 1.3.3

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: 8666ccf1b43fe60b946c134c9647c6f0341f5d90
4
- data.tar.gz: 6e670a9afa085be64bdbc7c03e221d6c7bfc9442
3
+ metadata.gz: 17b7dbd60f08e1318923ab9970f34fee4c3c1c94
4
+ data.tar.gz: 685fdae001c7acfcaaa0f0555971f9ae5a926d96
5
5
  SHA512:
6
- metadata.gz: 10365f89a24cfe1ad42d9bf00b1cfbaf18747fc331cfd457dcb540c7eb61c6de8aacffbf424dd171bd917bb17ea6592f6a481fd91d3cf6e1ab626387f6e5817f
7
- data.tar.gz: 4e49782b3248bea8e5e59585b4240984e6db85d199dbd5da9a854675b4dca5a840d5e61637236320f199b903fade3285546daf998156faa912985e964c9dc4bc
6
+ metadata.gz: 517c8d96715a640e136cfb212ef4868fdcd7564b8f712d4311a61d0d7b20e94b788ffca4c3893a4978300049a67e79c7dc120103ed73f20d863be3bcbd59475d
7
+ data.tar.gz: b286b67b42f07c7e513eb4277144f127048a0002a24977e7ef90d035b8717e93e3de8d2dfb61f3adce33e8b26d6eb2e45605746f0ea7a387b8bf6a199e93c0d0
@@ -1,27 +1,25 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'bundler/setup'
4
- require 'rest-client'
5
4
  require 'tophatter_merchant'
5
+ require 'awesome_print'
6
+ require 'pry'
6
7
 
7
8
  begin
8
9
  TophatterMerchant.api_path = File.read('/tmp/.tophatter-api-path').chomp
9
10
  puts "TophatterMerchant.api_path: #{TophatterMerchant.api_path}"
10
11
  rescue Errno::ENOENT
11
- puts "No .api_path file, using default: #{TophatterMerchant.api_path}"
12
+ puts "No /tmp/.tophatter-api-path file, using default: #{TophatterMerchant.api_path}"
12
13
  end
13
14
 
14
15
  begin
15
16
  TophatterMerchant.access_token = File.read('/tmp/.tophatter-access-token').chomp
16
17
  puts "TophatterMerchant.access_token: #{TophatterMerchant.access_token}"
17
18
  rescue Errno::ENOENT
18
- puts "No .access_token file - you'll have to set TophatterMerchant.access_token manually from the console."
19
+ puts "No /tmp/.tophatter-access-token file - you'll have to set TophatterMerchant.access_token manually from the console."
19
20
  end
20
21
 
21
22
  TophatterMerchant.logger.level = Logger::DEBUG
22
23
 
23
- require 'awesome_print'
24
- require 'pry'
25
-
26
24
  AwesomePrint.pry!
27
25
  Pry.start
@@ -43,7 +43,7 @@ module TophatterMerchant
43
43
  # http://merchant-api.tophatter.com/docs/order-acknowledge
44
44
  # TophatterMerchant::Order.acknowledge(60150685).status
45
45
  def acknowledge(id)
46
- Order.new get(url: "#{path}/acknowledge.json", params: { order_id: id })
46
+ Order.new post(url: "#{path}/acknowledge.json", params: { order_id: id })
47
47
  end
48
48
 
49
49
  # http://merchant-api.tophatter.com/docs/order-fulfill
@@ -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.2'
8
+ s.version = '1.3.3'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.licenses = ['MIT']
11
11
  s.authors = ['Chris Estreich']
@@ -22,6 +22,5 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.files = `git ls-files`.split("\n")
24
24
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
25
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
26
25
  s.require_paths = ['lib']
27
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tophatter-merchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Estreich
@@ -28,8 +28,7 @@ description: The Tophatter merchant platform is an e-commerce platform. It allow
28
28
  merchants to manage inventory and fulfill orders on Tophatter.
29
29
  email:
30
30
  - chris@tophatter.com
31
- executables:
32
- - tophatter-merchant-console
31
+ executables: []
33
32
  extensions: []
34
33
  extra_rdoc_files:
35
34
  - README.md
@@ -43,7 +42,7 @@ files:
43
42
  - LICENSE.md
44
43
  - README.md
45
44
  - Rakefile
46
- - bin/tophatter-merchant-console
45
+ - bin/console
47
46
  - lib/tophatter_merchant.rb
48
47
  - lib/tophatter_merchant/metadata.rb
49
48
  - lib/tophatter_merchant/order.rb