payment_icons 1.1.0 → 1.2.0

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: 4a538e4def2b9852283e22d013ac702a2efe5d954e54f38dc6fd79d944e34232
4
- data.tar.gz: 8ae3735955b22e73536d1e9e7f40d69c1fe0f43332840a41977867db0f8ebefc
3
+ metadata.gz: '0091aa709fcf54471eeb8189f508180f08d5fe350e80b417dc78f818ffb470e0'
4
+ data.tar.gz: 69b7312c8ef467849212d302506468da59d9c758a9e0ba5ce8d43b63e71d559d
5
5
  SHA512:
6
- metadata.gz: 8c183e86109ef007f25cbedf2183035f18e246fb17cc250831ce7a3c699abd3b2e0b421b4b6406bc0b929d83ed260a829e3408921028f4c3d12e05cd627d2859
7
- data.tar.gz: 63c1639149ed1214077df5ae2a97e034314af8aad48dbbfac79bbca615ec1883f70e9c302518e7faf06f46eb6fee8d082a83adca1925f08db0a4ca259bb03cfa
6
+ metadata.gz: 0d00961baa6a0646145e8b8d3ba269d9bc66060fe248116a8ceeb7b31bbd9d0924af6b283a4e8aec5ff90278f532d186fb1b4eef790df5866bf720cd95c0775b
7
+ data.tar.gz: f0a00ddf0647b23ae1a938151ab0eaf57a42a09df00e61c74c3d17c27e1592dd2aa1fccda38767691607ed0b1734cf66a096262385088aa8d1552cf1c01c1e52
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="38" height="24" viewBox="0 0 38 24" role="img" aria-labelledby="pi-krungsri"><title id="pi-krungsri">Krungsri</title><path opacity=".1" d="M35 0H3a3 3 0 0 0-3 3v18a3 3 0 0 0 3 3h32a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3z"/><path fill="#FFF" d="M35 1a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2h32"/><path fill="#5C4C4C" d="M9.4 21.6v-19c0-.3 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1.5-2.2a14 14 0 0 0 1.3-4V11M18.8 6.5a18.1 18.1 0 0 1-1.1 5.2c0 .2-.1.2-.2 0-.5-.7-.9-1.4-1-2.2a12 12 0 0 1-.5-2.9c0-.2 0-.3.3-.4a6 6 0 0 1 2.2-.6c.2 0 .3 0 .3.3v.6M19.1 6.5v-.7c0-.1 0-.2.2-.2.9 0 1.7.3 2.4.7l.2.2c0 1-.1 2.1-.5 3.1-.2.8-.5 1.5-1 2.1 0 .2-.1.2-.2 0l-.6-1.7-.5-3.5M12.7 12c.1-2.2 1-4 2.8-5.3l.2-.1v.2c0 1.2-.2 2.5-.7 3.6-.4 1-1 1.7-2 2.2-.2.2-.2.1-.3-.2V12M25.2 11.8v.7c0 .3-.2.2-.3.1-.5-.2-.9-.5-1.2-1-.8-.9-1.1-2-1.3-3-.2-.6-.2-1.2-.2-1.7v-.3l.2.1a6.3 6.3 0 0 1 2.8 5.1M15.9 11c.3.7.6 1.4 1.1 2v.2a7.6 7.6 0 0 1-2.5 3l-.3-.1a7 7 0 0 1-1-1.7V14c1.3-.6 2-1.5 2.5-2.7l.2-.3M22 11l.4 1c.5.9 1.2 1.6 2.3 2 .1.2 0 .2 0 .4l-.6 1.2-.4.5c0 .1-.1.1-.2 0a7 7 0 0 1-2.1-2l-.5-.9V13c.5-.6.9-1.3 1.1-2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="38" height="24" viewBox="0 0 38 24" role="img" aria-labelledby="pi-uob"><title id="pi-uob">UOB</title><path opacity=".1" d="M35 0H3a3 3 0 0 0-3 3v18a3 3 0 0 0 3 3h32a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3z"/><path fill="#FFF" d="M35 1a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2h32"/><path fill="#D90B14" d="M8.6 9.5V11c0 .3 0 .4.4.4.2 0 .3-.1.3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1.8-1 2.9-1.1m2 4c0-.5 0-1-.2-1.6-.3-1-.9-1.3-2.1-1.2-.9 0-1.5.6-1.6 1.4v2.7c.1.7.7 1.3 1.3 1.5 1 .2 1.7-.1 2.2-.8.4-.7.3-1.3.3-2M20.2 11.2v2.6a2 2 0 0 1-1.7 2c-1.2.2-2.5.3-3.6-.3-.7-.4-1-1-1-1.7V8.6c0-.3 0-.4.2-.5.9-.3 1.4 0 1.4 1v4.2c0 1 .3 1.3 1.3 1.3h.9c.6-.2.8-.5.8-1.1V8.8c0-.6.3-.8.9-.8.6 0 .8.2.8.8v2.4z"/><path fill="#F3F3F3" d="M32 14.8c-1.2 0-1.2 0-1.2-1.2s0-1.2 1.2-1.2h.8c.7 0 1.1.5 1.1 1.2 0 .8-.3 1.1-1 1.2h-1M32 9.2h.5c.8 0 1 .3 1 1s-.3 1-1 1.1c-.6 0-1.3.3-1.6-.1-.3-.3 0-1-.1-1.6 0-.3.1-.4.4-.4h.8M26.6 12c0 .7 0 1.3-.3 2-.5.7-1.2 1-2.2.8-.6-.2-1.2-.8-1.3-1.5v-2.7c.1-.8.7-1.4 1.6-1.4 1.2 0 1.8.3 2.1 1.2l.1 1.6"/></svg>
data/db/payment_icons.yml CHANGED
@@ -402,6 +402,14 @@
402
402
  name: vipps
