class_name 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -0
- data/lib/class_name/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f2f3106917b5c37626acf4d13bdbeacbe5de2500b4c2a42c159d791570d1d04
|
4
|
+
data.tar.gz: 2339d69416b6fb68ff2abf7b33cabafdfc584c01bbf8b05a3f7a131a5222cdeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 202f9a1889a62e8714c65f672cc588c021b7c126192d4138efb7bf51c8e190a364a8ac937515dc897df010744600c41bc4b88b3601d519db1863f449bca803fe
|
7
|
+
data.tar.gz: '09c2193e237812ea75ab4d881abfb020f3bad6785bb2cc95244e223b3c3982f334dfd52fe9d51e213f2a56c9fad4dedb9ce6fb82a311d2e5e580a2ef0f646815'
|
data/README.md
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
# class_name
|
2
2
|
|
3
|
+
---
|
4
|
+
|
5
|
+
[](https://badge.fury.io/rb/class_name)
|
3
6
|
[](https://travis-ci.com/invisiblehats/class_name)
|
4
7
|
[](https://codeclimate.com/github/invisiblehats/class_name)
|
5
8
|
[](http://inch-ci.org/github/invisiblehats/class_name)
|
6
9
|
[](https://hakiri.io/github/invisiblehats/class_name/master)
|
7
10
|
|
11
|
+
---
|
12
|
+
|
8
13
|
A ruby implementation of Node's [classnames](https://www.npmjs.com/package/classnames) package.
|
9
14
|
|
10
15
|
## Installation
|
@@ -25,6 +30,19 @@ Or install it yourself as:
|
|
25
30
|
|
26
31
|
## Usage
|
27
32
|
|
33
|
+
You can use this in any ruby environment. Test it out in your terminal:
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
require 'class_name'
|
37
|
+
|
38
|
+
include ClassName
|
39
|
+
|
40
|
+
class_name("ui card", { fluid: false, flexbox: true, float: false }, ["blue", "inverted"])
|
41
|
+
# "ui card flexbox blue inverted"
|
42
|
+
```
|
43
|
+
|
44
|
+
### Rails
|
45
|
+
|
28
46
|
Add this line to `ApplicationHelper`:
|
29
47
|
```ruby
|
30
48
|
module ApplicationHelper
|
data/lib/class_name/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: class_name
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myk Klemme
|
@@ -95,7 +95,7 @@ files:
|
|
95
95
|
- lib/class_name/number_converter.rb
|
96
96
|
- lib/class_name/railtie.rb
|
97
97
|
- lib/class_name/version.rb
|
98
|
-
homepage: https://github.
|
98
|
+
homepage: https://github.com/invisiblehats/class_name
|
99
99
|
licenses:
|
100
100
|
- GNU General Public License v3.0
|
101
101
|
metadata:
|