glimmer 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52feeb8724180301066a34a46f53812abd3975f5413c06eaf4f1301bacf62703
4
- data.tar.gz: 413747747c1529ded93d5b21bb6574ad080672c123ee9c8f38d2d33d5d2d3abd
3
+ metadata.gz: 4b8ff1cec163aa46e0b080c1cb6120839665172846db445d6c31e1593f18f8cf
4
+ data.tar.gz: 5dcd208fdae24f6ed7d3f8880ab98f4fa3dad05266135bdbf17a7f404de4b997
5
5
  SHA512:
6
- metadata.gz: 946ed669ac4a23c87c057cd357ce2d3a0b85f94fd0019186deea8d797bbfafdc4487ec1b88bbe0aafad5b4e47af656a7d8a81e222f02c9afda67284681b33039
7
- data.tar.gz: 7e83c22ea9c23b5d4028e9063b7c235ac8e3724cf2e9f638b03b1a9d7acbce74aabbbb75faf4df4ef2de4fe17cd064585c04deb830f8f0895fc7d8490bcf52c5
6
+ metadata.gz: 1090019bcd5de2ae940218ab836ccf1778ae1fd4fd4069e8fe52879746726677d968e1244a111dd17dd05149ec2881f47d4592db276d2f7f49f6e357774db72f
7
+ data.tar.gz: bdf6ba912826c63ff7c9289abb832ce6e3059c16fd857f195098a2dc02b995ce849e1e3cfd8d35e38922a553619759a9a72afb3ebb60bed0b6fe74ef623276a1
@@ -40,6 +40,13 @@ Glimmer app:
40
40
 
41
41
  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.
42
42
 
43
+ ## Platform Support
44
+
45
+ Glimmer runs on the following platforms:
46
+ - Mac
47
+ - Windows
48
+ - Linux
49
+
43
50
  ## Pre-requisites
44
51
 
45
52
  * Java SE Runtime Environment 7 or higher (find at https://www.oracle.com/java/technologies/javase-downloads.html)
@@ -66,7 +73,7 @@ jgem install glimmer -v 0.2.0
66
73
 
67
74
  Add the following to `Gemfile`:
68
75
  ```
69
- jgem 'glimmer', '~> 0.2.0'
76
+ gem 'glimmer', '~> 0.2.0'
70
77
  ```
71
78
 
72
79
  And, then run:
@@ -200,10 +207,6 @@ The `-r` option preloads (requires) the `glimmer` library in Ruby.
200
207
 
201
208
  The `-S` option specifies a script to run.
202
209
 
203
- ## Platform Support
204
-
205
- Glimmer runs on Mac, Windows, and Linux
206
-
207
210
  ### Mac Support
208
211
 
209
212
  Mac is well supported with the `glimmer` command. However, if there is a reason to use the raw jruby command, you need to pass an extra option (`-J-XstartOnFirstThread`) to JRuby on the Mac.
@@ -217,19 +220,8 @@ jruby -J-XstartOnFirstThread -J-classpath "path_to/swt.jar" -r glimmer -S applic
217
220
 
218
221
  These features have been suggested. You might see them in a future version of Glimmer. You are welcome to contribute more feature suggestions.
219
222
 
220
- - bind_collection: an iterator that enables spawning widgets based on a collection (e.g. spawn 2 `AddressWidget`s if `user.addresses` bind collection contains 2 addresses)
221
-
222
- ## Contributing to Glimmer
223
-
224
- Please follow these instructions if you would like to help us develop Glimmer:
225
-
226
- 1. Download and extract the ["SWT binary and source"](http://download.eclipse.org/eclipse/downloads/drops4/R-4.7-201706120950/#SWT).
227
- 2. Add swt.jar to your Java CLASSPATH environment (e.g. `export CLASSPATH="$CLASSPATH:/path_to_swt_jar/swt.jar"`)
228
- 3. Download and setup JRuby (`rvm install jruby-9.2.10.0`)
229
- 4. Install bundler (jgem install bundler)
230
- 5. Install project required gems (bundle install)
231
- 6. Write a program that requires the file "lib/glimmer.rb" (or glimmer gem) and has the UI class (view) include the Glimmer module
232
- 7. Run your program with `bin/glimmer` or jruby (pass `-J-XstartOnFirstThread` option if on the Mac)
223
+ - **Nested indexed property data binding**: a complementary feature to nested property data binding that binds to a collection element by index (e.g. `bind(user, 'addresses[1].street')`)
224
+ - **bind_collection**: an iterator that enables spawning widgets based on a variable collection (e.g. `bind_collection('user.addresses') { |address| address_widget {...} }` spawns 3 `AddressWidget`s if `user.addresses` is set with 3 addresses; and replaces with 2 `AddressWidget`s if `user.addresses` is reset with 2 addresses only). Needs further thought on naming and functionality.
233
225
 
234
226
  ## Contributors
235
227
 
@@ -40,14 +40,14 @@ This runs the Glimmer application hello_world.rb
40
40
 
41
41
  def start
42
42
  if @application_path
43
- run_application
43
+ launch_application
44
44
  else
45
45
  display_usage
46
46
  end
47
47
  end
48
48
 
49
- def run_application
50
- puts "Starting Glimmer Application #{@application_path}"
49
+ def launch_application
50
+ puts "Launching Glimmer Application: #{@application_path}"
51
51
  self.class.launch(@application_path)
52
52
  end
53
53
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - AndyMaleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-01 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement