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.
- checksums.yaml +4 -4
- data/lib/html_attrs.rb +3 -2
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d48ce52b76bcfea69f089ff7f8369c9dac55d42ff739d52b74efae15b9f10ef4
|
4
|
+
data.tar.gz: 5de4ef2ca5bddff33bc9e297933e7447e3b3eab91ef7c500d306926b039993d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
4
|
+
require 'active_support'
|
5
|
+
require 'active_support/core_ext/object/json.rb'
|
5
6
|
|
6
7
|
class HtmlAttrs < Hash
|
7
|
-
VERSION = '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.
|
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
|