watir 4.0.0.rc5 → 4.0.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +13 -5
- data/lib/watir/version.rb +1 -1
- data/watir.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -3,9 +3,11 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
|
3
3
|
require 'bundler'
|
4
4
|
Bundler::GemHelper.install_tasks
|
5
5
|
|
6
|
+
task :default => "build:all"
|
7
|
+
|
6
8
|
namespace :build do
|
7
|
-
desc "Build for
|
8
|
-
task :
|
9
|
+
desc "Build for Windows platform."
|
10
|
+
task :win => :build do
|
9
11
|
begin
|
10
12
|
ENV["build_for_windows"] = "true"
|
11
13
|
Rake::Task["build"].reenable
|
@@ -14,11 +16,17 @@ namespace :build do
|
|
14
16
|
ENV["build_for_windows"] = nil
|
15
17
|
end
|
16
18
|
end
|
19
|
+
|
20
|
+
desc "Build for all platforms."
|
21
|
+
task :all => [:build, "build:win"]
|
17
22
|
end
|
18
23
|
|
19
24
|
namespace :release do
|
20
|
-
desc "Release for
|
21
|
-
task :
|
22
|
-
sh "gem push
|
25
|
+
desc "Release for Windows platform."
|
26
|
+
task :win => "build:win" do
|
27
|
+
sh "gem push #{Dir["pkg/*mingw32.gem"].sort_by{|f| File.mtime(f)}.last}"
|
23
28
|
end
|
29
|
+
|
30
|
+
desc "Release for all platforms."
|
31
|
+
task :all => [:release, "release:win"]
|
24
32
|
end
|
data/lib/watir/version.rb
CHANGED
data/watir.gemspec
CHANGED