tailwind_merge 0.3.0 → 0.3.1

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: acd2f51e2649b7431dee68c8dfcc32d173ff034b9781234be67017f2c6631017
4
- data.tar.gz: f029d5b0d2c31cfa0e93f8f5bcbd1b9b2846194c4489d03d9698f0ff034d4e42
3
+ metadata.gz: b6224f510ea4b41c69dcfd5afebd2275a160f35a4bd0d566abf939de17467e73
4
+ data.tar.gz: 703cde0f5f4995926c368abd799db4a2b39a495ad8563958d6efe6a5b10c1e1b
5
5
  SHA512:
6
- metadata.gz: 0d5f11f2a351bd3ce9d042a82cceb0d13784ec1ed2355e93f6dd281c7d7ee6fa5859c227c77da5077cb9c8cb03d54bede87045b4924baf52c11c8fc2c512b81c
7
- data.tar.gz: acb2e759fa33bbf36a1161f40ca0ffdf396812a6597366a518e06a9b78ae6212e2fb4077555a0b12d503d34d2adc29b2effa31c5918a370d0b2ad91ef552c18b
6
+ metadata.gz: 20a49d6ed7f51d50c9397e187ec1ebd5244b9ad3757008d7dadbdae866a2660d29b2cec4b55e39f1daea444ba3f2acec1a0d3a24217d5a0f4888ba932c7b259a
7
+ data.tar.gz: c11f641d5314e975bfd0cdfe7e25e5b21245645bec46649b7ffbe1c35dedeff94951a3984bb6dce9f99852e6c393f4a1e402489b1d7286466aacbe11991de8f4
data/CHANGELOG.md CHANGED
@@ -1,30 +1,4 @@
1
- # Changelog
1
+ **Full Changelog**: https://github.com/gjtorikian/tailwind_merge/compare/v0.3.0...v0.3.1
2
2
 
3
- ## [v0.1.3](https://github.com/gjtorikian/tailwind_merge/tree/v0.1.3) (2022-10-11)
4
3
 
5
- [Full Changelog](https://github.com/gjtorikian/tailwind_merge/compare/v0.1.2...v0.1.3)
6
4
 
7
- ## [v0.1.2](https://github.com/gjtorikian/tailwind_merge/tree/v0.1.2) (2022-10-11)
8
-
9
- [Full Changelog](https://github.com/gjtorikian/tailwind_merge/compare/v0.1.1...v0.1.2)
10
-
11
- ## [v0.1.1](https://github.com/gjtorikian/tailwind_merge/tree/v0.1.1) (2022-10-11)
12
-
13
- [Full Changelog](https://github.com/gjtorikian/tailwind_merge/compare/v0.1.0...v0.1.1)
14
-
15
- **Closed issues:**
16
-
17
- - Should arrays be supported? [\#1](https://github.com/gjtorikian/tailwind_merge/issues/1)
18
-
19
- **Merged pull requests:**
20
-
21
- - Fix h-min [\#3](https://github.com/gjtorikian/tailwind_merge/pull/3) ([gjtorikian](https://github.com/gjtorikian))
22
- - Fix example in README [\#2](https://github.com/gjtorikian/tailwind_merge/pull/2) ([marcoroth](https://github.com/marcoroth))
23
-
24
- ## [v0.1.0](https://github.com/gjtorikian/tailwind_merge/tree/v0.1.0) (2022-08-15)
25
-
26
- [Full Changelog](https://github.com/gjtorikian/tailwind_merge/compare/e748f00d53e86ece8ce2543735f3327cb30c1959...v0.1.0)
27
-
28
-
29
-
30
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
+ require "rubygems/package_task"
4
5
  require "rake/testtask"
5
6
 
6
7
  Rake::TestTask.new(:test) do |t|
@@ -12,3 +13,8 @@ end
12
13
  require "rubocop/rake_task"
13
14
 
14
15
  RuboCop::RakeTask.new
16
+
17
+ GEMSPEC = Bundler.load_gemspec("tailwind_merge.gemspec")
18
+ gem_path = Gem::PackageTask.new(GEMSPEC).define
19
+ desc "Package the ruby gem"
20
+ task "package" => [gem_path]
@@ -18,7 +18,7 @@ module TailwindMerge
18
18
 
19
19
  ARBITRARY_VALUE_REGEX = /^\[(.+)\]$/
20
20
  FRACTION_REGEX = %r{^\d+/\d+$}
21
- LENGTH_UNIT_REGEX = /\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/
21
+ LENGTH_UNIT_REGEX = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/
22
22
  TSHIRT_UNIT_REGEX = /^(\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)/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TailwindMerge
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-20 00:00:00.000000000 Z
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lru_redux
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description:
125
+ description:
126
126
  email:
127
127
  - gjtorikian@gmail.com
128
128
  executables: []
@@ -140,7 +140,6 @@ files:
140
140
  - lib/tailwind_merge/config.rb
141
141
  - lib/tailwind_merge/validators.rb
142
142
  - lib/tailwind_merge/version.rb
143
- - script/generate_changelog
144
143
  - tailwind_merge.gemspec
145
144
  homepage: https://www.github.com/gjtorikian/tailwind_merge
146
145
  licenses:
@@ -149,7 +148,7 @@ metadata:
149
148
  funding_uri: https://github.com/sponsors/gjtorikian/
150
149
  rubygems_mfa_required: 'true'
151
150
  homepage_uri: https://www.github.com/gjtorikian/tailwind_merge
152
- post_install_message:
151
+ post_install_message:
153
152
  rdoc_options: []
154
153
  require_paths:
155
154
  - lib
@@ -167,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
166
  - !ruby/object:Gem::Version
168
167
  version: '0'
169
168
  requirements: []
170
- rubygems_version: 3.3.22
171
- signing_key:
169
+ rubygems_version: 3.3.7
170
+ signing_key:
172
171
  specification_version: 4
173
172
  summary: Utility function to efficiently merge Tailwind CSS classes without style
174
173
  conflicts.
@@ -1,3 +0,0 @@
1
- #!/bin/sh
2
-
3
- CHANGELOG_GITHUB_TOKEN="$GH_TOKEN" github_changelog_generator -u gjtorikian -p tailwind_merge