splashrc 1.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/splashrc-disable +2 -2
- data/bin/splashrc-enable +2 -2
- 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: 85b613ee7069a953e030253daf809cf783cc1176
|
4
|
+
data.tar.gz: c84ba5d9423705212d3c004a7d2cfc77cf2985b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69b09c0a4e59ce680772b40ed0362f47448666f608512ebbe10b9555948c9b8cf4a704c8ac91090c7567e16d0b22d45c184d0a54052cd920eb15bb6d3b1204d2
|
7
|
+
data.tar.gz: 27ca781fc1f3d724c11d39ba779e8040b3b6f149e41175ddb7ad37f09336e4e4556cfe1ed55613e26fa5c72cd437fe0b7eae4c248abcfc6bfc59fbdcfd4d1c0b
|
data/bin/splashrc-disable
CHANGED
@@ -9,12 +9,12 @@ end
|
|
9
9
|
|
10
10
|
File.exists?(loc)||(puts("#{loc} does not exist.");exit(1))
|
11
11
|
|
12
|
-
print "Deinstall
|
12
|
+
print "Deinstall splashrc for `#{loc}`? [Y/n]"
|
13
13
|
c = gets.chomp
|
14
14
|
|
15
15
|
if ["y",""].include? c.downcase
|
16
16
|
x = File.read(loc).split("\n")
|
17
|
-
x.delete_at(x.index(x.select{|i|i.match(/^
|
17
|
+
x.delete_at(x.index(x.select{|i|i.match(/^splashrc/)}[0]))
|
18
18
|
x = x.join("\n")
|
19
19
|
File.write(loc,x)
|
20
20
|
puts "Success!"
|
data/bin/splashrc-enable
CHANGED
@@ -9,12 +9,12 @@ end
|
|
9
9
|
|
10
10
|
File.exists?(loc)||(puts("#{loc} does not exist.");exit(1))
|
11
11
|
|
12
|
-
print "Install
|
12
|
+
print "Install splashrc for `#{loc}`? [Y/n]"
|
13
13
|
c = gets.chomp
|
14
14
|
|
15
15
|
if ["y",""].include? c.downcase
|
16
16
|
x = File.read(loc).split("\n")
|
17
|
-
x << %Q(
|
17
|
+
x << %Q(splashrc # THIS ALWAYS HAS TO BE THE LAST LINE)
|
18
18
|
x = x.join("\n")
|
19
19
|
File.write(loc,x)
|
20
20
|
puts "Success!"
|