forked from jimsynz/faye-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
34 lines (26 loc) · 835 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'faye-rails/version'
require 'rspec'
require 'rspec/core/rake_task'
desc "Run only RSpec test examples"
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", "-f progress"]
t.pattern = 'spec/**/*_spec.rb'
end
task :bundle do
system "bundle"
end
task :import_javascript_client => :bundle do
system "cp -v `bundle show faye`/lib/faye-browser*.js vendor/assets/javascripts"
system "cp -v `bundle show faye`/lib/faye-browser-min.js vendor/assets/javascripts/faye.js"
end
task :build => [ :import_javascript_client, :spec ] do
system "gem build faye-rails.gemspec"
end
task :release => :build do
system "gem push faye-rails-#{FayeRails::VERSION}.gem"
end
task :default => :spec