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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab4fb737f8fa77f24e2642bde78b458558342f50
4
- data.tar.gz: e4cfc0cafe8e957b7459d4855aa50d98bb1738cb
3
+ metadata.gz: d8da0190bbf1290b7ab365851263186e431ea432
4
+ data.tar.gz: b3825b738819036ce9742d4e3dd1ede7c772ee28
5
5
  SHA512:
6
- metadata.gz: 8a46ce4838c74e42a4e8f034ab07d5fbf9397468ffb8c2273b34c36017a31094e11993382064c2681581b77bd1800d7e63fec92a8a415976339baafb7f99c350
7
- data.tar.gz: 9a1b9c39c4b03925804821f482d4ca0698166e2fc124e61cc89bef12c1adc2f4934a0bfe40339fa49ca96b20dfc82c13e962dad7eaa4f3234a52ed933dd50fd8
6
+ metadata.gz: c5f876c8a736230cabdab6b629225e7a72a5b17c2a6c104dbde2a4099c154341ae6fd8ad08a8c5b7a6cc26356bef5ccd19fbdd978105effb110cb7e4d65f22d8
7
+ data.tar.gz: 03c1e9e6fc8d68ad4b9d4f2a0ef11d781c1fc5b0b903e36baa1c40cfe26bc5c47a6ecc50910fea8e53cd5533a9a64d04f9d9cc1468ac0eff2d65a5e548c232ba
data/.gitignore CHANGED
@@ -1,9 +1,9 @@
1
- Gemfile.lock
2
- *.swp
3
1
  *.gem
2
+ /Gemfile.lock
3
+ /.approvals
4
+ /.bundle
5
+ /coverage
4
6
  .DS_Store
5
- .bundle
6
- .idea
7
- .api_path
8
- .access_token
9
- coverage
7
+
8
+ /.api_path
9
+ /.access_token
data/.rubocop.yml CHANGED
@@ -1,37 +1,38 @@
1
1
  AllCops:
2
2
  TargetRubyVersion: 2.2
3
3
 
4
- # [Metrics]
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/BlockLength:
13
+ Metrics/ClassLength:
9
14
  Enabled: false
10
15
  Metrics/MethodLength:
11
16
  Enabled: false
12
- Metrics/ParameterLists:
17
+ Metrics/BlockLength:
13
18
  Enabled: false
14
- # Complexity metrics are difficult to understand and fix, so let's ignore them.
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
- # http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/ElseAlignment
27
+ Style/IndentationWidth:
28
+ Enabled: false
30
29
  Style/ElseAlignment:
31
30
  Enabled: false
32
- # http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Style/IndentationWidth
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
@@ -1,10 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2
4
- branches:
5
- only:
6
- - master
7
- cache: bundler
4
+ # branches:
5
+ # only:
6
+ # - master
8
7
  script:
9
- - bundle exec rake rubocop
10
- - bundle exec rspec
8
+ - bundle exec rubocop
9
+ - bundle exec rake
10
+ cache: bundler
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ group :development, :test do
5
5
  gem 'awesome_print'
6
6
  gem 'pry'
7
7
  gem 'rake'
8
- gem 'rubocop'
8
+ gem 'rubocop', '0.47.1'
9
9
  end
10
10
 
11
11
  group :test do
File without changes
data/Rakefile CHANGED
@@ -1,3 +1,3 @@
1
- require 'rubocop/rake_task'
2
-
3
- RuboCop::RakeTask.new
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
@@ -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, :admin_banned_at, :admin_hold_at, :admin_hold_responded_at, :admin_reason, :success_fee_bid_enabled, :success_fee_bid # Admin
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
@@ -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-<version>.gem
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 = TophatterMerchant::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.6
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-04-01 00:00:00.000000000 Z
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.8
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
@@ -1,3 +0,0 @@
1
- module TophatterMerchant
2
- VERSION = '1.1.6'.freeze
3
- end