cura 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +25 -11
- data/Gemfile.lock +157 -62
- data/Rakefile +71 -18
- data/examples/todo_list/bin/todo_list +4 -1
- data/examples/todo_list/lib/todo_list/component/list_items.rb +27 -27
- data/examples/todo_list/lib/todo_list/component/lists.rb +27 -27
- data/lib/cura/application.rb +3 -0
- data/lib/cura/attributes/has_children.rb +25 -4
- data/lib/cura/attributes/has_colors.rb +7 -3
- data/lib/cura/attributes/has_dimensions.rb +1 -1
- data/lib/cura/attributes/has_events.rb +1 -1
- data/lib/cura/attributes/has_root.rb +8 -3
- data/lib/cura/attributes/has_visibility.rb +28 -0
- data/lib/cura/color.rb +2 -0
- data/lib/cura/component/base.rb +34 -9
- data/lib/cura/component/group.rb +19 -2
- data/lib/cura/component/listbox.rb +15 -4
- data/lib/cura/component/pack.rb +8 -4
- data/lib/cura/component.rb +23 -0
- data/lib/cura/error/invalid_component.rb +1 -1
- data/lib/cura/event/dispatcher.rb +1 -1
- data/lib/cura/event/middleware/aimer/target_option.rb +1 -3
- data/lib/cura/event/middleware/dispatch.rb +3 -2
- data/lib/cura/event/middleware/translator/mouse_click.rb +1 -1
- data/lib/cura/key.rb +12 -12
- data/lib/cura/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- data/spec/{cura → unit/cura}/attributes/has_ancestry_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_application_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_attributes_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_children_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_colors_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_coordinates_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_dimensions_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_events_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_focusability_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_offsets_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_orientation_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_relative_coordinates_spec.rb +0 -0
- data/spec/{cura → unit/cura}/attributes/has_side_attributes_spec.rb +0 -0
- metadata +43 -51
- data/examples/box_model/debug.log +0 -0
- data/examples/todo_list/app.log +0 -9
- data/examples/todo_list/data.db +0 -0
- data/examples/todo_list/debug.log +0 -0
- data/examples/todo_list/profile.html +0 -11354
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cura
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Scott Lewis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -37,7 +37,6 @@ files:
|
|
37
37
|
- Rakefile
|
38
38
|
- cura.gemspec
|
39
39
|
- examples/box_model/bin/box_model
|
40
|
-
- examples/box_model/debug.log
|
41
40
|
- examples/box_model/lib/box_model.rb
|
42
41
|
- examples/box_model/lib/box_model/application.rb
|
43
42
|
- examples/hello_world/bin/hello_world
|
@@ -47,10 +46,7 @@ files:
|
|
47
46
|
- examples/mruby-examples/mrbgem.rake
|
48
47
|
- examples/mruby-examples/src/gem_init.c
|
49
48
|
- examples/mruby-examples/tools/hello_world/hello_world.c
|
50
|
-
- examples/todo_list/app.log
|
51
49
|
- examples/todo_list/bin/todo_list
|
52
|
-
- examples/todo_list/data.db
|
53
|
-
- examples/todo_list/debug.log
|
54
50
|
- examples/todo_list/lib/todo_list.rb
|
55
51
|
- examples/todo_list/lib/todo_list/application.rb
|
56
52
|
- examples/todo_list/lib/todo_list/component/header.rb
|
@@ -61,7 +57,6 @@ files:
|
|
61
57
|
- examples/todo_list/lib/todo_list/database.rb
|
62
58
|
- examples/todo_list/lib/todo_list/model/list.rb
|
63
59
|
- examples/todo_list/lib/todo_list/model/list_item.rb
|
64
|
-
- examples/todo_list/profile.html
|
65
60
|
- lib/cura.rb
|
66
61
|
- lib/cura/adapter.rb
|
67
62
|
- lib/cura/application.rb
|
@@ -80,9 +75,11 @@ files:
|
|
80
75
|
- lib/cura/attributes/has_relative_coordinates.rb
|
81
76
|
- lib/cura/attributes/has_root.rb
|
82
77
|
- lib/cura/attributes/has_side_attributes.rb
|
78
|
+
- lib/cura/attributes/has_visibility.rb
|
83
79
|
- lib/cura/attributes/has_windows.rb
|
84
80
|
- lib/cura/borders.rb
|
85
81
|
- lib/cura/color.rb
|
82
|
+
- lib/cura/component.rb
|
86
83
|
- lib/cura/component/base.rb
|
87
84
|
- lib/cura/component/button.rb
|
88
85
|
- lib/cura/component/group.rb
|
@@ -128,21 +125,21 @@ files:
|
|
128
125
|
- lib/cura/pencil.rb
|
129
126
|
- lib/cura/version.rb
|
130
127
|
- lib/cura/window.rb
|
131
|
-
- spec/cura/attributes/has_ancestry_spec.rb
|
132
|
-
- spec/cura/attributes/has_application_spec.rb
|
133
|
-
- spec/cura/attributes/has_attributes_spec.rb
|
134
|
-
- spec/cura/attributes/has_children_spec.rb
|
135
|
-
- spec/cura/attributes/has_colors_spec.rb
|
136
|
-
- spec/cura/attributes/has_coordinates_spec.rb
|
137
|
-
- spec/cura/attributes/has_dimensions_spec.rb
|
138
|
-
- spec/cura/attributes/has_events_spec.rb
|
139
|
-
- spec/cura/attributes/has_focusability_spec.rb
|
140
|
-
- spec/cura/attributes/has_offsets_spec.rb
|
141
|
-
- spec/cura/attributes/has_orientation_spec.rb
|
142
|
-
- spec/cura/attributes/has_relative_coordinates_spec.rb
|
143
|
-
- spec/cura/attributes/has_side_attributes_spec.rb
|
144
128
|
- spec/spec_helper.rb
|
145
129
|
- spec/support/shared_examples_for_attributes.rb
|
130
|
+
- spec/unit/cura/attributes/has_ancestry_spec.rb
|
131
|
+
- spec/unit/cura/attributes/has_application_spec.rb
|
132
|
+
- spec/unit/cura/attributes/has_attributes_spec.rb
|
133
|
+
- spec/unit/cura/attributes/has_children_spec.rb
|
134
|
+
- spec/unit/cura/attributes/has_colors_spec.rb
|
135
|
+
- spec/unit/cura/attributes/has_coordinates_spec.rb
|
136
|
+
- spec/unit/cura/attributes/has_dimensions_spec.rb
|
137
|
+
- spec/unit/cura/attributes/has_events_spec.rb
|
138
|
+
- spec/unit/cura/attributes/has_focusability_spec.rb
|
139
|
+
- spec/unit/cura/attributes/has_offsets_spec.rb
|
140
|
+
- spec/unit/cura/attributes/has_orientation_spec.rb
|
141
|
+
- spec/unit/cura/attributes/has_relative_coordinates_spec.rb
|
142
|
+
- spec/unit/cura/attributes/has_side_attributes_spec.rb
|
146
143
|
homepage: http://github.com/RyanScottLewis/
|
147
144
|
licenses:
|
148
145
|
- MIT
|
@@ -163,49 +160,44 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
160
|
version: '0'
|
164
161
|
requirements: []
|
165
162
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.5.1
|
167
164
|
signing_key:
|
168
165
|
specification_version: 4
|
169
166
|
summary: A library written in pure Ruby for building user interfaces.
|
170
167
|
test_files:
|
171
|
-
- examples/box_model/lib/box_model/application.rb
|
172
|
-
- examples/box_model/lib/box_model.rb
|
173
168
|
- examples/box_model/bin/box_model
|
174
|
-
- examples/box_model/
|
175
|
-
- examples/
|
169
|
+
- examples/box_model/lib/box_model.rb
|
170
|
+
- examples/box_model/lib/box_model/application.rb
|
176
171
|
- examples/hello_world/bin/hello_world
|
172
|
+
- examples/hello_world/lib/hello_world.rb
|
173
|
+
- examples/mruby-examples/README.md
|
174
|
+
- examples/mruby-examples/include/cura_examples.h
|
177
175
|
- examples/mruby-examples/mrbgem.rake
|
178
176
|
- examples/mruby-examples/src/gem_init.c
|
179
|
-
- examples/mruby-examples/include/cura_examples.h
|
180
|
-
- examples/mruby-examples/README.md
|
181
177
|
- examples/mruby-examples/tools/hello_world/hello_world.c
|
178
|
+
- examples/todo_list/bin/todo_list
|
182
179
|
- examples/todo_list/lib/todo_list.rb
|
183
|
-
- examples/todo_list/lib/todo_list/
|
184
|
-
- examples/todo_list/lib/todo_list/component/
|
180
|
+
- examples/todo_list/lib/todo_list/application.rb
|
181
|
+
- examples/todo_list/lib/todo_list/component/header.rb
|
185
182
|
- examples/todo_list/lib/todo_list/component/list.rb
|
183
|
+
- examples/todo_list/lib/todo_list/component/list_item.rb
|
186
184
|
- examples/todo_list/lib/todo_list/component/list_items.rb
|
187
|
-
- examples/todo_list/lib/todo_list/component/
|
185
|
+
- examples/todo_list/lib/todo_list/component/lists.rb
|
188
186
|
- examples/todo_list/lib/todo_list/database.rb
|
189
|
-
- examples/todo_list/lib/todo_list/application.rb
|
190
|
-
- examples/todo_list/lib/todo_list/model/list_item.rb
|
191
187
|
- examples/todo_list/lib/todo_list/model/list.rb
|
192
|
-
- examples/todo_list/
|
193
|
-
- examples/todo_list/bin/todo_list
|
194
|
-
- examples/todo_list/data.db
|
195
|
-
- examples/todo_list/app.log
|
196
|
-
- examples/todo_list/debug.log
|
197
|
-
- spec/cura/attributes/has_children_spec.rb
|
198
|
-
- spec/cura/attributes/has_events_spec.rb
|
199
|
-
- spec/cura/attributes/has_coordinates_spec.rb
|
200
|
-
- spec/cura/attributes/has_attributes_spec.rb
|
201
|
-
- spec/cura/attributes/has_offsets_spec.rb
|
202
|
-
- spec/cura/attributes/has_colors_spec.rb
|
203
|
-
- spec/cura/attributes/has_dimensions_spec.rb
|
204
|
-
- spec/cura/attributes/has_side_attributes_spec.rb
|
205
|
-
- spec/cura/attributes/has_ancestry_spec.rb
|
206
|
-
- spec/cura/attributes/has_orientation_spec.rb
|
207
|
-
- spec/cura/attributes/has_relative_coordinates_spec.rb
|
208
|
-
- spec/cura/attributes/has_application_spec.rb
|
209
|
-
- spec/cura/attributes/has_focusability_spec.rb
|
210
|
-
- spec/support/shared_examples_for_attributes.rb
|
188
|
+
- examples/todo_list/lib/todo_list/model/list_item.rb
|
211
189
|
- spec/spec_helper.rb
|
190
|
+
- spec/support/shared_examples_for_attributes.rb
|
191
|
+
- spec/unit/cura/attributes/has_ancestry_spec.rb
|
192
|
+
- spec/unit/cura/attributes/has_application_spec.rb
|
193
|
+
- spec/unit/cura/attributes/has_attributes_spec.rb
|
194
|
+
- spec/unit/cura/attributes/has_children_spec.rb
|
195
|
+
- spec/unit/cura/attributes/has_colors_spec.rb
|
196
|
+
- spec/unit/cura/attributes/has_coordinates_spec.rb
|
197
|
+
- spec/unit/cura/attributes/has_dimensions_spec.rb
|
198
|
+
- spec/unit/cura/attributes/has_events_spec.rb
|
199
|
+
- spec/unit/cura/attributes/has_focusability_spec.rb
|
200
|
+
- spec/unit/cura/attributes/has_offsets_spec.rb
|
201
|
+
- spec/unit/cura/attributes/has_orientation_spec.rb
|
202
|
+
- spec/unit/cura/attributes/has_relative_coordinates_spec.rb
|
203
|
+
- spec/unit/cura/attributes/has_side_attributes_spec.rb
|
File without changes
|
data/examples/todo_list/app.log
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
#<Cura::Event::Unfocus:0x007fdeeb339e70 @target=#<TodoList::Application>>
|
2
|
-
#<Cura::Event::Focus:0x007fdeeb338f70 @target=#<Cura::Component::Textbox:0x3fef759c4588 x=0 y=0 absolute_x=1 absolute_y=2 w=14 h=1 parent=Cura::Component::Pack:0x3fef759c49e8>>
|
3
|
-
#<Cura::Event::KeyDown:0x007fdeec85f750 @control=false, @name=:tab, @target=#<Cura::Component::Textbox:0x3fef759c4588 x=0 y=0 absolute_x=1 absolute_y=2 w=14 h=1 parent=Cura::Component::Pack:0x3fef759c49e8>>
|
4
|
-
#<Cura::Event::Unfocus:0x007fdeec8569c0 @target=#<Cura::Component::Textbox:0x3fef759c4588 x=0 y=0 absolute_x=1 absolute_y=2 w=14 h=1 parent=Cura::Component::Pack:0x3fef759c49e8>>
|
5
|
-
#<Cura::Event::Focus:0x007fdeec854698 @target=#<Cura::Component::Button:0x3fef759bd8f0 x=15 y=0 absolute_x=16 absolute_y=2 w=11 h=1 parent=Cura::Component::Pack:0x3fef759c49e8>>
|
6
|
-
#<Cura::Event::KeyDown:0x007fdeea8781d0 @control=false, @name=:tab, @target=#<Cura::Component::Button:0x3fef759bd8f0 x=15 y=0 absolute_x=16 absolute_y=2 w=11 h=1 parent=Cura::Component::Pack:0x3fef759c49e8>>
|
7
|
-
#<Cura::Event::Unfocus:0x007fdeea85ae50 @target=#<Cura::Component::Button:0x3fef759bd8f0 x=15 y=0 absolute_x=16 absolute_y=2 w=11 h=1 parent=Cura::Component::Pack:0x3fef759c49e8>>
|
8
|
-
#<Cura::Event::Focus:0x007fdeea8413d8 @target=#<Cura::Component::Listbox:0x3fef759b99d0 x=0 y=3 absolute_x=1 absolute_y=5 w=30 h=2 parent=TodoList::Component::Lists:0x3fef759c53d4>>
|
9
|
-
#<Cura::Event::KeyDown:0x007fdeea98c828 @control=true, @name=:C, @target=#<Cura::Component::Listbox:0x3fef759b99d0 x=0 y=3 absolute_x=1 absolute_y=5 w=30 h=2 parent=TodoList::Component::Lists:0x3fef759c53d4>>
|
data/examples/todo_list/data.db
DELETED
Binary file
|
File without changes
|