rays 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -1
- data/VERSION +1 -1
- data/ext/rays/extconf.rb +4 -2
- data/lib/rays/module.rb +12 -12
- data/lib/rays/painter.rb +1 -1
- data/rays.gemspec +7 -6
- data/src/cocoa/bitmap.mm +1 -1
- data/src/cocoa/font.mm +1 -1
- data/src/cocoa/{helpers.h → helper.h} +2 -2
- data/src/cocoa/{helpers.mm → helper.mm} +1 -1
- data/test/{helpers.rb → helper.rb} +3 -1
- data/test/test_bitmap.rb +1 -1
- data/test/test_bounds.rb +1 -1
- data/test/test_color.rb +1 -1
- data/test/test_font.rb +1 -1
- data/test/test_image.rb +1 -1
- data/test/test_painter.rb +1 -1
- data/test/test_point.rb +1 -1
- data/test/test_rays.rb +1 -1
- data/test/test_texture.rb +1 -1
- metadata +9 -28
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/ext/rays/extconf.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
3
|
|
4
|
-
require '
|
4
|
+
require 'xot/load_path'
|
5
|
+
Xot::LoadPath.unshift_lib File.expand_path('../../../..', __FILE__), :rays
|
6
|
+
|
5
7
|
require 'mkmf'
|
6
|
-
require 'xot/rake
|
8
|
+
require 'xot/rake'
|
7
9
|
require 'xot/module'
|
8
10
|
require 'rucy/module'
|
9
11
|
require 'rays/module'
|
data/lib/rays/module.rb
CHANGED
@@ -4,22 +4,26 @@
|
|
4
4
|
module Rays
|
5
5
|
|
6
6
|
|
7
|
-
extend module
|
7
|
+
extend module ModuleInfo
|
8
8
|
|
9
|
-
def
|
10
|
-
|
9
|
+
def version ()
|
10
|
+
open(root_dir 'VERSION') {|f| f.readline.chomp}
|
11
|
+
end
|
12
|
+
|
13
|
+
def root_dir (path = '')
|
14
|
+
File.expand_path "../../../#{path}", __FILE__
|
11
15
|
end
|
12
16
|
|
13
17
|
def include_dirs ()
|
14
|
-
[
|
18
|
+
%w[include].map {|dir| root_dir dir}
|
15
19
|
end
|
16
20
|
|
17
|
-
def
|
18
|
-
%w[lib
|
21
|
+
def lib_dirs ()
|
22
|
+
%w[lib].map {|dir| root_dir dir}
|
19
23
|
end
|
20
24
|
|
21
25
|
def task_dir ()
|
22
|
-
|
26
|
+
root_dir 'task'
|
23
27
|
end
|
24
28
|
|
25
29
|
def load_tasks (*names)
|
@@ -33,13 +37,9 @@ module Rays
|
|
33
37
|
end
|
34
38
|
end
|
35
39
|
|
36
|
-
def version ()
|
37
|
-
open(File.join root_dir, 'VERSION') {|f| f.readline.chomp}
|
38
|
-
end
|
39
|
-
|
40
40
|
self
|
41
41
|
|
42
|
-
end#
|
42
|
+
end# ModuleInfo
|
43
43
|
|
44
44
|
|
45
45
|
end# Rays
|
data/lib/rays/painter.rb
CHANGED
data/rays.gemspec
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
# -*- mode: ruby; coding: utf-8 -*-
|
2
2
|
|
3
3
|
|
4
|
-
|
4
|
+
$:.unshift File.expand_path('../lib', __FILE__) do |path|
|
5
|
+
$:.unshift path if !$:.include?(path) && File.directory?(path)
|
6
|
+
end
|
5
7
|
|
6
8
|
require 'rays/module'
|
7
9
|
|
8
10
|
|
9
11
|
Gem::Specification.new do |s|
|
10
|
-
|
12
|
+
glob = -> *patterns do
|
11
13
|
patterns.map {|pat| Dir.glob(pat).to_a}.flatten
|
12
14
|
end
|
13
15
|
|
14
16
|
mod = Rays
|
15
17
|
name = mod.name.downcase
|
16
|
-
rdocs = glob *%w[README .doc/ext/**/*.cpp]
|
18
|
+
rdocs = glob.call *%w[README .doc/ext/**/*.cpp]
|
17
19
|
|
18
20
|
s.name = name
|
19
21
|
s.summary = 'A Drawing Engine using OpenGL.'
|
@@ -22,15 +24,14 @@ Gem::Specification.new do |s|
|
|
22
24
|
|
23
25
|
s.authors = %w[snori]
|
24
26
|
s.email = 'snori@xord.org'
|
25
|
-
s.homepage = "http://github.com/xord/#{name}"
|
27
|
+
s.homepage = "http://github.com/xord/#{name}/wiki"
|
26
28
|
|
27
29
|
s.platform = Gem::Platform::RUBY
|
28
30
|
s.required_ruby_version = '>=1.9.0'
|
29
31
|
|
30
|
-
s.add_runtime_dependency '
|
32
|
+
s.add_runtime_dependency 'rake'
|
31
33
|
s.add_runtime_dependency 'xot'
|
32
34
|
s.add_runtime_dependency 'rucy'
|
33
|
-
s.add_development_dependency 'rake'
|
34
35
|
s.add_development_dependency 'gemcutter'
|
35
36
|
|
36
37
|
s.files = `git ls-files`.split $/
|
data/src/cocoa/bitmap.mm
CHANGED
data/src/cocoa/font.mm
CHANGED
data/test/test_bitmap.rb
CHANGED
data/test/test_bounds.rb
CHANGED
data/test/test_color.rb
CHANGED
data/test/test_font.rb
CHANGED
data/test/test_image.rb
CHANGED
data/test/test_painter.rb
CHANGED
data/test/test_point.rb
CHANGED
data/test/test_rays.rb
CHANGED
data/test/test_texture.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: rake
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
@@ -59,22 +59,6 @@ dependencies:
|
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
62
|
- !ruby/object:Gem::Dependency
|
79
63
|
name: gemcutter
|
80
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,8 +153,8 @@ files:
|
|
169
153
|
- src/bounds.cpp
|
170
154
|
- src/cocoa/bitmap.mm
|
171
155
|
- src/cocoa/font.mm
|
172
|
-
- src/cocoa/
|
173
|
-
- src/cocoa/
|
156
|
+
- src/cocoa/helper.h
|
157
|
+
- src/cocoa/helper.mm
|
174
158
|
- src/cocoa/rays.mm
|
175
159
|
- src/color.cpp
|
176
160
|
- src/colorspace.cpp
|
@@ -185,7 +169,7 @@ files:
|
|
185
169
|
- src/win32/gdi.cpp
|
186
170
|
- src/win32/gdi.h
|
187
171
|
- src/win32/rays.cpp
|
188
|
-
- test/
|
172
|
+
- test/helper.rb
|
189
173
|
- test/test_bitmap.rb
|
190
174
|
- test/test_bounds.rb
|
191
175
|
- test/test_color.rb
|
@@ -206,7 +190,7 @@ files:
|
|
206
190
|
- .doc/ext/rays/point.cpp
|
207
191
|
- .doc/ext/rays/rays.cpp
|
208
192
|
- .doc/ext/rays/texture.cpp
|
209
|
-
homepage: http://github.com/xord/rays
|
193
|
+
homepage: http://github.com/xord/rays/wiki
|
210
194
|
licenses: []
|
211
195
|
post_install_message:
|
212
196
|
rdoc_options: []
|
@@ -224,17 +208,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
208
|
- - ! '>='
|
225
209
|
- !ruby/object:Gem::Version
|
226
210
|
version: '0'
|
227
|
-
segments:
|
228
|
-
- 0
|
229
|
-
hash: 2102975611115655043
|
230
211
|
requirements: []
|
231
212
|
rubyforge_project:
|
232
|
-
rubygems_version: 1.8.
|
213
|
+
rubygems_version: 1.8.24
|
233
214
|
signing_key:
|
234
215
|
specification_version: 3
|
235
216
|
summary: A Drawing Engine using OpenGL.
|
236
217
|
test_files:
|
237
|
-
- test/
|
218
|
+
- test/helper.rb
|
238
219
|
- test/test_bitmap.rb
|
239
220
|
- test/test_bounds.rb
|
240
221
|
- test/test_color.rb
|