obf 0.6.25 → 0.6.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/utils.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d32af2a7afac37302f6831234855acc8b76acb5
4
- data.tar.gz: 6caa045b647e96566f2f5f7069e02a391839550b
3
+ metadata.gz: 03b2d1fa6adea80a98e5191f2284ac80ec797281
4
+ data.tar.gz: 91b2fec98baa06c78ad6e7d95ade707b759613a4
5
5
  SHA512:
6
- metadata.gz: 2958ffbb2fe203cf4165cafdd3efc30d0fb85693a8e0d7dad109e3ee8d258d2a6d035f9e8dcd26bc9190dc2ff0ca0fb425aae88367fa6a8d4d7dcc3e8972b4fe
7
- data.tar.gz: 54c0505badbec10c49a553856ac48453f4bdc8602d59d3ffac5487c4cf602fb7ea327c1874d5ac8f32351f3c35091c5f14dda8221f362ed36af94666afc203c7
6
+ metadata.gz: 8ca7754ab260581591cde8ec1d95bd8968d7155c031a0ce66c7f109c947876596d7ffc20c8cdc79ffbb7b5a5ae0f2eb693c8af6bfe0613c50da0c76df8164448
7
+ data.tar.gz: 904658f88c2099eeb06bfb799cbfbcba385ccfd1c59df3b5da80e1699b6a4ddf6455bbb895b5ce086b1a50aae2909b46d66e18ba71a0458c6b1baffd44c16240
@@ -302,6 +302,10 @@ module OBF::Utils
302
302
  res['content_type'] = post
303
303
  end
304
304
  end
305
+ if res['content_type'] && res['content_type'].match(/^image\/svg/)
306
+ res['width'] ||= 300
307
+ res['height'] ||= 300
308
+ end
305
309
  res
306
310
  end
307
311
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.25
4
+ version: 0.6.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer