cinderella 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/bin/cinderella +8 -0
  3. metadata +4 -4
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems/specification'
3
3
  require 'bundler'
4
4
 
5
5
  GEM = "cinderella"
6
- GEM_VERSION = "0.2.1"
6
+ GEM_VERSION = "0.2.2"
7
7
  AUTHOR = "Corey Donohoe"
8
8
  EMAIL = "atmos@atmos.org"
9
9
  HOMEPAGE = "http://github.com/atmos/cinderella"
data/bin/cinderella CHANGED
@@ -2,6 +2,7 @@
2
2
  require "rubygems"
3
3
  require "cinderella"
4
4
  require "optparse"
5
+ require "etc"
5
6
 
6
7
  ENV['HOME'] ||= '/Users/bofh'
7
8
  ENV['USER'] ||= 'bofh'
@@ -13,6 +14,13 @@ RECOMMENDED_LLVM = 2206
13
14
  MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.chomp
14
15
  MACOS_VERSION = /(10\.\d+)(\.\d+)?/.match(MACOS_FULL_VERSION).captures.first.to_f
15
16
 
17
+ # stop people from running this as root
18
+ if Etc.getpwuid.uid == 0
19
+ $stderr.puts "#{$0} should not be run as root, try again as a normal user"
20
+ exit 1
21
+ end
22
+
23
+ # ensure we have a recent version of snow leopard/xcode
16
24
  if MACOS_VERSION >= 10.6
17
25
  begin
18
26
  xcode_path = `/usr/bin/xcode-select -print-path`.chomp
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinderella
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Donohoe
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-16 00:00:00 -07:00
18
+ date: 2010-10-06 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency