cm_gem 0.1.2 → 0.1.3

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: a18574713788686aa280fcc0e86cfcc021fa0e884501f25fc6dff1ab2e5b2fc4
4
- data.tar.gz: c3bd9a6786f8b0eefc4f260ca8d06d03c79c42eb84f4116a98bbb8b0833745f5
3
+ metadata.gz: db2d95c20c5b00a5556ea457a1b7591f849eed952b402a98acd540f158801970
4
+ data.tar.gz: 41fed9b7a9985d24685bd8640348d8d61afe45a430a7c629adf0d6eaeeae3c10
5
5
  SHA512:
6
- metadata.gz: 3e773cdde68922038e01810a2824f76fcfd92e9e5e31733c8cb8599e06fa76cecd9c7f4d0f16ec33b9ce360f157bbf2d1330dafa8c6956f50471332630a54045
7
- data.tar.gz: 531f7e2657c4a908bbfdafd23ae5fd810d8f284fc5b563d38f130f47d265cc04b7a8e9d6a07a0a1ca298bda6649096171c43fc53b58a73a65bec8a2b6ac2f59d
6
+ metadata.gz: 9cf1310f3fa45f7c8351480970b3b555de37f7b2031b174aca6a6cb4d0b7eb69f2cbe2d9b05962f30d0ab7df84430707e495f1165cc24658790be0fd9430a598
7
+ data.tar.gz: 81f5b8c59a0df2c211c46b450994fdd6c0a4159e5f00fc0854059f0040b8b24552533e5bbff73e515aa3c93b8eecfdddea74361b663bda26473c74527ba62580
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # CmGem
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cm_gem`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
2
+ This gem is used for the data
6
3
 
7
4
  ## Installation
8
5
 
@@ -13,11 +10,11 @@ Install the gem and add to the application's Gemfile by executing:
13
10
  If bundler is not being used to manage dependencies, install the gem by executing:
14
11
 
15
12
  $ gem install cm_gem
16
-
13
+
17
14
 
18
15
  ## Usage
19
16
 
20
- TODO: Write usage instructions here
17
+
21
18
 
22
19
  ## Development
23
20
 
data/cm_gem-0.1.0.gem ADDED
Binary file
data/cm_gem-0.1.1.gem ADDED
Binary file
data/cm_gem-0.1.2.gem ADDED
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CmGem
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
data/lib/cm_gem.rb CHANGED
@@ -5,7 +5,7 @@ require_relative "cm_gem/version"
5
5
  module CmGem
6
6
  class Error < StandardError; end
7
7
  # Your code goes here...
8
- def printName
8
+ def print
9
9
  puts "hello from cm!!!"
10
10
  end
11
11
 
@@ -20,5 +20,25 @@ module CmGem
20
20
  def centerPad(chars,filler=" ")
21
21
  self.center(chars,filler)
22
22
  end
23
+
24
+ def emailValid(email)
25
+ if email.match?('[a-z0-9]+[_a-z0-9\.-]*[a-z0-9]+@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})')
26
+ puts 'matches!'
27
+ else
28
+ puts 'it doesn\'t match!'
29
+ end
30
+ end
31
+
32
+ def toUpper(name)
33
+ puts name.upcase
34
+ end
35
+
36
+ def toLower(name)
37
+ puts name.downcase
38
+ end
39
+
40
+ def capitalize(name)
41
+ puts name.capitalize()
42
+ end
23
43
  end
24
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nandhacm
@@ -80,10 +80,9 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.0'
83
- description: "learning how to create a own gem so i did this using this gem we can
84
- add the padding to tha string,\n string.leftPad(no_of_chars,filler_to_string)\n
85
- \ For Example: test.leftPad(10,'-') => 'test------'\n In the same way we can
86
- add right padding and center padding too.\n "
83
+ description: |-
84
+ This gem is used for the email validation and basic string operation like left padding, right padding, center padding,
85
+ to uppercase, to lower case and to capitalize
87
86
  email:
88
87
  - nanthakumar.balamurugan@codingmart.com
89
88
  executables: []
@@ -93,6 +92,9 @@ files:
93
92
  - Gemfile
94
93
  - README.md
95
94
  - Rakefile
95
+ - cm_gem-0.1.0.gem
96
+ - cm_gem-0.1.1.gem
97
+ - cm_gem-0.1.2.gem
96
98
  - lib/cm_gem.rb
97
99
  - lib/cm_gem/version.rb
98
100
  - sig/cm_gem.rbs