smalruby 0.0.5-x86-mingw32 → 0.0.6-x86-mingw32

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: c97b7635bf897b9c568b789e0700cbd259e3e48d
4
- data.tar.gz: a5ed5cfc94e1a22b881bc34ea08445ec6cb195a3
3
+ metadata.gz: 9b90a03f7a6fde1edd8107ad920573175b6f8697
4
+ data.tar.gz: bc2a40ff596968d3f0f40ecd2001b3750e619569
5
5
  SHA512:
6
- metadata.gz: dabbb222a06e49e9194707c38afdb921c4ab5dd8af0df7775d57062cbf9e0124daecceae2e1ded295eced8ee1c8486cd78e1854031d5a9956df2bb58b3deee82
7
- data.tar.gz: dcd4bdb3b0c3eb9713845e212ca135ff398a7b912da78c6d5d0723c71aad0906170f4a6b06215dd66e0c34561baae271c5d1e23db2e24f2ab1f6e436402ae09e
6
+ metadata.gz: 1532ea6f0c03511af687970a663b555783e5ebe9c3a872362bf68c55cc18710b18905788a5b6b6ee7cfbaef8d2ead15246bab4c15095af70e9974fef082e9d35
7
+ data.tar.gz: ee581f81699299c61668952483f7d8a18235664c8c4f821af104c9f23f43fe720b84b87d2656eb1f31093e8353427bee12f612437e3f2cbbf38797c0e912a6ce
data/LEGAL CHANGED
@@ -5,8 +5,10 @@ All the files in this distribution are covered under either the
5
5
  smalruby's license (see the file LICENSE) except some files
6
6
  mentioned below.
7
7
 
8
- assets/car1.png, assets/car2.png, assets/car3.png, assets/car4.png,
9
- assets/cat1.png, assets/cat2.png, assets/cat3.png, assets/frog1.png,
8
+ assets/ball1.png, assets/ball2.png, assets/ball3.png,
9
+ assets/ball4.png, assets/ball5.png, assets/ball6.png, assets/car1.png,
10
+ assets/car2.png, assets/car3.png, assets/car4.png, assets/cat1.png,
11
+ assets/cat2.png, assets/cat3.png, assets/frog1.png,
10
12
  samples/extra_car.png:
11
13
 
12
14
  These are downloaded from ICON HOIHOI http://iconhoihoi.oops.jp/.
data/assets/ball1.png ADDED
Binary file
data/assets/ball2.png ADDED
Binary file
data/assets/ball3.png ADDED
Binary file
data/assets/ball4.png ADDED
Binary file
data/assets/ball5.png ADDED
Binary file
data/assets/ball6.png ADDED
Binary file
@@ -14,7 +14,6 @@ module Smalruby
14
14
 
15
15
  opt[:costume] = Image.new(opt[:width], opt[:height])
16
16
  super(opt.reject { |k, v| [:width, :height].include?(k) })
17
- image.set_color_key([0, 0, 0])
18
17
  end
19
18
 
20
19
  # @!group ペン
@@ -153,9 +153,14 @@ module Smalruby
153
153
  # Smalrubyの色名からDXRubyの色コードに変換する
154
154
  def smalruby_to_dxruby(color)
155
155
  if color.is_a?(String)
156
- return NAME_TO_CODE[color.downcase]
156
+ color = color.downcase
157
+ if color == 'random'
158
+ [rand(0..0xff), rand(0..0xff), rand(0..0xff)]
159
+ else
160
+ NAME_TO_CODE[color]
161
+ end
157
162
  else
158
- return color
163
+ color
159
164
  end
160
165
  end
161
166
  end
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module Smalruby
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
data/smalruby.gemspec CHANGED
@@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency 'guard-rspec'
36
36
  spec.add_development_dependency 'guard-rubocop'
37
37
 
38
+ spec.add_runtime_dependency 'mime-types', '~> 1.6'
38
39
  spec.add_runtime_dependency 'activesupport'
39
40
  if is_windows
40
41
  spec.add_runtime_dependency 'dxruby'
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.5
4
+ version: 0.0.6
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Kouji Takao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-13 00:00:00.000000000 Z
11
+ date: 2014-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: mime-types
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ version: '1.6'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ~>
165
+ - !ruby/object:Gem::Version
166
+ version: '1.6'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: activesupport
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -195,6 +209,12 @@ files:
195
209
  - LICENSE
196
210
  - README.md
197
211
  - Rakefile
212
+ - assets/ball1.png
213
+ - assets/ball2.png
214
+ - assets/ball3.png
215
+ - assets/ball4.png
216
+ - assets/ball5.png
217
+ - assets/ball6.png
198
218
  - assets/car1.png
199
219
  - assets/car2.png
200
220
  - assets/car3.png