Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gtk-webkit-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtk-webkit-ruby

  • 0.0.8
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Gtk Webkit Ruby

Requires

  • rubber-generate >= 0.0.17
  • rake-compiler, rake to build
  • ruby-gnome2 (including development files)
  • webkit (including development files)

Changes

  • 0.0.4 - 16 Nov 2012
  • Use rubygems to find Ruby-GNOME2 installation (fixes #2, missing rbglib.h header file)
  • Wrap stored JS ref pointer with Data_Wrap_Struct (fixes GC bug)

Description

Gtk Webkit bindings for ruby. Partial coverage sufficient to embed a webview in a ruby-gnome2 application.

Also experimental support for allowing ruby code to be called by javascript & executing javascript from ruby.

e.g

	require 'gtk2'
	require 'webkit'
	require 'digest/md5'

	v = WebKit::WebView.new
	v.main_frame.setup_ruby
	
	v.main_frame.add_js_api('md5') do |what|
		Digest::MD5.hexdigest(what)
	end
	
	puts v.main_frame.exec_js("ruby_eval('RUBY_DESCRIPTION')")
	puts v.main_frame.exec_js("md5('foo')")
	puts Digest::MD5.hexdigest('foo')

License

Copyright (c) 2011-2012 Geoff Youngs

This program is free software. You can distribute/modify this program under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.

FAQs

Package last updated on 12 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc