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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 538b2177a13c5123044e991a151547416cf0921a
4
- data.tar.gz: 0cc67cec856ccf0674c49fd554c5e479b48ccb6a
3
+ metadata.gz: bdd285df4e5ed7dc20987996814a8c7065b58880
4
+ data.tar.gz: dff714bd8ecbfe6f7723891c69399bbdf19b70b2
5
5
  SHA512:
6
- metadata.gz: 8ed37cf3462646db445abcc36187344d96bf9c7a9665baffd68994c4b27065c0fbd8f3fcd6b2eeb26c7ba0404345e778e8ec9727dcd9267e50d5f8491e815144
7
- data.tar.gz: 228f5691be187f20620e06cad8eab8a95d045f06be47ab57a91cbc6da8ce754efc65a67f5a6cd3a2f17d7b8057afe38d7878fecbea077176ff86b3df6ff0af46
6
+ metadata.gz: 835eec75c5ff2fa2d94faca0ec04b9f696751e4d974c730d0a3dbb1e688a47ad37916c804085deda7060c0d383ce09cacafe82e199b44622fbd21ae0f522ae76
7
+ data.tar.gz: b53b2b9aed66fd397347b0c7f2c380ecbe6f9298779bdde935c49da345ed3bf69fa26982ef4dc0fffcad09808736088b10d3fc7d68b84bbfc9a3a6793013760c
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- Excludes:
2
+ Exclude:
3
3
  - tmp/**
4
4
 
5
5
  MethodLength:
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
- if !o.alive?
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(&block)
150
+ def lock
153
151
  @draw_mutex.synchronize do
154
152
  yield
155
153
  @draw_cv.broadcast
@@ -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, v| [:width, :height].include?(k) })
16
+ super(opts.reject { |k, _| [:width, :height].include?(k) })
17
17
  end
18
18
 
19
19
  # @!group ペン
@@ -356,7 +356,7 @@ module Smalruby
356
356
  @threads.each(&:join)
357
357
  end
358
358
 
359
- def loop(&block)
359
+ def loop
360
360
  Kernel.loop do
361
361
  yield
362
362
  Smalruby.await
@@ -38,7 +38,7 @@ module Smalruby
38
38
 
39
39
  private
40
40
 
41
- def after_initialize(options = {})
41
+ def after_initialize(_ = {})
42
42
  set_pin_mode(pins[3], :out)
43
43
  off
44
44
  end
@@ -40,7 +40,7 @@ module Smalruby
40
40
 
41
41
  private
42
42
 
43
- def after_initialize(options = {})
43
+ def after_initialize(_ = {})
44
44
  off
45
45
  end
46
46
 
@@ -42,7 +42,7 @@ module Smalruby
42
42
 
43
43
  private
44
44
 
45
- def after_initialize(options = {})
45
+ def after_initialize(_ = {})
46
46
  pins.each do |pin|
47
47
  set_pin_mode(pin, :out)
48
48
  end
@@ -9,7 +9,7 @@ module Smalruby
9
9
  }
10
10
  opts = Util.process_options(options, defaults)
11
11
 
12
- super(opts.reject { |k, v| defaults.keys.include?(k) })
12
+ super(opts.reject { |k, _| defaults.keys.include?(k) })
13
13
 
14
14
  fill(color: opts[:color])
15
15
  end
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module Smalruby
4
- VERSION = '0.0.16'
4
+ VERSION = '0.0.17'
5
5
  end
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.6'
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.16
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-29 00:00:00.000000000 Z
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.6
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.6
194
+ version: 0.0.7
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: dino
197
197
  requirement: !ruby/object:Gem::Requirement