tailwind_merge 0.4.0 → 0.5.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: 5e16a945fd3a3872687ebacc6fa3a18ca60424e735e31f28461e500116c7fd5f
4
- data.tar.gz: 3b8b7ef9495914b7004cada2918c3ecb22099f1279607fe6dc1cd47db3018be6
3
+ metadata.gz: ab700417f6a4f25b6ca1f2dbc4fc88c8a4158107b3b446eb61c1806f9b017ed2
4
+ data.tar.gz: 888edaa673497e967d596d387968bbc87af4aba71a9ee8bd1d3a2f0c16d1453d
5
5
  SHA512:
6
- metadata.gz: f13054805b9efa04fa50dd84f4ffb57823f026d865e050f7617a89bc4374cd520950887defe714c49e1d50ed9a88e8a0bb27383b0a67f4ba4cdba6f8b8918667
7
- data.tar.gz: af31f90a35a33964f9fc5f0e141310c5437a322be4b906123de557e9c1a925bcea8709dc6888035905bb9eb3dbf29fb822ae0835e0529fbf36d354928445b538
6
+ metadata.gz: d54fcc8481da5c205749eab9552be39ba2eb4f4c747d6d454d021c0d3ac71f3f4880541c9d5f559c7cb7759e0e653ee78a3e2a34458f4b9947ce5d4618d0d58e
7
+ data.tar.gz: 355d00b020bd1db1345f15ce0833cf9af3baf3908b452355f4909dddd67e773ddbd861867ca60ebc9ef9dd59c10d744292ec39d1c7d69291ffbffd7acfe7cadb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.5.0](https://github.com/gjtorikian/tailwind_merge/tree/v0.5.0) (2023-01-30)
4
+
5
+ [Full Changelog](https://github.com/gjtorikian/tailwind_merge/compare/v0.4.1...v0.5.0)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Support decimals [\#6](https://github.com/gjtorikian/tailwind_merge/pull/6) ([gjtorikian](https://github.com/gjtorikian))
10
+
11
+ ## [v0.4.1](https://github.com/gjtorikian/tailwind_merge/tree/v0.4.1) (2022-12-23)
12
+
13
+ [Full Changelog](https://github.com/gjtorikian/tailwind_merge/compare/v0.4.0...v0.4.1)
14
+
3
15
  ## [v0.4.0](https://github.com/gjtorikian/tailwind_merge/tree/v0.4.0) (2022-11-11)
4
16
 
5
17
  [Full Changelog](https://github.com/gjtorikian/tailwind_merge/compare/v0.3.1...v0.4.0)
data/Gemfile CHANGED
@@ -12,3 +12,8 @@ gem "minitest", "~> 5.0"
12
12
  gem "rubocop", "~> 1.21"
13
13
 
14
14
  gem "github_changelog_generator", "~> 1.16"
15
+
16
+ gem "rubocop-standard"
17
+
18
+ gem "amazing_print"
19
+ gem "debug"
@@ -1566,8 +1566,6 @@ module TailwindMerge
1566
1566
  "inset-x" => ["right", "left"],
1567
1567
  "inset-y" => ["top", "bottom"],
1568
1568
  "flex" => ["basis", "grow", "shrink"],
1569
- "col-start-end" => ["col-start", "col-end"],
1570
- "row-start-end" => ["row-start", "row-end"],
1571
1569
  "gap" => ["gap-x", "gap-y"],
1572
1570
  "p" => ["px", "py", "pt", "pr", "pb", "pl"],
1573
1571
  "px" => ["pr", "pl"],
@@ -19,7 +19,7 @@ module TailwindMerge
19
19
  ARBITRARY_VALUE_REGEX = /^\[(.+)\]$/
20
20
  FRACTION_REGEX = %r{^\d+/\d+$}
21
21
  LENGTH_UNIT_REGEX = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/
22
- TSHIRT_UNIT_REGEX = /^(\d+)?(xs|sm|md|lg|xl)$/
22
+ TSHIRT_UNIT_REGEX = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/
23
23
  # Shadow always begins with x and y offset separated by underscore
24
24
  SHADOW_REGEX = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/
25
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TailwindMerge
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -1,3 +1,3 @@
1
1
  #!/bin/sh
2
2
 
3
- CHANGELOG_GITHUB_TOKEN="$GITHUB_TOKEN" bundle exec github_changelog_generator -u gjtorikian -p tailwind_merge
3
+ bundle exec github_changelog_generator --token $GITHUB_TOKEN -u gjtorikian -p tailwind_merge
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = "https://www.github.com/gjtorikian/tailwind_merge"
13
13
  spec.license = "MIT"
14
14
 
15
- spec.required_ruby_version = [">= 3.0", "< 4.0"]
15
+ spec.required_ruby_version = [">= 3.1", "< 4.0"]
16
16
 
17
17
  spec.metadata = {
18
18
  "funding_uri" => "https://github.com/sponsors/gjtorikian/",
@@ -34,11 +34,6 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_dependency("lru_redux", "~> 1.1")
36
36
 
37
- spec.add_development_dependency("amazing_print")
38
- spec.add_development_dependency("debug") if "#{RbConfig::CONFIG["MAJOR"]}.#{RbConfig::CONFIG["MINOR"]}".to_f >= 3.1
39
37
  spec.add_development_dependency("minitest", "~> 5.6")
40
38
  spec.add_development_dependency("minitest-focus", "~> 1.1")
41
- spec.add_development_dependency("rake")
42
- spec.add_development_dependency("redcarpet")
43
- spec.add_development_dependency("rubocop-standard")
44
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailwind_merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-11 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lru_redux
@@ -24,34 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.1'
27
- - !ruby/object:Gem::Dependency
28
- name: amazing_print
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: debug
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: minitest
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,48 +52,6 @@ dependencies:
80
52
  - - "~>"
81
53
  - !ruby/object:Gem::Version
82
54
  version: '1.1'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: redcarpet
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop-standard
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
55
  description:
126
56
  email:
127
57
  - gjtorikian@gmail.com
@@ -158,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
88
  requirements:
159
89
  - - ">="
160
90
  - !ruby/object:Gem::Version
161
- version: '3.0'
91
+ version: '3.1'
162
92
  - - "<"
163
93
  - !ruby/object:Gem::Version
164
94
  version: '4.0'
@@ -168,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
98
  - !ruby/object:Gem::Version
169
99
  version: '0'
170
100
  requirements: []
171
- rubygems_version: 3.3.7
101
+ rubygems_version: 3.3.26
172
102
  signing_key:
173
103
  specification_version: 4
174
104
  summary: Utility function to efficiently merge Tailwind CSS classes without style