2015-10-28 06:50:44 +00:00
|
|
|
require "bundler/gem_tasks"
|
|
|
|
require "rspec/core/rake_task"
|
2017-01-22 02:16:57 +00:00
|
|
|
require 'rake/extensiontask'
|
|
|
|
|
|
|
|
Rake::ExtensionTask.new "rucaptcha" do |ext|
|
|
|
|
ext.lib_dir = "lib/rucaptcha"
|
|
|
|
end
|
2015-10-28 06:50:44 +00:00
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
|
|
task default: :spec
|
2017-01-22 02:16:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
task :preview do
|
|
|
|
require 'rucaptcha'
|
|
|
|
|
2017-12-07 09:04:25 +00:00
|
|
|
res = RuCaptcha.create(1, 3, 1)
|
2017-01-22 02:16:57 +00:00
|
|
|
puts res[1]
|
2017-12-07 09:04:25 +00:00
|
|
|
end
|