From aa41134d58b16b1fb88482865a80bb44eb9e1052 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Mon, 25 Apr 2016 17:20:21 -0400 Subject: General tidying up --- README.md | 2 +- ext/ruby2d/extconf.rb | 2 +- lib/ruby2d/dsl.rb | 4 ---- lib/ruby2d/window.rb | 22 +++++++--------------- 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index ee012a8..13009fa 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Ruby 2D uses a combination of automated tests via [RSpec](http://rspec.info) and ## Preparing a Release -1. Update the minimum Simple 2D version required in [extconf.rb](ext/ruby2d/extconf.rb) +1. Update the Simple 2D minimum version required in [extconf.rb](ext/ruby2d/extconf.rb) 2. Run tests on all supported platforms 3. Update the version number in [`version.rb`](lib/ruby2d/version.rb), commit changes 4. Create a [new release](https://github.com/ruby2d/ruby2d/releases) in GitHub, with tag in the form `v#.#.#` diff --git a/ext/ruby2d/extconf.rb b/ext/ruby2d/extconf.rb index d4c620f..ac9d521 100644 --- a/ext/ruby2d/extconf.rb +++ b/ext/ruby2d/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' -S2D_VERSION = '0.2.1' # Simple 2D version required +S2D_VERSION = '0.2.1' # Simple 2D minimum version required $errors = [] class String diff --git a/lib/ruby2d/dsl.rb b/lib/ruby2d/dsl.rb index ef8f384..93fedb3 100644 --- a/lib/ruby2d/dsl.rb +++ b/lib/ruby2d/dsl.rb @@ -1,10 +1,6 @@ # dsl.rb module Ruby2D::DSL - def hello - puts "hi" - end - def get(sym) Ruby2D::Application.get(sym) end diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb index 299a1dd..5889c5d 100644 --- a/lib/ruby2d/window.rb +++ b/lib/ruby2d/window.rb @@ -10,7 +10,6 @@ module Ruby2D @fps_cap = fps @fps = 60 @vsync = vsync - @objects = [] @keys = {} @keys_down = {} @@ -20,20 +19,13 @@ module Ruby2D def get(sym) case sym - when :window - return self - when :title - return @title - when :width - return @width - when :height - return @height - when :fps - return @fps - when :mouse_x - return @mouse_x - when :mouse_y - return @mouse_y + when :window; self + when :title; @title + when :width; @width + when :height; @height + when :fps; @fps + when :mouse_x; @mouse_x + when :mouse_y; @mouse_y end end -- cgit v1.2.3