rails_heroicon 2.1.1 → 2.2.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: 7b9a2761c7c044a6fb1f7d97d3f33233ddf259e5f62702e9409a971bb7438a6b
4
- data.tar.gz: 2f1005f8e18b0078b977fcc18bae937c95079c170927fca3f97be207b081a51f
3
+ metadata.gz: 8c0bd8a740668f82480020958025799d4478e08741db7d7a1547f0bada957629
4
+ data.tar.gz: c51da22b144b58994ab33c2c08438e9740a77498a05e34c70d8be3886bd13314
5
5
  SHA512:
6
- metadata.gz: 89c659dbb49e9a2a4ca7a4a908c53d2acd46aab4d8b87620663cdbbba5e41a9053f67d75124828bc12e27b2f1d767da8b7e24a8d5faa946e179344ef8221df15
7
- data.tar.gz: 2131418a83398c108a3e25ffe3b8e2b514513d329e3963a17e5d5da6f55468c2ca5da69f7b80ffde787f8fa94c210dd90bf515e11657490dc1e50942021af12d
6
+ metadata.gz: bb6b6c6b20bd62d0bc6a8b18d7b738aac53120aad084ed17956f381512da2ce9a8d8c871f879a60924ae1743df3e4604dce847ca34f4fa97960be21600fc203e
7
+ data.tar.gz: b10eba8f8d8bbe10b8fd0c5c3260dce142c15d979369e7af9512bf9cf748af0bc5fe8c4806018f774aed37399be90088fb0b66d8467a44e52a76ef9448ccda2f
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 abeidahmed
3
+ Copyright (c) 2023 abeidahmed
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  Ruby on Rails views helper for the awesome heroicons by Steve Schoger. To see
4
4
  all the icons visit [heroicons](https://heroicons.com/).
5
5
 
6
- 292 icons included as of today.
6
+ The latest version of this gem is built with heroicons
7
+ [v2.1.1](https://github.com/tailwindlabs/heroicons/releases/tag/v2.1.1) (288 icons).
7
8
 
8
9
  > This gem has no official affiliation with [Tailwind Labs](https://github.com/tailwindlabs),
9
10
  > yet.
@@ -37,6 +38,7 @@ This will generate the following html:
37
38
 
38
39
  ```html
39
40
  <svg
41
+ xmlns="http://www.w3.org/2000/svg"
40
42
  aria-hidden="true"
41
43
  width="24"
42
44
  height="24"
@@ -61,11 +63,11 @@ This will generate the following html:
61
63
  </svg>
62
64
  ```
63
65
 
64
- > Note: Indentation is for readibility purpose.
66
+ > Note: Indentation is for readability purpose.
65
67
 
66
68
  ### Variant
67
69
 
68
- `rails_heroicon` provides 3 variants, `outline`, `solid`, and `mini`, `outline` being
70
+ `rails_heroicon` provides 4 variants, `outline`, `solid`, `mini`, and `micro`, `outline` being
69
71
  the default.
70
72
 
71
73
  To change the variant `<%= heroicon "user", variant: "solid" %>`.
@@ -89,8 +91,9 @@ need to set the `size` attribute on the helper method.
89
91
  ```
90
92
 
91
93
  If the `variant` is set as `outline` or `solid`, `size` automatically defaults to `24`,
92
- and if the `variant` is set as `mini`, `size` automatically defaults to `20`.
93
- However, this can be over-written with the `size` attribute.
94
+ if the `variant` is set as `mini`, `size` automatically defaults to `20`, and if the `variant`
95
+ is set as `micro`, `size` automatically defaults to `16`. However, this can be over-written with
96
+ the `size` attribute.
94
97
 
95
98
  ### Accessibility
96
99
 
@@ -110,6 +113,11 @@ display a tooltip on hover.
110
113
  - Run `bundle install`, or run `./bin/setup`
111
114
  - Run `bundle exec rake` to run the tests to see if it passing
112
115
 
116
+ ## Publishing
117
+
118
+ - `gem build rails_heroicon.gemspec`
119
+ - `gem push rails_heroicon-x.x.x.gem`
120
+
113
121
  ## Contributing
114
122
 
115
123
  Bug reports and pull requests are welcome. This project is intended to be a