rot19 1.1.0 → 1.2.0
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/lib/rot19.rb +11 -23
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66af58553d6925ba9bf9a17465a8f9caaa46cf2e
|
4
|
+
data.tar.gz: e8634a915a9374f7b0a66eb0d79980410f9752b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89bb0565647b86d37cc2dcc4a5631d4b1269d6a0f19c09da4546913359d711a338cb20d36491910a51bf96cb37d3845d1b9d69f4b7484d434c58a3efec984907
|
7
|
+
data.tar.gz: 6cef119a844e3d15d0ef708aa3b1652708b46c7439e20214759d78fb3df334d7ff735ce00c9038130d5cfd7b80ad551298c55648ced2dffa4b219c9f9ecc2218
|
data/lib/rot19.rb
CHANGED
@@ -1,24 +1,12 @@
|
|
1
|
-
class
|
2
|
-
def self.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
def encrypt(string)
|
9
|
-
string.tr(@decrypt, @encrypt)
|
10
|
-
end
|
11
|
-
|
12
|
-
def decrypt(string)
|
13
|
-
string.tr(@encrypt, @decrypt)
|
14
|
-
end
|
1
|
+
class Hola
|
2
|
+
def self.hi(alphabet = ('a'..'z'))
|
3
|
+
alphabet.each_byte do |c|
|
4
|
+
puts c
|
5
|
+
end
|
6
|
+
end
|
15
7
|
end
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
# printf "Original Password is => "
|
22
|
-
# puts list
|
23
|
-
# printf "rot19 encryption password is => "
|
24
|
-
# puts convert_text
|
8
|
+
puts "Enter the String"
|
9
|
+
list = gets
|
10
|
+
convert_string = Hola.new.hi(list)
|
11
|
+
printf "Converted Password is => "
|
12
|
+
puts list
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rot19
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandeep Chourey
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2015-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: A simple gem
|
13
|
+
description: A simple rot19 gem
|
14
14
|
email: schourey1988@gmail.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
@@ -40,5 +40,5 @@ rubyforge_project:
|
|
40
40
|
rubygems_version: 2.4.3
|
41
41
|
signing_key:
|
42
42
|
specification_version: 4
|
43
|
-
summary:
|
43
|
+
summary: rot19!
|
44
44
|
test_files: []
|