cider 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 (4) hide show
  1. data/Rakefile +1 -1
  2. data/bin/cider +23 -0
  3. data/lib/cider.rb +1 -0
  4. metadata +10 -10
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems/specification'
3
3
  require 'bundler'
4
4
 
5
5
  GEM = "cider"
6
- GEM_VERSION = "0.1.2"
6
+ GEM_VERSION = "0.1.3"
7
7
  AUTHOR = "Corey Donohoe"
8
8
  EMAIL = "atmos@atmos.org"
9
9
  HOMEPAGE = "http://github.com/atmos/cider"
data/bin/cider CHANGED
@@ -10,6 +10,29 @@ ENV['EMAIL'] ||= 'noreploy@gmail.com'
10
10
  ENV['EDITOR'] ||= 'vim'
11
11
  ENV['FULLNAME'] ||= 'Marlon Brando'
12
12
 
13
+ RECOMMENDED_LLVM = 2206
14
+ MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.chomp
15
+ MACOS_VERSION = /(10\.\d+)(\.\d+)?/.match(MACOS_FULL_VERSION).captures.first.to_f
16
+
17
+ if MACOS_VERSION >= 10.6
18
+ begin
19
+ xcode_path = `/usr/bin/xcode-select -print-path`.chomp
20
+ return nil if xcode_path.empty?
21
+ if `#{xcode_path}/usr/bin/llvm-gcc-4.2 -v 2>&1` =~ /LLVM build (\d{4,})/
22
+ if $1.to_i < RECOMMENDED_LLVM
23
+ $stderr.puts "You should really upgrade your xcode install"
24
+ end
25
+ end
26
+ rescue
27
+ $stderr.puts "You need xcode for this to work :\\"
28
+ exit(1)
29
+ end
30
+ else
31
+ $stderr.puts "You should really upgrade to snow leopard"
32
+ $stderr.puts "Make sure you have xcode installed and cross your fingers"
33
+ $stderr.puts "I've seen it work on leopard though..."
34
+ end
35
+
13
36
  Cider::Runner.run
14
37
 
15
38
  # vim:ft=ruby
data/lib/cider.rb CHANGED
@@ -11,6 +11,7 @@ module Cider
11
11
  def run
12
12
  system("rm -rf ~/.cider")
13
13
  system("chef-solo -c #{config}")
14
+ exit($?)
14
15
  end
15
16
 
16
17
  def config
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cider
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Donohoe
@@ -15,11 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-23 00:00:00 -07:00
18
+ date: 2010-05-27 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ type: :runtime
22
23
  prerelease: false
24
+ name: chef
23
25
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
26
  none: false
25
27
  requirements:
@@ -32,10 +34,10 @@ dependencies:
32
34
  - 16
33
35
  version: 0.8.16
34
36
  requirement: *id001
35
- type: :runtime
36
- name: chef
37
37
  - !ruby/object:Gem::Dependency
38
+ type: :runtime
38
39
  prerelease: false
40
+ name: rvm
39
41
  version_requirements: &id002 !ruby/object:Gem::Requirement
40
42
  none: false
41
43
  requirements:
@@ -48,10 +50,10 @@ dependencies:
48
50
  - 32
49
51
  version: 0.1.32
50
52
  requirement: *id002
51
- type: :runtime
52
- name: rvm
53
53
  - !ruby/object:Gem::Dependency
54
+ type: :runtime
54
55
  prerelease: false
56
+ name: rest-client
55
57
  version_requirements: &id003 !ruby/object:Gem::Requirement
56
58
  none: false
57
59
  requirements:
@@ -64,8 +66,6 @@ dependencies:
64
66
  - 0
65
67
  version: 1.4.0
66
68
  requirement: *id003
67
- type: :runtime
68
- name: rest-client
69
69
  description: The development environment you never wanted to manage alone
70
70
  email: atmos@atmos.org
71
71
  executables: