alchemy-json_api 1.1.0 → 1.2.0

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
  SHA256:
3
- metadata.gz: 41f18d9d1806fce75786f402f58e430e4679891f9845151f94b08d52e0e4651b
4
- data.tar.gz: ad0730650816cd36681954084da739669172dfb83acbce4ba04f096ba517259b
3
+ metadata.gz: d436e84cb2932c71c9974bc75433118852c186814c96f21114b3c6c6b390810f
4
+ data.tar.gz: 4ea8ca6841fe3845c6e68fa4956c3c730de0040f2a9ced1c24e9081d17e8a80a
5
5
  SHA512:
6
- metadata.gz: 5456eff37375355f7ce9feeae16d6693cb9aef2e329f71431d7972c5d87b8e06e57335a5db5ef88ec4d75b593e3e383d2fef20dbadc71f7fbff4e425fe2023c7
7
- data.tar.gz: 63ed7972458c05a952244bb2e6fd6f28aef61b30ba3e204fed881c592ebd30966cc77888aa60ef6b1836bbe5f65da4363509d3f305e364e5fb3aebd61beeb350
6
+ metadata.gz: af4117975a7904c5625818a0e0f8bc569e4bf3e1c9ca03a4bf4886b064903486f21d1eb3be20eb03fc1612307889f42c66bcc82b4a4404dd56a7d8b0a3ae12fc
7
+ data.tar.gz: a1ecca618f3edac7de63242bdfb084eb4dcbe877df31ac5b1ebea666382391c91e4c762b96303743f41d75d011957d0ce1f0c2bf64140aebbe66cef3bd55146c
@@ -8,6 +8,11 @@ module Alchemy
8
8
  include IngredientSerializer
9
9
 
10
10
  attributes :level, :size
11
+
12
+ # Introduced in Alchemy 6.1
13
+ if Alchemy::Ingredients::Headline.stored_attributes[:data].include?(:dom_id)
14
+ attribute :dom_id
15
+ end
11
16
  end
12
17
  end
13
18
  end
@@ -17,6 +17,11 @@ module Alchemy
17
17
  # maintain compatibility with EssenceText
18
18
  attribute :body, &:value
19
19
  attribute :link_url, &:link
20
+
21
+ # Introduced in Alchemy 6.1
22
+ if Alchemy::Ingredients::Text.stored_attributes[:data].include?(:dom_id)
23
+ attribute :dom_id
24
+ end
20
25
  end
21
26
  end
22
27
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Alchemy
3
3
  module JsonApi
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
6
6
  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: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Meyerhoff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-09-16 00:00:00.000000000 Z
12
+ date: 2023-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: alchemy_cms
@@ -17,20 +17,20 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 6.0.a
20
+ version: 6.0.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '6.1'
23
+ version: '7'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: 6.0.a
30
+ version: 6.0.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '6.1'
33
+ version: '7'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: jsonapi.rb
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.3.7
196
+ rubygems_version: 3.3.26
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: A JSONAPI compliant API for AlchemyCMS