six-launcher 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six/launcher-app.rb +14 -1
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-launcher'
15
- s.version = '0.1.2'
15
+ s.version = '0.1.3'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -9,7 +9,7 @@ require 'win32/process'
9
9
  class Setup
10
10
  RUBY = "tools/ruby/bin/ruby.exe"
11
11
  GEM = "tools/ruby/bin/gem"
12
- VERSION = "0.1.2"
12
+ VERSION = "0.1.3"
13
13
  #include Singleton
14
14
 
15
15
  BASE_PATH = if ENV['OCRA_EXECUTABLE']
@@ -37,6 +37,7 @@ class Setup
37
37
  RUBY_PATH = File.join(TOOL_PATH, 'ruby')
38
38
 
39
39
  def initialize(b = nil)
40
+ verify_admin
40
41
  Dir.chdir BASE_PATH
41
42
  options
42
43
  if b
@@ -49,6 +50,18 @@ class Setup
49
50
  end
50
51
  end
51
52
 
53
+ def verify_admin
54
+ begin
55
+ out = %x[whoami /groups]
56
+ unless out[/High Mandatory Level/]
57
+ puts "You are not running this application \"as Administrator\", exitting..."
58
+ sleep 10
59
+ Process.exit
60
+ end
61
+ rescue
62
+ end
63
+ end
64
+
52
65
  def rubycheck
53
66
  update_ruby unless File.exists?(File.join(RUBY_PATH, 'bin', 'ruby.exe'))
54
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ""
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-01 00:00:00 +01:00
12
+ date: 2009-11-05 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15