shipstation 0.25 → 0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/Rakefile +30 -30
  4. data/lib/shipstation/api_operations/create.rb +10 -10
  5. data/lib/shipstation/api_operations/delete.rb +10 -10
  6. data/lib/shipstation/api_operations/list.rb +11 -11
  7. data/lib/shipstation/api_operations/retrieve.rb +10 -10
  8. data/lib/shipstation/api_operations/shipment.rb +10 -10
  9. data/lib/shipstation/api_operations/update.rb +9 -9
  10. data/lib/shipstation/api_resource.rb +7 -7
  11. data/lib/shipstation/carrier.rb +11 -11
  12. data/lib/shipstation/customer.rb +5 -5
  13. data/lib/shipstation/fulfillment.rb +16 -0
  14. data/lib/shipstation/order.rb +42 -42
  15. data/lib/shipstation/product.rb +6 -6
  16. data/lib/shipstation/shipment.rb +18 -18
  17. data/lib/shipstation/store.rb +14 -14
  18. data/lib/shipstation/tag.rb +11 -11
  19. data/lib/shipstation/version.rb +3 -3
  20. data/lib/shipstation/warehouse.rb +14 -14
  21. data/lib/shipstation/webhook.rb +18 -18
  22. data/lib/shipstation.rb +97 -96
  23. data/lib/tasks/shipstation_tasks.rake +4 -4
  24. data/test/dummy/Gemfile +54 -54
  25. data/test/dummy/Gemfile.lock +191 -191
  26. data/test/dummy/README.rdoc +28 -28
  27. data/test/dummy/Rakefile +6 -6
  28. data/test/dummy/app/assets/javascripts/application.js +16 -16
  29. data/test/dummy/app/assets/stylesheets/application.css +15 -15
  30. data/test/dummy/app/controllers/application_controller.rb +5 -5
  31. data/test/dummy/app/helpers/application_helper.rb +2 -2
  32. data/test/dummy/app/views/layouts/application.html.erb +14 -14
  33. data/test/dummy/bin/bundle +3 -3
  34. data/test/dummy/bin/rails +9 -9
  35. data/test/dummy/bin/rake +9 -9
  36. data/test/dummy/bin/setup +29 -29
  37. data/test/dummy/bin/spring +17 -17
  38. data/test/dummy/config/application.rb +26 -26
  39. data/test/dummy/config/boot.rb +3 -3
  40. data/test/dummy/config/database.yml +25 -25
  41. data/test/dummy/config/environment.rb +5 -5
  42. data/test/dummy/config/environments/development.rb +41 -41
  43. data/test/dummy/config/environments/production.rb +79 -79
  44. data/test/dummy/config/environments/test.rb +42 -42
  45. data/test/dummy/config/initializers/assets.rb +11 -11
  46. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -7
  47. data/test/dummy/config/initializers/cookies_serializer.rb +3 -3
  48. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  49. data/test/dummy/config/initializers/inflections.rb +16 -16
  50. data/test/dummy/config/initializers/mime_types.rb +4 -4
  51. data/test/dummy/config/initializers/session_store.rb +3 -3
  52. data/test/dummy/config/initializers/shipstation.rb +1 -1
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -14
  54. data/test/dummy/config/locales/en.yml +23 -23
  55. data/test/dummy/config/routes.rb +56 -56
  56. data/test/dummy/config/secrets.yml +22 -22
  57. data/test/dummy/config.ru +4 -4
  58. data/test/dummy/db/seeds.rb +7 -7
  59. data/test/dummy/public/404.html +67 -67
  60. data/test/dummy/public/422.html +67 -67
  61. data/test/dummy/public/500.html +66 -66
  62. data/test/dummy/public/favicon.ico +0 -0
  63. data/test/dummy/public/robots.txt +5 -5
  64. data/test/dummy/test/test_helper.rb +10 -10
  65. data/test/shipstation_test.rb +7 -7
  66. data/test/test_helper.rb +20 -20
  67. metadata +38 -37
@@ -1,10 +1,10 @@
1
- ENV['RAILS_ENV'] ||= 'test'
2
- require File.expand_path('../../config/environment', __FILE__)
3
- require 'rails/test_help'
4
-
5
- class ActiveSupport::TestCase
6
- # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7
- fixtures :all
8
-
9
- # Add more helper methods to be used by all tests here...
10
- end
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7
+ fixtures :all
8
+
9
+ # Add more helper methods to be used by all tests here...
10
+ end
@@ -1,7 +1,7 @@
1
- require 'test_helper'
2
-
3
- class ShipstationTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, Shipstation
6
- end
7
- end
1
+ require 'test_helper'
2
+
3
+ class ShipstationTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Shipstation
6
+ end
7
+ end
data/test/test_helper.rb CHANGED
@@ -1,20 +1,20 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
- require "rails/test_help"
7
-
8
- # Filter out Minitest backtrace while allowing backtrace from other libraries
9
- # to be shown.
10
- Minitest.backtrace_filter = Minitest::BacktraceFilter.new
11
-
12
- # Load support files
13
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
14
-
15
- # Load fixtures from the engine
16
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
17
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
18
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
19
- ActiveSupport::TestCase.fixtures :all
20
- end
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
+ require "rails/test_help"
7
+
8
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
9
+ # to be shown.
10
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
11
+
12
+ # Load support files
13
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
14
+
15
+ # Load fixtures from the engine
16
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
17
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
18
+ ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
19
+ ActiveSupport::TestCase.fixtures :all
20
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipstation
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.25'
4
+ version: '0.26'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Dallimore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-30 00:00:00.000000000 Z
11
+ date: 2022-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -43,6 +43,7 @@ files:
43
43
  - lib/shipstation/api_resource.rb
