Skip to content

Commit c40db3e

Browse files
committed
Made it take an argument
1 parent 7c2bc65 commit c40db3e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ruby/browse.rb

+4-6
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,10 @@ def browse args={}
4747

4848

4949
if __FILE__ == $0
50-
b = Browse.new('http://mirlyn.lib.umich.edu/Search/Home?')
51-
if defined? JRUBY_VERSION
52-
b.browse({'lookfor' => 'jruby'})
53-
else
54-
b.browse({'lookfor' => 'ruby'})
55-
end
50+
require 'json'
51+
b = Browse.new('http://localhost:8983/solr/select/?')
52+
args = eval(File.open(ARGV[0]).read)
53+
b.browse args
5654
end
5755

5856

0 commit comments

Comments
 (0)