the_string_to_slug 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -19
- data/lib/the_string_to_slug/version.rb +1 -1
- data/the_string_to_slug.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ff067dca67801d8f44f351e1fcc8102974f7ad7
|
4
|
+
data.tar.gz: 586080e354e6f54ded57d9396c88f293c5cf4c3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7125adaa27417b9f0be9996d0b381efe321f859cddc83339c60832dc5cfdca9a898232cc7b9ce083cd88783ec54db2a86e9483eca8cca2362ec99809c2c2b8d
|
7
|
+
data.tar.gz: ec8563b85c53e0e0ce99ab7f858eacfc2b74034d7e81be88c01af373f4eb404c5926126171ce9854d1d0ee44b05296e7f2630af6330435656d50da1b784975fe
|
data/README.md
CHANGED
@@ -1,29 +1,30 @@
|
|
1
|
-
|
1
|
+
### TheStringToSlug
|
2
2
|
|
3
|
-
|
3
|
+
Convert text string to slug param
|
4
4
|
|
5
|
-
|
5
|
+
Translite, downcase, parameterize
|
6
6
|
|
7
|
-
|
7
|
+
#### Install
|
8
8
|
|
9
|
-
|
9
|
+
```ruby
|
10
|
+
gem "the_string_to_slug", "~> 0.0.5"
|
11
|
+
```
|
10
12
|
|
11
|
-
|
13
|
+
<a href="http://rubygems.org/gems/the_string_to_slug">RubyGems/the_string_to_slug</a>
|
12
14
|
|
13
|
-
|
15
|
+
#### Using
|
14
16
|
|
15
|
-
|
17
|
+
```ruby
|
18
|
+
"Привет Мир! Hello world!".to_slug_param
|
19
|
+
# => "privet-mir-hello-world"
|
16
20
|
|
17
|
-
|
21
|
+
String.to_slug_param("Привет Мир! Hello world!")
|
22
|
+
# => "privet-mir-hello-world"
|
23
|
+
```
|
18
24
|
|
19
|
-
|
25
|
+
Be carefully with file extension
|
20
26
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
1. Fork it
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create new Pull Request
|
27
|
+
```ruby
|
28
|
+
"Документ.doc".to_slug_param
|
29
|
+
# => "dokument-doc"
|
30
|
+
```
|
data/the_string_to_slug.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["zykin-ilya@ya.ru"]
|
11
11
|
spec.description = %q{ Convert text string to slug param }
|
12
12
|
spec.summary = %q{ Translite, downcase, parameterize }
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/the-teacher/the_string_to_slug"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_string_to_slug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya N. Zykin
|
@@ -67,7 +67,7 @@ files:
|
|
67
67
|
- lib/the_string_to_slug.rb
|
68
68
|
- lib/the_string_to_slug/version.rb
|
69
69
|
- the_string_to_slug.gemspec
|
70
|
-
homepage:
|
70
|
+
homepage: https://github.com/the-teacher/the_string_to_slug
|
71
71
|
licenses:
|
72
72
|
- MIT
|
73
73
|
metadata: {}
|