shvets-scriptlandia 0.7.1 → 0.7.2

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.
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
- File.makedirs to_dir
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
- File::install(tmp, to_file, 0755, true)
86
- File::unlink(tmp)
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
- File::install(tmp, to_file, 0755, true)
105
- File::unlink(tmp)
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'scriptlandia'
5
- spec.version = '0.7.1'
5
+ spec.version = '0.7.2'
6
6
 
7
7
  spec.required_rubygems_version = Gem::Requirement.new(">= 0") if spec.respond_to? :required_rubygems_version=
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shvets-scriptlandia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets