ditto_code 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dittocode/parse.rb +3 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d45d548498e69ecad8d759e8aed1e3c17df6765e
|
4
|
+
data.tar.gz: 18c3ea1ca196d56fe0ccb2ad177cb0fac9bdedb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 065e4d4bb009ff1e516dbdd193334edbd303e411501d93a7675d79e9d0ca0949cb64d9a4273e79e118c20d2a802d9c3814864920f267c082f7fb1c877658034d
|
7
|
+
data.tar.gz: 35e6fc6473fee37d2bd84a0e9e34a39233bba9535bd57b8f9e6e70920244d2cccd4f84294924f9aa20d61e20c49b22d1cfeba974652fa8ca81d184e3b736b143
|
data/lib/dittocode/parse.rb
CHANGED
@@ -6,11 +6,6 @@ module DittoCode
|
|
6
6
|
require 'rainbow'
|
7
7
|
require 'rainbow/ext/string'
|
8
8
|
|
9
|
-
# Say hello ditto
|
10
|
-
def self.hi
|
11
|
-
say "Hi man! What's up?"
|
12
|
-
end
|
13
|
-
|
14
9
|
# Initialize the environment
|
15
10
|
def initialize(environment, override, verbose, indent)
|
16
11
|
@env = environment
|
@@ -106,7 +101,7 @@ module DittoCode
|
|
106
101
|
end
|
107
102
|
|
108
103
|
if @verbose || dittos != 0
|
109
|
-
say "#{dittos} lines ditted on #{@dir_name}#{@file_name}!
|
104
|
+
say "[ "+"OK".color("64d67f")+" ] #{dittos} lines ditted on #{@dir_name}#{@file_name}!"
|
110
105
|
end
|
111
106
|
|
112
107
|
closeFile(out_file)
|
@@ -114,9 +109,9 @@ module DittoCode
|
|
114
109
|
rescue => e
|
115
110
|
|
116
111
|
if e.class == Errno::EISDIR
|
117
|
-
say "[
|
112
|
+
say "[ "+"ERR".color("ed5757")+" ] If you wants to use a directory use the option -f"
|
118
113
|
else
|
119
|
-
say "[
|
114
|
+
say "[ "+"ERR".color("ed5757")+" ] Oh no! I have an error :("
|
120
115
|
end
|
121
116
|
|
122
117
|
if @verbose
|