agnostic_slugs 0.0.1 → 0.0.2
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/CHANGELOG.md +4 -0
- data/README.md +7 -5
- data/lib/agnostic_slugs/slug.rb +3 -0
- data/lib/agnostic_slugs/version.rb +1 -1
- data/spec/unit/slug_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a727c621171eafe0e9a81d34dc63c1e9f67b789f
|
4
|
+
data.tar.gz: ec13fdb7d13c83cab6ee103bafe46cb5ab453ca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efffd84b8efa869d40b9c39b9943cadb849640f1ae87b5a6801a00901ce27686ead42abc558ffbbfa2dccc523bd0dde8b2fab48a20a6c95a70651c7ac46eb3f2
|
7
|
+
data.tar.gz: a0c078d024f7766e67a4db03adcc853c988ce95571dd81857b3a3358ef72b638bec530e716a142aa69897dfea6e3c564bee339b2c40bb8587238064d00f9269e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# agnostic_slugs
|
2
2
|
|
3
3
|
agnostic_slugs is a simple slug generator that is agnostic.
|
4
4
|
|
@@ -17,13 +17,15 @@ gem 'agnostic_slugs'
|
|
17
17
|
|
18
18
|
## Usage
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
```ruby
|
21
|
+
slug = AgnosticSlugs::Slug.new('Look at my pretty new shoes! :)')
|
22
|
+
slug.to_s # => "look-at-my-pretty-new-shoes"
|
23
|
+
slug.next.to_s # => "look-at-my-pretty-new-shoes-2"
|
24
|
+
```
|
23
25
|
|
24
26
|
## Contributing
|
25
27
|
|
26
|
-
1. Fork it ( https://github.com/
|
28
|
+
1. Fork it ( https://github.com/lasseebert/agnostic_slugs/fork )
|
27
29
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
28
30
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
29
31
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/agnostic_slugs/slug.rb
CHANGED
data/spec/unit/slug_spec.rb
CHANGED