my_precious 0.2.1 → 0.2.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.
- checksums.yaml +4 -4
- data/lib/my_precious.rb +3 -2
- data/lib/my_precious/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b42fe512e4f4eec4197af4eefff8830bc51313594214edd0c9347feb3bf2171
|
4
|
+
data.tar.gz: 91f29e4bc6c48fd5ae30c3d9435c9dcb56c26d7ab677e4088bda66c23ba5610d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2652dc971032d06a596da90cb8f4aa3c836a7789f348fc52e371c9be2a2562b5de9c516832020f3a609c531684e92a683dc9e2e474b0b773ce3f25f99a00eb0e
|
7
|
+
data.tar.gz: 49309db60d4699835dab7ab3b308198d2ebf5b7b3691229d48fd2c4684c123f5694d079bf343cf19e93c9aa8b6155c7146120a199deccf05886f86c0f2b83008
|
data/lib/my_precious.rb
CHANGED
@@ -7,13 +7,13 @@ module MyPrecious
|
|
7
7
|
# Your code goes here...
|
8
8
|
class CLI < Thor
|
9
9
|
|
10
|
-
desc '
|
10
|
+
desc 'forge file_name', 'creates a .precious file where users can write their LOTR code'
|
11
11
|
def forge(file_name)
|
12
12
|
file = File.open(file_name + '.precious', 'w')
|
13
13
|
puts "You have succesfully forged #{file_name}.precious"
|
14
14
|
end
|
15
15
|
|
16
|
-
desc '
|
16
|
+
desc 'bring_forth read file and writer file', 'parse a .precious read file and outputs the result to the writer file'
|
17
17
|
def bring_forth(reader_file_name, writer_file_name)
|
18
18
|
exts_are_valid = check_reader_and_writer_exts(reader_file_name, writer_file_name)
|
19
19
|
if exts_are_valid
|
@@ -24,6 +24,7 @@ module MyPrecious
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
+
desc 'destroy file name', 'if a .precious file already exists, it will be destroyed'
|
27
28
|
def destroy(file_name)
|
28
29
|
if File.exist?(file_name)
|
29
30
|
File.delete(file_name)
|
data/lib/my_precious/version.rb
CHANGED