cinderella 0.2.15 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/bin/cinderella +11 -2
- data/bootstrap.sh +13 -22
- data/lib/cinderella.rb +6 -1
- data/lib/cinderella/version.rb +1 -1
- metadata +5 -5
data/.gitignore
CHANGED
data/bin/cinderella
CHANGED
@@ -10,7 +10,8 @@ ENV['EDITOR'] ||= 'vim'
|
|
10
10
|
ENV['FULLNAME'] ||= 'Marlon Brando'
|
11
11
|
|
12
12
|
config = {
|
13
|
-
:action
|
13
|
+
:action => 'install',
|
14
|
+
:unstable => false
|
14
15
|
}
|
15
16
|
|
16
17
|
optparse = OptionParser.new do |opts|
|
@@ -32,6 +33,10 @@ optparse = OptionParser.new do |opts|
|
|
32
33
|
opts.on( '-v', '--version', 'Display the cinderella version' ) do
|
33
34
|
config[:action] = 'version'
|
34
35
|
end
|
36
|
+
|
37
|
+
opts.on( '-u', '--unstable', 'Build from homebrew master branch instead of a stable sha1' ) do
|
38
|
+
config[:unstable] = true
|
39
|
+
end
|
35
40
|
end
|
36
41
|
|
37
42
|
optparse.parse!
|
@@ -42,7 +47,11 @@ when 'uninstall'
|
|
42
47
|
when 'version'
|
43
48
|
Cinderella::Runner.version
|
44
49
|
else
|
45
|
-
|
50
|
+
if config[:unstable]
|
51
|
+
Cinderella::Runner.run_unstable
|
52
|
+
else
|
53
|
+
Cinderella::Runner.run
|
54
|
+
end
|
46
55
|
end
|
47
56
|
|
48
57
|
# vim:ft=ruby
|
data/bootstrap.sh
CHANGED
@@ -12,8 +12,8 @@ fi
|
|
12
12
|
|
13
13
|
which gem | grep -q rvm
|
14
14
|
if [ $? -eq 0 ]; then
|
15
|
-
gem uninstall cinderella -aIx
|
16
|
-
gem install cinderella --no-rdoc --no-ri
|
15
|
+
gem uninstall cinderella -aIx >> ~/.cinderella/bootstrap.log 2>&1
|
16
|
+
gem install cinderella --no-rdoc --no-ri >> ~/.cinderella/bootstrap.log 2>&1
|
17
17
|
else
|
18
18
|
sudo gem uninstall cinderella -aIx >> ~/.cinderella/bootstrap.log 2>&1
|
19
19
|
sudo gem install cinderella --no-rdoc --no-ri >> ~/.cinderella/bootstrap.log 2>&1
|
@@ -22,25 +22,16 @@ fi
|
|
22
22
|
|
23
23
|
echo "Cinderella installed successfully"
|
24
24
|
|
25
|
-
|
26
|
-
hash -r
|
27
|
-
if [ -f ~/.cinderella.profile ]; then
|
28
|
-
source ~/.cinderella.profile
|
29
|
-
fi
|
30
|
-
cinderella
|
31
|
-
if [ "$?" -eq "0" ]; then
|
32
|
-
exit 0
|
33
|
-
fi
|
34
|
-
}
|
25
|
+
/usr/bin/cinderella
|
35
26
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
40
37
|
|
41
|
-
cat ~/.cinderella/bootstrap.log
|
42
|
-
echo ""
|
43
|
-
echo "Something went wrong with the install. :("
|
44
|
-
echo "Dump this log into a gist and link to me to it"
|
45
|
-
echo "http://github.com/atmos/cinderella/issues"
|
46
|
-
echo "Sorry it failed. :("
|
data/lib/cinderella.rb
CHANGED
@@ -14,6 +14,11 @@ module Cinderella
|
|
14
14
|
new.run
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.run_unstable
|
18
|
+
ENV['CINDERELLA_RELEASE'] = 'origin/master'
|
19
|
+
run
|
20
|
+
end
|
21
|
+
|
17
22
|
def self.uninstall
|
18
23
|
new.uninstall
|
19
24
|
end
|
@@ -72,7 +77,7 @@ module Cinderella
|
|
72
77
|
|
73
78
|
def sketchy_ruby?
|
74
79
|
case `which ruby`.chomp
|
75
|
-
when '/usr/bin/ruby', /#{ENV['HOME']}\/Developer/
|
80
|
+
when '/usr/bin/ruby', /#{ENV['HOME']}\/Developer/, /#{ENV['HOME']}\/\.rbenv/
|
76
81
|
false
|
77
82
|
else
|
78
83
|
true
|
data/lib/cinderella/version.rb
CHANGED
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
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: 2011-08-
|
18
|
+
date: 2011-08-26 00:00:00 +12:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|