-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
47 lines (37 loc) · 1.34 KB
/
Rakefile
File metadata and controls
47 lines (37 loc) · 1.34 KB
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
43
44
45
46
47
#!/usr/bin/env rake
require 'rake/clean'
require 'rspec/core/rake_task'
require 'bundler/gem_tasks'
CLOBBER.include('coverage')
desc "Run all specs"
RSpec::Core::RakeTask.new do |t|
t.pattern = "./spec/**/*spec.rb"
end
desc "Run GitHub Archive Parser on specified url (for debugging)"
task :debug_process_url, :url do |t, args|
Bundler.require(:debug)
require 'github_archive_parser'
github_archive_parser = GitHubArchiveParser::CLI.new
github_archive_parser.options.debug = true
github_archive_parser.process(args)
end
desc "Run GitHub Archive Parser since a specified time (for debugging)"
task :debug_process_since, :since do |t, args|
Bundler.require(:debug)
require 'github_archive_parser'
github_archive_parser = GitHubArchiveParser::CLI.new
github_archive_parser.options.debug = true
github_archive_parser.options.since = args[:since]
github_archive_parser.process(args)
end
desc "Run GitHub Archive Parser between two times (for debugging)"
task :debug_process_between, :since, :until do |t, args|
Bundler.require(:debug)
require 'github_archive_parser'
github_archive_parser = GitHubArchiveParser::CLI.new
github_archive_parser.options.debug = true
github_archive_parser.options.since = args[:since]
github_archive_parser.options.until = args[:until]
github_archive_parser.process(args)
end
task :default => :spec