shvets-scriptlandia 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/examples.zip +0 -0
- data/lib/configurer.rb +6 -6
- data/scriptlandia-r.gemspec +1 -1
- metadata +1 -1
data/examples.zip
CHANGED
Binary file
|
data/lib/configurer.rb
CHANGED
@@ -19,7 +19,7 @@ module Scriptlandia
|
|
19
19
|
|
20
20
|
settings = YAML::load File.open($my_libdir + "/../settings.yaml")
|
21
21
|
|
22
|
-
install_file("bin/sl.bat", $my_bindir, "sl.bat", settings) if CONFIG['host_os'] =~ /mswin/
|
22
|
+
install_file(File.dirname(__FILE__) + "/../bin/sl.bat", $my_bindir, "/sl.bat", settings) if CONFIG['host_os'] =~ /mswin/
|
23
23
|
|
24
24
|
install_file_with_header($my_gem_path + "/bin/sl", $my_gem_path + "/bin/sl", settings)
|
25
25
|
end
|
@@ -69,7 +69,7 @@ module Scriptlandia
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def install_file from_file, to_dir, to_file, settings
|
72
|
-
|
72
|
+
FileUtils.makedirs to_dir
|
73
73
|
|
74
74
|
#File::install(from_file, File.join(to_dir, to_file), 0755, true)
|
75
75
|
|
@@ -82,8 +82,8 @@ module Scriptlandia
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
|
86
|
-
|
85
|
+
FileUtils::install(tmp, to_file, :mode => 0755, :verbose => true)
|
86
|
+
FileUtils::safe_unlink(tmp)
|
87
87
|
end
|
88
88
|
|
89
89
|
def install_file_with_header(from_file, to_file, settings)
|
@@ -101,8 +101,8 @@ module Scriptlandia
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
-
|
105
|
-
|
104
|
+
FileUtils::install(tmp, to_file, :mode => 0755, :verbose => true)
|
105
|
+
FileUtils::safe_unlink(tmp)
|
106
106
|
end
|
107
107
|
|
108
108
|
def install_settings from_file, to_file
|
data/scriptlandia-r.gemspec
CHANGED