Gears

求闻百科,共笔求闻
Gears
开发者Google
首次发布2009年5月28日
稳定版本
0.5.36.0
(2010年2月22日,​14年前​(2010-02-22
操作系统Windows 2000, XP & Vista, Windows Mobile 5, Windows Mobile 6Mac OS X, Linux
许可协议BSD
网站http://gears.google.com/

Gears,原称Google Gears,是一款Google开发的软件,让使用者可以离线浏览。这套软件透过以浏览器扩展的方式添加JavaScript API使得浏览器的脚本能够访问本地的SQLite缓存数据库。所以网页是透过暂存区取得的,而不是从实际的网络上取得。而且,Web相关的程式可以周期性的透过Gears将本地暂存的资料与网络上的资料做同步。如果网络暂时无法使用,这个同步过程将会延后,直到网络恢复为止。因此,Gears的Web相关应用并不是即时的。

由于HTML5能做到的同样的事情,Google已经放弃为Gears增加新功能[1]。并且于2011年底前撤出Google产品线而不再发行[2]

组件

Google Gears有几个主要的API组件:

  • 一个本地服务器,用来存储和读取离线程序资源(包括HTML, JavaScript, images等)。[3]
  • 一个小型数据库(以SQLite构建),用来储存本地数据。[4]
  • 一个工作池,用来让开发者将本地数据与服务器端后台同步。[5]
  • 一个桌面模型可使网络程序的操作贴近桌面程序,支持建立快捷方式鼠标拖放文件。[6]
  • 一个地理定位模型,能够让网络程序侦测到目前用户的地理位置。[7]

版本历史

版本 发布日期 描述
0.1 2007年5月31日 最初版本。
0.2 2008年2月22日
- 2008年5月28日 开源,项目名称改为Gears。
0.3 2008年6月11日 增加添加桌面图标的功能,支援Firefox 3
0.4 2008年8月22日 地理定位API / Event handling for upload / download transfer progress, 40种语言的本地化
0.5 2008年11月24日[8] 升级了SQLite数据库,能够从WiFi信号获得地理定位, Improved API to manage data blobs on LocalServer

支援

有相当数量的网络程序使用了Gears,这些程序来自于许多公司,包括GoogleGoogle日历Google文件GMailPicasa网络相册Google阅读器YouTube)、MySpace(邮件搜索)、Zoho(Mail、Writer)、Remember The Milk、以及Buxfer[9]QQ空间[10][11]

WordPress支援Gears,以用来加速管理界面操作速度,减轻服务器点击负担。[12]

通过使用一个Google Gears工程师编写的Greasemonkey脚本,可以离线浏览英语维基百科[13]

Gears能够在Windows XP或以上的IE 6或以上,Windows MobileIE 4.01或以上,带触控式萤幕Windows Mobile 6或以上的Opera Mobile 9.51或以上,Mac OS X 10.4.11以上或Mac OS X 10.5.3以上的Safari 3.1.1或以上,Google ChromeAndroid以及任何平台的Mozilla Firefox 1.5或以上版本浏览器使用。[14][15].

2008年5月29日,Opera ASA宣布新版本的OperaOpera Mobile 9.5将能支援Gears,这种支援不依赖于Google提供的软件,因而也不与之完全兼容。[16]

Gears on Rails框架支持Gears接口,提供一种Ruby形式的Google Gears API。[17]

参见

参考资料

  1. 存档副本.  Google:你好 HTML5,再见 Gears
  2. Template:Site news
  3. LocalServer Module API. 
  4. Database Module API. 
  5. WorkerPool Module API. 
  6. Desktop Module API. 
  7. Geolocation Module API. 
  8. 存档副本. 
  9. Gears History. 
  10. http://imgcache.qq.com/qzone/test/gears/gearsMng.html QQ空间加速
  11. http://www.cnbeta.com/articles/89655.htm QQ空间开始使用Google Gears加速
  12. WordPress Trac ticket - Gears Support. [2008-08-28]. 
  13. http://code.google.com/apis/gears/articles/gearsmonkey.html Don't wait for your favorite website to enable offline support -- do it yourself.
  14. Gears for Safari beta. Google. 
  15. What browsers and operating systems are supported by Google Gears?. Google. 
  16. Opera extends Gears support. Opera Software. [2009-03-21]. 
  17. Google Gears Takes Ruby on Rails Offline. eWeek. [2009-03-21]. 

外部链接