web47core 1.0.15 → 1.0.16

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: 20fa4ad255499f3d899ca64125951b60e7502d5e129f4989680bf84182e3671c
4
- data.tar.gz: c47a90846316d62d4e63bf9f198912806c637f3a586b2b5441c0962ec22ce9b5
3
+ metadata.gz: 9553f8bc7619223426f6de884ec71e6965eb2ca281f374bfb27ee0029912bc7b
4
+ data.tar.gz: 156d2fd7cee65365a662680779e763d38dfc0f7dcc6eaa82b08709bbf5873eee
5
5
  SHA512:
6
- metadata.gz: f2e502d727e5b177adf2a4b22d09ab54f0281b4f0fa2106d4f1dbf18064f10e2c99d0644d99e96e6d44468a5a35c5918ae3ec2c164db8a782195d22419c230a8
7
- data.tar.gz: 9b9ae4ea919b1f63a87bc144f9db10a65e047fbca2f28517b0eaf3ef2c4ea510d6b595931d65e1e845dd8f32e940fea07227adc75dc7c4bdfccd0c98498765c6
6
+ metadata.gz: 22158a5f95e48cc2c0b511c6b3cb8938f05f1d2f44039b4f23a3cbe72e17ebd6c6f12740d900412da2032ff8c32695d4132b5a41e3131621d9510b4e46b00ffb
7
+ data.tar.gz: 41f2923d8afb2abd12fe91385b45dcd250a2f6cbb757ffd8bc0594b6a12eab5de5e626ec33b0e4fb75fadd36251e76fa5792c97761b74407dd7ce81e4836ba83
@@ -17,8 +17,10 @@ module CoreLinkHelper
17
17
  # Setup the text as copy text
18
18
  #
19
19
  def copy_tag(copy_text, options = {})
20
+ secure = options[:secure] || false
21
+ display_text = secure ? mask_value(copy_text) : copy_text
20
22
  content_tag(:div, class: 'clipboard') do
21
- concat(content_tag(:span) { copy_text })
23
+ concat(content_tag(:span) { display_text })
22
24
  concat(copy_text_tag(copy_text, options))
23
25
  concat(download_tag(options[:download_url], options)) if options[:download_url].present?
24
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '1.0.15'
4
+ VERSION = '1.0.16'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-06 00:00:00.000000000 Z
11
+ date: 2020-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport