sunshine 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,18 @@
1
- === 1.0.0 / 2010-03-26
1
+ === 1.0.2 / 2010-03-25
2
+
3
+ * Bugfixes:
4
+
5
+ * Fixed apache passenger dependency to run as sudo.
6
+
7
+ * Fixed a bug in Repo::detect
8
+
9
+ === 1.0.1 / 2010-03-25
10
+
11
+ * Bugfixes:
12
+
13
+ * Added json dependency
14
+
15
+ === 1.0.0 / 2010-03-25
2
16
 
3
17
  * Improvements:
4
18
 
data/lib/sunshine.rb CHANGED
@@ -74,7 +74,7 @@ module Sunshine
74
74
 
75
75
  ##
76
76
  # Sunshine version.
77
- VERSION = '1.0.1'
77
+ VERSION = '1.0.2'
78
78
 
79
79
 
80
80
  ##
@@ -97,7 +97,9 @@ Sunshine.dependencies.instance_eval do
97
97
  dependency 'passenger-apache' do
98
98
  requires 'passenger', 'apache2'
99
99
 
100
- install 'passenger-install-apache2-module --auto'
100
+ install do |shell, sudo|
101
+ shell.call 'passenger-install-apache2-module --auto', :sudo => true
102
+ end
101
103
 
102
104
  check do |shell, sudo|
103
105
  passenger_dir = Server.passenger_root shell
data/lib/sunshine/repo.rb CHANGED
@@ -37,11 +37,11 @@ module Sunshine
37
37
 
38
38
  def self.detect path=".", shell=nil
39
39
 
40
- if SvnRepo.valid? path, shell
40
+ if SvnRepo.valid? path
41
41
  info = SvnRepo.get_info path, shell
42
42
  SvnRepo.new info[:url], info
43
43
 
44
- elsif GitRepo.valid? path, shell
44
+ elsif GitRepo.valid? path
45
45
  info = GitRepo.get_info path, shell
46
46
  GitRepo.new info[:url], info
47
47
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeremie Castagna