File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change
1
+ --color
2
+ --format = nested
3
+ --backtrace
Original file line number Diff line number Diff line change 3
3
require 'bundler'
4
4
Bundler ::GemHelper . install_tasks
5
5
6
- task :default => :spec
7
-
8
6
require 'rspec/core/rake_task'
9
- RSpec ::Core ::RakeTask . new do |t |
10
- t . rspec_opts = [ "--color" , '--format doc' ]
11
- end
7
+ RSpec ::Core ::RakeTask . new ( :spec )
8
+
9
+ task :test => :spec
10
+ task :default => :spec
12
11
13
12
require 'rdoc/task'
13
+ require File . expand_path ( '../lib/linked_in/version' , __FILE__ )
14
14
Rake ::RDocTask . new do |rdoc |
15
- version = File . exist? ( 'VERSION' ) ? File . read ( 'VERSION' ) : ""
16
15
rdoc . rdoc_dir = 'rdoc'
17
- rdoc . title = "linkedin #{ version } "
16
+ rdoc . title = "linkedin #{ LinkedIn :: VERSION :: STRING } "
18
17
rdoc . rdoc_files . include ( 'README*' )
19
18
rdoc . rdoc_files . include ( 'lib/**/*.rb' )
20
19
end
You can’t perform that action at this time.
0 commit comments