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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 732b5db47fe5763612ae67882027b95f371efdd429b169774cd164ab5d9eb020
4
- data.tar.gz: 44b13b57ca1900e64d3ac2852fa45578fa1649ba463717941454a84c9fbb5d74
3
+ metadata.gz: 30b94e2f68e4eff5dcf7ec768f0981eef3e3b2e7441b9b31fba1071b36ed9cc7
4
+ data.tar.gz: a4ec2b01fe3f3f9792dc775416a497d2223ee3546d0f8e3d477186bc50714459
5
5
  SHA512:
6
- metadata.gz: 8258edb229615490c1df31390b69657b19ab38f307f10be16626c091c4e006caeb57f4bb3d226bb429dc230eef55511b34a92f272cdf8235dfd67dba94b1c3a6
7
- data.tar.gz: 9da19eebb4bda1538282a96a1213b83f2a5991a027e7b1ad7f5f4440b41ee137365187ae95615d93896b346048c5abffa9c081547041b4a5a1e3b12e83a58c40
6
+ metadata.gz: c695b8cfa5b3f6fcaf1a544c6ae0dce8adc69ca118e86a00f0bd5ac5df75f582caa2beba4560c45f26b2e85446d868f464644a26da2378e7655c9167992de751
7
+ data.tar.gz: 46399973d76cfb7d15bd863e50c6185e62447624021b142f67fcd649d9099f96934881fd16fd9c2f26947e2c4c8ae5d64d096f91b3914aaf0751c2c0c04e271c
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
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 a given file or STDIN.
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'. no other chacacters will be changed, no
10
- one with diacritics such as 'š', nor symbols or (decimal) digits.
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
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section
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
- Install the gem and add to the application's Gemfile by executing:
33
+ $ gem install rot135
35
34
 
36
- $ bundle add rot135
35
+ When using _Bundler_, add the gem to your `Gemfile`:
37
36
 
38
- If bundler is not being used to manage dependencies, install the gem by executing:
37
+ $ bundle add rot135
39
38
 
40
- $ gem install rot135
39
+ Then run `bundle install`.
41
40
 
42
41
  ## Usage
43
42
 
44
- `rot135` takes a file name (or STDIN), reads it runs it through ROT13 and outputs the result to STDOUT.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rot135
4
- VERSION = '0.0.3'
4
+ VERSION = '1.0.0'
5
5
  end
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.3
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: 2024-07-14 00:00:00.000000000 Z
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.5.11
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: []