colstrom-fidgit 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rspec +2 -0
- data/CHANGELOG.md +31 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +20 -0
- data/README.md +154 -0
- data/Rakefile +38 -0
- data/config/default_schema.yml +216 -0
- data/examples/_all_examples.rb +9 -0
- data/examples/align_example.rb +56 -0
- data/examples/button_and_toggle_button_example.rb +38 -0
- data/examples/color_picker_example.rb +17 -0
- data/examples/color_well_example.rb +25 -0
- data/examples/combo_box_example.rb +24 -0
- data/examples/file_dialog_example.rb +42 -0
- data/examples/grid_packer_example.rb +29 -0
- data/examples/helpers/example_window.rb +17 -0
- data/examples/label_example.rb +23 -0
- data/examples/list_example.rb +23 -0
- data/examples/media/images/head_icon.png +0 -0
- data/examples/menu_pane_example.rb +27 -0
- data/examples/message_dialog_example.rb +65 -0
- data/examples/radio_button_example.rb +37 -0
- data/examples/readme_example.rb +32 -0
- data/examples/scroll_window_example.rb +49 -0
- data/examples/slider_example.rb +34 -0
- data/examples/splash_example.rb +42 -0
- data/examples/text_area_example.rb +33 -0
- data/fidgit.gemspec +35 -0
- data/lib/fidgit.rb +51 -0
- data/lib/fidgit/chingu_ext/window.rb +6 -0
- data/lib/fidgit/cursor.rb +38 -0
- data/lib/fidgit/elements/button.rb +113 -0
- data/lib/fidgit/elements/color_picker.rb +63 -0
- data/lib/fidgit/elements/color_well.rb +39 -0
- data/lib/fidgit/elements/combo_box.rb +115 -0
- data/lib/fidgit/elements/composite.rb +17 -0
- data/lib/fidgit/elements/container.rb +210 -0
- data/lib/fidgit/elements/element.rb +298 -0
- data/lib/fidgit/elements/file_browser.rb +152 -0
- data/lib/fidgit/elements/grid.rb +227 -0
- data/lib/fidgit/elements/group.rb +64 -0
- data/lib/fidgit/elements/horizontal.rb +12 -0
- data/lib/fidgit/elements/image_frame.rb +65 -0
- data/lib/fidgit/elements/label.rb +85 -0
- data/lib/fidgit/elements/list.rb +47 -0
- data/lib/fidgit/elements/main_packer.rb +25 -0
- data/lib/fidgit/elements/menu_pane.rb +163 -0
- data/lib/fidgit/elements/packer.rb +42 -0
- data/lib/fidgit/elements/radio_button.rb +86 -0
- data/lib/fidgit/elements/scroll_area.rb +68 -0
- data/lib/fidgit/elements/scroll_bar.rb +128 -0
- data/lib/fidgit/elements/scroll_window.rb +83 -0
- data/lib/fidgit/elements/slider.rb +125 -0
- data/lib/fidgit/elements/text_area.rb +494 -0
- data/lib/fidgit/elements/text_line.rb +92 -0
- data/lib/fidgit/elements/toggle_button.rb +67 -0
- data/lib/fidgit/elements/tool_tip.rb +35 -0
- data/lib/fidgit/elements/vertical.rb +12 -0
- data/lib/fidgit/event.rb +159 -0
- data/lib/fidgit/gosu_ext/color.rb +136 -0
- data/lib/fidgit/gosu_ext/gosu_module.rb +25 -0
- data/lib/fidgit/history.rb +91 -0
- data/lib/fidgit/redirector.rb +83 -0
- data/lib/fidgit/schema.rb +123 -0
- data/lib/fidgit/selection.rb +106 -0
- data/lib/fidgit/standard_ext/hash.rb +21 -0
- data/lib/fidgit/states/dialog_state.rb +52 -0
- data/lib/fidgit/states/file_dialog.rb +24 -0
- data/lib/fidgit/states/gui_state.rb +331 -0
- data/lib/fidgit/states/message_dialog.rb +61 -0
- data/lib/fidgit/version.rb +5 -0
- data/lib/fidgit/window.rb +19 -0
- data/media/images/arrow.png +0 -0
- data/media/images/combo_arrow.png +0 -0
- data/media/images/file_directory.png +0 -0
- data/media/images/file_file.png +0 -0
- data/media/images/pixel.png +0 -0
- data/spec/fidgit/elements/helpers/helper.rb +3 -0
- data/spec/fidgit/elements/helpers/tex_play_helper.rb +9 -0
- data/spec/fidgit/elements/image_frame_spec.rb +69 -0
- data/spec/fidgit/elements/label_spec.rb +37 -0
- data/spec/fidgit/event_spec.rb +210 -0
- data/spec/fidgit/gosu_ext/color_spec.rb +130 -0
- data/spec/fidgit/gosu_ext/helpers/helper.rb +3 -0
- data/spec/fidgit/helpers/helper.rb +4 -0
- data/spec/fidgit/history_spec.rb +153 -0
- data/spec/fidgit/redirector_spec.rb +78 -0
- data/spec/fidgit/schema_spec.rb +67 -0
- data/spec/fidgit/schema_test.yml +32 -0
- metadata +320 -0
@@ -0,0 +1,153 @@
|
|
1
|
+
require_relative 'helpers/helper'
|
2
|
+
|
3
|
+
require 'history'
|
4
|
+
|
5
|
+
module Fidgit
|
6
|
+
class History
|
7
|
+
class Maths < Action
|
8
|
+
def initialize(value)
|
9
|
+
@value = value
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class Add < Maths
|
14
|
+
def do
|
15
|
+
$x += @value
|
16
|
+
end
|
17
|
+
|
18
|
+
def undo
|
19
|
+
$x -= @value
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
class Sub < Maths
|
24
|
+
def do
|
25
|
+
$x -= @value
|
26
|
+
end
|
27
|
+
|
28
|
+
def undo
|
29
|
+
$x += @value
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe History do
|
35
|
+
before :each do
|
36
|
+
$x = 0 # Used as target of test action.
|
37
|
+
@object = described_class.new
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "initialize()" do
|
41
|
+
it "should produce an object that is not undoable or redoable" do
|
42
|
+
@object.can_undo?.should be_false
|
43
|
+
@object.can_redo?.should be_false
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "do()" do
|
48
|
+
it "should raise an error if the parameter is incorrect" do
|
49
|
+
lambda { @object.do(12) }.should raise_error ArgumentError
|
50
|
+
end
|
51
|
+
|
52
|
+
it "should perform the action's do() method correctly" do
|
53
|
+
@object.do(History::Add.new(2))
|
54
|
+
|
55
|
+
$x.should == 2
|
56
|
+
@object.can_undo?.should be_true
|
57
|
+
@object.can_redo?.should be_false
|
58
|
+
end
|
59
|
+
|
60
|
+
it "should correctly delete any re-doable actions, even if there is only one" do
|
61
|
+
@object.do(History::Add.new(2))
|
62
|
+
@object.undo
|
63
|
+
@object.do(History::Add.new(3))
|
64
|
+
@object.undo
|
65
|
+
|
66
|
+
@object.can_undo?.should be_false
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe "undo()" do
|
71
|
+
it "should raise an error if there is nothing to undo" do
|
72
|
+
lambda { @object.undo }.should raise_error
|
73
|
+
end
|
74
|
+
|
75
|
+
it "should perform the undo method on the action" do
|
76
|
+
@object.do(History::Add.new(2))
|
77
|
+
@object.undo
|
78
|
+
|
79
|
+
$x.should == 0
|
80
|
+
@object.can_undo?.should be_false
|
81
|
+
@object.can_redo?.should be_true
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe "redo()" do
|
86
|
+
it "should raise an error if there is nothing to redo" do
|
87
|
+
lambda { @object.redo }.should raise_error
|
88
|
+
end
|
89
|
+
|
90
|
+
it "should perform the undo method on the action" do
|
91
|
+
@object.do(History::Add.new(2))
|
92
|
+
@object.undo
|
93
|
+
@object.redo
|
94
|
+
|
95
|
+
$x.should == 2
|
96
|
+
@object.can_undo?.should be_true
|
97
|
+
@object.can_redo?.should be_false
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe "replace_last()" do
|
102
|
+
it "should raise an error if there is nothing to redo" do
|
103
|
+
lambda { @object.replace_last(12) }.should raise_error ArgumentError
|
104
|
+
end
|
105
|
+
|
106
|
+
it "should raise an error if there is nothing to replace" do
|
107
|
+
lambda { @object.replace_last(History::Add2.new) }.should raise_error
|
108
|
+
end
|
109
|
+
|
110
|
+
it "should correctly replace the last action" do
|
111
|
+
@object.do(History::Add.new(2))
|
112
|
+
@object.replace_last(History::Sub.new(1))
|
113
|
+
|
114
|
+
$x.should == -1
|
115
|
+
@object.can_redo?.should be_false
|
116
|
+
@object.can_undo?.should be_true
|
117
|
+
end
|
118
|
+
|
119
|
+
it "should not remove redoable actions" do
|
120
|
+
@object.do(History::Add.new(2))
|
121
|
+
@object.do(History::Add.new(8))
|
122
|
+
@object.undo
|
123
|
+
@object.replace_last(History::Sub.new(1))
|
124
|
+
|
125
|
+
$x.should == -1
|
126
|
+
@object.can_redo?.should be_true
|
127
|
+
@object.can_undo?.should be_true
|
128
|
+
|
129
|
+
@object.redo
|
130
|
+
$x.should == 7
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# Abstract class, so doesn't really do anything.
|
136
|
+
describe History::Action do
|
137
|
+
before :each do
|
138
|
+
@object = described_class.new
|
139
|
+
end
|
140
|
+
|
141
|
+
describe "do()" do
|
142
|
+
it "should raise an error" do
|
143
|
+
lambda { @object.do }.should raise_error NotImplementedError
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
describe "undo()" do
|
148
|
+
it "should raise an error" do
|
149
|
+
lambda { @object.undo }.should raise_error NotImplementedError
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require_relative 'helpers/helper'
|
2
|
+
|
3
|
+
require 'redirector'
|
4
|
+
|
5
|
+
include Fidgit
|
6
|
+
|
7
|
+
describe RedirectorMethods do
|
8
|
+
describe "::Object" do
|
9
|
+
subject { Object.new }
|
10
|
+
|
11
|
+
describe '#instance_methods_eval' do
|
12
|
+
it "should fail if a block is not provided" do
|
13
|
+
->{ subject.instance_methods_eval }.should raise_error
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should yield the target" do
|
17
|
+
subject.instance_methods_eval { |target| @frog = target }
|
18
|
+
@frog.should equal subject
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should allow ivars to be read from the calling context" do
|
22
|
+
@frog = 5
|
23
|
+
fish = 0
|
24
|
+
subject.instance_methods_eval { fish = @frog }
|
25
|
+
fish.should equal 5
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should allow ivars to be written to the calling context" do
|
29
|
+
subject.instance_methods_eval { @frog = 10 }
|
30
|
+
@frog.should equal 10
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should not allow access to ivars in the subject" do
|
34
|
+
subject.instance_variable_set :@frog, 5
|
35
|
+
fish = 0
|
36
|
+
subject.instance_methods_eval { fish = @frog }
|
37
|
+
fish.should be_nil
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should allow access to methods in the subject" do
|
41
|
+
subject.should_receive(:frog)
|
42
|
+
subject.instance_methods_eval { frog }
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should allow stacked calls" do
|
46
|
+
object1 = Object.new
|
47
|
+
should_not_receive :frog
|
48
|
+
object1.should_not_receive :frog
|
49
|
+
subject.should_receive :frog
|
50
|
+
|
51
|
+
object1.instance_methods_eval do
|
52
|
+
subject.instance_methods_eval do
|
53
|
+
frog
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
it "should fail if method does not exist on the subject or context" do
|
59
|
+
->{ subject.instance_methods_eval { frog } }.should raise_error NameError
|
60
|
+
end
|
61
|
+
|
62
|
+
it "should call the method on the context, if it doesn't exist on the subject" do
|
63
|
+
should_receive(:frog)
|
64
|
+
subject.instance_methods_eval { frog }
|
65
|
+
end
|
66
|
+
|
67
|
+
[:public, :protected, :private].each do |access|
|
68
|
+
it "should preserve #{access} access for methods redirected on the context" do
|
69
|
+
class << self; def frog; end; end
|
70
|
+
(class << self; self; end).send access, :frog
|
71
|
+
subject.should_receive :frog
|
72
|
+
subject.instance_methods_eval { frog }
|
73
|
+
(send "#{access}_methods").should include :frog
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require_relative 'helpers/helper'
|
2
|
+
|
3
|
+
require 'fidgit'
|
4
|
+
|
5
|
+
SCHEMA_FILE_NAME = File.expand_path(File.join(__FILE__, '..', 'schema_test.yml'))
|
6
|
+
|
7
|
+
include Fidgit
|
8
|
+
|
9
|
+
describe Schema do
|
10
|
+
subject { Schema.new(Hash.new) }
|
11
|
+
|
12
|
+
context "given the default schema" do
|
13
|
+
subject { Schema.new(YAML.load(File.read(SCHEMA_FILE_NAME))) }
|
14
|
+
|
15
|
+
describe "#constant" do
|
16
|
+
it "should have the constant :scroll_bar_thickness" do
|
17
|
+
subject.constant(:scroll_bar_thickness).should equal 12
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should have the color constant :none" do
|
21
|
+
subject.constant(:none).should eq Gosu::Color.rgba(0, 0, 0, 0)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should have the color constant :white" do
|
25
|
+
subject.constant(:white).should eq Gosu::Color.rgb(255, 255, 255)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should not have the constant :moon_cow_height" do
|
29
|
+
subject.constant(:moon_cow_height).should be_nil
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "#default" do
|
34
|
+
it "should fail if the class given is not an Element" do
|
35
|
+
->{ subject.default(String, :frog) }.should raise_error ArgumentError
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should fail if the value is not ever defined" do
|
39
|
+
->{ subject.default(Element, :knee_walking_turkey) }.should raise_error
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should give the correct value for a defined color" do
|
43
|
+
subject.default(Element, :color).should eq Gosu::Color.rgb(255, 255, 255)
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should give the symbol name if the value is one" do
|
47
|
+
subject.default(Element, :align_h).should be :left
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should give the correct value for a defined constant" do
|
51
|
+
subject.default(VerticalScrollBar, :width).should equal 12
|
52
|
+
end
|
53
|
+
|
54
|
+
it "should give the correct value for a color defined in an ancestor class" do
|
55
|
+
subject.default(Label, :color).should eq Gosu::Color.rgb(255, 255, 255)
|
56
|
+
end
|
57
|
+
|
58
|
+
it "should give the correct value for a defined nested value" do
|
59
|
+
subject.default(Fidgit::Button, [:disabled, :background_color]).should eq Gosu::Color.rgb(50, 50, 50)
|
60
|
+
end
|
61
|
+
|
62
|
+
it "should give the outer value for an undefined nested value" do
|
63
|
+
subject.default(Element, [:hover, :color]).should eq Gosu::Color.rgb(255, 255, 255)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Test case schema
|
2
|
+
---
|
3
|
+
|
4
|
+
# Define all constant values here. For colours, use [R, G, B] or [R, G, B, A].
|
5
|
+
# Reference constants with ?constant_name
|
6
|
+
:constants:
|
7
|
+
# General constants (strings and numbers).
|
8
|
+
:scroll_bar_thickness: 12
|
9
|
+
|
10
|
+
# Gosu::Color constants
|
11
|
+
:none: [0, 0, 0, 0]
|
12
|
+
:white: [255, 255, 255]
|
13
|
+
:gray: [100, 100, 100]
|
14
|
+
:dark_gray: [50, 50, 50]
|
15
|
+
|
16
|
+
# Default element attributes.
|
17
|
+
:elements:
|
18
|
+
:Button:
|
19
|
+
:background_color: ?gray
|
20
|
+
|
21
|
+
:disabled:
|
22
|
+
:background_color: ?dark_gray
|
23
|
+
|
24
|
+
:Element:
|
25
|
+
:color: ?white
|
26
|
+
:align_h: :left
|
27
|
+
|
28
|
+
:HorizontalScrollBar:
|
29
|
+
:height: ?scroll_bar_thickness
|
30
|
+
|
31
|
+
:VerticalScrollBar:
|
32
|
+
:width: ?scroll_bar_thickness
|
metadata
ADDED
@@ -0,0 +1,320 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: colstrom-fidgit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.7
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bil Bas (Spooner)
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: gosu
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.7.41
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.7.41
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: chingu
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.9rc9
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.9rc9
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: clipboard
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.9'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.9.9
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.9'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 0.9.9
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: ffi
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '1.0'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.0.11
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.0'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 1.0.11
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: rspec
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '2.8'
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.8.0
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.8'
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 2.8.0
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: texplay
|
109
|
+
requirement: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0.4'
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.4.3
|
117
|
+
type: :development
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0.4'
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 0.4.3
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rake
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '10.3'
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 10.3.2
|
137
|
+
type: :development
|
138
|
+
prerelease: false
|
139
|
+
version_requirements: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '10.3'
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 10.3.2
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: yard
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 0.8.7
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: 0.8.7.4
|
157
|
+
type: :development
|
158
|
+
prerelease: false
|
159
|
+
version_requirements: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - "~>"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: 0.8.7
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.8.7.4
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: RedCloth
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '4.2'
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: 4.2.9
|
177
|
+
type: :development
|
178
|
+
prerelease: false
|
179
|
+
version_requirements: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - "~>"
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '4.2'
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 4.2.9
|
187
|
+
description: Fidgit is a GUI library built on Gosu/Chingu
|
188
|
+
email:
|
189
|
+
- bil.bagpuss@gmail.com
|
190
|
+
executables: []
|
191
|
+
extensions: []
|
192
|
+
extra_rdoc_files: []
|
193
|
+
files:
|
194
|
+
- ".gitignore"
|
195
|
+
- ".rspec"
|
196
|
+
- CHANGELOG.md
|
197
|
+
- Gemfile
|
198
|
+
- LICENSE.txt
|
199
|
+
- README.md
|
200
|
+
- Rakefile
|
201
|
+
- config/default_schema.yml
|
202
|
+
- examples/_all_examples.rb
|
203
|
+
- examples/align_example.rb
|
204
|
+
- examples/button_and_toggle_button_example.rb
|
205
|
+
- examples/color_picker_example.rb
|
206
|
+
- examples/color_well_example.rb
|
207
|
+
- examples/combo_box_example.rb
|
208
|
+
- examples/file_dialog_example.rb
|
209
|
+
- examples/grid_packer_example.rb
|
210
|
+
- examples/helpers/example_window.rb
|
211
|
+
- examples/label_example.rb
|
212
|
+
- examples/list_example.rb
|
213
|
+
- examples/media/images/head_icon.png
|
214
|
+
- examples/menu_pane_example.rb
|
215
|
+
- examples/message_dialog_example.rb
|
216
|
+
- examples/radio_button_example.rb
|
217
|
+
- examples/readme_example.rb
|
218
|
+
- examples/scroll_window_example.rb
|
219
|
+
- examples/slider_example.rb
|
220
|
+
- examples/splash_example.rb
|
221
|
+
- examples/text_area_example.rb
|
222
|
+
- fidgit.gemspec
|
223
|
+
- lib/fidgit.rb
|
224
|
+
- lib/fidgit/chingu_ext/window.rb
|
225
|
+
- lib/fidgit/cursor.rb
|
226
|
+
- lib/fidgit/elements/button.rb
|
227
|
+
- lib/fidgit/elements/color_picker.rb
|
228
|
+
- lib/fidgit/elements/color_well.rb
|
229
|
+
- lib/fidgit/elements/combo_box.rb
|
230
|
+
- lib/fidgit/elements/composite.rb
|
231
|
+
- lib/fidgit/elements/container.rb
|
232
|
+
- lib/fidgit/elements/element.rb
|
233
|
+
- lib/fidgit/elements/file_browser.rb
|
234
|
+
- lib/fidgit/elements/grid.rb
|
235
|
+
- lib/fidgit/elements/group.rb
|
236
|
+
- lib/fidgit/elements/horizontal.rb
|
237
|
+
- lib/fidgit/elements/image_frame.rb
|
238
|
+
- lib/fidgit/elements/label.rb
|
239
|
+
- lib/fidgit/elements/list.rb
|
240
|
+
- lib/fidgit/elements/main_packer.rb
|
241
|
+
- lib/fidgit/elements/menu_pane.rb
|
242
|
+
- lib/fidgit/elements/packer.rb
|
243
|
+
- lib/fidgit/elements/radio_button.rb
|
244
|
+
- lib/fidgit/elements/scroll_area.rb
|
245
|
+
- lib/fidgit/elements/scroll_bar.rb
|
246
|
+
- lib/fidgit/elements/scroll_window.rb
|
247
|
+
- lib/fidgit/elements/slider.rb
|
248
|
+
- lib/fidgit/elements/text_area.rb
|
249
|
+
- lib/fidgit/elements/text_line.rb
|
250
|
+
- lib/fidgit/elements/toggle_button.rb
|
251
|
+
- lib/fidgit/elements/tool_tip.rb
|
252
|
+
- lib/fidgit/elements/vertical.rb
|
253
|
+
- lib/fidgit/event.rb
|
254
|
+
- lib/fidgit/gosu_ext/color.rb
|
255
|
+
- lib/fidgit/gosu_ext/gosu_module.rb
|
256
|
+
- lib/fidgit/history.rb
|
257
|
+
- lib/fidgit/redirector.rb
|
258
|
+
- lib/fidgit/schema.rb
|
259
|
+
- lib/fidgit/selection.rb
|
260
|
+
- lib/fidgit/standard_ext/hash.rb
|
261
|
+
- lib/fidgit/states/dialog_state.rb
|
262
|
+
- lib/fidgit/states/file_dialog.rb
|
263
|
+
- lib/fidgit/states/gui_state.rb
|
264
|
+
- lib/fidgit/states/message_dialog.rb
|
265
|
+
- lib/fidgit/version.rb
|
266
|
+
- lib/fidgit/window.rb
|
267
|
+
- media/images/arrow.png
|
268
|
+
- media/images/combo_arrow.png
|
269
|
+
- media/images/file_directory.png
|
270
|
+
- media/images/file_file.png
|
271
|
+
- media/images/pixel.png
|
272
|
+
- spec/fidgit/elements/helpers/helper.rb
|
273
|
+
- spec/fidgit/elements/helpers/tex_play_helper.rb
|
274
|
+
- spec/fidgit/elements/image_frame_spec.rb
|
275
|
+
- spec/fidgit/elements/label_spec.rb
|
276
|
+
- spec/fidgit/event_spec.rb
|
277
|
+
- spec/fidgit/gosu_ext/color_spec.rb
|
278
|
+
- spec/fidgit/gosu_ext/helpers/helper.rb
|
279
|
+
- spec/fidgit/helpers/helper.rb
|
280
|
+
- spec/fidgit/history_spec.rb
|
281
|
+
- spec/fidgit/redirector_spec.rb
|
282
|
+
- spec/fidgit/schema_spec.rb
|
283
|
+
- spec/fidgit/schema_test.yml
|
284
|
+
homepage: http://github.com/Spooner/fidgit/
|
285
|
+
licenses:
|
286
|
+
- MIT
|
287
|
+
metadata: {}
|
288
|
+
post_install_message:
|
289
|
+
rdoc_options: []
|
290
|
+
require_paths:
|
291
|
+
- lib
|
292
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
293
|
+
requirements:
|
294
|
+
- - ">="
|
295
|
+
- !ruby/object:Gem::Version
|
296
|
+
version: 1.9.2
|
297
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
|
+
requirements:
|
299
|
+
- - ">="
|
300
|
+
- !ruby/object:Gem::Version
|
301
|
+
version: '0'
|
302
|
+
requirements: []
|
303
|
+
rubyforge_project: fidgit
|
304
|
+
rubygems_version: 2.6.7
|
305
|
+
signing_key:
|
306
|
+
specification_version: 4
|
307
|
+
summary: colstrom's fork of Spooner/fidgit
|
308
|
+
test_files:
|
309
|
+
- spec/fidgit/elements/helpers/helper.rb
|
310
|
+
- spec/fidgit/elements/helpers/tex_play_helper.rb
|
311
|
+
- spec/fidgit/elements/image_frame_spec.rb
|
312
|
+
- spec/fidgit/elements/label_spec.rb
|
313
|
+
- spec/fidgit/event_spec.rb
|
314
|
+
- spec/fidgit/gosu_ext/color_spec.rb
|
315
|
+
- spec/fidgit/gosu_ext/helpers/helper.rb
|
316
|
+
- spec/fidgit/helpers/helper.rb
|
317
|
+
- spec/fidgit/history_spec.rb
|
318
|
+
- spec/fidgit/redirector_spec.rb
|
319
|
+
- spec/fidgit/schema_spec.rb
|
320
|
+
- spec/fidgit/schema_test.yml
|