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 +4 -4
- data/README.md +3 -6
- data/cm_gem-0.1.0.gem +0 -0
- data/cm_gem-0.1.1.gem +0 -0
- data/cm_gem-0.1.2.gem +0 -0
- data/lib/cm_gem/version.rb +1 -1
- data/lib/cm_gem.rb +21 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db2d95c20c5b00a5556ea457a1b7591f849eed952b402a98acd540f158801970
|
4
|
+
data.tar.gz: 41fed9b7a9985d24685bd8640348d8d61afe45a430a7c629adf0d6eaeeae3c10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/cm_gem/version.rb
CHANGED
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
|
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.
|
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:
|
84
|
-
|
85
|
-
|
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
|