forked from t-tutiya/tsukasa_by_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile
More file actions
42 lines (32 loc) · 859 Bytes
/
rakefile
File metadata and controls
42 lines (32 loc) · 859 Bytes
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
35
36
37
38
39
40
41
42
# coding: UTF-8
task :app_install do
=begin
require 'net/http'
Net::HTTP.start('t-tutiya.github.io') do |http|
res = http.get('/tsukasa/ayame.so')
open('C:\Ruby22\lib\ruby\site_ruby\2.2.0\i386-msvcrt\ayame.so', 'wb'){|f|
f.write(res.body)
}
end
Net::HTTP.start('t-tutiya.github.io') do |http|
res = http.get('/tsukasa/Ayame.dll')
open('.\Ayame.dll', 'wb'){|f|
f.write(res.body)
}
end
=end
end
task :test do
require 'rake/testtask'
Rake::TestTask.new do |test|
# $LOAD_PATH に追加するパス (デフォルトで 'lib' は入っている)
test.libs << 'test'
# テスト対象ファイルの指定
test.test_files = Dir[ 'test/**/test_*.rb' ]
test.verbose = true
end
end
task :spec do
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new("spec")
end