solidus_api_v2 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +2 -0
- data/CHANGELOG.md +38 -0
- data/Gemfile +13 -0
- data/LICENSE +26 -0
- data/README.md +98 -0
- data/Rakefile +37 -0
- data/app/controllers/concerns/spree/api/v2/renderable.rb +51 -0
- data/app/controllers/spree/api/v2/base_controller.rb +31 -0
- data/app/controllers/spree/api/v2/children_controller.rb +29 -0
- data/app/controllers/spree/api/v2/countries_controller.rb +21 -0
- data/app/controllers/spree/api/v2/images_controller.rb +29 -0
- data/app/controllers/spree/api/v2/line_items_controller.rb +36 -0
- data/app/controllers/spree/api/v2/option_types_controller.rb +31 -0
- data/app/controllers/spree/api/v2/option_values_controller.rb +29 -0
- data/app/controllers/spree/api/v2/orders_controller.rb +11 -0
- data/app/controllers/spree/api/v2/prices_controller.rb +27 -0
- data/app/controllers/spree/api/v2/products_controller.rb +37 -0
- data/app/controllers/spree/api/v2/states_controller.rb +29 -0
- data/app/controllers/spree/api/v2/taxonomies_controller.rb +21 -0
- data/app/controllers/spree/api/v2/taxons_controller.rb +40 -0
- data/app/controllers/spree/api/v2/variants_controller.rb +35 -0
- data/app/models/spree/base_decorator.rb +5 -0
- data/app/models/spree/image_decorator.rb +3 -0
- data/app/models/spree/price_decorator.rb +3 -0
- data/app/models/spree/state_decorator.rb +3 -0
- data/app/serializers/spree/address_serializer.rb +9 -0
- data/app/serializers/spree/base_serializer.rb +13 -0
- data/app/serializers/spree/country_serializer.rb +7 -0
- data/app/serializers/spree/error_serializer.rb +52 -0
- data/app/serializers/spree/image_serializer.rb +13 -0
- data/app/serializers/spree/line_item_serializer.rb +13 -0
- data/app/serializers/spree/option_type_serializer.rb +8 -0
- data/app/serializers/spree/option_value_serializer.rb +8 -0
- data/app/serializers/spree/order_serializer.rb +21 -0
- data/app/serializers/spree/price_serializer.rb +7 -0
- data/app/serializers/spree/product_serializer.rb +12 -0
- data/app/serializers/spree/role_serializer.rb +5 -0
- data/app/serializers/spree/state_serializer.rb +7 -0
- data/app/serializers/spree/store_serializer.rb +6 -0
- data/app/serializers/spree/taxon_serializer.rb +16 -0
- data/app/serializers/spree/taxonomy_serializer.rb +7 -0
- data/app/serializers/spree/user_serializer.rb +5 -0
- data/app/serializers/spree/variant_serializer.rb +12 -0
- data/bin/rails +7 -0
- data/circle.yml +13 -0
- data/config/locales/en.yml +25 -0
- data/config/routes.rb +53 -0
- data/docs/.nojekyll +0 -0
- data/docs/Dockerfile +12 -0
- data/docs/Gemfile +13 -0
- data/docs/README.md +12 -0
- data/docs/Rakefile +9 -0
- data/docs/config.rb +39 -0
- data/docs/font-selection.json +148 -0
- data/docs/source/fonts/slate.eot +0 -0
- data/docs/source/fonts/slate.svg +14 -0
- data/docs/source/fonts/slate.ttf +0 -0
- data/docs/source/fonts/slate.woff +0 -0
- data/docs/source/fonts/slate.woff2 +0 -0
- data/docs/source/images/logo.png +0 -0
- data/docs/source/images/navbar.png +0 -0
- data/docs/source/includes/_authentication.md +61 -0
- data/docs/source/includes/_countries.md +133 -0
- data/docs/source/includes/_errors.md +17 -0
- data/docs/source/includes/_filtering.md +11 -0
- data/docs/source/includes/_images.md +201 -0
- data/docs/source/includes/_line_items.md +137 -0
- data/docs/source/includes/_option_types.md +267 -0
- data/docs/source/includes/_option_values.md +227 -0
- data/docs/source/includes/_orders.md +75 -0
- data/docs/source/includes/_pagination.md +10 -0
- data/docs/source/includes/_prices.md +188 -0
- data/docs/source/includes/_products.md +403 -0
- data/docs/source/includes/_states.md +96 -0
- data/docs/source/includes/_taxonomies.md +325 -0
- data/docs/source/includes/_taxons.md +414 -0
- data/docs/source/includes/_variants.md +430 -0
- data/docs/source/index.md +53 -0
- data/docs/source/javascripts/all.js +4 -0
- data/docs/source/javascripts/all_nosearch.js +3 -0
- data/docs/source/javascripts/app/_lang.js +162 -0
- data/docs/source/javascripts/app/_search.js +74 -0
- data/docs/source/javascripts/app/_toc.js +55 -0
- data/docs/source/javascripts/lib/_energize.js +169 -0
- data/docs/source/javascripts/lib/_imagesloaded.min.js +7 -0
- data/docs/source/javascripts/lib/_jquery.highlight.js +108 -0
- data/docs/source/javascripts/lib/_jquery.tocify.js +1042 -0
- data/docs/source/javascripts/lib/_jquery_ui.js +566 -0
- data/docs/source/javascripts/lib/_lunr.js +1910 -0
- data/docs/source/layouts/layout.erb +102 -0
- data/docs/source/stylesheets/_icon-font.scss +38 -0
- data/docs/source/stylesheets/_normalize.css +427 -0
- data/docs/source/stylesheets/_syntax.scss.erb +27 -0
- data/docs/source/stylesheets/_variables.scss +109 -0
- data/docs/source/stylesheets/print.css.scss +142 -0
- data/docs/source/stylesheets/screen.css.scss +622 -0
- data/lib/solidus_api_v2.rb +5 -0
- data/lib/spree_api_v2/engine.rb +21 -0
- data/lib/spree_api_v2.rb +4 -0
- data/solidus_api_v2.gemspec +36 -0
- data/spec/controllers/spree/api/v2/children_controller_spec.rb +28 -0
- data/spec/controllers/spree/api/v2/countries_controller_spec.rb +25 -0
- data/spec/controllers/spree/api/v2/images_controller_spec.rb +93 -0
- data/spec/controllers/spree/api/v2/line_items_controller_spec.rb +86 -0
- data/spec/controllers/spree/api/v2/option_types_controller_spec.rb +73 -0
- data/spec/controllers/spree/api/v2/option_values_controller_spec.rb +88 -0
- data/spec/controllers/spree/api/v2/orders_controller_spec.rb +15 -0
- data/spec/controllers/spree/api/v2/prices_controller_spec.rb +55 -0
- data/spec/controllers/spree/api/v2/products_controller_spec.rb +95 -0
- data/spec/controllers/spree/api/v2/states_controller_spec.rb +42 -0
- data/spec/controllers/spree/api/v2/taxonomies_controller_spec.rb +31 -0
- data/spec/controllers/spree/api/v2/taxons_controller_spec.rb +54 -0
- data/spec/controllers/spree/api/v2/variants_controller_spec.rb +108 -0
- data/spec/models/spree/base_decorator_spec.rb +9 -0
- data/spec/models/spree/price_decorator_spec.rb +3 -0
- data/spec/serializers/spree/address_serializer_spec.rb +35 -0
- data/spec/serializers/spree/country_serializer_spec.rb +27 -0
- data/spec/serializers/spree/error_serializer_spec.rb +116 -0
- data/spec/serializers/spree/image_serializer_spec.rb +30 -0
- data/spec/serializers/spree/line_item_serializer_spec.rb +40 -0
- data/spec/serializers/spree/option_type_serializer_spec.rb +27 -0
- data/spec/serializers/spree/option_value_serializer_spec.rb +29 -0
- data/spec/serializers/spree/order_serializer_spec.rb +69 -0
- data/spec/serializers/spree/price_serializer_spec.rb +28 -0
- data/spec/serializers/spree/product_serializer_spec.rb +47 -0
- data/spec/serializers/spree/role_serializer_spec.rb +17 -0
- data/spec/serializers/spree/state_serializer_spec.rb +25 -0
- data/spec/serializers/spree/store_serializer_spec.rb +25 -0
- data/spec/serializers/spree/taxon_serializer_spec.rb +44 -0
- data/spec/serializers/spree/taxonomy_serializer_spec.rb +27 -0
- data/spec/serializers/spree/user_serializer_spec.rb +17 -0
- data/spec/serializers/spree/variant_serializer_spec.rb +55 -0
- data/spec/spec_helper.rb +51 -0
- data/spec/support/shoulda_matchers.rb +6 -0
- data/spree_api_v2.gemspec +36 -0
- metadata +437 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
describe Spree::TaxonSerializer do
|
2
|
+
let(:taxon) { create :taxon }
|
3
|
+
subject { ActiveModel::Serializer::Adapter::JsonApi.new(described_class.new taxon) }
|
4
|
+
|
5
|
+
its(:to_json) do
|
6
|
+
is_expected.to be_json_eql <<-JSON
|
7
|
+
{
|
8
|
+
"data" : {
|
9
|
+
"attributes" : {
|
10
|
+
"depth" : 0,
|
11
|
+
"description" : null,
|
12
|
+
"links": {
|
13
|
+
"large" : "/assets/default_taxon.png",
|
14
|
+
"mini" : "/assets/default_taxon.png",
|
15
|
+
"original" : "/assets/default_taxon.png",
|
16
|
+
"product" : "/assets/default_taxon.png",
|
17
|
+
"small" : "/assets/default_taxon.png"
|
18
|
+
},
|
19
|
+
"meta_description" : null,
|
20
|
+
"meta_keywords" : null,
|
21
|
+
"meta_title" : null,
|
22
|
+
"name" : "#{taxon.name}",
|
23
|
+
"permalink" : "#{taxon.permalink}",
|
24
|
+
"position" : 0
|
25
|
+
},
|
26
|
+
"relationships" : {
|
27
|
+
"children" : {
|
28
|
+
"data" : []
|
29
|
+
},
|
30
|
+
"parent" : {
|
31
|
+
"data" : null
|
32
|
+
},
|
33
|
+
"taxonomy" : {
|
34
|
+
"data" : {
|
35
|
+
"type" : "spree_taxonomies"
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"type" : "spree_taxons"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
JSON
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
describe Spree::TaxonomySerializer do
|
2
|
+
let(:taxonomy) { create :taxonomy }
|
3
|
+
subject { ActiveModel::Serializer::Adapter::JsonApi.new(described_class.new taxonomy) }
|
4
|
+
|
5
|
+
its(:to_json) do
|
6
|
+
is_expected.to be_json_eql <<-JSON
|
7
|
+
{
|
8
|
+
"data" : {
|
9
|
+
"attributes" : {
|
10
|
+
"name" : "#{taxonomy.name}",
|
11
|
+
"position" : #{taxonomy.position}
|
12
|
+
},
|
13
|
+
"relationships" : {
|
14
|
+
"taxons" : {
|
15
|
+
"data" : [
|
16
|
+
{
|
17
|
+
"type" : "spree_taxons"
|
18
|
+
}
|
19
|
+
]
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"type" : "spree_taxonomies"
|
23
|
+
}
|
24
|
+
}
|
25
|
+
JSON
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
describe Spree::UserSerializer do
|
2
|
+
let(:user) { create :user }
|
3
|
+
subject { ActiveModel::Serializer::Adapter::JsonApi.new(described_class.new user) }
|
4
|
+
|
5
|
+
its(:to_json) do
|
6
|
+
is_expected.to be_json_eql <<-JSON
|
7
|
+
{
|
8
|
+
"data" : {
|
9
|
+
"attributes" : {
|
10
|
+
"email" : "#{user.email}"
|
11
|
+
},
|
12
|
+
"type" : "spree_users"
|
13
|
+
}
|
14
|
+
}
|
15
|
+
JSON
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
describe Spree::VariantSerializer do
|
2
|
+
let(:image) { create :image }
|
3
|
+
let(:variant) { create :variant, images: [image] }
|
4
|
+
subject { ActiveModel::Serializer::Adapter::JsonApi.new(described_class.new variant) }
|
5
|
+
|
6
|
+
its(:to_json) do
|
7
|
+
is_expected.to be_json_eql <<-JSON
|
8
|
+
{
|
9
|
+
"data" : {
|
10
|
+
"attributes" : {
|
11
|
+
"depth" : "#{variant.depth}",
|
12
|
+
"display_price" : "#{variant.display_price}",
|
13
|
+
"height" : "#{variant.height}",
|
14
|
+
"is_master" : #{variant.is_master},
|
15
|
+
"name" : "#{variant.name}",
|
16
|
+
"position" : #{variant.position},
|
17
|
+
"price" : "#{variant.price}",
|
18
|
+
"sku" : "#{variant.sku}",
|
19
|
+
"weight" : "#{variant.weight}",
|
20
|
+
"width" : "#{variant.width}"
|
21
|
+
},
|
22
|
+
"relationships" : {
|
23
|
+
"images" : {
|
24
|
+
"data" : [
|
25
|
+
{
|
26
|
+
"type" : "spree_images"
|
27
|
+
}
|
28
|
+
]
|
29
|
+
},
|
30
|
+
"option_values" : {
|
31
|
+
"data" : [
|
32
|
+
{
|
33
|
+
"type" : "spree_option_values"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
},
|
37
|
+
"prices" : {
|
38
|
+
"data" : [
|
39
|
+
{
|
40
|
+
"type" : "spree_prices"
|
41
|
+
}
|
42
|
+
]
|
43
|
+
},
|
44
|
+
"product" : {
|
45
|
+
"data" : {
|
46
|
+
"type" : "spree_products"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"type" : "spree_variants"
|
51
|
+
}
|
52
|
+
}
|
53
|
+
JSON
|
54
|
+
end
|
55
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
SimpleCov.start do
|
3
|
+
add_filter 'spec/dummy'
|
4
|
+
add_group 'Controllers', 'app/controllers'
|
5
|
+
add_group 'Models', 'app/models'
|
6
|
+
add_group 'Serializers', 'app/serializers'
|
7
|
+
add_group 'Libraries', 'lib'
|
8
|
+
end
|
9
|
+
|
10
|
+
ENV['RAILS_ENV'] = 'test'
|
11
|
+
|
12
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
13
|
+
|
14
|
+
require 'rspec/rails'
|
15
|
+
require 'rspec/its'
|
16
|
+
require 'database_cleaner'
|
17
|
+
require 'ffaker'
|
18
|
+
require 'json_spec'
|
19
|
+
require 'shoulda/matchers'
|
20
|
+
|
21
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
22
|
+
|
23
|
+
require 'spree/testing_support/factories'
|
24
|
+
|
25
|
+
RSpec.configure do |config|
|
26
|
+
config.include FactoryGirl::Syntax::Methods
|
27
|
+
config.include JsonSpec::Helpers
|
28
|
+
|
29
|
+
config.infer_spec_type_from_file_location!
|
30
|
+
config.mock_with :rspec
|
31
|
+
config.color = true
|
32
|
+
config.use_transactional_fixtures = false
|
33
|
+
config.fail_fast = ENV['FAIL_FAST'] || false
|
34
|
+
config.order = "random"
|
35
|
+
|
36
|
+
config.before :suite do
|
37
|
+
ActiveModel::Serializer.config.adapter = :json_api
|
38
|
+
|
39
|
+
DatabaseCleaner.strategy = :transaction
|
40
|
+
DatabaseCleaner.clean_with :truncation
|
41
|
+
end
|
42
|
+
|
43
|
+
config.before :each do
|
44
|
+
DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
|
45
|
+
DatabaseCleaner.start
|
46
|
+
end
|
47
|
+
|
48
|
+
config.after :each do
|
49
|
+
DatabaseCleaner.clean
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
s.platform = Gem::Platform::RUBY
|
4
|
+
s.name = 'spree_api_v2'
|
5
|
+
s.version = '0.2.0'
|
6
|
+
s.summary = 'The V2 API for Spree.'
|
7
|
+
s.description = 'Adds an assortment of new api endpoints that are JSON API compatible.'
|
8
|
+
s.required_ruby_version = '>= 2.0.0'
|
9
|
+
|
10
|
+
s.author = 'Ben A. Morgan'
|
11
|
+
s.email = 'ben@benmorgan.io'
|
12
|
+
s.homepage = 'http://spree-contrib.github.io/spree_api_v2'
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
+
s.require_path = 'lib'
|
17
|
+
s.requirements << 'none'
|
18
|
+
|
19
|
+
s.add_dependency 'spree_api', '~> 3.0'
|
20
|
+
s.add_dependency 'active_model_serializers', '= 0.10.0.rc2'
|
21
|
+
|
22
|
+
s.add_development_dependency 'capybara', '~> 2.4'
|
23
|
+
s.add_development_dependency 'coffee-rails'
|
24
|
+
s.add_development_dependency 'database_cleaner'
|
25
|
+
s.add_development_dependency 'factory_girl', '~> 4.5'
|
26
|
+
s.add_development_dependency 'ffaker'
|
27
|
+
s.add_development_dependency 'rspec-rails', '~> 3.3'
|
28
|
+
s.add_development_dependency 'rspec-its'
|
29
|
+
s.add_development_dependency 'sass-rails', '~> 5.0.0.beta1'
|
30
|
+
s.add_development_dependency 'selenium-webdriver'
|
31
|
+
s.add_development_dependency 'simplecov'
|
32
|
+
s.add_development_dependency 'sqlite3'
|
33
|
+
s.add_development_dependency 'pg'
|
34
|
+
s.add_development_dependency 'json_spec', '~> 1.1.4'
|
35
|
+
s.add_development_dependency 'shoulda-matchers', '~> 3.0.0'
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,437 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: solidus_api_v2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ben A. Morgan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: solidus_api
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: active_model_serializers
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.10.0.rc2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.10.0.rc2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.4'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coffee-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: database_cleaner
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: factory_girl
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.5'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.5'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: ffaker
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.3'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.3'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec-its
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sass-rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 5.0.0.beta1
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 5.0.0.beta1
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: selenium-webdriver
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: simplecov
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: sqlite3
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: pg
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: json_spec
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 1.1.4
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 1.1.4
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: shoulda-matchers
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 3.0.0
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 3.0.0
|
237
|
+
description: Adds an assortment of new api endpoints that are JSON API compatible.
|
238
|
+
email: ben@benmorgan.io
|
239
|
+
executables: []
|
240
|
+
extensions: []
|
241
|
+
extra_rdoc_files: []
|
242
|
+
files:
|
243
|
+
- ".gitignore"
|
244
|
+
- ".rspec"
|
245
|
+
- CHANGELOG.md
|
246
|
+
- Gemfile
|
247
|
+
- LICENSE
|
248
|
+
- README.md
|
249
|
+
- Rakefile
|
250
|
+
- app/controllers/concerns/spree/api/v2/renderable.rb
|
251
|
+
- app/controllers/spree/api/v2/base_controller.rb
|
252
|
+
- app/controllers/spree/api/v2/children_controller.rb
|
253
|
+
- app/controllers/spree/api/v2/countries_controller.rb
|
254
|
+
- app/controllers/spree/api/v2/images_controller.rb
|
255
|
+
- app/controllers/spree/api/v2/line_items_controller.rb
|
256
|
+
- app/controllers/spree/api/v2/option_types_controller.rb
|
257
|
+
- app/controllers/spree/api/v2/option_values_controller.rb
|
258
|
+
- app/controllers/spree/api/v2/orders_controller.rb
|
259
|
+
- app/controllers/spree/api/v2/prices_controller.rb
|
260
|
+
- app/controllers/spree/api/v2/products_controller.rb
|
261
|
+
- app/controllers/spree/api/v2/states_controller.rb
|
262
|
+
- app/controllers/spree/api/v2/taxonomies_controller.rb
|
263
|
+
- app/controllers/spree/api/v2/taxons_controller.rb
|
264
|
+
- app/controllers/spree/api/v2/variants_controller.rb
|
265
|
+
- app/models/spree/base_decorator.rb
|
266
|
+
- app/models/spree/image_decorator.rb
|
267
|
+
- app/models/spree/price_decorator.rb
|
268
|
+
- app/models/spree/state_decorator.rb
|
269
|
+
- app/serializers/spree/address_serializer.rb
|
270
|
+
- app/serializers/spree/base_serializer.rb
|
271
|
+
- app/serializers/spree/country_serializer.rb
|
272
|
+
- app/serializers/spree/error_serializer.rb
|
273
|
+
- app/serializers/spree/image_serializer.rb
|
274
|
+
- app/serializers/spree/line_item_serializer.rb
|
275
|
+
- app/serializers/spree/option_type_serializer.rb
|
276
|
+
- app/serializers/spree/option_value_serializer.rb
|
277
|
+
- app/serializers/spree/order_serializer.rb
|
278
|
+
- app/serializers/spree/price_serializer.rb
|
279
|
+
- app/serializers/spree/product_serializer.rb
|
280
|
+
- app/serializers/spree/role_serializer.rb
|
281
|
+
- app/serializers/spree/state_serializer.rb
|
282
|
+
- app/serializers/spree/store_serializer.rb
|
283
|
+
- app/serializers/spree/taxon_serializer.rb
|
284
|
+
- app/serializers/spree/taxonomy_serializer.rb
|
285
|
+
- app/serializers/spree/user_serializer.rb
|
286
|
+
- app/serializers/spree/variant_serializer.rb
|
287
|
+
- bin/rails
|
288
|
+
- circle.yml
|
289
|
+
- config/locales/en.yml
|
290
|
+
- config/routes.rb
|
291
|
+
- docs/.nojekyll
|
292
|
+
- docs/Dockerfile
|
293
|
+
- docs/Gemfile
|
294
|
+
- docs/README.md
|
295
|
+
- docs/Rakefile
|
296
|
+
- docs/config.rb
|
297
|
+
- docs/font-selection.json
|
298
|
+
- docs/source/fonts/slate.eot
|
299
|
+
- docs/source/fonts/slate.svg
|
300
|
+
- docs/source/fonts/slate.ttf
|
301
|
+
- docs/source/fonts/slate.woff
|
302
|
+
- docs/source/fonts/slate.woff2
|
303
|
+
- docs/source/images/logo.png
|
304
|
+
- docs/source/images/navbar.png
|
305
|
+
- docs/source/includes/_authentication.md
|
306
|
+
- docs/source/includes/_countries.md
|
307
|
+
- docs/source/includes/_errors.md
|
308
|
+
- docs/source/includes/_filtering.md
|
309
|
+
- docs/source/includes/_images.md
|
310
|
+
- docs/source/includes/_line_items.md
|
311
|
+
- docs/source/includes/_option_types.md
|
312
|
+
- docs/source/includes/_option_values.md
|
313
|
+
- docs/source/includes/_orders.md
|
314
|
+
- docs/source/includes/_pagination.md
|
315
|
+
- docs/source/includes/_prices.md
|
316
|
+
- docs/source/includes/_products.md
|
317
|
+
- docs/source/includes/_states.md
|
318
|
+
- docs/source/includes/_taxonomies.md
|
319
|
+
- docs/source/includes/_taxons.md
|
320
|
+
- docs/source/includes/_variants.md
|
321
|
+
- docs/source/index.md
|
322
|
+
- docs/source/javascripts/all.js
|
323
|
+
- docs/source/javascripts/all_nosearch.js
|
324
|
+
- docs/source/javascripts/app/_lang.js
|
325
|
+
- docs/source/javascripts/app/_search.js
|
326
|
+
- docs/source/javascripts/app/_toc.js
|
327
|
+
- docs/source/javascripts/lib/_energize.js
|
328
|
+
- docs/source/javascripts/lib/_imagesloaded.min.js
|
329
|
+
- docs/source/javascripts/lib/_jquery.highlight.js
|
330
|
+
- docs/source/javascripts/lib/_jquery.tocify.js
|
331
|
+
- docs/source/javascripts/lib/_jquery_ui.js
|
332
|
+
- docs/source/javascripts/lib/_lunr.js
|
333
|
+
- docs/source/layouts/layout.erb
|
334
|
+
- docs/source/stylesheets/_icon-font.scss
|
335
|
+
- docs/source/stylesheets/_normalize.css
|
336
|
+
- docs/source/stylesheets/_syntax.scss.erb
|
337
|
+
- docs/source/stylesheets/_variables.scss
|
338
|
+
- docs/source/stylesheets/print.css.scss
|
339
|
+
- docs/source/stylesheets/screen.css.scss
|
340
|
+
- lib/solidus_api_v2.rb
|
341
|
+
- lib/spree_api_v2.rb
|
342
|
+
- lib/spree_api_v2/engine.rb
|
343
|
+
- solidus_api_v2.gemspec
|
344
|
+
- spec/controllers/spree/api/v2/children_controller_spec.rb
|
345
|
+
- spec/controllers/spree/api/v2/countries_controller_spec.rb
|
346
|
+
- spec/controllers/spree/api/v2/images_controller_spec.rb
|
347
|
+
- spec/controllers/spree/api/v2/line_items_controller_spec.rb
|
348
|
+
- spec/controllers/spree/api/v2/option_types_controller_spec.rb
|
349
|
+
- spec/controllers/spree/api/v2/option_values_controller_spec.rb
|
350
|
+
- spec/controllers/spree/api/v2/orders_controller_spec.rb
|
351
|
+
- spec/controllers/spree/api/v2/prices_controller_spec.rb
|
352
|
+
- spec/controllers/spree/api/v2/products_controller_spec.rb
|
353
|
+
- spec/controllers/spree/api/v2/states_controller_spec.rb
|
354
|
+
- spec/controllers/spree/api/v2/taxonomies_controller_spec.rb
|
355
|
+
- spec/controllers/spree/api/v2/taxons_controller_spec.rb
|
356
|
+
- spec/controllers/spree/api/v2/variants_controller_spec.rb
|
357
|
+
- spec/models/spree/base_decorator_spec.rb
|
358
|
+
- spec/models/spree/price_decorator_spec.rb
|
359
|
+
- spec/serializers/spree/address_serializer_spec.rb
|
360
|
+
- spec/serializers/spree/country_serializer_spec.rb
|
361
|
+
- spec/serializers/spree/error_serializer_spec.rb
|
362
|
+
- spec/serializers/spree/image_serializer_spec.rb
|
363
|
+
- spec/serializers/spree/line_item_serializer_spec.rb
|
364
|
+
- spec/serializers/spree/option_type_serializer_spec.rb
|
365
|
+
- spec/serializers/spree/option_value_serializer_spec.rb
|
366
|
+
- spec/serializers/spree/order_serializer_spec.rb
|
367
|
+
- spec/serializers/spree/price_serializer_spec.rb
|
368
|
+
- spec/serializers/spree/product_serializer_spec.rb
|
369
|
+
- spec/serializers/spree/role_serializer_spec.rb
|
370
|
+
- spec/serializers/spree/state_serializer_spec.rb
|
371
|
+
- spec/serializers/spree/store_serializer_spec.rb
|
372
|
+
- spec/serializers/spree/taxon_serializer_spec.rb
|
373
|
+
- spec/serializers/spree/taxonomy_serializer_spec.rb
|
374
|
+
- spec/serializers/spree/user_serializer_spec.rb
|
375
|
+
- spec/serializers/spree/variant_serializer_spec.rb
|
376
|
+
- spec/spec_helper.rb
|
377
|
+
- spec/support/shoulda_matchers.rb
|
378
|
+
- spree_api_v2.gemspec
|
379
|
+
homepage: http://spree-contrib.github.io/spree_api_v2
|
380
|
+
licenses: []
|
381
|
+
metadata: {}
|
382
|
+
post_install_message:
|
383
|
+
rdoc_options: []
|
384
|
+
require_paths:
|
385
|
+
- lib
|
386
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
387
|
+
requirements:
|
388
|
+
- - ">="
|
389
|
+
- !ruby/object:Gem::Version
|
390
|
+
version: 2.0.0
|
391
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
392
|
+
requirements:
|
393
|
+
- - ">="
|
394
|
+
- !ruby/object:Gem::Version
|
395
|
+
version: '0'
|
396
|
+
requirements:
|
397
|
+
- none
|
398
|
+
rubyforge_project:
|
399
|
+
rubygems_version: 2.4.8
|
400
|
+
signing_key:
|
401
|
+
specification_version: 4
|
402
|
+
summary: The V2 API for Solidus.
|
403
|
+
test_files:
|
404
|
+
- spec/controllers/spree/api/v2/children_controller_spec.rb
|
405
|
+
- spec/controllers/spree/api/v2/countries_controller_spec.rb
|
406
|
+
- spec/controllers/spree/api/v2/images_controller_spec.rb
|
407
|
+
- spec/controllers/spree/api/v2/line_items_controller_spec.rb
|
408
|
+
- spec/controllers/spree/api/v2/option_types_controller_spec.rb
|
409
|
+
- spec/controllers/spree/api/v2/option_values_controller_spec.rb
|
410
|
+
- spec/controllers/spree/api/v2/orders_controller_spec.rb
|
411
|
+
- spec/controllers/spree/api/v2/prices_controller_spec.rb
|
412
|
+
- spec/controllers/spree/api/v2/products_controller_spec.rb
|
413
|
+
- spec/controllers/spree/api/v2/states_controller_spec.rb
|
414
|
+
- spec/controllers/spree/api/v2/taxonomies_controller_spec.rb
|
415
|
+
- spec/controllers/spree/api/v2/taxons_controller_spec.rb
|
416
|
+
- spec/controllers/spree/api/v2/variants_controller_spec.rb
|
417
|
+
- spec/models/spree/base_decorator_spec.rb
|
418
|
+
- spec/models/spree/price_decorator_spec.rb
|
419
|
+
- spec/serializers/spree/address_serializer_spec.rb
|
420
|
+
- spec/serializers/spree/country_serializer_spec.rb
|
421
|
+
- spec/serializers/spree/error_serializer_spec.rb
|
422
|
+
- spec/serializers/spree/image_serializer_spec.rb
|
423
|
+
- spec/serializers/spree/line_item_serializer_spec.rb
|
424
|
+
- spec/serializers/spree/option_type_serializer_spec.rb
|
425
|
+
- spec/serializers/spree/option_value_serializer_spec.rb
|
426
|
+
- spec/serializers/spree/order_serializer_spec.rb
|
427
|
+
- spec/serializers/spree/price_serializer_spec.rb
|
428
|
+
- spec/serializers/spree/product_serializer_spec.rb
|
429
|
+
- spec/serializers/spree/role_serializer_spec.rb
|
430
|
+
- spec/serializers/spree/state_serializer_spec.rb
|
431
|
+
- spec/serializers/spree/store_serializer_spec.rb
|
432
|
+
- spec/serializers/spree/taxon_serializer_spec.rb
|
433
|
+
- spec/serializers/spree/taxonomy_serializer_spec.rb
|
434
|
+
- spec/serializers/spree/user_serializer_spec.rb
|
435
|
+
- spec/serializers/spree/variant_serializer_spec.rb
|
436
|
+
- spec/spec_helper.rb
|
437
|
+
- spec/support/shoulda_matchers.rb
|