Sha256: 11ced83979acf062d5fc6d8493314640ac9938fe0f5b5e03f253d10bd13f0c92

Contents?: true

Size: 316 Bytes

Versions: 6

Compression:

Stored size: 316 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'grope'

js_filename = ARGV.shift
js = (js_filename ? open(js_filename) : STDIN).read

env = Grope::Env.new
env.load('http://fmarcia.info/jsmin/test.html')
env.all('//textarea')[1].value = js
env.document.getElementById('go').click
puts env.all('//textarea')[2].value

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grope-0.2.2 examples/js_minifier.rb
grope-0.2.0 examples/js_minifier.rb
grope-0.1.4 examples/js_minifier.rb
grope-0.1.3 examples/js_minifier.rb
grope-0.1.2 examples/js_minifier.rb
grope-0.1.1 examples/js_minifier.rb