ify 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -1
- data/lib/ify.rb +1 -1
- data/lib/ify/version.rb +1 -1
- data/spec/ify_spec.rb +9 -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: 4cb45e7c58ffc61f01c1b3edbc2937b23588086b
|
4
|
+
data.tar.gz: 2b2a8f380b2aa219c48d7f7a42ab5086dac72ee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1845a268413e4bb72f05134081a872b13500ac37fc0b4c88aac0f34ea79d88b46381757f9653315bdcbee19573c5d4f07bf2a47b1c4521cc485d0c25bc1ba27e
|
7
|
+
data.tar.gz: 4100a33cc342d274873e5f4153a6344282d7065b9c14a726c9b55f60c503e519929d8378631e0fb3c7e885e01b3dc923170b2bc8c922417be4dfbeb2a7b56973
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ify
|
2
2
|
|
3
|
-
|
3
|
+
Ify is a vowel aware ifyfier of dubious quality. Use it whenever you have an urgent need to turn a noun into a verb (before using it as a noun). Or need something pointless to demonstrate how gems are made.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,9 +18,27 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
+
Ify will ifyify a string
|
22
|
+
|
21
23
|
"string".ify
|
22
24
|
# => stingify
|
23
25
|
|
26
|
+
It's aware of trailing vowels and white spaces
|
27
|
+
|
28
|
+
"awesome".ify
|
29
|
+
# => "awesomify"
|
30
|
+
|
31
|
+
"spot ".ify
|
32
|
+
# => "spotify"
|
33
|
+
|
34
|
+
Yet it still plays well with small animals
|
35
|
+
|
36
|
+
"bee".ify
|
37
|
+
# => beeify
|
38
|
+
|
39
|
+
"fruit fly".ify
|
40
|
+
# => "fruit flyify"
|
41
|
+
|
24
42
|
## Contributing
|
25
43
|
|
26
44
|
1. Fork it
|
@@ -28,3 +46,7 @@ Or install it yourself as:
|
|
28
46
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
29
47
|
4. Push to the branch (`git push origin my-new-feature`)
|
30
48
|
5. Create new Pull Request
|
49
|
+
|
50
|
+
## WTF
|
51
|
+
|
52
|
+
Ify was inspired by this [equally pointless](https://github.com/KoryNunn/ify) (yet not nearly as well tested) effort.
|
data/lib/ify.rb
CHANGED
data/lib/ify/version.rb
CHANGED
data/spec/ify_spec.rb
CHANGED
@@ -9,4 +9,13 @@ describe "Ify" do
|
|
9
9
|
it "is vowel aware" do
|
10
10
|
"awesome".ify.must_equal "awesomify"
|
11
11
|
end
|
12
|
+
|
13
|
+
it "ignores trailing whitespace" do
|
14
|
+
"spot ".ify.must_equal "spotify"
|
15
|
+
end
|
16
|
+
|
17
|
+
it "plays well with small animals" do
|
18
|
+
"bee".ify.must_equal "beeify"
|
19
|
+
"fruit fly".ify.must_equal "fruit flyify"
|
20
|
+
end
|
12
21
|
end
|