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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -0
  3. data/lib/class_name/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1448df3204bd9c543972ed141a9e7091d4faee5954b8c325f712b55a0541f7c3
4
- data.tar.gz: da239b43e8f807444e59b42c4224cdbb487b2ae66d0ff57eb03cc9011876f989
3
+ metadata.gz: 2f2f3106917b5c37626acf4d13bdbeacbe5de2500b4c2a42c159d791570d1d04
4
+ data.tar.gz: 2339d69416b6fb68ff2abf7b33cabafdfc584c01bbf8b05a3f7a131a5222cdeb
5
5
  SHA512:
6
- metadata.gz: e7e3ab29185c71986bba9429a7afb6959b61de50576c377b5aa805ca225a15420870b0de7a20acbb270f0139e1ee604923b8f76f90432e49230bd4e3eaedae50
7
- data.tar.gz: 2e2bb1579df100b9c0c5b0b51a5cacac11e0c9132754f06e1c849d555053eb57c3801806028fbdb583fec21ededdd1759e8834817aefe85df3650e6e6dd9f773
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
+ [![Gem Version](https://badge.fury.io/rb/class_name.svg)](https://badge.fury.io/rb/class_name)
3
6
  [![Build Status](https://travis-ci.com/invisiblehats/class_name.svg?branch=master)](https://travis-ci.com/invisiblehats/class_name)
4
7
  [![Code Climate](https://codeclimate.com/github/invisiblehats/class_name.svg)](https://codeclimate.com/github/invisiblehats/class_name)
5
8
  [![Inline docs](http://inch-ci.org/github/invisiblehats/class_name.svg)](http://inch-ci.org/github/invisiblehats/class_name)
6
9
  [![Security](https://hakiri.io/github/invisiblehats/class_name/master.svg)](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
@@ -1,3 +1,3 @@
1
1
  module ClassName
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
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.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.cominvisiblehats/class_name
98
+ homepage: https://github.com/invisiblehats/class_name
99
99
  licenses:
100
100
  - GNU General Public License v3.0
101
101
  metadata: