File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,17 @@ namespace :package do
222
222
cd 'gems' do
223
223
mkdir APP_NAME
224
224
%w[ aux lib ] . each { |d | cp_r "#{ Rake . original_dir } /#{ d } " , APP_NAME }
225
+
226
+ # patch daru lib to hide unneccessary messages
227
+ cd 'daru-0.1.6/lib' do
228
+ orig = "'spreadsheet' => '~>1.1.1', 'mechanize' => '~>2.7.5'"
229
+ sh "sed \" s/#{ orig } //\" daru.rb > daru.rb-1"
230
+ sh "rm daru.rb"
231
+
232
+ orig = "require 'backports'"
233
+ sh "sed \" s/#{ orig } /# #{ orig } /\" daru.rb-1 > daru.rb"
234
+ sh "rm daru.rb-1"
235
+ end
225
236
end
226
237
227
238
cd 'specifications' do
Original file line number Diff line number Diff line change @@ -29,12 +29,6 @@ Gem::Specification.new do |s|
29
29
s . add_dependency 'slim' , '~>3.0'
30
30
s . add_dependency 'statsample' , '2.1.0'
31
31
32
- # Adding mechanize gem just to silence a message on load.
33
- # This is due the Statsample gem
34
- # See https://github.com/SciRuby/daru/issues/404
35
- # See https://github.com/SciRuby/statsample/pull/69
36
- s . add_dependency 'mechanize' , '2.7.5'
37
-
38
32
s . files = `git ls-files -z` . split ( "\x0 " )
39
33
s . executables = s . files . grep ( %r{^bin/} ) { |f | File . basename ( f ) }
40
34
s . test_files = s . files . grep ( %r{^(test|spec|features)/} )
You can’t perform that action at this time.
0 commit comments