44
44
  - lib/shipstation/carrier.rb
45
45
  - lib/shipstation/customer.rb
46
+ - lib/shipstation/fulfillment.rb
46
47
  - lib/shipstation/order.rb
47
48
  - lib/shipstation/product.rb
48
49
  - lib/shipstation/shipment.rb
@@ -114,51 +115,51 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  - !ruby/object:Gem::Version
115
116
  version: '0'
116
117
  requirements: []
117
- rubygems_version: 3.2.15
118
+ rubygems_version: 3.1.6
118
119
  signing_key:
119
120
  specification_version: 4
120
121
  summary: A Ruby wrapper for the Shipstation API
121
122
  test_files:
122
- - test/dummy/app/assets/javascripts/application.js
123
- - test/dummy/app/assets/stylesheets/application.css
124
- - test/dummy/app/controllers/application_controller.rb
125
- - test/dummy/app/helpers/application_helper.rb
126
- - test/dummy/app/views/layouts/application.html.erb
127
- - test/dummy/bin/bundle
128
- - test/dummy/bin/rails
129
- - test/dummy/bin/rake
130
- - test/dummy/bin/setup
131
- - test/dummy/bin/spring
132
- - test/dummy/config/application.rb
133
- - test/dummy/config/boot.rb
134
- - test/dummy/config/database.yml
123
+ - test/dummy/config.ru
124
+ - test/dummy/README.rdoc
125
+ - test/dummy/Gemfile.lock
126
+ - test/dummy/db/seeds.rb
135
127
  - test/dummy/config/environment.rb
136
- - test/dummy/config/environments/development.rb
137
- - test/dummy/config/environments/production.rb
138
- - test/dummy/config/environments/test.rb
139
- - test/dummy/config/initializers/assets.rb
128
+ - test/dummy/config/routes.rb
129
+ - test/dummy/config/database.yml
130
+ - test/dummy/config/secrets.yml
131
+ - test/dummy/config/application.rb
132
+ - test/dummy/config/initializers/shipstation.rb
133
+ - test/dummy/config/initializers/mime_types.rb
140
134
  - test/dummy/config/initializers/backtrace_silencers.rb
141
- - test/dummy/config/initializers/cookies_serializer.rb
142
- - test/dummy/config/initializers/filter_parameter_logging.rb
135
+ - test/dummy/config/initializers/wrap_parameters.rb
136
+ - test/dummy/config/initializers/assets.rb
143
137
  - test/dummy/config/initializers/inflections.rb
144
- - test/dummy/config/initializers/mime_types.rb
138
+ - test/dummy/config/initializers/filter_parameter_logging.rb
145
139
  - test/dummy/config/initializers/session_store.rb
146
- - test/dummy/config/initializers/shipstation.rb
147
- - test/dummy/config/initializers/wrap_parameters.rb
140
+ - test/dummy/config/initializers/cookies_serializer.rb
141
+ - test/dummy/config/boot.rb
142
+ - test/dummy/config/environments/test.rb
143
+ - test/dummy/config/environments/production.rb
144
+ - test/dummy/config/environments/development.rb
148
145
  - test/dummy/config/locales/en.yml
149
- - test/dummy/config/routes.rb
150
- - test/dummy/config/secrets.yml
151
- - test/dummy/config.ru
152
- - test/dummy/db/seeds.rb
153
146
  - test/dummy/Gemfile
154
- - test/dummy/Gemfile.lock
155
- - test/dummy/public/404.html
156
- - test/dummy/public/422.html
157
- - test/dummy/public/500.html
158
- - test/dummy/public/favicon.ico
159
- - test/dummy/public/robots.txt
147
+ - test/dummy/app/views/layouts/application.html.erb
148
+ - test/dummy/app/assets/javascripts/application.js
149
+ - test/dummy/app/assets/stylesheets/application.css
150
+ - test/dummy/app/helpers/application_helper.rb
151
+ - test/dummy/app/controllers/application_controller.rb
160
152
  - test/dummy/Rakefile
161
- - test/dummy/README.rdoc
162
153
  - test/dummy/test/test_helper.rb
163
- - test/shipstation_test.rb
154
+ - test/dummy/bin/setup
155
+ - test/dummy/bin/rails
156
+ - test/dummy/bin/spring
157
+ - test/dummy/bin/bundle
158
+ - test/dummy/bin/rake
159
+ - test/dummy/public/500.html
160
+ - test/dummy/public/robots.txt
161
+ - test/dummy/public/favicon.ico
162
+ - test/dummy/public/404.html
163
+ - test/dummy/public/422.html
164
164
  - test/test_helper.rb
165
+ - test/shipstation_test.rb