-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
31 lines (26 loc) · 904 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
# encoding: utf-8
require 'rubygems'
require 'bundler'
require 'rspec/core/rake_task'
require 'rake'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "js-code-wrapper"
gem.homepage = "http://github.com/dom1nga/js-code-wrapper"
gem.license = "MIT"
gem.summary = "Provides helper method 'wrap_js_code' that wraps javascript code into '<code></code>' tags"
gem.description = "Usage: wrap_js_code('<script>alert('wrap me!');</script>') # => '<code><script>alert('wrap me!');</script></code>'"
gem.email = "beloved.dom1nga@gmail.com"
gem.authors = ["dom1nga"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
RSpec::Core::RakeTask.new('spec')
task :default => :spec