spree_api 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 312dad95a36f976a119c7548cb87beb86b496e46
4
- data.tar.gz: bf74b689033ee0464d019029fc9ef21c9d340c09
3
+ metadata.gz: 82e9e0ea26a99d33e15ff9e68942436ed194c3bd
4
+ data.tar.gz: c75c4bfc2d337b8549b6b2149ec7c0d91445fb05
5
5
  SHA512:
6
- metadata.gz: 6c840d1ac0335d2980dbd7802af4a8afbf119f90b897a4a5c48f0f5f8862a96b646548fb1739e657ecceeab94ba5b83b1866195eafc542a1d3e9e413fe8ec890
7
- data.tar.gz: 7399b407d17c2f90d763f6709ccbd97894dcf9961ad8c85bf5bef0765d4d3a4181f4ad2de172309727173c3e3ad090578c929cfa2f7ed1d8f588b34ebbfdb55d
6
+ metadata.gz: 50f8d1422852d2b54d58f01d5b2dfa52cf1c29d569b4c3c373a503f885e82a359ca548553ad0027ce70373bc80e9f9ec91103a1a502769670311d16da6fb21a8
7
+ data.tar.gz: 3eec4882093082ca0270da743d9f813a9d1f20edfe84c28e79aa017539925aeb476d03e6d602fcb5dccfb05d7cdedff1038b687cf221e15bf90a8a25261f4c45
@@ -1,8 +1,6 @@
1
1
  object @taxon
2
2
  attributes *taxon_attributes
3
3
 
4
- node do |t|
5
- child t.children => :taxons do
6
- attributes *taxon_attributes
7
- end
4
+ child :children => :taxons do
5
+ attributes *taxon_attributes
8
6
  end
@@ -1,7 +1,5 @@
1
- node do |t|
2
- child t.children => :taxons do
3
- attributes *taxon_attributes
1
+ attributes *taxon_attributes
4
2
 
5
- extends "spree/api/taxons/taxons"
6
- end
3
+ node :taxons do |t|
4
+ t.children.map { |c| partial("spree/api/taxons/taxons", :object => c) }
7
5
  end
@@ -41,10 +41,10 @@ describe "Ransackable Attributes" do
41
41
 
42
42
  context "filtering by attributes" do
43
43
  it "most attributes are not filterable by default" do
44
- product = create(:product, description: "special product")
44
+ product = create(:product, meta_title: "special product")
45
45
  other_product = create(:product)
46
46
 
47
- get "/api/products?q[description_cont]=special", token: user.spree_api_key
47
+ get "/api/products?q[meta_title_cont]=special", token: user.spree_api_key
48
48
 
49
49
  products_response = JSON.parse(response.body)
50
50
  expect(products_response['total_count']).to eq(Spree::Product.count)
data/spree_api.gemspec CHANGED
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.version = version
18
18
 
19
19
  gem.add_dependency 'spree_core', version
20
- gem.add_dependency 'rabl', '~> 0.9.4.pre1'
20
+ gem.add_dependency 'rabl', '~> 0.11.6'
21
21
  gem.add_dependency 'versioncake', '~> 2.3.1'
22
22
  end
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: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Bigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-19 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.4
19
+ version: 3.0.5
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: 3.0.4
26
+ version: 3.0.5
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.9.4.pre1
33
+ version: 0.11.6
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.9.4.pre1
40
+ version: 0.11.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: versioncake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  version: '0'
267
267
  requirements: []
268
268
  rubyforge_project:
269
- rubygems_version: 2.4.5
269
+ rubygems_version: 2.4.6
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: Spree's API
@@ -311,3 +311,4 @@ test_files:
311
311
  - spec/support/controller_hacks.rb
312
312
  - spec/support/database_cleaner.rb
313
313
  - spec/support/have_attributes_matcher.rb
314
+ has_rdoc: