simple_attribute 0.1.2 → 0.1.3

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
- SHA1:
3
- metadata.gz: 90ea0596dc84e741c57d4bb35f903e1745f7aa8a
4
- data.tar.gz: 77326d6e6a32d9391e28d54ecc450e54195a7930
2
+ SHA256:
3
+ metadata.gz: 5a84ac7a80f0837ac35807f6406dfcd7a0624ca7793dd545f80f365c951fb845
4
+ data.tar.gz: 4d989113362d936ca25f234e45b1c3ae80d137b99c8178ecd84807f1042af974
5
5
  SHA512:
6
- metadata.gz: 452c257bf7d025ff6db056f41a1588f62f6676fd1202ed447ffb95739104ea0eca6055d83e869d61e921ca6c320efd4cba1b33696aeb0b1b9e76d00c10772682
7
- data.tar.gz: e75146f9286a250748529970088a8f3a0561b156852f3672644ad50e22b3e2a48318fda384f6d3bf802e162643fe2ba80f9bdd3a66118270363945c255fb693d
6
+ metadata.gz: ec335fbdb9de65566f03827661e1e470db7af2fa705c941d4c2bb4593ad2aca7e17517f5442cdb57e299d22e34ede2797feee783cf54a8fb6f05e69b0fb8d295
7
+ data.tar.gz: 4a4b6ea002b093ab7803084933770d1d49e030f401c3557a871b4bc2651ff35f3985c9e6aae420345c5fb5fe10dfe2880831467f94092d173c7c944f4dbb7af0
@@ -15,7 +15,7 @@ module SimpleAttribute
15
15
 
16
16
  if 'image'.in?("#{@media_type}")
17
17
  default_url = asset_url(default_value)
18
- image_tag default_url, html_options
18
+ content_tag :img, nil, html_options.reverse_merge(src: default_url)
19
19
  else
20
20
  super
21
21
  end
@@ -23,7 +23,7 @@ module SimpleAttribute
23
23
 
24
24
  # Render attribute
25
25
  def render_attribute
26
- image_tag value, html_options
26
+ content_tag :img, nil, html_options.reverse_merge(src: value)
27
27
  end
28
28
  end
29
29
  end
@@ -8,7 +8,7 @@ module SimpleAttribute
8
8
 
9
9
  # Render attribute
10
10
  def render_attribute
11
- video_tag value, html_options
11
+ content_tag :video, nil, html_options.reverse_merge(src: value)
12
12
  end
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleAttribute
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_attribute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-20 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 2.6.14
147
+ rubygems_version: 2.7.7
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Decorate ActiveRecord model attributes