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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08ed1679c3c4d96a048c44abe9f407ca2a81797758cf4221a1cad5df260172cf'
4
- data.tar.gz: 4924b8f894edca36150020e059f0628dcebf785e7687f09aca6fcdf28efb9e55
3
+ metadata.gz: 59831a392381e823f82e8537a20146ac02286a8bd6ce9d6414c498f223e05ea2
4
+ data.tar.gz: 5303058532b983dcc83391d621657d223f49816a0f7aac7d4043831b200260d8
5
5
  SHA512:
6
- metadata.gz: eedfa1e2026326f0253ea6f58da4601034b677d26c4c683b3941021f2a5f75a2a4251b3d08869961fa5e728c7bc0357697aa6e1fc71060b97e4957ac2f5a0d38
7
- data.tar.gz: dd4d96920f2b09898998247f24efe2abdba74977ef150d3ff02bbe9ce57acfb5c51c44c554c5fe83b0d50b0f291cedaaa9f565f82ce3fd65a82a1bdd318415ac
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
16
+ gem install find_vowels
19
17
  ```
20
18
 
21
19
  ## Usage
22
-
23
- TODO: Write usage instructions here
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FindVowels
4
- VERSION = "0.1.0"
4
+ VERSION = '0.1.1'
5
5
  end
data/lib/find_vowels.rb CHANGED
@@ -9,5 +9,9 @@ module FindVowels
9
9
  def vowels
10
10
  scan(/[aeiou]/i)
11
11
  end
12
+
13
+ def uniq_vowels
14
+ scan(/[aeiou]/i).uniq
15
+ end
12
16
  end
13
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: find_vowels
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brajesh970