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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38079d040216953ae4a1b8e345679e2359084a18bb2b2d1661bc3f2ac6e81f8f
4
- data.tar.gz: aafdf4b012541277db4881f2b59dceeb6678bf99ac2a4fe1ad2c1b84e54f1015
3
+ metadata.gz: dab7abb2d6db476ef8c841b8d74291d64b7ae06491d121ace57d32da866271ea
4
+ data.tar.gz: d6ea0ce5f9fef38cdc6d8084398450b274311c7c77669e294384b69d9e0224f5
5
5
  SHA512:
6
- metadata.gz: d78b8b9390b28dd581bcd21de41c5ea3ebde0009db5071f8d1785775f4e6d62bc36817dd6f016fb2f8f05521240c74bac372a437571abe8f7f77123426a2db9a
7
- data.tar.gz: d15b3ec91ccf0a7e09e866041e4ab16e14f332fa1ab1f4145da07ce457866cd6abef97df5e1c610715744efab91b05c883c364fa9ff24ddf99c685c4edb70df9
6
+ metadata.gz: d8fb5e0cf734c52c4d4aaec182d4e68b92e932bc7e77f590c623df8a18ed2375e6f7da82ad6fe71340b831804727c2f344966929b7f93ffa0fae4800a40c68c4
7
+ data.tar.gz: e2e6287707d64e4a177607027f1a960ef41dcb73d6e727681bec409677f4e40106942b71a57587846116261b2e8991ab9618312125cd298534890cbe963a1487
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.2] - 2021-03-03
4
+
5
+ ### Fixed
6
+
7
+ - Added missing item 16 (Image: Master brand logo) to List 38.
8
+ - Fixed keyword argument syntax to work on MRI 3.0.0.
9
+
3
10
  ## [0.10.1] - 2020-02-13
4
11
 
5
12
  ### Fixed
@@ -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")
@@ -11,7 +11,7 @@ module Cacofonix
11
11
  :as => BigDecimal,
12
12
  :to_xml => Cacofonix::Formatters.decimal
13
13
  }
14
- xml_accessor(name, options)
14
+ xml_accessor(name, **options)
15
15
  end
16
16
 
17
17
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cacofonix
4
- VERSION = "0.10.1"
4
+ VERSION = "0.10.2"
5
5
  end
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.1
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: 2020-02-13 00:00:00.000000000 Z
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.0.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: []