find_vowels 0.1.0 → 0.1.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 +12 -7
- data/lib/find_vowels/version.rb +1 -1
- data/lib/find_vowels.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59831a392381e823f82e8537a20146ac02286a8bd6ce9d6414c498f223e05ea2
|
|
4
|
+
data.tar.gz: 5303058532b983dcc83391d621657d223f49816a0f7aac7d4043831b200260d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68376c986e02ecae3ce18931f1ea512e8ce0b1bb4fad35dcae844bfd9424a35f19c7e5c2b6921d5a6fcba4cdcceccc803da709ad98feaaaa28e44f269017587b
|
|
7
|
+
data.tar.gz: abb68c730fe1973ad86e3b1368d67ce12e8624b630aa5e494d59a63926a90f5eb80211e5bccb6c5f773bd6f2870b5b2fa19eae4a5dc5a752363b26d66bb65a7d
|
data/README.md
CHANGED
|
@@ -4,24 +4,29 @@ Welcome to your new gem! In this directory, you'll find the files you need to be
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
|
8
|
-
|
|
9
7
|
Install the gem and add to the application's Gemfile by executing:
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
|
-
bundle add
|
|
10
|
+
bundle add find_vowels
|
|
13
11
|
```
|
|
14
12
|
|
|
15
13
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
16
14
|
|
|
17
15
|
```bash
|
|
18
|
-
gem install
|
|
16
|
+
gem install find_vowels
|
|
19
17
|
```
|
|
20
18
|
|
|
21
19
|
## Usage
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
TO use install it by adding it in gemfile like `gem "find_vowels"` , then run bundle install.
|
|
21
|
+
It is very simple to use. It returns the array of vowels present in the string.
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
sentance = "I am a ruby on rails developer"
|
|
25
|
+
vowels_list = sentance.vowels // returns array of vowels present in sentance
|
|
26
|
+
puts vowels_list // prints ['a', 'a', 'u', 'o', 'a', 'i', 'e', 'e', 'o', 'e']
|
|
27
|
+
uniq_list = sentance.uniq_vowels // returns array of uniq vowels present in sentance
|
|
28
|
+
puts vowels_list // prints ['a', 'u', 'o', 'i', 'e']
|
|
29
|
+
|
|
25
30
|
## Development
|
|
26
31
|
|
|
27
32
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/find_vowels/version.rb
CHANGED
data/lib/find_vowels.rb
CHANGED