metanorma-utils 1.4.0.1 → 1.4.1

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: 5d3067eb2910d94d8fdea52e4909ca6ff1691d7a1fbe11859c1c7c0163381a43
4
- data.tar.gz: 633a4d5dfc20a1fd98832dee94e66ee9f974fe57e9bd0b6252793b57838a558b
3
+ metadata.gz: 4f32aeb7bee3b6c0d36ef4ec14722115d92b2a721640b353f2fdedf91e130ded
4
+ data.tar.gz: 98bcc533cdb3c716d5961696f0aebf610d40dbdc86164fd615d2a4d63e31b955
5
5
  SHA512:
6
- metadata.gz: 0bf2b0ee3f74b32e6dda49771df96f9f7121f32ed9eba76d89e5cba66b55a338da69b25acadd652092b3ad81fd313bc5506db3c8e2e054b9192ab7cfc59f017b
7
- data.tar.gz: a1e0079091ba03bd9d173624dd43d764d409c4bf32cc75a052492b079a99a66833056ea8bf6e4f85d75d323835f2f38961de59af865fef0865b0a28492e907a5
6
+ metadata.gz: c31cdc9c3b6e98801e3006cb6a9d549880fa42225ce21e2636a6e70adf09abe39c384cb166d4f275e911f91e68deb743c1433471f9df7d1417745efa25852ecd
7
+ data.tar.gz: 8fa5f30a48fa4f073fe40b475709551da487f9891bb40cd55a33cc3c9e2ecd989b897a9cafd24da30f9b734eea5fe81c963d806a074af3e870e180e8a04ebef3
data/lib/utils/image.rb CHANGED
@@ -1,7 +1,5 @@
1
- require "asciidoctor"
2
1
  require "tempfile"
3
2
  require "marcel"
4
- require "mime/types"
5
3
  require "base64"
6
4
 
7
5
  module Metanorma
@@ -126,52 +124,71 @@ module Metanorma
126
124
 
127
125
  # sources/plantuml/plantuml20200524-90467-1iqek5i.png
128
126
  # already includes localdir
129
- def datauri(uri, localdirectory = ".")
130
- return uri if /^data:/.match?(uri)
127
+ def datauri(uri, local_dir = ".")
128
+ # Return the data URI if it already is a data URI
129
+ return uri if datauri?(uri)
131
130
 
132
- path = datauri_path(uri, localdirectory)
133
- return path unless File.exist?(path)
131
+ # Return the URL if it is a URL
132
+ return uri if url?(uri)
134
133
 
135
- types = MIME::Types.type_for(path)
136
- type = types ? types.first.to_s : 'text/plain; charset="utf-8"'
137
- bin = File.open(path, "rb", &:read)
134
+ local_path = uri
135
+ relative_path = File.join(local_dir, uri)
136
+
137
+ # Check whether just the local path or the other specified relative path
138
+ # works.
139
+ path = [local_path, relative_path].detect do |p|
140
+ File.exist?(p) ? p : nil
141
+ end
142
+
143
+ unless path && File.exist?(path)
144
+ warn "Image specified at `#{uri}` does not exist."
145
+ # Return original provided location
146
+ return uri
147
+ end
148
+
149
+ encode_datauri(path)
150
+ end
151
+
152
+ def encode_datauri(path)
153
+ return nil unless File.exist?(path)
154
+
155
+ type = Marcel::MimeType.for(Pathname.new(path)) ||
156
+ 'text/plain; charset="utf-8"'
157
+
158
+ bin = File.binread(path)
138
159
  data = Base64.strict_encode64(bin)
139
160
  "data:#{type};base64,#{data}"
161
+ rescue StandardError
162
+ warn "Data-URI encoding of `#{path}` failed."
163
+ nil
140
164
  end
141
165
 
142
- def datauri_path(uri, localdirectory)
143
- path = if %r{^([A-Z]:)?/}.match?(uri) then uri
144
- else
145
- File.exist?(uri) ? uri : File.join(localdirectory, uri)
146
- end
147
- unless File.exist?(path)
148
- warn "image at #{path} not found"
149
- return uri
150
- end
151
- path
166
+ def datauri?(uri)
167
+ /^data:/.match?(uri)
168
+ end
169
+
170
+ def url?(url)
171
+ %r{^([A-Z]:)?/}.match?(url)
172
+ end
173
+
174
+ def decode_datauri(uri)
175
+ %r{^data:(?<mimetype>[^;]+);base64,(?<mimedata>.+)$} =~ uri
176
+ return nil unless mimetype && mimedata
177
+
178
+ data = Base64.strict_decode64(mimedata)
179
+ {
180
+ type_declared: mimetype,
181
+ type_detected: Marcel::MimeType.for(data, declared_type: mimetype),
182
+ data: data,
183
+ }
152
184
  end
153
185
 
186
+ # FIXME: This method should ONLY return 1 type, remove Array wrapper
154
187
  def datauri2mime(uri)
