-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shoes now depends upon one of Shoes Gui Plugins : WhiteShoes - The "null adapter", this plugin contains the minimum strucutre to pass the basic requirements of a plugin. SwtShoes - Gui based upon Eclipse SWT Java lib. SwingShoes - Gui based upon Java Swing. Specs for WhiteShoes include some expectations that should be set upon every Gui implementation. These are held in ./spec/white_shoes/shared_examples. There will be one shared-example for each Shoes::<class>
- Loading branch information
1 parent
800a475
commit b8093ac
Showing
31 changed files
with
285 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
module WhiteShoes | ||
# Adapter Template for the BaseApp methods specific for the framework. | ||
class App < Base | ||
module App | ||
|
||
def initialize(adapted_object) | ||
super | ||
def gui_init | ||
self.gui_container = "A new Gui Container Instance" | ||
end | ||
|
||
# Runs the application, starting anything the framework needs. | ||
def run | ||
end | ||
|
||
# Refreshes the GUI application, running just one event loop. | ||
# | ||
# This method is mostly useful when writing tests. It shouldn't be used | ||
# in normal applications. | ||
def refresh | ||
end | ||
|
||
# Exits the application, freeing any resources used by the framework. | ||
def quit | ||
def gui_open | ||
# no-op | ||
end | ||
end | ||
end | ||
|
||
class Shoes::App | ||
include WhiteShoes::App | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env jruby --1.9 --debug | ||
# | ||
# This file was generated by RubyGems. | ||
# | ||
# The application 'rspec-core' is installed as part of a gem, and | ||
# this file is here to facilitate running it. | ||
# | ||
|
||
require 'rubygems' | ||
|
||
version = ">= 0" | ||
|
||
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then | ||
version = $1 | ||
ARGV.shift | ||
end | ||
|
||
gem 'rspec-core', version | ||
load Gem.bin_path('rspec-core', 'rspec', version) | ||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.