thecore_print_commons 2.3.0 → 3.0.3
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 +4 -4
- data/app/models/concerns/api/print_template.rb +2 -2
- data/app/models/concerns/api/printer.rb +4 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 893987695fbd693d63533b2297545a8dc1301ccff8433f2f1e2f29ada9557d79
|
4
|
+
data.tar.gz: 4f7905fd0410ab37910198409289a6ed5ac16211e6b1807a1ff9e201ab86d264
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22b3f43660218c7b76e67b64a47972b658a8a8a604e83bdecd55be04e868e7deffc692aec92ff3823c1b5f93696b1e68da54a4a1646e82c14e1f95f8db59b19d
|
7
|
+
data.tar.gz: bd964c90f0425c9f7cabdd809d0d00e052415273c1a8f7ad24bacc03b74d91fcc040950f7b39efc4fbec128acc47d1a3534a3f1dbcbbeb235901e740d12c33d2
|
@@ -2,7 +2,7 @@ module Api::PrintTemplate
|
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
included do
|
5
|
-
# Use
|
5
|
+
# Use self.json_attrs to drive json rendering for
|
6
6
|
# API model responses (index, show and update ones).
|
7
7
|
# For reference:
|
8
8
|
# https://api.rubyonrails.org/classes/ActiveModel/Serializers/JSON.html
|
@@ -12,7 +12,7 @@ module Api::PrintTemplate
|
|
12
12
|
# - methods: include the result of some method defined in the model
|
13
13
|
# - include: include associated models, it's an object {} which also accepts the keys described here
|
14
14
|
cattr_accessor :json_attrs
|
15
|
-
|
15
|
+
self.json_attrs = ::ModelDrivenApi.smart_merge (json_attrs || {}), {}
|
16
16
|
|
17
17
|
# Here you can add custom actions to be called from the API
|
18
18
|
# The action must return an serializable (JSON) object.
|
@@ -2,7 +2,7 @@ module Api::Printer
|
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
included do
|
5
|
-
# Use
|
5
|
+
# Use self.json_attrs to drive json rendering for
|
6
6
|
# API model responses (index, show and update ones).
|
7
7
|
# For reference:
|
8
8
|
# https://api.rubyonrails.org/classes/ActiveModel/Serializers/JSON.html
|
@@ -12,7 +12,9 @@ module Api::Printer
|
|
12
12
|
# - methods: include the result of some method defined in the model
|
13
13
|
# - include: include associated models, it's an object {} which also accepts the keys described here
|
14
14
|
cattr_accessor :json_attrs
|
15
|
-
|
15
|
+
self.json_attrs = ::ModelDrivenApi.smart_merge (json_attrs || {}), {
|
16
|
+
methods: [ :is_online ]
|
17
|
+
}
|
16
18
|
|
17
19
|
# Here you can add custom actions to be called from the API
|
18
20
|
# The action must return an serializable (JSON) object.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_print_commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_background_jobs
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.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: '
|
26
|
+
version: '3.0'
|
27
27
|
description: Thecorized thecore_print_commons full description.
|
28
28
|
email:
|
29
29
|
- gabriele.tassoni@gmail.com
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
82
|
+
rubygems_version: 3.3.26
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Thecorized thecore_print_commons
|