README.markdown in glimmer-0.4.6 vs README.markdown in glimmer-0.4.7

- old
+ new

@@ -1,12 +1,10 @@ -# Glimmer (JRuby Desktop UI DSL + Data-Binding) +# Glimmer 0.4.7 Beta (JRuby Desktop UI DSL + Data-Binding) [![Coverage Status](https://coveralls.io/repos/github/AndyObtiva/glimmer/badge.svg?branch=master)](https://coveralls.io/github/AndyObtiva/glimmer?branch=master) Glimmer is a cross-platform Ruby desktop development library. Glimmer's main innovation is a JRuby DSL that enables easy and efficient authoring of desktop application user-interfaces while relying on the robust platform-independent Eclipse SWT library. Glimmer additionally innovates by having built-in desktop UI data-binding support to greatly facilitate synchronizing the UI with domain models. As a result, that achieves true decoupling of object oriented components, enabling developers to solve business problems without worrying about UI concerns, or alternatively drive development UI-first, and then write clean business components test-first afterward. -You may learn more by reading this article: [Eclipse Zone Tutorial](http://eclipse.dzone.com/articles/an-introduction-glimmer) - ## Examples ### Hello World Glimmer code (from `samples/hello_world.rb`): @@ -63,17 +61,12 @@ Glimmer app: ![Tic Tac Toe](https://github.com/AndyObtiva/glimmer/raw/master/images/glimmer-tic-tac-toe.png) -## Resources +NOTE: Glimmer is in beta mode. Please help make better by adopting for small or low risk projects and providing feedback. -* [Eclipse Zone Tutorial](http://eclipse.dzone.com/articles/an-introduction-glimmer) -* [InfoQ Article](http://www.infoq.com/news/2008/02/glimmer-jruby-swt) -* [RubyConf 2008 Video](https://confreaks.tv/videos/rubyconf2008-desktop-development-with-glimmer) -* [Code Blog](http://andymaleh.blogspot.com/search/label/Glimmer) - ## Background Ruby is a dynamically-typed object-oriented language, which provides great productivity gains due to its powerful expressive syntax and dynamic nature. While it is proven by the Ruby on Rails framework for web development, it currently lacks a robust platform-independent framework for building desktop applications. Given that Java libraries can now be utilized in Ruby code through JRuby, Eclipse technologies, such as SWT, JFace, and RCP can help fill the gap of desktop application development with Ruby. ## Platform Support @@ -110,18 +103,18 @@ ### Option 1: Direct Install Run this command to install directly: ``` -jgem install glimmer -v 0.4.6 +jgem install glimmer -v 0.4.7 ``` ### Option 2: Bundler Add the following to `Gemfile`: ``` -gem 'glimmer', '~> 0.4.6' +gem 'glimmer', '~> 0.4.7' ``` And, then run: ``` bundle install @@ -526,11 +519,11 @@ **Defaults**: Glimmer composites always come with grid_layout by default, but you can still specify explicitly if you'd like to set specific properties on it. -Glimmer shell always comes containing one composite by default that wraps around specified shell content. That specific composite (the one directly under shell) has fill_layout with :horizontal type. +Glimmer shell always comes with fill_layout having :horizontal type. This is a great guide for learning more about SWT layouts: https://www.eclipse.org/articles/Article-Understanding-Layouts/Understanding-Layouts.htm @@ -934,11 +927,13 @@ Definition: ```ruby class Sandwich include Glimmer::SWT::CustomWidget + options :orientation, :bg_color + def body composite(swt_style) { # gets custom widget style fill_layout orientation # using orientation option background container_background # using container_background option label { @@ -1086,9 +1081,16 @@ Example: ``` jruby -J-XstartOnFirstThread -J-classpath "path_to/swt.jar" -r glimmer -S application.rb ``` + +## Resources + +* [Eclipse Zone Tutorial](http://eclipse.dzone.com/articles/an-introduction-glimmer) +* [InfoQ Article](http://www.infoq.com/news/2008/02/glimmer-jruby-swt) +* [RubyConf 2008 Video](https://confreaks.tv/videos/rubyconf2008-desktop-development-with-glimmer) +* [Code Blog](http://andymaleh.blogspot.com/search/label/Glimmer) ## Feature Suggestions These features have been suggested. You might see them in a future version of Glimmer. You are welcome to contribute more feature suggestions.