Sha256: 9e9bdcf4758a4675cc8f58a407c8dc572fbe88949e4ec395a08877077ec7dd31
Contents?: true
Size: 641 Bytes
Versions: 487
Compression:
Stored size: 641 Bytes
Contents
#!/usr/bin/env ruby require 'rbconfig' require 'fileutils' include FileUtils::Verbose include Config bindir = CONFIG["bindir"] cd 'bin' do filename = 'edit_json.rb' #install(filename, bindir) end sitelibdir = CONFIG["sitelibdir"] cd 'lib' do install('json.rb', sitelibdir) mkdir_p File.join(sitelibdir, 'json') for file in Dir['json/**/*.{rb,xpm}'] d = File.join(sitelibdir, file) mkdir_p File.dirname(d) install(file, d) end install(File.join('json', 'editor.rb'), File.join(sitelibdir,'json')) install(File.join('json', 'json.xpm'), File.join(sitelibdir,'json')) end warn " *** Installed PURE ruby library."
Version data entries
487 entries across 443 versions & 32 rubygems