cinderella 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cinderella.rb +0 -17
- data/lib/cinderella/version.rb +1 -1
- metadata +18 -6
- data/bootstrap.sh +0 -37
data/lib/cinderella.rb
CHANGED
@@ -111,11 +111,6 @@ module Cinderella
|
|
111
111
|
warn "I've seen it work on leopard though..."
|
112
112
|
end
|
113
113
|
|
114
|
-
unless sane_xcode_version?
|
115
|
-
$stderr.puts "You need xcode for this to work :\\"
|
116
|
-
exit(1)
|
117
|
-
end
|
118
|
-
|
119
114
|
if sketchy_ruby?
|
120
115
|
warn "You have a pre-existing ruby install that might mess with installation"
|
121
116
|
warn "I'm going to continue anyway, *fingers crossed* ;)"
|
@@ -150,18 +145,6 @@ module Cinderella
|
|
150
145
|
MACOS_VERSION >= 10.6
|
151
146
|
end
|
152
147
|
|
153
|
-
def sane_xcode_version?
|
154
|
-
xcode_path = `/usr/bin/xcode-select -print-path`.chomp
|
155
|
-
if xcode_path.empty?
|
156
|
-
false
|
157
|
-
elsif `#{xcode_path}/usr/bin/llvm-gcc-4.2 -v 2>&1` =~ /LLVM build (\d{4,})/
|
158
|
-
if $1.to_i < RECOMMENDED_LLVM
|
159
|
-
warn "You should really upgrade your xcode install"
|
160
|
-
end
|
161
|
-
true
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
148
|
def warn(msg)
|
166
149
|
$stderr.puts msg
|
167
150
|
end
|
data/lib/cinderella/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinderella
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
9
|
+
- 5
|
10
|
+
version: 0.3.5
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Corey Donohoe
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2012-03-07 00:00:00 -08:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: lunchy
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ~>
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
- 4
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: chef
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - "="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 63
|
41
46
|
segments:
|
42
47
|
- 0
|
43
48
|
- 10
|
@@ -49,9 +54,11 @@ dependencies:
|
|
49
54
|
name: json
|
50
55
|
prerelease: false
|
51
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
52
58
|
requirements:
|
53
59
|
- - "="
|
54
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 7
|
55
62
|
segments:
|
56
63
|
- 1
|
57
64
|
- 5
|
@@ -63,9 +70,11 @@ dependencies:
|
|
63
70
|
name: rest-client
|
64
71
|
prerelease: false
|
65
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
66
74
|
requirements:
|
67
75
|
- - ~>
|
68
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 13
|
69
78
|
segments:
|
70
79
|
- 1
|
71
80
|
- 6
|
@@ -89,7 +98,6 @@ files:
|
|
89
98
|
- README.md
|
90
99
|
- Rakefile
|
91
100
|
- bin/cinderella
|
92
|
-
- bootstrap.sh
|
93
101
|
- cinderella.gemspec
|
94
102
|
- lib/cinderella.rb
|
95
103
|
- lib/cinderella/version.rb
|
@@ -103,23 +111,27 @@ rdoc_options: []
|
|
103
111
|
require_paths:
|
104
112
|
- lib
|
105
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
106
115
|
requirements:
|
107
116
|
- - ">="
|
108
117
|
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
109
119
|
segments:
|
110
120
|
- 0
|
111
121
|
version: "0"
|
112
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
113
124
|
requirements:
|
114
125
|
- - ">="
|
115
126
|
- !ruby/object:Gem::Version
|
127
|
+
hash: 3
|
116
128
|
segments:
|
117
129
|
- 0
|
118
130
|
version: "0"
|
119
131
|
requirements: []
|
120
132
|
|
121
133
|
rubyforge_project: cinderella
|
122
|
-
rubygems_version: 1.
|
134
|
+
rubygems_version: 1.6.2
|
123
135
|
signing_key:
|
124
136
|
specification_version: 3
|
125
137
|
summary: The development environment you never wanted to manage alone
|
data/bootstrap.sh
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
echo "Ensuring we have the latest version of cinderella installed"
|
2
|
-
echo "A first time install takes about 45 minutes on a modern machine"
|
3
|
-
|
4
|
-
mkdir -p ~/.cinderella
|
5
|
-
echo "Run started `date`" >> ~/.cinderella/bootstrap.log 2>&1
|
6
|
-
which ruby >> ~/.cinderella/bootstrap.log 2>&1
|
7
|
-
which gem >> ~/.cinderella/bootstrap.log 2>&1
|
8
|
-
|
9
|
-
if [ `gem --version` != "1.7.2" ]; then
|
10
|
-
echo "You need to upgrade rubygems to 1.7.2"
|
11
|
-
fi
|
12
|
-
|
13
|
-
which gem | grep -q rvm
|
14
|
-
if [ $? -eq 0 ]; then
|
15
|
-
gem uninstall cinderella -aIx >> ~/.cinderella/bootstrap.log 2>&1
|
16
|
-
gem install cinderella --no-rdoc --no-ri >> ~/.cinderella/bootstrap.log 2>&1
|
17
|
-
else
|
18
|
-
sudo gem uninstall cinderella -aIx >> ~/.cinderella/bootstrap.log 2>&1
|
19
|
-
sudo gem install cinderella --no-rdoc --no-ri >> ~/.cinderella/bootstrap.log 2>&1
|
20
|
-
sudo gem update >> ~/.cinderella/bootstrap.log 2>&1
|
21
|
-
fi
|
22
|
-
|
23
|
-
echo "Cinderella installed successfully"
|
24
|
-
|
25
|
-
/usr/bin/cinderella
|
26
|
-
|
27
|
-
if [ "$?" -eq "0" ]; then
|
28
|
-
exit 0
|
29
|
-
else
|
30
|
-
cat ~/.cinderella/bootstrap.log
|
31
|
-
echo ""
|
32
|
-
echo "Something went wrong with the install. :("
|
33
|
-
echo "Dump this log into a gist and link to me to it"
|
34
|
-
echo "http://github.com/atmos/cinderella/issues"
|
35
|
-
echo "Sorry it failed. :("
|
36
|
-
fi
|
37
|
-
|