ruby-tm 0.0.3 → 0.0.4
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/bin/{ruby-tm → tm} +8 -9
- data/changelog.md +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea88df1f78a38e63fc1669efb6c4fe276786847a
|
4
|
+
data.tar.gz: e94e6e08dc6c1b881cc7c548ee0f48b811d2139e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db94ea7e09550ba38e530a326876d592c2162ab60f231fd76bd017e6a12b4792493fdf133138a1f48e88f9b3c591c785c994646e6a51bc4d9e7946c899a4fb8e
|
7
|
+
data.tar.gz: 2a1ba7fc2f51f99e44c28e55db5782d33c15b85ebce8fc971e41fdb66c3e70d076a28754eb04e17933acffe4a1aa1ece298b7a80feeaa01e7cfe25d873c35237
|
data/bin/{ruby-tm → tm}
RENAMED
@@ -113,13 +113,12 @@ class Instructions
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
-
if
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
116
|
+
if ARGV.empty?
|
117
|
+
puts "usage: tm <input_file> <input_tape> [-v]\nUse -v or generally any string containing v as the 3rd parameter for verbose mode.\n\nexample: tm reverse.tm something\ngnihtemos"
|
118
|
+
abort()
|
119
|
+
end
|
120
|
+
ins = Instructions.new(ARGV[0])
|
121
|
+
tape = Tape.new(ARGV[1])
|
122
|
+
ins.run(tape)
|
123
123
|
|
124
|
-
|
125
|
-
end
|
124
|
+
puts tape
|
data/changelog.md
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-tm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theodor Văraru
|
@@ -14,14 +14,14 @@ description: A turing machine interpreter packaged as a command line tool.
|
|
14
14
|
email:
|
15
15
|
- theo@tvararu.ro
|
16
16
|
executables:
|
17
|
-
-
|
17
|
+
- tm
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- license.txt
|
22
22
|
- readme.md
|
23
23
|
- changelog.md
|
24
|
-
- bin/
|
24
|
+
- bin/tm
|
25
25
|
homepage: http://github.com/tvararu/ruby-tm
|
26
26
|
licenses:
|
27
27
|
- license.txt
|