smalruby 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of smalruby might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/smalruby.rb +2 -4
- data/lib/smalruby/canvas.rb +1 -1
- data/lib/smalruby/character.rb +1 -1
- data/lib/smalruby/hardware/rgb_led_anode.rb +1 -1
- data/lib/smalruby/hardware/rgb_led_cathode.rb +1 -1
- data/lib/smalruby/hardware/two_wheel_drive_car.rb +1 -1
- data/lib/smalruby/stage.rb +1 -1
- data/lib/smalruby/version.rb +1 -1
- data/smalruby.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd285df4e5ed7dc20987996814a8c7065b58880
|
4
|
+
data.tar.gz: dff714bd8ecbfe6f7723891c69399bbdf19b70b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 835eec75c5ff2fa2d94faca0ec04b9f696751e4d974c730d0a3dbb1e688a47ad37916c804085deda7060c0d383ce09cacafe82e199b44622fbd21ae0f522ae76
|
7
|
+
data.tar.gz: b53b2b9aed66fd397347b0c7f2c380ecbe6f9298779bdde935c49da345ed3bf69fa26982ef4dc0fffcad09808736088b10d3fc7d68b84bbfc9a3a6793013760c
|
data/.rubocop.yml
CHANGED
data/lib/smalruby.rb
CHANGED
@@ -131,9 +131,7 @@ module Smalruby
|
|
131
131
|
button_change
|
132
132
|
|
133
133
|
world.objects.delete_if do |o|
|
134
|
-
|
135
|
-
o.join
|
136
|
-
end
|
134
|
+
o.join unless o.alive?
|
137
135
|
o.vanished?
|
138
136
|
end
|
139
137
|
|
@@ -149,7 +147,7 @@ module Smalruby
|
|
149
147
|
world.objects.each(&:join)
|
150
148
|
end
|
151
149
|
|
152
|
-
def lock
|
150
|
+
def lock
|
153
151
|
@draw_mutex.synchronize do
|
154
152
|
yield
|
155
153
|
@draw_cv.broadcast
|
data/lib/smalruby/canvas.rb
CHANGED
@@ -13,7 +13,7 @@ module Smalruby
|
|
13
13
|
opts = Util.process_options(options, defaults)
|
14
14
|
|
15
15
|
opts[:costume] = Image.new(opts[:width], opts[:height])
|
16
|
-
super(opts.reject { |k,
|
16
|
+
super(opts.reject { |k, _| [:width, :height].include?(k) })
|
17
17
|
end
|
18
18
|
|
19
19
|
# @!group ペン
|
data/lib/smalruby/character.rb
CHANGED
data/lib/smalruby/stage.rb
CHANGED
data/lib/smalruby/version.rb
CHANGED
data/smalruby.gemspec
CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
if is_windows
|
41
41
|
spec.add_runtime_dependency 'dxruby'
|
42
42
|
else
|
43
|
-
spec.add_runtime_dependency 'dxruby_sdl', '~> 0.0.
|
43
|
+
spec.add_runtime_dependency 'dxruby_sdl', '~> 0.0.7'
|
44
44
|
end
|
45
45
|
spec.add_runtime_dependency 'dino', '~> 0.11.2'
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smalruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouji Takao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04
|
11
|
+
date: 2014-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - ~>
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.0.
|
187
|
+
version: 0.0.7
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - ~>
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 0.0.
|
194
|
+
version: 0.0.7
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: dino
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|