rotn 1.0.1 → 1.0.2

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +2 -2
  4. data/bin/rotn +10 -4
  5. metadata +1 -1
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90e66b6e33202754cfc1dac6f7f3bd2b4db93b40
4
- data.tar.gz: e75d7cceaa3b28ca1aa11f1dbccf5e0518f96952
3
+ metadata.gz: 7a2782ecb1e0f2682f428141edb6cd1cebcce5e0
4
+ data.tar.gz: 63bd459615f611b3b1b1075431f8388000fe2ad1
5
5
  SHA512:
6
- metadata.gz: a98363898f2bf1148f3b68ed9e213496ffc07398430731f96cd2ed31c00ae14a8b43f1287a1ac0de49dec8064aed72e4ba54001e5066cd62287065de9221a219
7
- data.tar.gz: 2be480554b6f183a1265ea94e6561ae2149988b452faa203d7a998fc3a9f2ee782b4dd228ac14fcbbf2f62913c2704a85dd94a75c2e910e609e1122f81f4b8bb
6
+ metadata.gz: 0d376b71dbbc7ced3c25cf8c962368066d32250157ee206e384a1cb01db1db105453e3d607d95cb52b243f7afce5c24e344f2a813778c5c751a4b06e13842308
7
+ data.tar.gz: 079ca1e1b41372474175662f0f9d79a96cfcac7fab2053a4a96dac39de4f04f1caaa5329d22b7f83b9f55aac9e15adc33882ae6491c628481a825bda2b7de6c7
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- 'iD�R�����V��4e
2
- C�MP���q���������d�W�>�ݟ!gge�Zw��~zd�=�yl�PE���~�h��Ti"���v&�m�*��5�9+yF��C��ʃH�Á��yL�M������lF�#pۻ����494Ptf[i&��Di����j��
1
+ p��[��,,$ro>�Jzz���
2
+ �]��G��V�%�i���&��s]x ������m^J@Tgc� =��`�p�0Kap�zǠP��Q
data/bin/rotn CHANGED
@@ -2,6 +2,12 @@
2
2
  require 'rotn'
3
3
  require 'optparse'
4
4
 
5
+ if ARGV.length == 0
6
+ puts "rotn: missing options"
7
+ puts "Try --help for more information"
8
+ exit
9
+ end
10
+
5
11
  options = {}
6
12
  OptionParser.new do |o|
7
13
  o.banner = "Missing operands.\nTry --help for more options."
@@ -46,11 +52,11 @@ a = options[:alphabetic].to_i
46
52
  n = options[:numeric].to_i
47
53
 
48
54
  if options.has_key? :decode
49
- str.unshift!({:a => a]}) if options.has_key? :alphabetic
50
- str.unshift!({:a => n]}) if options.has_key? :numeric
55
+ str.unshift!({:a => a}) if options.has_key? :alphabetic
56
+ str.unshift!({:a => n}) if options.has_key? :numeric
51
57
  else
52
- str.shift!({:a => options[:alphabetic]}) if options.has_key? :alphabetic
53
- str.shift!({:n => options[:numeric]}) if options.has_key? :numeric
58
+ str.shift!({:a => a}) if options.has_key? :alphabetic
59
+ str.shift!({:n => n}) if options.has_key? :numeric
54
60
  end
55
61
 
56
62
  puts str
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rotn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Black
metadata.gz.sig CHANGED
Binary file