rot135 0.0.3 → 1.0.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/.rubocop.yml +4 -1
- data/README.md +11 -15
- data/Rakefile +1 -1
- data/lib/rot135/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30b94e2f68e4eff5dcf7ec768f0981eef3e3b2e7441b9b31fba1071b36ed9cc7
|
4
|
+
data.tar.gz: a4ec2b01fe3f3f9792dc775416a497d2223ee3546d0f8e3d477186bc50714459
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c695b8cfa5b3f6fcaf1a544c6ae0dce8adc69ca118e86a00f0bd5ac5df75f582caa2beba4560c45f26b2e85446d868f464644a26da2378e7655c9167992de751
|
7
|
+
data.tar.gz: 46399973d76cfb7d15bd863e50c6185e62447624021b142f67fcd649d9099f96934881fd16fd9c2f26947e2c4c8ae5d64d096f91b3914aaf0751c2c0c04e271c
|
data/.rubocop.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
plugins:
|
2
2
|
- rubocop-rake
|
3
3
|
- rubocop-minitest
|
4
4
|
|
@@ -23,5 +23,8 @@ Style/FrozenStringLiteralComment:
|
|
23
23
|
Naming/MethodParameterName:
|
24
24
|
MinNameLength: 2
|
25
25
|
|
26
|
+
Naming/VariableNumber:
|
27
|
+
EnforcedStyle: normalcase
|
28
|
+
|
26
29
|
Metrics/MethodLength:
|
27
30
|
Max: 20
|
data/README.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
# Rot135
|
6
6
|
|
7
|
-
A small tool to apply [ROT13](https://wikipedia.org/wiki/ROT13) to
|
7
|
+
A small tool to apply [ROT13](https://wikipedia.org/wiki/ROT13) to STDIN.
|
8
8
|
|
9
|
-
It 'encrypts' texts by applying `ROT13` to the characters 'a'-'z' and 'A'-'Z'.
|
10
|
-
|
9
|
+
It 'encrypts' texts by applying `ROT13` to the characters 'a'-'z' and 'A'-'Z'. No other characters will be changed, neither
|
10
|
+
those with diacritics such as 'š', nor symbols or (decimal) digits.
|
11
11
|
|
12
12
|
You _can_ use the command option -5 or --five (hyphen five) to transform decimal digits in a similar way. i.e.
|
13
13
|
transforming using the following table
|
@@ -28,27 +28,23 @@ transforming using the following table
|
|
28
28
|
|
29
29
|
## Installation
|
30
30
|
|
31
|
-
|
32
|
-
with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
31
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
33
32
|
|
34
|
-
|
33
|
+
$ gem install rot135
|
35
34
|
|
36
|
-
|
35
|
+
When using _Bundler_, add the gem to your `Gemfile`:
|
37
36
|
|
38
|
-
|
37
|
+
$ bundle add rot135
|
39
38
|
|
40
|
-
|
39
|
+
Then run `bundle install`.
|
41
40
|
|
42
41
|
## Usage
|
43
42
|
|
44
|
-
`rot135`
|
45
|
-
|
46
|
-
* Use the command line option `-5` or --five` to convert digital digits instead of alphabetical letters.
|
47
|
-
* Use `-b` or `--both` to apply both transformations.
|
43
|
+
`rot135` reads its input form `STDIN`, runs it through ROT13 and writes the result to STDOUT.
|
48
44
|
|
49
45
|
```bash
|
50
|
-
> echo 'Hello World!' | rot135
|
51
|
-
|
46
|
+
> echo 'Hello World!' | rot135
|
47
|
+
Uryyb Jbeyq!
|
52
48
|
```
|
53
49
|
|
54
50
|
|
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ require 'cucumber'
|
|
7
7
|
require 'cucumber/rake/task'
|
8
8
|
|
9
9
|
Cucumber::Rake::Task.new do |t|
|
10
|
-
t.cucumber_opts = '--format pretty --color' # Any valid command line option can go here.
|
10
|
+
t.cucumber_opts = ['--format pretty', '--color'] # Any valid command line option can go here.
|
11
11
|
end
|
12
12
|
|
13
13
|
Minitest::TestTask.create
|
data/lib/rot135/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rot135
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephan Kämper
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: mutex_m
|
@@ -66,7 +65,6 @@ metadata:
|
|
66
65
|
source_code_uri: https://github.com/s2k/rot135
|
67
66
|
changelog_uri: https://github.com/s2k/rot135/commits/main/
|
68
67
|
rubygems_mfa_required: 'true'
|
69
|
-
post_install_message:
|
70
68
|
rdoc_options: []
|
71
69
|
require_paths:
|
72
70
|
- lib
|
@@ -81,8 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
79
|
- !ruby/object:Gem::Version
|
82
80
|
version: '0'
|
83
81
|
requirements: []
|
84
|
-
rubygems_version: 3.
|
85
|
-
signing_key:
|
82
|
+
rubygems_version: 3.7.1
|
86
83
|
specification_version: 4
|
87
84
|
summary: A ROT13 (and ROT5 for decimal digits) mini tool
|
88
85
|
test_files: []
|