155
- %r{^data:image/(?<imgtype>[^;]+);base64,(?<imgdata>.+)$} =~ uri
156
- type = nil
157
- imgtype = "png" unless /^[a-z0-9]+$/.match? imgtype
158
- ::Tempfile.open(["imageuri", ".#{imgtype}"]) do |file|
159
- type = datauri2mime1(file, imgdata)
160
- end
161
- [type]
162
- end
163
-
164
- def datauri2mime1(file, imgdata)
165
- type = nil
166
- begin
167
- file.binmode
168
- file.write(Base64.strict_decode64(imgdata))
169
- file.rewind
170
- type = Marcel::MimeType.for file
171
- ensure
172
- file.close!
173
- end
174
- type
188
+ output = decode_datauri(uri)
189
+ return nil unless output && output[:type_detected]
190
+
191
+ [output[:type_detected]]
175
192
  end
176
193
  end
177
194
  end
data/lib/utils/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Utils
3
- VERSION = "1.4.0.1".freeze
3
+ VERSION = "1.4.1".freeze
4
4
  end
5
5
  end
data/spec/img_spec.rb CHANGED
@@ -276,17 +276,6 @@ RSpec.describe Metanorma::Utils do
276
276
  OUTPUT
277
277
  end
278
278
 
279
- def datauri(uri, localdir = "")
280
- return uri if /^data:/.match?(uri)
281
-
282
- path = File.join(localdir, uri)
283
- types = MIME::Types.type_for(path)
284
- type = types ? types.first.to_s : 'text/plain; charset="utf-8"'
285
- bin = File.open(path, "rb", &:read)
286
- data = Base64.strict_encode64(bin)
287
- "data:#{type};base64,#{data}"
288
- end
289
-
290
279
  it "generates data uris" do
291
280
  expect(Metanorma::Utils.datauri("data:xyz")).to eq "data:xyz"
292
281
  expect(Metanorma::Utils.datauri("spec/fixtures/rice_image1.png")).to be_equivalent_to "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADfCAIAAADDbnkhAAAAKXRFWHRjb3B5bGVmdABHZW5lcmF0ZWQgYnkgaHR0cDovL3BsYW50dW1sLmNvbREwORwAAAEOaVRYdHBsYW50dW1sAAEAAAB4nHWQy27CMBBF95byD7OEhRFJoaJRVREKrZQmKiKEvUnc1FIypn5E6t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4XL17ctWtXHLzyyisYXKNGjWbNmq1bt87tMeGECRNefvnlOnXqtG3b9sMPP2SXfP3117169apSpcr999+fkZHBOh9//PE5c+YYBvMxMWzu3LnskrNnzw4ePLh27doYgwHs2wpwtkOHDuhp06bNzp07Swzy3//+d+DAgXd4GDRokPYNXMJ8DGgmBI96YMfCCZ45cyY+Ph5vZy1atMBVSIYZTPhimgX54IMPunTpgrfF+vXrf/nll27R7AIea9H6FhUmtP60t3nz5sOHD//555/vvffedu3aaf1169adPXs2O54xY0aDBg1wcPr06datW/ft2zcnJ+fChQtujwnDw8N79+69adMmCDQ2Nhadt27dgqYhx8OHD0+cOBELCIsjHCyMyVbXn376CSnVqlULG7zPPvts8+bNyBP9r7/+elpaGnZoEHf37t2tg+CShx56CK7AFhFCx0H79u2RoVk+BpgJv/rqK+SA96lly5a5TSYIv+FGiLljx46srCy8QWA8M6HwxRQGQbZ4x3nuuefy8vLwpnDlyhW3aHYBj7VofYvDJtyzZw+Egv/iGCrBMQTBTgl14+aei6A5vG3fvHkTx/Pnz8cigIMDBw4gFKyyf/9+l8uFY/apj3CwMCbzD4szefJk7ZSeH374Yfr06Vgf2I9mQQ4ePIggK1euZP0rVqzAj4cOHWJjhPnogQlDbvPaa68xUwkniJcOB++88w67EHcMsTShMAjG16tXD28T8Bsbzwi2x1EL0foch004YsQI/NsPGzbsySefjIuLw/H48ePZKaFu3Jwa9HvCRYsWMR2npqYiVOPGjR+8DRYus8Fu85gsDh7PtFOM5cuXIx88Q+IWJZqQBTly5Ajrh/3w48aNG/Vj3L/NRw9MiOfho0eP4lG2X79+rFM4QWYkjGRjSjShMIjbY048duJU//79L168yK4iE5YdTprw+++/x24E9vvbbfBIVrNmzR9//NHt0c2rr77KRuJ5VW/Cp556Sgsi1DF7j1+92vhYLxzsNo+ZnZ2NOAkJCdopsHv37pDbC86bb76pN6EwyEcffYTxycnJrP+f//wnfkRk/Ri3pQnZnnD9+vW4EMPcJhM8duwYOvFky37EBltvQv7FFAZh4C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2LUt+b/5b7878W/K0eQ62pBWr1tr8YmMiOHFWvRJCFZtQT25uLgydkZGBuEmOYvcr/gnCEfXaFWrJJsR6mpOTg4hwtstR7Ba7IQhH1GtXqCWbEFZGLHgaa2uWo9gt+0YQjqjXrlBLNiGiwM0Ih6fbE46CBJAGkkFKRUVFxkQJgsMR9doVaskmJAiiTCETEoTDkAkJwmHIhAThMGRCgnAYMiFBOAyZkCAchkxIEA5DJiQIhyETEoTDkAkJwmHIhAThMP8PSlImtX3xowQAAAAASUVORK5CYII="
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.1
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor