cura 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  # An adaptable component library for creating graphical and text-based user interfaces.
2
2
  module Cura
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
@@ -70,6 +70,22 @@ module Cura
70
70
  @application
71
71
  end
72
72
 
73
+ # Set root component for this object.
74
+ #
75
+ # @param [Component::Group] component
76
+ # @return [Component::Group]
77
+ def root=(value)
78
+ raise TypeError, "root must be a Component::Group" unless value.is_a?(Component::Group)
79
+
80
+ @root.parent = nil unless @root.nil?
81
+
82
+ @root = value
83
+ @root.parent = self
84
+ @root.focus
85
+
86
+ @root
87
+ end
88
+
73
89
  # Instance inspection.
74
90
  #
75
91
  # @return [String]
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.3
4
+ version: 0.0.4
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-05-20 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -39,6 +39,11 @@ files:
39
39
  - examples/box_model/bin/box_model
40
40
  - examples/box_model/lib/box_model.rb
41
41
  - examples/box_model/lib/box_model/application.rb
42
+ - examples/cura-scrollwindow/Gemfile
43
+ - examples/cura-scrollwindow/Gemfile.lock
44
+ - examples/cura-scrollwindow/doc/coverage/call_stack.html
45
+ - examples/cura-scrollwindow/doc/coverage/graph.html
46
+ - examples/cura-scrollwindow/lib/app.rb
42
47
  - examples/hello_world/bin/hello_world
43
48
  - examples/hello_world/lib/hello_world.rb
44
49
  - examples/mruby-examples/README.md
@@ -47,6 +52,7 @@ files:
47
52
  - examples/mruby-examples/src/gem_init.c
48
53
  - examples/mruby-examples/tools/hello_world/hello_world.c
49
54
  - examples/todo_list/bin/todo_list
55
+ - examples/todo_list/debug.log
50
56
  - examples/todo_list/lib/todo_list.rb
51
57
  - examples/todo_list/lib/todo_list/application.rb
52
58
  - examples/todo_list/lib/todo_list/component/header.rb
@@ -118,6 +124,7 @@ files:
118
124
  - lib/cura/event/selected.rb
119
125
  - lib/cura/event/unfocus.rb
120
126
  - lib/cura/focus_controller.rb
127
+ - lib/cura/helpers/component/drawing.rb
121
128
  - lib/cura/key.rb
122
129
  - lib/cura/margins.rb
123
130
  - lib/cura/offsets.rb
@@ -186,6 +193,12 @@ test_files:
186
193
  - examples/todo_list/lib/todo_list/database.rb
187
194
  - examples/todo_list/lib/todo_list/model/list.rb
188
195
  - examples/todo_list/lib/todo_list/model/list_item.rb
196
+ - examples/todo_list/debug.log
197
+ - examples/cura-scrollwindow/Gemfile
198
+ - examples/cura-scrollwindow/Gemfile.lock
199
+ - examples/cura-scrollwindow/lib/app.rb
200
+ - examples/cura-scrollwindow/doc/coverage/call_stack.html
201
+ - examples/cura-scrollwindow/doc/coverage/graph.html
189
202
  - spec/spec_helper.rb
190
203
  - spec/support/shared_examples_for_attributes.rb
191
204
  - spec/unit/cura/attributes/has_ancestry_spec.rb