cm_gem 0.1.0 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b755f391b914613e607463a502f923770baab305ed213a36e2216fcdc58ca77
4
- data.tar.gz: 17fa1454126124df1866cc188ac8a191a9e6ca76997ab55875fba80d7bcf56e3
3
+ metadata.gz: db2d95c20c5b00a5556ea457a1b7591f849eed952b402a98acd540f158801970
4
+ data.tar.gz: 41fed9b7a9985d24685bd8640348d8d61afe45a430a7c629adf0d6eaeeae3c10
5
5
  SHA512:
6
- metadata.gz: af89197b19192baa4229f3f2a9b4e0e4a5df7c5fd9b81b4d3d2c67dfb8a8f3aeed2be390cab9bd53bacc61f69831fb651875634b38fa7b6b045246c11dca5fc0
7
- data.tar.gz: fae7304477220c0a928643804f0f803f7f352ce47c9f6860f754964e0e8495231d236c0827a4d79726d20b410f0ca8bf00babba77bf2ae30d9dd87c52482df31
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
 
@@ -14,9 +11,10 @@ If bundler is not being used to manage dependencies, install the gem by executin
14
11
 
15
12
  $ gem install cm_gem
16
13
 
14
+
17
15
  ## Usage
18
16
 
19
- TODO: Write usage instructions here
17
+
20
18
 
21
19
  ## Development
22
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.0"
4
+ VERSION = "0.1.3"
5
5
  end
data/lib/cm_gem.rb CHANGED
@@ -5,7 +5,40 @@ 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
+
12
+ def leftPad(chars,filler=" ")
13
+ self.rjust(chars,filler)
14
+ end
15
+
16
+ def rightPad(chars,filler=" ")
17
+ self.ljust(chars,filler)
18
+ end
19
+
20
+ def centerPad(chars,filler=" ")
21
+ self.center(chars,filler)
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
11
43
  end
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.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nandhacm
@@ -80,7 +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
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
84
86
  email:
85
87
  - nanthakumar.balamurugan@codingmart.com
86
88
  executables: []
@@ -90,6 +92,9 @@ files:
90
92
  - Gemfile
91
93
  - README.md
92
94
  - Rakefile
95
+ - cm_gem-0.1.0.gem
96
+ - cm_gem-0.1.1.gem
97
+ - cm_gem-0.1.2.gem
93
98
  - lib/cm_gem.rb
94
99
  - lib/cm_gem/version.rb
95
100
  - sig/cm_gem.rbs