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 +4 -4
- data/LEGAL +4 -2
- data/assets/ball1.png +0 -0
- data/assets/ball2.png +0 -0
- data/assets/ball3.png +0 -0
- data/assets/ball4.png +0 -0
- data/assets/ball5.png +0 -0
- data/assets/ball6.png +0 -0
- data/lib/smalruby/canvas.rb +0 -1
- data/lib/smalruby/color.rb +7 -2
- data/lib/smalruby/version.rb +1 -1
- data/smalruby.gemspec +1 -0
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b90a03f7a6fde1edd8107ad920573175b6f8697
|
4
|
+
data.tar.gz: bc2a40ff596968d3f0f40ecd2001b3750e619569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
9
|
-
assets/
|
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
|
data/lib/smalruby/canvas.rb
CHANGED
data/lib/smalruby/color.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
163
|
+
color
|
159
164
|
end
|
160
165
|
end
|
161
166
|
end
|
data/lib/smalruby/version.rb
CHANGED
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.
|
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-
|
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
|