shipstation 0.25 → 0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/Rakefile +30 -30
- data/lib/shipstation/api_operations/create.rb +10 -10
- data/lib/shipstation/api_operations/delete.rb +10 -10
- data/lib/shipstation/api_operations/list.rb +11 -11
- data/lib/shipstation/api_operations/retrieve.rb +10 -10
- data/lib/shipstation/api_operations/shipment.rb +10 -10
- data/lib/shipstation/api_operations/update.rb +9 -9
- data/lib/shipstation/api_resource.rb +7 -7
- data/lib/shipstation/carrier.rb +11 -11
- data/lib/shipstation/customer.rb +5 -5
- data/lib/shipstation/fulfillment.rb +16 -0
- data/lib/shipstation/order.rb +42 -42
- data/lib/shipstation/product.rb +6 -6
- data/lib/shipstation/shipment.rb +18 -18
- data/lib/shipstation/store.rb +14 -14
- data/lib/shipstation/tag.rb +11 -11
- data/lib/shipstation/version.rb +3 -3
- data/lib/shipstation/warehouse.rb +14 -14
- data/lib/shipstation/webhook.rb +18 -18
- data/lib/shipstation.rb +97 -96
- data/lib/tasks/shipstation_tasks.rake +4 -4
- data/test/dummy/Gemfile +54 -54
- data/test/dummy/Gemfile.lock +191 -191
- data/test/dummy/README.rdoc +28 -28
- data/test/dummy/Rakefile +6 -6
- data/test/dummy/app/assets/javascripts/application.js +16 -16
- data/test/dummy/app/assets/stylesheets/application.css +15 -15
- data/test/dummy/app/controllers/application_controller.rb +5 -5
- data/test/dummy/app/helpers/application_helper.rb +2 -2
- data/test/dummy/app/views/layouts/application.html.erb +14 -14
- data/test/dummy/bin/bundle +3 -3
- data/test/dummy/bin/rails +9 -9
- data/test/dummy/bin/rake +9 -9
- data/test/dummy/bin/setup +29 -29
- data/test/dummy/bin/spring +17 -17
- data/test/dummy/config/application.rb +26 -26
- data/test/dummy/config/boot.rb +3 -3
- data/test/dummy/config/database.yml +25 -25
- data/test/dummy/config/environment.rb +5 -5
- data/test/dummy/config/environments/development.rb +41 -41
- data/test/dummy/config/environments/production.rb +79 -79
- data/test/dummy/config/environments/test.rb +42 -42
- data/test/dummy/config/initializers/assets.rb +11 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -4
- data/test/dummy/config/initializers/inflections.rb +16 -16
- data/test/dummy/config/initializers/mime_types.rb +4 -4
- data/test/dummy/config/initializers/session_store.rb +3 -3
- data/test/dummy/config/initializers/shipstation.rb +1 -1
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/test/dummy/config/locales/en.yml +23 -23
- data/test/dummy/config/routes.rb +56 -56
- data/test/dummy/config/secrets.yml +22 -22
- data/test/dummy/config.ru +4 -4
- data/test/dummy/db/seeds.rb +7 -7
- data/test/dummy/public/404.html +67 -67
- data/test/dummy/public/422.html +67 -67
- data/test/dummy/public/500.html +66 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/robots.txt +5 -5
- data/test/dummy/test/test_helper.rb +10 -10
- data/test/shipstation_test.rb +7 -7
- data/test/test_helper.rb +20 -20
- 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
|
data/test/shipstation_test.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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/
|
123
|
-
- test/dummy/
|
124
|
-
- test/dummy/
|
125
|
-
- test/dummy/
|
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/
|
137
|
-
- test/dummy/config/
|
138
|
-
- test/dummy/config/
|
139
|
-
- test/dummy/config/
|
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/
|
142
|
-
- test/dummy/config/initializers/
|
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/
|
138
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
145
139
|
- test/dummy/config/initializers/session_store.rb
|
146
|
-
- test/dummy/config/initializers/
|
147
|
-
- test/dummy/config/
|
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/
|
155
|
-
- test/dummy/
|
156
|
-
- test/dummy/
|
157
|
-
- test/dummy/
|
158
|
-
- test/dummy/
|
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/
|
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
|