coradoc 2.0.25 → 2.0.26

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: 89b8c2a91f2cc76dbd1aa2694eb7fa06b689c46e92fe8d240e2bad3206a39da3
4
- data.tar.gz: 9645f7e85a7ac1f8ada41f535219b72238b63c503380c79642d04eb2fe1b6589
3
+ metadata.gz: 6b56fd30c086580f71f5b576a209ba6ad20c5aa590fbd09d62477a7f85a4988f
4
+ data.tar.gz: 8be8c3211cf7dc7d1545c8d86966687c645e4929046d65c54a4a2d4f6c9f5cd2
5
5
  SHA512:
6
- metadata.gz: fa10ea51a7a4ac5146d28cd7a681d5722998b7937ec05169c2376a80af592a65b8a430773e99cf874aca769c2a7dcc61b065ce3ae8e4da283685f77ae3bd22c3
7
- data.tar.gz: a063ca46ab3f5a8f166044311b118fe82a96185d77f12de607e426ba5ad6ad330cbfb58ee5323dae5a3a7f6b6fa90f12f4fc422730878b219058f318f72eda6a
6
+ metadata.gz: 9d6ec746cd4a049f0668aa367091817faf0c87ed9c35840f3b548124836701c0f1ac6c0ddc99fcdcb5420e6c15e3f972eec6c869c055d464dc518049af4d242c
7
+ data.tar.gz: 33abcf1caabfb83b74f803affc8a12d4f74bd9290e0607d91a7033121db317229831c43da321edcf30dc3c97a080ca6b304c1186101dc17038867413ad8e802f
@@ -44,9 +44,12 @@ module Coradoc
44
44
 
45
45
  # @!attribute link
46
46
  # @return [String, nil] URL to link to when image is clicked
47
- # @note Not yet wired by any transformer; reserved for future use
48
47
  attribute :link, :string
49
48
 
49
+ # @!attribute role
50
+ # @return [String, nil] CSS role/class for the image (AsciiDoc role attr)
51
+ attribute :role, :string
52
+
50
53
  # @!attribute inline
51
54
  # @return [Boolean] whether this is an inline image
52
55
  attribute :inline, :boolean, default: -> { false }
@@ -59,7 +62,7 @@ module Coradoc
59
62
  private
60
63
 
61
64
  def comparable_attributes
62
- super + %i[src alt caption width height link inline]
65
+ super + %i[src alt caption width height link role inline]
63
66
  end
64
67
  end
65
68
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coradoc
4
- VERSION = '2.0.25'
4
+ VERSION = '2.0.26'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coradoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.25
4
+ version: 2.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.