cacofonix 0.10.1 → 0.10.2
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/CHANGELOG.md +7 -0
- data/lib/cacofonix/codelists/038.rb +1 -0
- data/lib/cacofonix/core/element.rb +6 -6
- data/lib/cacofonix/elements/price.rb +1 -1
- data/lib/cacofonix/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dab7abb2d6db476ef8c841b8d74291d64b7ae06491d121ace57d32da866271ea
|
4
|
+
data.tar.gz: d6ea0ce5f9fef38cdc6d8084398450b274311c7c77669e294384b69d9e0224f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8fb5e0cf734c52c4d4aaec182d4e68b92e932bc7e77f590c623df8a18ed2375e6f7da82ad6fe71340b831804727c2f344966929b7f93ffa0fae4800a40c68c4
|
7
|
+
data.tar.gz: e2e6287707d64e4a177607027f1a960ef41dcb73d6e727681bec409677f4e40106942b71a57587846116261b2e8991ab9618312125cd298534890cbe963a1487
|
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,7 @@ module Cacofonix; module CodeLists
|
|
11
11
|
"10" => "Image: for series",
|
12
12
|
"11" => "Image: series logo",
|
13
13
|
"12" => "Image: product logo",
|
14
|
+
"16" => "Image: Master brand logo",
|
14
15
|
"17" => "Image: publisher logo",
|
15
16
|
"18" => "Image: imprint logo",
|
16
17
|
"22" => "Image: table of contents",
|
@@ -18,7 +18,7 @@ module Cacofonix
|
|
18
18
|
def self.onix_composite(name, klass, options = {})
|
19
19
|
options[:as] = options.delete(:singular) ? klass : [klass]
|
20
20
|
options[:from] ||= klass.to_s.split("::").last
|
21
|
-
xml_accessor(name, options)
|
21
|
+
xml_accessor(name, **options)
|
22
22
|
end
|
23
23
|
|
24
24
|
# An accessor that treats the input/output as a date.
|
@@ -37,7 +37,7 @@ module Cacofonix
|
|
37
37
|
else
|
38
38
|
prep = lambda { |v| Date.parse(v) rescue nil }
|
39
39
|
end
|
40
|
-
xml_accessor(name, options, &prep)
|
40
|
+
xml_accessor(name, **options, &prep)
|
41
41
|
end
|
42
42
|
|
43
43
|
# An accessor that treats the input as a space-separated list, and
|
@@ -49,7 +49,7 @@ module Cacofonix
|
|
49
49
|
:to_xml => Cacofonix::Formatters.space_separated
|
50
50
|
)
|
51
51
|
prep = lambda { |v| v ? v.split : [] }
|
52
|
-
xml_accessor(name, options, &prep)
|
52
|
+
xml_accessor(name, **options, &prep)
|
53
53
|
end
|
54
54
|
|
55
55
|
|
@@ -63,7 +63,7 @@ module Cacofonix
|
|
63
63
|
:to_xml => Cacofonix::Formatters.boolean
|
64
64
|
)
|
65
65
|
prep = lambda { |v| v ? true : false }
|
66
|
-
xml_accessor(name, options, &prep)
|
66
|
+
xml_accessor(name, **options, &prep)
|
67
67
|
end
|
68
68
|
|
69
69
|
|
@@ -117,7 +117,7 @@ module Cacofonix
|
|
117
117
|
Cacofonix::Code.new(list_number, value, code_opts)
|
118
118
|
}
|
119
119
|
options = options.merge(:from => tag_name)
|
120
|
-
xml_accessor("#{name}_code", options, &prep)
|
120
|
+
xml_accessor("#{name}_code", **options, &prep)
|
121
121
|
|
122
122
|
define_method(name) do
|
123
123
|
send("#{name}_code").key
|
@@ -171,7 +171,7 @@ module Cacofonix
|
|
171
171
|
end
|
172
172
|
}
|
173
173
|
options = options.merge(:from => tag_name, :as => [])
|
174
|
-
xml_accessor("#{name}_codes", options, &prep)
|
174
|
+
xml_accessor("#{name}_codes", **options, &prep)
|
175
175
|
|
176
176
|
define_method(name) do
|
177
177
|
codes = send("#{name}_codes")
|
data/lib/cacofonix/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cacofonix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Healy
|
8
8
|
- Tim Riley
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-core
|
@@ -416,7 +416,7 @@ metadata:
|
|
416
416
|
homepage_uri: https://github.com/icelab/cacofonix
|
417
417
|
source_code_uri: https://github.com/icelab/cacofonix
|
418
418
|
changelog_uri: https://github.com/icelab/cacofonix/blob/master/CHANGELOG.md
|
419
|
-
post_install_message:
|
419
|
+
post_install_message:
|
420
420
|
rdoc_options: []
|
421
421
|
require_paths:
|
422
422
|
- lib
|
@@ -431,8 +431,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
431
431
|
- !ruby/object:Gem::Version
|
432
432
|
version: '0'
|
433
433
|
requirements: []
|
434
|
-
rubygems_version: 3.
|
435
|
-
signing_key:
|
434
|
+
rubygems_version: 3.2.3
|
435
|
+
signing_key:
|
436
436
|
specification_version: 4
|
437
437
|
summary: ONIX support for Ruby applications
|
438
438
|
test_files: []
|