wallpapers 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/config.yml +1 -1
- data/lib/wallpaper.rb +1 -2
- metadata +1 -1
data/lib/config.yml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
path:
|
1
|
+
path: 'patente'
|
data/lib/wallpaper.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
class Wallpaper
|
3
3
|
puts File.dirname(__FILE__)
|
4
|
-
puts "Opening #{@path}"
|
5
4
|
|
6
5
|
def self.get_path
|
7
6
|
config = YAML.load_file(File.dirname(__FILE__)+"/config.yml")
|
@@ -12,7 +11,7 @@ class Wallpaper
|
|
12
11
|
config = File.open(File.dirname(__FILE__)+"/config.yml",'w')
|
13
12
|
config.write "path: '#{path}'"
|
14
13
|
puts "Configuration file updated"
|
15
|
-
config.close
|
14
|
+
return config.close
|
16
15
|
end
|
17
16
|
|
18
17
|
def self.run
|