tophatter-merchant 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +7 -7
- data/.rubocop.yml +16 -15
- data/.travis.yml +6 -6
- data/Gemfile +1 -1
- data/{LICENSE → LICENSE.md} +0 -0
- data/Rakefile +3 -3
- data/bin/console +3 -2
- data/lib/tophatter_merchant.rb +0 -3
- data/lib/tophatter_merchant/product.rb +4 -1
- data/tophatter-merchant.gemspec +4 -5
- metadata +6 -7
- data/VERSION +0 -1
- data/lib/tophatter_merchant/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8da0190bbf1290b7ab365851263186e431ea432
|
4
|
+
data.tar.gz: b3825b738819036ce9742d4e3dd1ede7c772ee28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f876c8a736230cabdab6b629225e7a72a5b17c2a6c104dbde2a4099c154341ae6fd8ad08a8c5b7a6cc26356bef5ccd19fbdd978105effb110cb7e4d65f22d8
|
7
|
+
data.tar.gz: 03c1e9e6fc8d68ad4b9d4f2a0ef11d781c1fc5b0b903e36baa1c40cfe26bc5c47a6ecc50910fea8e53cd5533a9a64d04f9d9cc1468ac0eff2d65a5e548c232ba
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,37 +1,38 @@
|
|
1
1
|
AllCops:
|
2
2
|
TargetRubyVersion: 2.2
|
3
3
|
|
4
|
-
|
4
|
+
Metrics/AbcSize:
|
5
|
+
Enabled: false
|
6
|
+
Metrics/CyclomaticComplexity:
|
7
|
+
Enabled: false
|
8
|
+
Metrics/PerceivedComplexity:
|
9
|
+
Enabled: false
|
5
10
|
|
6
11
|
Metrics/LineLength:
|
7
12
|
Enabled: false
|
8
|
-
Metrics/
|
13
|
+
Metrics/ClassLength:
|
9
14
|
Enabled: false
|
10
15
|
Metrics/MethodLength:
|
11
16
|
Enabled: false
|
12
|
-
Metrics/
|
17
|
+
Metrics/BlockLength:
|
13
18
|
Enabled: false
|
14
|
-
|
15
|
-
Metrics/AbcSize:
|
19
|
+
Metrics/ParameterLists:
|
16
20
|
Enabled: false
|
17
21
|
|
18
|
-
# [Lint]
|
19
|
-
|
20
|
-
# http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Lint/EndAlignment
|
21
22
|
Lint/EndAlignment:
|
22
23
|
Enabled: false
|
23
24
|
|
24
|
-
# [Style]
|
25
|
-
|
26
|
-
# http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Style/Documentation
|
27
25
|
Style/Documentation:
|
28
26
|
Enabled: false
|
29
|
-
|
27
|
+
Style/IndentationWidth:
|
28
|
+
Enabled: false
|
30
29
|
Style/ElseAlignment:
|
31
30
|
Enabled: false
|
32
|
-
|
33
|
-
Style/IndentationWidth:
|
31
|
+
Style/GuardClause:
|
34
32
|
Enabled: false
|
35
|
-
# https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
|
36
33
|
Style/NumericLiterals:
|
37
34
|
Enabled: false
|
35
|
+
|
36
|
+
# This is temporary - it can be remove after updating rubocop to the latest.
|
37
|
+
Style/PercentLiteralDelimiters:
|
38
|
+
Enabled: false
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/{LICENSE → LICENSE.md}
RENAMED
File without changes
|
data/Rakefile
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
|
1
|
+
require 'rspec/core/rake_task'
|
2
|
+
RSpec::Core::RakeTask.new(:spec)
|
3
|
+
task default: :spec
|
data/bin/console
CHANGED
@@ -3,8 +3,6 @@
|
|
3
3
|
require 'bundler/setup'
|
4
4
|
require 'rest-client'
|
5
5
|
require 'tophatter_merchant'
|
6
|
-
require 'awesome_print'
|
7
|
-
require 'pry'
|
8
6
|
|
9
7
|
begin
|
10
8
|
TophatterMerchant.api_path = File.read('.api_path').chomp
|
@@ -22,5 +20,8 @@ end
|
|
22
20
|
|
23
21
|
TophatterMerchant.logger.level = Logger::DEBUG
|
24
22
|
|
23
|
+
require 'awesome_print'
|
24
|
+
require 'pry'
|
25
|
+
|
25
26
|
AwesomePrint.pry!
|
26
27
|
Pry.start
|
data/lib/tophatter_merchant.rb
CHANGED
@@ -20,9 +20,6 @@ module TophatterMerchant
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
require File.dirname(__FILE__) + '/tophatter_merchant/version'
|
24
|
-
|
25
|
-
# Resources:
|
26
23
|
require File.dirname(__FILE__) + '/tophatter_merchant/resource'
|
27
24
|
require File.dirname(__FILE__) + '/tophatter_merchant/metadata'
|
28
25
|
require File.dirname(__FILE__) + '/tophatter_merchant/order'
|
@@ -12,7 +12,10 @@ module TophatterMerchant
|
|
12
12
|
:primary_image, :extra_images, :all_images, # Images
|
13
13
|
:ratings_average, :ratings_count, # Ratings
|
14
14
|
:created_at, :updated_at, :disabled_at, :deleted_at, # Timestamps
|
15
|
-
:internal_id, :slug,
|
15
|
+
:internal_id, :slug, # Admin
|
16
|
+
:admin_banned_at, :admin_hold_at, :admin_hold_responded_at, :admin_reason,
|
17
|
+
:success_fee_bid_enabled, :success_fee_bid,
|
18
|
+
:health_status, :health_reason
|
16
19
|
|
17
20
|
def id
|
18
21
|
created_at.present? ? identifier : nil
|
data/tophatter-merchant.gemspec
CHANGED
@@ -1,14 +1,11 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
-
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
4
|
-
require 'tophatter_merchant/version'
|
5
|
-
|
6
3
|
# To publish the next version:
|
7
4
|
# gem build tophatter-merchant.gemspec
|
8
|
-
# gem push tophatter-merchant
|
5
|
+
# gem push tophatter-merchant-1.1.7.gem
|
9
6
|
Gem::Specification.new do |s|
|
10
7
|
s.name = 'tophatter-merchant'
|
11
|
-
s.version =
|
8
|
+
s.version = '1.1.7'
|
12
9
|
s.platform = Gem::Platform::RUBY
|
13
10
|
s.licenses = ['MIT']
|
14
11
|
s.authors = ['Chris Estreich']
|
@@ -17,6 +14,8 @@ Gem::Specification.new do |s|
|
|
17
14
|
s.summary = 'Manage your inventory and fulfill orders on Tophatter.'
|
18
15
|
s.description = 'The Tophatter merchant platform is an e-commerce platform. It allows merchants to manage inventory and fulfill orders on Tophatter.'
|
19
16
|
|
17
|
+
s.extra_rdoc_files = ['README.md']
|
18
|
+
|
20
19
|
s.required_ruby_version = '~> 2.0'
|
21
20
|
|
22
21
|
s.add_dependency 'rest-client', '~> 1.6'
|
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.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Estreich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -45,7 +45,8 @@ email:
|
|
45
45
|
executables:
|
46
46
|
- console
|
47
47
|
extensions: []
|
48
|
-
extra_rdoc_files:
|
48
|
+
extra_rdoc_files:
|
49
|
+
- README.md
|
49
50
|
files:
|
50
51
|
- ".coveralls.yml"
|
51
52
|
- ".gitignore"
|
@@ -53,10 +54,9 @@ files:
|
|
53
54
|
- ".rubocop.yml"
|
54
55
|
- ".travis.yml"
|
55
56
|
- Gemfile
|
56
|
-
- LICENSE
|
57
|
+
- LICENSE.md
|
57
58
|
- README.md
|
58
59
|
- Rakefile
|
59
|
-
- VERSION
|
60
60
|
- bin/console
|
61
61
|
- lib/tophatter_merchant.rb
|
62
62
|
- lib/tophatter_merchant/metadata.rb
|
@@ -64,7 +64,6 @@ files:
|
|
64
64
|
- lib/tophatter_merchant/product.rb
|
65
65
|
- lib/tophatter_merchant/resource.rb
|
66
66
|
- lib/tophatter_merchant/variation.rb
|
67
|
-
- lib/tophatter_merchant/version.rb
|
68
67
|
- spec/cassettes/TophatterMerchant_Metadata/_carriers/returns_carriers.yml
|
69
68
|
- spec/cassettes/TophatterMerchant_Metadata/_categories/returns_categories.yml
|
70
69
|
- spec/cassettes/TophatterMerchant_Metadata/_colors/returns_colors.yml
|
@@ -121,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
120
|
version: '0'
|
122
121
|
requirements: []
|
123
122
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.6.
|
123
|
+
rubygems_version: 2.6.10
|
125
124
|
signing_key:
|
126
125
|
specification_version: 4
|
127
126
|
summary: Manage your inventory and fulfill orders on Tophatter.
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.1.6
|