sprout 0.7.210 → 0.7.211
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.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/lib/sprout/version.rb +1 -1
- data/rakefile.rb +56 -8
- metadata +1 -1
data/lib/sprout/version.rb
CHANGED
data/rakefile.rb
CHANGED
@@ -32,7 +32,7 @@ PKG_LIST.each do |file|
|
|
32
32
|
task :package => file
|
33
33
|
end
|
34
34
|
|
35
|
-
|
35
|
+
def apply_shared_spec(s)
|
36
36
|
s.summary = SUMMARY
|
37
37
|
s.description = DESCRIPTION
|
38
38
|
s.name = NAME
|
@@ -58,15 +58,48 @@ spec = Gem::Specification.new do |s|
|
|
58
58
|
s.add_dependency('rubigen', '= 1.3.3')
|
59
59
|
s.add_dependency('net-sftp')
|
60
60
|
s.add_dependency('net-ssh')
|
61
|
-
|
62
|
-
if(RUBY_PLATFORM.match('mswin'))
|
63
|
-
s.add_dependency('win32-open3', '0.2.5')
|
64
|
-
else
|
65
|
-
s.add_dependency('open4', '>= 0.9.6')
|
66
|
-
end
|
67
61
|
end
|
68
62
|
|
69
|
-
|
63
|
+
osx_spec = Gem::Specification.new do |s|
|
64
|
+
apply_shared_spec(s)
|
65
|
+
s.platform = 'darwin'
|
66
|
+
# Add osx-specific dependencies here
|
67
|
+
|
68
|
+
# Can't really depend on rb-appscript b/c this requires OS X dev-tool disk
|
69
|
+
#s.add_dependency('rb-appscript', '>= 0.5.0')
|
70
|
+
s.add_dependency('open4', '>= 0.9.6')
|
71
|
+
end
|
72
|
+
|
73
|
+
nix_spec = Gem::Specification.new do |s|
|
74
|
+
apply_shared_spec(s)
|
75
|
+
s.platform = 'x86-linux'
|
76
|
+
# Add nix-specific dependencies here
|
77
|
+
s.add_dependency('open4', '>= 0.9.6')
|
78
|
+
end
|
79
|
+
|
80
|
+
win_spec = Gem::Specification.new do |s|
|
81
|
+
apply_shared_spec(s)
|
82
|
+
s.platform = 'mswin32'
|
83
|
+
# Add win-specific dependencies here
|
84
|
+
s.add_dependency('win32-open3', '0.2.5')
|
85
|
+
end
|
86
|
+
|
87
|
+
ruby_spec = Gem::Specification.new do |s|
|
88
|
+
apply_shared_spec(s)
|
89
|
+
s.platform = Gem::Platform::RUBY
|
90
|
+
s.add_dependency('open4', '>= 0.9.6')
|
91
|
+
end
|
92
|
+
|
93
|
+
Rake::GemPackageTask.new(osx_spec) do |pkg|
|
94
|
+
end
|
95
|
+
|
96
|
+
Rake::GemPackageTask.new(nix_spec) do |pkg|
|
97
|
+
end
|
98
|
+
|
99
|
+
Rake::GemPackageTask.new(win_spec) do |pkg|
|
100
|
+
end
|
101
|
+
|
102
|
+
Rake::GemPackageTask.new(ruby_spec) do |pkg|
|
70
103
|
end
|
71
104
|
|
72
105
|
Rake::RDocTask.new do |t|
|
@@ -80,6 +113,21 @@ Rake::RDocTask.new do |t|
|
|
80
113
|
end
|
81
114
|
|
82
115
|
CLEAN.add('rdoc')
|
116
|
+
|
117
|
+
|
83
118
|
require File.dirname(__FILE__) + '/script/build_helpers'
|
84
119
|
|
120
|
+
def fix_x86_mswin
|
121
|
+
files = Dir.glob('pkg/*x86-mswin*')
|
122
|
+
files.each do |name|
|
123
|
+
new_name = name.gsub('-x86', '')
|
124
|
+
puts "Renaming x86-mswin gem from #{name} to #{new_name}"
|
125
|
+
File.mv(name, new_name)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
task :package do
|
130
|
+
fix_x86_mswin
|
131
|
+
end
|
132
|
+
|
85
133
|
#task :release => :release_rubyforge
|