spree_api 2.0.13 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +99 -1
- data/app/controllers/spree/api/addresses_controller.rb +5 -2
- data/app/controllers/spree/api/base_controller.rb +14 -21
- data/app/controllers/spree/api/checkouts_controller.rb +30 -27
- data/app/controllers/spree/api/config_controller.rb +6 -0
- data/app/controllers/spree/api/countries_controller.rb +7 -7
- data/app/controllers/spree/api/images_controller.rb +10 -8
- data/app/controllers/spree/api/inventory_units_controller.rb +7 -4
- data/app/controllers/spree/api/line_items_controller.rb +14 -14
- data/app/controllers/spree/api/option_types_controller.rb +14 -11
- data/app/controllers/spree/api/option_values_controller.rb +13 -11
- data/app/controllers/spree/api/orders_controller.rb +56 -53
- data/app/controllers/spree/api/payments_controller.rb +25 -33
- data/app/controllers/spree/api/product_properties_controller.rb +20 -13
- data/app/controllers/spree/api/products_controller.rb +11 -58
- data/app/controllers/spree/api/properties_controller.rb +19 -16
- data/app/controllers/spree/api/return_authorizations_controller.rb +30 -25
- data/app/controllers/spree/api/shipments_controller.rb +24 -19
- data/app/controllers/spree/api/states_controller.rb +9 -7
- data/app/controllers/spree/api/stock_items_controller.rb +9 -11
- data/app/controllers/spree/api/stock_locations_controller.rb +9 -7
- data/app/controllers/spree/api/stock_movements_controller.rb +7 -5
- data/app/controllers/spree/api/taxonomies_controller.rb +14 -8
- data/app/controllers/spree/api/taxons_controller.rb +25 -20
- data/app/controllers/spree/api/users_controller.rb +7 -5
- data/app/controllers/spree/api/variants_controller.rb +35 -33
- data/app/controllers/spree/api/zones_controller.rb +18 -17
- data/app/helpers/spree/api/api_helpers.rb +7 -6
- data/app/models/spree/option_value_decorator.rb +0 -4
- data/app/models/spree/order_decorator.rb +33 -54
- data/app/views/spree/api/adjustments/show.v1.rabl +2 -1
- data/app/views/spree/api/config/money.v1.rabl +6 -0
- data/app/views/spree/api/config/show.v1.rabl +2 -0
- data/app/views/spree/api/images/show.v1.rabl +0 -1
- data/app/views/spree/api/line_items/show.v1.rabl +3 -0
- data/app/views/spree/api/orders/index.v1.rabl +1 -1
- data/app/views/spree/api/orders/order.v1.rabl +6 -0
- data/app/views/spree/api/orders/payment.v1.rabl +1 -1
- data/app/views/spree/api/orders/show.v1.rabl +1 -1
- data/app/views/spree/api/payments/credit_over_limit.v1.rabl +1 -1
- data/app/views/spree/api/payments/new.v1.rabl +1 -0
- data/app/views/spree/api/products/index.v1.rabl +2 -2
- data/app/views/spree/api/products/show.v1.rabl +1 -0
- data/app/views/spree/api/shipments/show.v1.rabl +22 -5
- data/app/views/spree/api/shipping_rates/show.v1.rabl +2 -0
- data/app/views/spree/api/taxons/index.v1.rabl +2 -4
- data/app/views/spree/api/variants/index.v1.rabl +1 -1
- data/config/locales/en.yml +1 -3
- data/config/routes.rb +4 -1
- data/lib/spree/api/responders/rabl_template.rb +1 -1
- data/lib/spree/api/testing_support/helpers.rb +5 -0
- data/spec/controllers/spree/api/addresses_controller_spec.rb +2 -2
- data/spec/controllers/spree/api/checkouts_controller_spec.rb +32 -22
- data/spec/controllers/spree/api/config_controller_spec.rb +27 -0
- data/spec/controllers/spree/api/images_controller_spec.rb +2 -2
- data/spec/controllers/spree/api/inventory_units_controller_spec.rb +28 -24
- data/spec/controllers/spree/api/line_items_controller_spec.rb +25 -27
- data/spec/controllers/spree/api/option_types_controller_spec.rb +2 -2
- data/spec/controllers/spree/api/option_values_controller_spec.rb +2 -2
- data/spec/controllers/spree/api/orders_controller_spec.rb +130 -119
- data/spec/controllers/spree/api/payments_controller_spec.rb +77 -118
- data/spec/controllers/spree/api/products_controller_spec.rb +13 -143
- data/spec/controllers/spree/api/return_authorizations_controller_spec.rb +4 -19
- data/spec/controllers/spree/api/shipments_controller_spec.rb +3 -3
- data/spec/controllers/spree/api/states_controller_spec.rb +1 -1
- data/spec/controllers/spree/api/stock_items_controller_spec.rb +26 -62
- data/spec/controllers/spree/api/stock_locations_controller_spec.rb +29 -56
- data/spec/controllers/spree/api/stock_movements_controller_spec.rb +27 -51
- data/spec/controllers/spree/api/taxons_controller_spec.rb +18 -48
- data/spec/controllers/spree/api/users_controller_spec.rb +4 -6
- data/spec/controllers/spree/api/variants_controller_spec.rb +21 -38
- data/spec/controllers/spree/api/zones_controller_spec.rb +2 -2
- data/spec/models/spree/order_spec.rb +19 -111
- data/spec/spec_helper.rb +2 -26
- data/spec/support/controller_hacks.rb +1 -1
- data/spree_api.gemspec +1 -1
- metadata +19 -15
- data/app/models/spree/line_item_decorator.rb +0 -3
- data/app/views/spree/api/payments/update_forbidden.v1.rabl +0 -2
- data/db/migrate/20131017162334_add_index_to_user_spree_api_key.rb +0 -7
@@ -2,25 +2,22 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Spree
|
4
4
|
describe Order do
|
5
|
-
let!(:country) { create(:country) }
|
6
|
-
let!(:state) { country.states.first || create(:state, :country => country) }
|
7
|
-
let!(:stock_location) { create(:stock_location) }
|
5
|
+
let!(:country) { FactoryGirl.create(:country) }
|
6
|
+
let!(:state) { country.states.first || FactoryGirl.create(:state, :country => country) }
|
7
|
+
let!(:stock_location) { FactoryGirl.create(:stock_location) }
|
8
8
|
|
9
9
|
let(:user) { stub_model(LegacyUser, :email => 'fox@mudler.com') }
|
10
10
|
let(:shipping_method) { create(:shipping_method) }
|
11
11
|
let(:payment_method) { create(:payment_method) }
|
12
|
-
|
13
12
|
let(:product) { product = Spree::Product.create(:name => 'Test',
|
14
13
|
:sku => 'TEST-1',
|
15
14
|
:price => 33.22)
|
16
|
-
product.shipping_category = create(:shipping_category)
|
15
|
+
product.shipping_category = FactoryGirl.create(:shipping_category)
|
17
16
|
product.save
|
18
17
|
product }
|
19
|
-
|
20
18
|
let(:variant) { variant = product.master
|
21
19
|
variant.stock_items.each { |si| si.update_attribute(:count_on_hand, 10) }
|
22
20
|
variant }
|
23
|
-
|
24
21
|
let(:sku) { variant.sku }
|
25
22
|
let(:variant_id) { variant.id }
|
26
23
|
|
@@ -52,23 +49,15 @@ module Spree
|
|
52
49
|
order.state.should eq 'complete'
|
53
50
|
end
|
54
51
|
|
55
|
-
|
56
|
-
|
57
|
-
{ :variant_id => variant.id, :quantity => 5, :price => 33.77 }
|
58
|
-
end
|
59
|
-
|
60
|
-
it 'can build an order from API with just line items' do
|
61
|
-
params = { :line_items_attributes => { "0" => attributes } }
|
62
|
-
Order.should_receive(:ensure_variant_id_from_api)
|
63
|
-
order = Order.build_from_api(user, params)
|
64
|
-
|
65
|
-
order.user.should == nil
|
66
|
-
line_item = order.line_items.first
|
52
|
+
it 'can build an order from API with just line items' do
|
53
|
+
params = { :line_items_attributes => line_items }
|
67
54
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
55
|
+
Order.should_receive(:ensure_variant_id_from_api)
|
56
|
+
order = Order.build_from_api(user, params)
|
57
|
+
order.user.should == nil
|
58
|
+
line_item = order.line_items.first
|
59
|
+
line_item.quantity.should == 5
|
60
|
+
line_item.variant_id.should == variant_id
|
72
61
|
end
|
73
62
|
|
74
63
|
it 'handles line_item building exceptions' do
|
@@ -130,7 +119,7 @@ module Spree
|
|
130
119
|
|
131
120
|
it 'can build an order from API with state attributes' do
|
132
121
|
ship_address.delete(:state_id)
|
133
|
-
ship_address[:state] = { 'name' =>
|
122
|
+
ship_address[:state] = { 'name' => 'Alabama' }
|
134
123
|
params = { :ship_address_attributes => ship_address,
|
135
124
|
:line_items_attributes => line_items }
|
136
125
|
|
@@ -138,33 +127,15 @@ module Spree
|
|
138
127
|
order.ship_address.state.name.should eq 'Alabama'
|
139
128
|
end
|
140
129
|
|
141
|
-
|
142
|
-
let(:params) do
|
143
|
-
params = { :ship_address_attributes => ship_address,
|
144
|
-
:line_items_attributes => line_items }
|
145
|
-
end
|
146
|
-
|
147
|
-
let(:other_state) { create(:state, name: "Uhuhuh", country: create(:country)) }
|
148
|
-
|
149
|
-
before do
|
150
|
-
ship_address.delete(:state_id)
|
151
|
-
ship_address[:state] = { 'name' => other_state.name }
|
152
|
-
end
|
153
|
-
|
154
|
-
it 'sets states name instead of state id' do
|
155
|
-
order = Order.build_from_api(user, params)
|
156
|
-
expect(order.ship_address.state_name).to eq other_state.name
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
it 'sets state name if state record not found' do
|
130
|
+
it 'handles state lookup exceptions' do
|
161
131
|
ship_address.delete(:state_id)
|
162
132
|
ship_address[:state] = { 'name' => 'XXX' }
|
163
133
|
params = { :ship_address_attributes => ship_address,
|
164
134
|
:line_items_attributes => line_items }
|
165
135
|
|
166
|
-
|
167
|
-
|
136
|
+
expect {
|
137
|
+
order = Order.build_from_api(user, params)
|
138
|
+
}.to raise_error /XXX/
|
168
139
|
end
|
169
140
|
|
170
141
|
context 'variant not deleted' do
|
@@ -193,16 +164,9 @@ module Spree
|
|
193
164
|
end
|
194
165
|
end
|
195
166
|
|
196
|
-
it "raises with proper message when cant find country" do
|
197
|
-
address = { :country => { "name" => "NoNoCountry" } }
|
198
|
-
expect {
|
199
|
-
Order.ensure_country_id_from_api(address)
|
200
|
-
}.to raise_error /NoNoCountry/
|
201
|
-
end
|
202
|
-
|
203
167
|
it 'ensures_state_id for state fields' do
|
204
168
|
[:name, :abbr].each do |field|
|
205
|
-
address = {
|
169
|
+
address = { :state => { field => state.send(field) }}
|
206
170
|
Order.ensure_state_id_from_api(address)
|
207
171
|
address[:state_id].should eq state.id
|
208
172
|
end
|
@@ -214,7 +178,6 @@ module Spree
|
|
214
178
|
{ :tracking => '123456789',
|
215
179
|
:cost => '4.99',
|
216
180
|
:shipping_method => shipping_method.name,
|
217
|
-
:stock_location => stock_location.name,
|
218
181
|
:inventory_units => [{ :sku => sku }]
|
219
182
|
}
|
220
183
|
] }
|
@@ -231,27 +194,7 @@ module Spree
|
|
231
194
|
shipment = order.shipments.first
|
232
195
|
shipment.inventory_units.first.variant_id.should eq product.master.id
|
233
196
|
shipment.tracking.should eq '123456789'
|
234
|
-
|
235
|
-
rate.shipping_method.name.should == shipping_method.name
|
236
|
-
rate.cost.should == 4.99
|
237
|
-
end
|
238
|
-
|
239
|
-
it 'handles shipment building exceptions' do
|
240
|
-
params = { :shipments_attributes => [{ :tracking => '123456789',
|
241
|
-
:cost => '4.99',
|
242
|
-
:shipping_method => 'XXX',
|
243
|
-
:inventory_units => [{ :sku => sku }]
|
244
|
-
}] }
|
245
|
-
expect {
|
246
|
-
order = Order.build_from_api(user, params)
|
247
|
-
}.to raise_error /XXX/
|
248
|
-
end
|
249
|
-
|
250
|
-
it "raises if cant find stock location" do
|
251
|
-
params[:shipments_attributes][0][:stock_location] = "doesnt exist"
|
252
|
-
expect {
|
253
|
-
order = Order.build_from_api(user, params)
|
254
|
-
}.to raise_error
|
197
|
+
shipment.shipping_rates.first.cost.should eq 4.99
|
255
198
|
end
|
256
199
|
end
|
257
200
|
|
@@ -301,40 +244,5 @@ module Spree
|
|
301
244
|
order = Order.build_from_api(user, params)
|
302
245
|
}.to raise_error /XXX/
|
303
246
|
end
|
304
|
-
|
305
|
-
context "raises error" do
|
306
|
-
it "clears out order from db" do
|
307
|
-
params = { :payments_attributes => [{ payment_method: "XXX" }] }
|
308
|
-
count = Order.count
|
309
|
-
|
310
|
-
expect { order = Order.build_from_api(user, params) }.to raise_error
|
311
|
-
expect(Order.count).to eq count
|
312
|
-
end
|
313
|
-
end
|
314
|
-
|
315
|
-
context "import param and tax adjustments" do
|
316
|
-
let!(:tax_rate) { create(:tax_rate, amount: 0.05, calculator: Calculator::DefaultTax.create) }
|
317
|
-
let(:other_variant) { create(:variant) }
|
318
|
-
|
319
|
-
let(:line_item_attributes) do
|
320
|
-
line_items.merge({ "1" => { :variant_id => other_variant.id, :quantity => 5 }})
|
321
|
-
end
|
322
|
-
|
323
|
-
before { Zone.stub default_tax: tax_rate.zone }
|
324
|
-
|
325
|
-
it "doesnt create any tax ajustments when importing order" do
|
326
|
-
params = { import: true, line_items_attributes: line_item_attributes }
|
327
|
-
expect {
|
328
|
-
Order.build_from_api(user, params)
|
329
|
-
}.not_to change { Adjustment.count }
|
330
|
-
end
|
331
|
-
|
332
|
-
it "does create tax adjustments if not importing order" do
|
333
|
-
params = { import: false, line_items_attributes: line_item_attributes }
|
334
|
-
expect {
|
335
|
-
Order.build_from_api(user, params)
|
336
|
-
}.to change { Adjustment.count }
|
337
|
-
end
|
338
|
-
end
|
339
247
|
end
|
340
248
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -13,16 +13,9 @@ end
|
|
13
13
|
|
14
14
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
15
15
|
ENV["RAILS_ENV"] ||= 'test'
|
16
|
-
|
17
|
-
begin
|
18
|
-
require File.expand_path("../dummy/config/environment", __FILE__)
|
19
|
-
rescue LoadError
|
20
|
-
puts "Could not load dummy application. Please ensure you have run `bundle exec rake test_app`"
|
21
|
-
end
|
22
|
-
|
16
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
23
17
|
require 'rspec/rails'
|
24
18
|
require 'rspec/autorun'
|
25
|
-
require 'database_cleaner'
|
26
19
|
require 'ffaker'
|
27
20
|
|
28
21
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
@@ -50,22 +43,5 @@ RSpec.configure do |config|
|
|
50
43
|
Spree::Api::Config[:requires_authentication] = true
|
51
44
|
end
|
52
45
|
|
53
|
-
|
54
|
-
# SQLite3::SQLException: cannot start a transaction within a transaction: begin transaction
|
55
|
-
# http://stackoverflow.com/questions/12220901/sqlite3sqlexception-when-using-database-cleaner-with-rails-spork-rspec
|
56
|
-
unless RUBY_VERSION >= '2.0.0'
|
57
|
-
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
58
|
-
# examples within a transaction, comment the following line or assign false
|
59
|
-
# instead of true.
|
60
|
-
config.use_transactional_fixtures = false
|
61
|
-
|
62
|
-
config.before do
|
63
|
-
DatabaseCleaner.strategy = :truncation
|
64
|
-
DatabaseCleaner.start
|
65
|
-
end
|
66
|
-
|
67
|
-
config.after do
|
68
|
-
DatabaseCleaner.clean
|
69
|
-
end
|
70
|
-
end
|
46
|
+
config.use_transactional_fixtures = true
|
71
47
|
end
|
@@ -18,7 +18,7 @@ module ControllerHacks
|
|
18
18
|
|
19
19
|
def api_process(action, params={}, session=nil, flash=nil, method="get")
|
20
20
|
scoping = respond_to?(:resource_scoping) ? resource_scoping : {}
|
21
|
-
process(action, params.merge(scoping).reverse_merge!(:use_route => :spree, :format => :json), session, flash
|
21
|
+
process(action, method, params.merge(scoping).reverse_merge!(:use_route => :spree, :format => :json), session, flash)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
data/spree_api.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2013-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0
|
19
|
+
version: 2.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0
|
26
|
+
version: 2.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rabl
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.8.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.8.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: versioncake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 1.2.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.2.0
|
55
55
|
description: Spree's API
|
@@ -59,7 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
-
|
62
|
+
- .gitignore
|
63
63
|
- CHANGELOG.md
|
64
64
|
- Gemfile
|
65
65
|
- LICENSE
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- app/controllers/spree/api/addresses_controller.rb
|
68
68
|
- app/controllers/spree/api/base_controller.rb
|
69
69
|
- app/controllers/spree/api/checkouts_controller.rb
|
70
|
+
- app/controllers/spree/api/config_controller.rb
|
70
71
|
- app/controllers/spree/api/countries_controller.rb
|
71
72
|
- app/controllers/spree/api/images_controller.rb
|
72
73
|
- app/controllers/spree/api/inventory_units_controller.rb
|
@@ -91,7 +92,6 @@ files:
|
|
91
92
|
- app/controllers/spree/api/zones_controller.rb
|
92
93
|
- app/helpers/spree/api/api_helpers.rb
|
93
94
|
- app/models/spree/api_configuration.rb
|
94
|
-
- app/models/spree/line_item_decorator.rb
|
95
95
|
- app/models/spree/option_value_decorator.rb
|
96
96
|
- app/models/spree/order_decorator.rb
|
97
97
|
- app/models/spree/user_decorator.rb
|
@@ -99,6 +99,8 @@ files:
|
|
99
99
|
- app/views/spree/admin/users/_api_fields.html.erb
|
100
100
|
- app/views/spree/api/addresses/show.v1.rabl
|
101
101
|
- app/views/spree/api/adjustments/show.v1.rabl
|
102
|
+
- app/views/spree/api/config/money.v1.rabl
|
103
|
+
- app/views/spree/api/config/show.v1.rabl
|
102
104
|
- app/views/spree/api/countries/index.v1.rabl
|
103
105
|
- app/views/spree/api/countries/show.v1.rabl
|
104
106
|
- app/views/spree/api/credit_cards/show.v1.rabl
|
@@ -125,13 +127,13 @@ files:
|
|
125
127
|
- app/views/spree/api/orders/delivery.v1.rabl
|
126
128
|
- app/views/spree/api/orders/index.v1.rabl
|
127
129
|
- app/views/spree/api/orders/invalid_shipping_method.v1.rabl
|
130
|
+
- app/views/spree/api/orders/order.v1.rabl
|
128
131
|
- app/views/spree/api/orders/payment.v1.rabl
|
129
132
|
- app/views/spree/api/orders/show.v1.rabl
|
130
133
|
- app/views/spree/api/payments/credit_over_limit.v1.rabl
|
131
134
|
- app/views/spree/api/payments/index.v1.rabl
|
132
135
|
- app/views/spree/api/payments/new.v1.rabl
|
133
136
|
- app/views/spree/api/payments/show.v1.rabl
|
134
|
-
- app/views/spree/api/payments/update_forbidden.v1.rabl
|
135
137
|
- app/views/spree/api/product_properties/index.v1.rabl
|
136
138
|
- app/views/spree/api/product_properties/new.v1.rabl
|
137
139
|
- app/views/spree/api/product_properties/show.v1.rabl
|
@@ -148,6 +150,7 @@ files:
|
|
148
150
|
- app/views/spree/api/shared/stock_location_required.v1.rabl
|
149
151
|
- app/views/spree/api/shipments/cannot_ready_shipment.v1.rabl
|
150
152
|
- app/views/spree/api/shipments/show.v1.rabl
|
153
|
+
- app/views/spree/api/shipping_rates/show.v1.rabl
|
151
154
|
- app/views/spree/api/states/index.v1.rabl
|
152
155
|
- app/views/spree/api/states/show.v1.rabl
|
153
156
|
- app/views/spree/api/stock_items/index.v1.rabl
|
@@ -181,7 +184,6 @@ files:
|
|
181
184
|
- db/migrate/20100107141738_add_api_key_to_spree_users.rb
|
182
185
|
- db/migrate/20120411123334_resize_api_key_field.rb
|
183
186
|
- db/migrate/20120530054546_rename_api_key_to_spree_api_key.rb
|
184
|
-
- db/migrate/20131017162334_add_index_to_user_spree_api_key.rb
|
185
187
|
- lib/spree/api.rb
|
186
188
|
- lib/spree/api/controller_setup.rb
|
187
189
|
- lib/spree/api/engine.rb
|
@@ -195,6 +197,7 @@ files:
|
|
195
197
|
- spec/controllers/spree/api/addresses_controller_spec.rb
|
196
198
|
- spec/controllers/spree/api/base_controller_spec.rb
|
197
199
|
- spec/controllers/spree/api/checkouts_controller_spec.rb
|
200
|
+
- spec/controllers/spree/api/config_controller_spec.rb
|
198
201
|
- spec/controllers/spree/api/countries_controller_spec.rb
|
199
202
|
- spec/controllers/spree/api/images_controller_spec.rb
|
200
203
|
- spec/controllers/spree/api/inventory_units_controller_spec.rb
|
@@ -236,17 +239,17 @@ require_paths:
|
|
236
239
|
- lib
|
237
240
|
required_ruby_version: !ruby/object:Gem::Requirement
|
238
241
|
requirements:
|
239
|
-
- -
|
242
|
+
- - '>='
|
240
243
|
- !ruby/object:Gem::Version
|
241
244
|
version: '0'
|
242
245
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
246
|
requirements:
|
244
|
-
- -
|
247
|
+
- - '>='
|
245
248
|
- !ruby/object:Gem::Version
|
246
249
|
version: '0'
|
247
250
|
requirements: []
|
248
251
|
rubyforge_project:
|
249
|
-
rubygems_version: 2.
|
252
|
+
rubygems_version: 2.1.0
|
250
253
|
signing_key:
|
251
254
|
specification_version: 4
|
252
255
|
summary: Spree's API
|
@@ -254,6 +257,7 @@ test_files:
|
|
254
257
|
- spec/controllers/spree/api/addresses_controller_spec.rb
|
255
258
|
- spec/controllers/spree/api/base_controller_spec.rb
|
256
259
|
- spec/controllers/spree/api/checkouts_controller_spec.rb
|
260
|
+
- spec/controllers/spree/api/config_controller_spec.rb
|
257
261
|
- spec/controllers/spree/api/countries_controller_spec.rb
|
258
262
|
- spec/controllers/spree/api/images_controller_spec.rb
|
259
263
|
- spec/controllers/spree/api/inventory_units_controller_spec.rb
|