dxruby_sdl 0.0.4 → 0.0.5

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.
data/spec/spec_helper.rb CHANGED
@@ -9,3 +9,12 @@ require 'dxruby_sdl'
9
9
  Dir.glob(File.expand_path('../support/**/*.rb', __FILE__)).each do |path|
10
10
  require path
11
11
  end
12
+
13
+ RSpec.configure do |config|
14
+ config.before(:each) do
15
+ DXRubySDL::Input.instance_variable_set('@keys', Set.new)
16
+ DXRubySDL::Input.instance_variable_set('@checked_keys', Set.new)
17
+ DXRubySDL::Input.instance_variable_set('@down_keys', Set.new)
18
+ DXRubySDL::Input.instance_variable_set('@joysticks', [])
19
+ end
20
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dxruby_sdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouji Takao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-10 00:00:00.000000000 Z
11
+ date: 2013-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -178,6 +178,7 @@ files:
178
178
  - lib/dxruby_sdl/input.rb
179
179
  - lib/dxruby_sdl/sound.rb
180
180
  - lib/dxruby_sdl/sound_effect.rb
181
+ - lib/dxruby_sdl/sprite.rb
181
182
  - lib/dxruby_sdl/version.rb
182
183
  - lib/dxruby_sdl/window.rb
183
184
  - lib/dxruby_sdl/window/fpstimer.rb
@@ -197,20 +198,21 @@ files:
197
198
  - samples/tutorial-2-08.rb
198
199
  - samples/tutorial-2-09.rb
199
200
  - samples/tutorial-2-10.rb
200
- - spec/dxruby_sdl/color_spec.rb
201
- - spec/dxruby_sdl/font_spec.rb
202
- - spec/dxruby_sdl/image_spec.rb
203
- - spec/dxruby_sdl/input_spec.rb
204
- - spec/dxruby_sdl/sound_effect_spec.rb
205
- - spec/dxruby_sdl/sound_spec.rb
206
- - spec/dxruby_sdl/window__draw_spec.rb
207
- - spec/dxruby_sdl/window_spec.rb
208
- - spec/dxruby_sdl_spec.rb
209
- - spec/dxruby_spec.rb
210
201
  - spec/fixtures/bgm.mid
211
202
  - spec/fixtures/logo.jpg
212
203
  - spec/fixtures/logo.png
213
204
  - spec/fixtures/sound.wav
205
+ - spec/lib/dxruby_sdl/color_spec.rb
206
+ - spec/lib/dxruby_sdl/font_spec.rb
207
+ - spec/lib/dxruby_sdl/image_spec.rb
208
+ - spec/lib/dxruby_sdl/input_spec.rb
209
+ - spec/lib/dxruby_sdl/sound_effect_spec.rb
210
+ - spec/lib/dxruby_sdl/sound_spec.rb
211
+ - spec/lib/dxruby_sdl/sprite_spec.rb
212
+ - spec/lib/dxruby_sdl/window__draw_spec.rb
213
+ - spec/lib/dxruby_sdl/window_spec.rb
214
+ - spec/lib/dxruby_sdl_spec.rb
215
+ - spec/lib/dxruby_spec.rb
214
216
  - spec/spec_helper.rb
215
217
  - spec/support/fixture_helper.rb
216
218
  homepage: https://github.com/takaokouji/dxruby-sdl
@@ -238,19 +240,20 @@ signing_key:
238
240
  specification_version: 4
239
241
  summary: 2D graphics and game library
240
242
  test_files:
241
- - spec/dxruby_sdl/color_spec.rb
242
- - spec/dxruby_sdl/font_spec.rb
243
- - spec/dxruby_sdl/image_spec.rb
244
- - spec/dxruby_sdl/input_spec.rb
245
- - spec/dxruby_sdl/sound_effect_spec.rb
246
- - spec/dxruby_sdl/sound_spec.rb
247
- - spec/dxruby_sdl/window__draw_spec.rb
248
- - spec/dxruby_sdl/window_spec.rb
249
- - spec/dxruby_sdl_spec.rb
250
- - spec/dxruby_spec.rb
251
243
  - spec/fixtures/bgm.mid
252
244
  - spec/fixtures/logo.jpg
253
245
  - spec/fixtures/logo.png
254
246
  - spec/fixtures/sound.wav
247
+ - spec/lib/dxruby_sdl/color_spec.rb
248
+ - spec/lib/dxruby_sdl/font_spec.rb
249
+ - spec/lib/dxruby_sdl/image_spec.rb
250
+ - spec/lib/dxruby_sdl/input_spec.rb
251
+ - spec/lib/dxruby_sdl/sound_effect_spec.rb
252
+ - spec/lib/dxruby_sdl/sound_spec.rb
253
+ - spec/lib/dxruby_sdl/sprite_spec.rb
254
+ - spec/lib/dxruby_sdl/window__draw_spec.rb
255
+ - spec/lib/dxruby_sdl/window_spec.rb
256
+ - spec/lib/dxruby_sdl_spec.rb
257
+ - spec/lib/dxruby_spec.rb
255
258
  - spec/spec_helper.rb
256
259
  - spec/support/fixture_helper.rb
@@ -1,13 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require 'spec_helper'
3
-
4
- describe DXRubySDL::Font, 'フォントを表すクラス' do
5
- describe '.new' do
6
- given = 32
7
- context "大きさ(#{given.inspect})を指定した場合" do
8
- subject { DXRubySDL::Font.new(given) }
9
-
10
- its(:size) { should eq(given) }
11
- end
12
- end
13
- end