alchemy-json_api 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40926540b22b0e31f3761a394cd421fa64932b2d3a4067b519a8afe89266abb3
4
- data.tar.gz: 7a7c5b56562dadc57cb0e4f0ce19ab16554631a44173700740ad4b67904cb6ac
3
+ metadata.gz: 62f76033a611aec3932713348fb2c81e3ca35630e3c21534ec037bc7d036e937
4
+ data.tar.gz: bf16461e730107783494ac2cc1325699a9b3afbbd10462bd36de8cfe3e9ac8b0
5
5
  SHA512:
6
- metadata.gz: 20b7dce5cfb2dce79e2eba41bfceb34f7cc8cbf474759dd329e413f5e57f0289492901bb75096ca3d6109bd49c735ebf8a88aadcfba25c4925692b8eea35b7cd
7
- data.tar.gz: a303f1895af78789b65e3b7d526a0ad8f9074e286f3db795cec2dfbadbbba98849d162ec62ce248ac56eebd9c3bb76cac532c413e62d200dd3a75bce2ccd0d93
6
+ metadata.gz: 4f9c3db0989b82447a483212a09bf84932aeaf560bab55c795b199f2fa729954314ec47bc8ca0d63507a3f3c26fc07ee3cc8d7452bf29910a20c2dfe010c506d
7
+ data.tar.gz: 0cac9aba3b511fd8409c851f712c231200b460f7de5b1d6b5a94bddc991d8ee89c8f6638b85f9107aa7fed1fc0b3ae5e15e5e51950a373693bf8d9b5888c4632
@@ -14,7 +14,7 @@ module Alchemy
14
14
  cache_options store: Rails.cache, namespace: "alchemy-jsonapi"
15
15
 
16
16
  attribute :deprecated do |element|
17
- !!element.definition[:deprecated]
17
+ !!element.definition.deprecated
18
18
  end
19
19
 
20
20
  has_many :ingredients,
@@ -72,7 +72,7 @@ module Alchemy
72
72
  end
73
73
 
74
74
  attribute :image_mime_type do |ingredient|
75
- "image/#{ingredient.picture.image_file_format}"
75
+ ingredient.picture.image_file_format
76
76
  end
77
77
 
78
78
  attribute :image_file_size do |ingredient|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Alchemy
4
4
  module JsonApi
5
- VERSION = "3.0.0"
5
+ VERSION = "4.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-json_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Meyerhoff
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 7.2.0
19
+ version: 8.0.0.b
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '8'
22
+ version: '9'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 7.2.0
29
+ version: 8.0.0.b
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '8'
32
+ version: '9'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: jsonapi.rb
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 3.6.7
184
+ rubygems_version: 3.7.2
185
185
  specification_version: 4
186
186
  summary: A JSONAPI compliant API for AlchemyCMS
187
187
  test_files: []