Skip to content

Commit

Permalink
Minimal implementation, missing parts
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Sep 10, 2024
1 parent 0d3b0a1 commit 94fb4b1
Show file tree
Hide file tree
Showing 223 changed files with 7,687 additions and 54,407 deletions.
47 changes: 4 additions & 43 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,7 @@
## Contributing

In the spirit of [free software][free-sw], everyone is encouraged to help
improve this project. Here are some ways you can contribute:

[free-sw]: http://www.fsf.org/licensing/essays/free-sw.html

* Report bugs.
* Suggest new features.
* Write or edit documentation.
* Write code (**no patch is too small**: fix typos, add comments, clean up
inconsistent whitespace).
* [Fix issues.][issues]

[issues]: https://github.com/hakanensari/peddler/issues

## Submitting an Issue

We use the [GitHub issue tracker][issues] to track bugs and features. Before
submitting a bug report or feature request, check to make sure it hasn't
already been submitted. When submitting a bug report, please include a [Gist][]
that includes a stack trace and any details that may be necessary to reproduce
the bug.

Do not submit issues that are not specific to Peddler. Instead, find help on the
[Amazon seller forum][forum].

[gist]: https://gist.github.com/
[forum]: https://sellercentral.amazon.com/forums/c/amazon-marketplace-web-service-mws/

## Submitting a Pull Request

1. [Fork the repository.][fork]
2. [Create a topic branch.][branch]
3. Add tests for your unimplemented feature or bug fix.
4. Run `bundle exec rake`. If your tests pass, return to step 3.
5. Implement your feature or bug fix.
6. Run `bundle exec rake`. If your tests fail, return to step 5.
7. Run `open coverage/index.html`. If your changes are not completely covered
by your tests, return to step 3.
8. Commit and push your changes.
9. [Submit a pull request.][pr]
Only submit issues that are specific to Peddler. Otherwise, reach out to Amazon [Developer Support][] or find help on
their [GitHub Discussions][].

[fork]: http://help.github.com/fork-a-repo/
[branch]: http://learn.github.com/p/branching.html
[pr]: http://help.github.com/send-pull-requests/
[Developer Support]: https://developer.amazonservices.com/support
[GitHub Discussions]: https://github.com/amzn/selling-partner-api-models/discussions
17 changes: 0 additions & 17 deletions .github/stale.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ Gemfile.lock
.yardoc
bin
coverage
credentials.yml
doc
gemfiles/*.gemfile.lock
pkg
mws.yml
test/config.json
7 changes: 4 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
inherit_from: ".rubocop_todo.yml"

require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake
inherit_gem:
rubocop-shopify: rubocop.yml
inherit_from: ".rubocop_todo.yml"

AllCops:
Exclude:
- "gemfiles/**/*"
NewCops: enable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.2
37 changes: 3 additions & 34 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,6 @@
Layout/LineLength:
Exclude:
- "test/**/*"
AllowedPatterns: ['\A\s*#']
Lint/EmptyBlock:
Exclude:
- "Appraisals"
Lint/StructNewOverride:
Exclude:
- "test/**/*"
Metrics/AbcSize:
Exclude:
- "test/**/*"
- "lib/jeff.rb"
Metrics/ClassLength:
Exclude:
- "lib/mws/**/client.rb"
- "test/**/*"
Metrics/MethodLength:
Exclude:
- "lib/peddler/client.rb"
- "lib/mws/**/client.rb"
- "test/**/*"
Metrics/ParameterLists:
Exclude:
- "lib/mws/**/client.rb"
AllowedPatterns:
- ^\s*\w+ = ".*"$
Naming/AccessorMethodName:
Exclude:
- "lib/mws/**/client.rb"
Naming/VariableNumber:
Exclude:
- "test/**/*"
Security/Eval:
Enabled: false
Style/OpenStructUse:
Exclude:
- "test/**/*"
- "lib/peddler/apis/*.rb"
15 changes: 0 additions & 15 deletions Appraisals

This file was deleted.

5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM ruby:2.7
FROM ruby:3.5

ENV LC_ALL C.UTF-8

RUN mkdir gem
WORKDIR /gem
ADD . /gem
RUN bundle install
RUN bundle exec appraisal install
CMD bundle exec appraisal rake
CMD bundle exec rake
29 changes: 12 additions & 17 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# frozen_string_literal: true

source 'https://rubygems.org'
source "https://rubygems.org"

gemspec

gem 'rake'
gem 'rubocop'
gem 'rubocop-minitest'
gem 'rubocop-performance'
gem 'rubocop-rake'
gem 'yard'

group :test do
gem 'appraisal'
gem 'minitest'
gem 'minitest-focus'
gem 'simplecov'
gem 'vcr'
gem 'webmock'
end
gem "minitest"
gem "rake"
gem "rubocop", require: false
gem "rubocop-minitest", require: false
gem "rubocop-performance", require: false
gem "rubocop-rake", require: false
gem "rubocop-shopify", require: false
gem "simplecov"
gem "vcr"
gem "webmock"
gem "yard"
14 changes: 7 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubocop/rake_task'
require 'yard'
require "bundler/gem_tasks"
require "rake/testtask"
require "rubocop/rake_task"
require "yard"

Rake::TestTask.new do |t|
t.libs << 'test'
t.pattern = 'test/**/test_*.rb'
t.libs << "test"
t.pattern = "test/**/*_test.rb"
end
RuboCop::RakeTask.new
YARD::Rake::YardocTask.new

task default: %i[test rubocop]
task default: [:rubocop, :test]
4 changes: 4 additions & 0 deletions codegen/clone
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

rm -rf selling-partner-api-models
git clone [email protected]:amzn/selling-partner-api-models.git
Loading

0 comments on commit 94fb4b1

Please sign in to comment.