splashrc 1.1.3 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3da73e14990d15dada1af3a193b9ed7c5f223e57
4
- data.tar.gz: 7605743ebe9216567b6e93396edaa86d117806b2
3
+ metadata.gz: 1e2a17b96cd6465428d5f8db471f18ac8f1dbe52
4
+ data.tar.gz: 28f05604f09370afe4d9625ea8f79213aa5e9cb4
5
5
  SHA512:
6
- metadata.gz: 2eb6486ef0a0fca419bfcec81f0cd92f0c15487736a7e23b8518ded6e90b7247611a30189541bbda26e874ccd8c80c083f655a5cb708e807c84ba12e3184faa7
7
- data.tar.gz: 62804f5d42b936a0df9f96937baa05dcc45eea2de21ce7aafb38c72b5553ca2e423247184e6e4858b4af2507185eb6a3f33deeb09dfa9e13014311dfeebec8ad
6
+ metadata.gz: 5e1fdc819e57253a5ddfd5782964ff5bf1c77121f1d09b10d1bdb14f068784ece2fb70e5e74fbb2c15b9077aeaa02d89e9df317de216ff771e8f34898285541c
7
+ data.tar.gz: 2e2a871b7948f914f0ab9fa28e07d458a8f711a8c9ada9b0960d73202f1541272cab0cb7daa39d1db04c0dc662e78fe28ff0c953539027f591a1e43f86de4516
data/bin/splashrc CHANGED
@@ -90,6 +90,7 @@ add = [
90
90
 
91
91
  res_determined||add.delete_at(add.index(add.select{|i|i.match(/^Resolution:/)}[0]))
92
92
 
93
+ puts `clear`
93
94
  $rc.each_with_index{ |i,ind| $rc[ind] = colors[ind].gsub("%s",$rc[ind]).gsub("|"," ").concat("\e[1;36m").concat(add[ind]).concat("\e[39m").gsub("*w*","\e[37m").gsub("*c*","\e[1;36m").gsub("*r*","\e[0;31m") }
94
95
  at_exit{puts "\e[0;39m"}
95
96
 
data/bin/splashrc-disable CHANGED
@@ -14,8 +14,10 @@ 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(/^splashrc/)}[0]))
18
- x = x.join("\n")
19
- File.write(loc,x)
17
+ unless x.select{|i|i.match(/^splashrc/)}.length==0
18
+ x.delete_at(x.index(x.select{|i|i.match(/^splashrc/)}[0]))
19
+ x = x.join("\n")
20
+ File.write(loc,x)
21
+ end
20
22
  puts "Success!"
21
23
  end
data/bin/splashrc-enable CHANGED
@@ -14,8 +14,10 @@ c = gets.chomp
14
14
 
15
15
  if ["y",""].include? c.downcase
16
16
  x = File.read(loc).split("\n")
17
- x << %Q(splashrc # THIS ALWAYS HAS TO BE THE LAST LINE)
18
- x = x.join("\n")
19
- File.write(loc,x)
17
+ if x.select{|i|i.match(/^splashrc/)}.length==0
18
+ x << %Q(splashrc # THIS ALWAYS HAS TO BE THE LAST LINE)
19
+ x = x.join("\n")
20
+ File.write(loc,x)
21
+ end
20
22
  puts "Success!"
21
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splashrc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sesshomariu