cipher_word 1.0.2 → 1.0.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 +4 -2
- data/Rakefile +6 -0
- data/cipher_word.gemspec +1 -0
- data/lib/cipher_word/version.rb +1 -1
- data/test/test_cipher_word.rb +18 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86f8cd352f9a16a82e5d6989314aaea1fe2750bc
|
4
|
+
data.tar.gz: 515172e204deb1d2c994d70854023d720220a611
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee625c290bad2475495409742f9c33f42100840930370ba2b5d3925c9f20f5980f97876263da1c9d4744fb7d8822b2e713c72f3f3bba53387bcc723aa6868ab7
|
7
|
+
data.tar.gz: 5e35b575945a8f24093378c943f95dbfa24b25633ce87c8bd86cb91a41a368869c7b73df2af49eda27091ec4a1966b0f5b8d4538b525fda8f34d4438441b560a
|
data/README.md
CHANGED
@@ -20,8 +20,10 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
24
|
-
|
23
|
+
```ruby
|
24
|
+
CipherWord.cipher 'yutainoue' => "zvubjopvf"
|
25
|
+
CipherWord.decoding 'zvubjopvf' => "yutainoue"
|
26
|
+
```
|
25
27
|
|
26
28
|
## Contributing
|
27
29
|
|
data/Rakefile
CHANGED
data/cipher_word.gemspec
CHANGED
data/lib/cipher_word/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'minitest/autorun'
|
3
|
+
require 'minitest/unit'
|
4
|
+
require_relative '../lib/cipher_word'
|
5
|
+
|
6
|
+
class TestCipherWord < MiniTest::Test
|
7
|
+
def test_cipher
|
8
|
+
assert_equal CipherWord.cipher('Jean Valjean'), 'Kfbo!Wbmkfbo'
|
9
|
+
assert_equal CipherWord.cipher('Bishop Myriel'), 'Cjtipq!Nzsjfm'
|
10
|
+
assert_equal CipherWord.cipher('Cosette'), 'Dptfuuf'
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_decoding
|
14
|
+
assert_equal CipherWord.decoding('Kfbo!Wbmkfbo'), 'Jean Valjean'
|
15
|
+
assert_equal CipherWord.decoding('Cjtipq!Nzsjfm'), 'Bishop Myriel'
|
16
|
+
assert_equal CipherWord.decoding('Dptfuuf'), 'Cosette'
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cipher_word
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yutainoue
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: For decryption and encryption of the word
|
42
56
|
email:
|
43
57
|
- yutainoue009@gmail.com
|
@@ -53,6 +67,7 @@ files:
|
|
53
67
|
- cipher_word.gemspec
|
54
68
|
- lib/cipher_word.rb
|
55
69
|
- lib/cipher_word/version.rb
|
70
|
+
- test/test_cipher_word.rb
|
56
71
|
homepage: https://github.com/yutainoue0077/cipher_word
|
57
72
|
licenses:
|
58
73
|
- MIT
|
@@ -77,4 +92,5 @@ rubygems_version: 2.4.1
|
|
77
92
|
signing_key:
|
78
93
|
specification_version: 4
|
79
94
|
summary: For decryption and encryption of the word
|
80
|
-
test_files:
|
95
|
+
test_files:
|
96
|
+
- test/test_cipher_word.rb
|