cacofonix 0.10.1 → 0.10.3

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: 38079d040216953ae4a1b8e345679e2359084a18bb2b2d1661bc3f2ac6e81f8f
4
- data.tar.gz: aafdf4b012541277db4881f2b59dceeb6678bf99ac2a4fe1ad2c1b84e54f1015
3
+ metadata.gz: c2a356797f8987d9cba6ceec09f615a38e3bf20042a2d69f927573fb4c069fbe
4
+ data.tar.gz: 42872d872272730b2ea38c878270f72d686c40a12aaf4941aa9da23780ee003a
5
5
  SHA512:
6
- metadata.gz: d78b8b9390b28dd581bcd21de41c5ea3ebde0009db5071f8d1785775f4e6d62bc36817dd6f016fb2f8f05521240c74bac372a437571abe8f7f77123426a2db9a
7
- data.tar.gz: d15b3ec91ccf0a7e09e866041e4ab16e14f332fa1ab1f4145da07ce457866cd6abef97df5e1c610715744efab91b05c883c364fa9ff24ddf99c685c4edb70df9
6
+ metadata.gz: cb121a46ce5f34d6881541ad7d28aa4cbcd278935bf343b2498413e5e2378375ab008917714b8f55a34d1ea0d5aa15baa6b977150dc6df203d2f11cab14decb9
7
+ data.tar.gz: 9b185f71b2da4f29b9a1849ee1785a41273399a992ef7f8d9b6089f7e345da8097b0e747e5cf601b5eaf87b10365a7bf70f5b6df6cf9bb7cc323a5eac475b7a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.3] - 2022-11-15
4
+
5
+ ### Changed
6
+
7
+ - Relaxed dry-core version constraint to allow use with 1.0.0.
8
+
9
+ ## [0.10.2] - 2021-03-03
10
+
11
+ ### Fixed
12
+
13
+ - Added missing item 16 (Image: Master brand logo) to List 38.
14
+ - Fixed keyword argument syntax to work on MRI 3.0.0.
15
+
3
16
  ## [0.10.1] - 2020-02-13
4
17
 
5
18
  ### Fixed
data/cacofonix.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.required_ruby_version = '>= 2.5'
30
30
 
31
- spec.add_runtime_dependency "dry-core", "~> 0.4"
31
+ spec.add_runtime_dependency "dry-core", ">= 0.4"
32
32
  spec.add_runtime_dependency "roxml", "~> 4.0"
33
33
  spec.add_runtime_dependency "nokogiri", "~> 1.0"
34
34
  spec.add_runtime_dependency "cacofonix-dtds", "~> 0.1"
@@ -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.3"
5
5
  end
metadata CHANGED
@@ -1,28 +1,28 @@
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.3
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: 2022-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-core
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0.4'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0.4'
28
28
  - !ruby/object:Gem::Dependency
@@ -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.3.7
435
+ signing_key:
436
436
  specification_version: 4
437
437
  summary: ONIX support for Ruby applications
438
438
  test_files: []