403
403
  label: Vipps
404
404
  group: other
405
+ -
406
+ name: krungsri
407
+ label: Krungsri
408
+ group: bank_transfers
409
+ -
410
+ name: uob
411
+ label: UOB
412
+ group: bank_transfers
405
413
  -
406
414
  name: siamcommercial
407
415
  label: Siam Commercial
@@ -1,3 +1,3 @@
1
1
  module PaymentIcons
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -103,4 +103,21 @@ class PaymentIconTest < ActiveSupport::TestCase
103
103
  message: "The '#{payment_type}' SVG file should have a aria-labelledby='#{ICON_ID_PREFIX}#{payment_type}' attribute on the root <svg> node"
104
104
  end
105
105
  end
106
+
107
+ test 'Payment icon SVGs with <img> or <image> tags base64-encode PNG image data' do
108
+ SVG_PAYMENT_TYPES.each do |payment_type, svg|
109
+ document = Nokogiri::XML.parse(svg)
110
+
111
+ image_nodes = []
112
+ image_nodes << document.search("img")
113
+ image_nodes << document.search("image")
114
+ image_nodes.flatten!.uniq!
115
+
116
+ image_nodes.each do |image_node|
117
+ xlink_href_content = image_node['xlink:href']
118
+ error_message = "Expected image tag to contain base64 encoded PNG, found '#{xlink_href_content.truncate(50)}' instead"
119
+ assert xlink_href_content.start_with?('data:image/png;base64'), error_message
120
+ end
121
+ end
122
+ end
106
123
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payment_icons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nakul Pathak
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-21 00:00:00.000000000 Z
12
+ date: 2019-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: frozen_record
@@ -134,6 +134,7 @@ files:
134
134
  - app/assets/images/payment_icons/klarna-pay-now.svg
135
135
  - app/assets/images/payment_icons/klarna-slice-it.svg
136
136
  - app/assets/images/payment_icons/krediidipank.svg
137
+ - app/assets/images/payment_icons/krungsri.svg
137
138
  - app/assets/images/payment_icons/laser.svg
138
139
  - app/assets/images/payment_icons/lawson.svg
139
140
  - app/assets/images/payment_icons/laybuy.svg
@@ -183,6 +184,7 @@ files:
183
184
  - app/assets/images/payment_icons/twint.svg
184
185
  - app/assets/images/payment_icons/unionpay.svg
185
186
  - app/assets/images/payment_icons/unipay.svg
187
+ - app/assets/images/payment_icons/uob.svg
186
188
  - app/assets/images/payment_icons/venmo.svg
187
189
  - app/assets/images/payment_icons/viabill.svg
188
190
  - app/assets/images/payment_icons/vipps.svg