html_attrs 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/html_attrs.rb +3 -2
  3. metadata +15 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 737a5e8f52a5be75f40e73f69c877de82a91eb1819f3df87fbe0b0132e004b03
4
- data.tar.gz: b8e415cab20c7a73a434e6ba8097631cf423d6d2bef6b1c0032cbe4c806804e7
3
+ metadata.gz: d48ce52b76bcfea69f089ff7f8369c9dac55d42ff739d52b74efae15b9f10ef4
4
+ data.tar.gz: 5de4ef2ca5bddff33bc9e297933e7447e3b3eab91ef7c500d306926b039993d7
5
5
  SHA512:
6
- metadata.gz: 712b755dc31f8af3e613b492ef999a53ba1b8c0d53f2a63b9c6c81ffbe1be63c01a6d4bd2b268b68455be9f6f7b70e13ed5a49e9ff9b4a0cbcb6598abd249d05
7
- data.tar.gz: ed08332771a5cb04194e93b5e6c3405f3d3322c15f513d865777b172de0af1140a104e6ff0920f595aa483f8fd60c091113427952ab86f9cf781097e4f4e849d
6
+ metadata.gz: 38e873a43689a9a0835876dfc02adf919637ef396df6011dfe390a97b2d04f976df5ebf3fa1c2f4cd1b6f02cf7b04e0f0ac7af4c5aaa5e9d76eca3106bb1fae2
7
+ data.tar.gz: 288cbaeadf6a4ff8c71456aa3e4f9d77d381b2e7488aa79cc6315a7b4b676c77d32fc590e0b401de9f9318000f52daee6daafc45b92a54247f26bc8a5c52d9ed
data/lib/html_attrs.rb CHANGED
@@ -1,10 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'action_view'
4
- require 'bigdecimal' # tag_options references BigDecimal. Just require it here so non autoloading environments work.
4
+ require 'active_support'
5
+ require 'active_support/core_ext/object/json.rb'
5
6
 
6
7
  class HtmlAttrs < Hash
7
- VERSION = '1.1.1'
8
+ VERSION = '1.1.2'
8
9
  DEFAULT_MERGEABLE_ATTRIBUTES = %i[class style data].to_set
9
10
 
10
11
  def initialize(constructor = nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_attrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owais
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '6.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '6.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '6.0'
27
41
  description: A gem that provides a way to smartly merge HTML attributes
28
42
  email:
29
43
  - owaiswiz@gmail.com