rotn 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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +1 -3
  3. data.tar.gz.sig +0 -0
  4. data/bin/rotn +7 -10
  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: 7a2782ecb1e0f2682f428141edb6cd1cebcce5e0
4
- data.tar.gz: 63bd459615f611b3b1b1075431f8388000fe2ad1
3
+ metadata.gz: 79a0c34167fbbb653b044a0b2bea5166bd761d22
4
+ data.tar.gz: 142ab9cbbbccf120237f85c199b29092984ef758
5
5
  SHA512:
6
- metadata.gz: 0d376b71dbbc7ced3c25cf8c962368066d32250157ee206e384a1cb01db1db105453e3d607d95cb52b243f7afce5c24e344f2a813778c5c751a4b06e13842308
7
- data.tar.gz: 079ca1e1b41372474175662f0f9d79a96cfcac7fab2053a4a96dac39de4f04f1caaa5329d22b7f83b9f55aac9e15adc33882ae6491c628481a825bda2b7de6c7
6
+ metadata.gz: e2d7b8bc857cdc4aedd3a2b23e2f8a2f7d27c5d8bea664204768022c11bf8d6692fe1e5d89ab35913c4f58833cfe7ead1ce12a212997deade60d861b9b5b3a0e
7
+ data.tar.gz: 318a4b1efa9b2e98a55d500eb2393f6185d6dcfcaa218608e6b62fb49a7796b302b6fdf7bfe68edfbf0c74b3e07b31e59bbe8bbad15d1d0af257e97afb07684f
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- ��c���dق*i�����[�5��G��\pm��ށRӸ@+t��5s
2
- +��?���ݿ� P��������drhJ(��P�w��X`�N�<��m���p�<�x��*^֛w�I�Պvɞ��x����CC�;A2���� DU��k�� p�"1��Q
3
- znH@&���Ͷ���Y�Hf�"��9����.��b���GԮ�s��Oν4�;�oLp~F���.��Cuɰ ��]E�����U^b��.�x97FS��
1
+ v�|Pf�5'��./�$a��,��V! ���I��`�I)���Ȉ�O!�?M/���|���IGL\,��vq��@̼����K�S�����1T%��"E�/���X�q&������^.eS���TM4/�|���B��*4�&���|�|}��=�xB�2\���Ғٗ���%_��|P{fqA0�CS=Vv���>�΅��c��j�%8����� � �t��_ ���2D*� ��/g�G2�8�%���
data.tar.gz.sig CHANGED
Binary file
data/bin/rotn CHANGED
@@ -2,12 +2,6 @@
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
-
11
5
  options = {}
12
6
  OptionParser.new do |o|
13
7
  o.banner = "Missing operands.\nTry --help for more options."
@@ -33,6 +27,12 @@ OptionParser.new do |o|
33
27
  end
34
28
  end.parse!
35
29
 
30
+ if ARGV.length == 0
31
+ puts "rotn: missing options"
32
+ puts "Try --help for more information"
33
+ exit
34
+ end
35
+
36
36
  if options.has_key? :help
37
37
  puts "Usage: rotn -aNUMBER [-nNUMBER] STRING"
38
38
  puts " -a, --alphabetic=NUMBER\tSet the number to shift alphabetic symbols (a-zA-Z)."
@@ -43,10 +43,7 @@ if options.has_key? :help
43
43
  exit
44
44
  end
45
45
 
46
- str = ""
47
- (ARGV.length).times do |i|
48
- str += ARGV[i]
49
- end
46
+ str = ARGV.join(" ")
50
47
 
51
48
  a = options[:alphabetic].to_i
52
49
  n = options[:numeric].to_i
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Black
metadata.gz.sig CHANGED
Binary file