Commit 766dcfd
Changed files (7)
lib/boot/container_configuration.rb
@@ -1,5 +1,5 @@
class ContainerConfiguration
- extend Command
+ extend Nasty::Command
def self.run(container)
container.register(:event_aggregator) { EventAggregator.new }.as_singleton
lib/boot/events_registration.rb
@@ -1,5 +1,5 @@
class EventsRegistration
- extend Command
+ extend Nasty::Command
def self.run(container)
register_items_with(container.resolve(:event_aggregator))
lib/utility/command.rb
@@ -1,5 +0,0 @@
-module Command
- def then(other_command)
- CompositeCommand.new(self, other_command)
- end
-end
lib/utility/composite_command.rb
@@ -1,11 +0,0 @@
-class CompositeCommand
- def initialize(first, last)
- @first = first
- @last = last
- end
-
- def run(*args)
- @first.run(*args)
- @last.run(*args)
- end
-end
lib/application.rb
@@ -1,7 +1,6 @@
require 'rubygems'
require 'bundler'
Bundler.require(:default)
-require_relative 'utility/command.rb'
Dir["lib/**/*.rb"].each do |file|
$:.unshift(File.dirname(file)) unless $:.include?(File.dirname(file))
Gemfile
@@ -2,6 +2,7 @@ source "https://rubygems.org"
gem 'gtk2'
gem 'spank'
+gem 'nasty'
group :test do
gem 'rspec'
Gemfile.lock
@@ -14,6 +14,7 @@ GEM
atk (= 2.0.2)
gdk_pixbuf2 (= 2.0.2)
pango (= 2.0.2)
+ nasty (0.0.1386739849)
pango (2.0.2)
cairo (>= 1.12.5)
glib2 (= 2.0.2)
@@ -33,5 +34,6 @@ PLATFORMS
DEPENDENCIES
gtk2
+ nasty
rspec
spank