-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite the gem to use the Amazon Selling Partner API
While functional, this is a work in progress and not ready for production use yet.
- Loading branch information
1 parent
2174661
commit dd0e09e
Showing
213 changed files
with
8,004 additions
and
53,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
.bundle | ||
Gemfile.lock | ||
.yardoc | ||
bin | ||
coverage | ||
doc | ||
gemfiles/*.gemfile.lock | ||
pkg | ||
mws.yml | ||
selling-partner-api-models | ||
test/config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,6 @@ | ||
Layout/LineLength: | ||
Exclude: | ||
- "test/**/*" | ||
AllowedPatterns: ['\A\s*#'] | ||
Lint/EmptyBlock: | ||
Exclude: | ||
- "Appraisals" | ||
Lint/StructNewOverride: | ||
Exclude: | ||
- "test/**/*" | ||
Metrics/AbcSize: | ||
Exclude: | ||
- "test/**/*" | ||
Metrics/ClassLength: | ||
Exclude: | ||
- "lib/mws/**/client.rb" | ||
- "test/**/*" | ||
Metrics/MethodLength: | ||
Exclude: | ||
- "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/**/*" | ||
Style/OpenStructUse: | ||
Exclude: | ||
- "test/**/*" | ||
- "lib/peddler/api/*.rb" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +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' | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.