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 CHANGED
@@ -1,7 +1,9 @@
1
1
  # -*- mode: ruby; coding: utf-8 -*-
2
2
 
3
3
 
4
- require 'bundler/setup'
4
+ require 'xot/load_path'
5
+ Xot::LoadPath.unshift_lib File.expand_path('../..', __FILE__), :rays
6
+
5
7
  require 'xot/rake'
6
8
  require 'xot/module'
7
9
  require 'rucy/module'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -1,9 +1,11 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require 'bundler/setup'
4
+ require 'xot/load_path'
5
+ Xot::LoadPath.unshift_lib File.expand_path('../../../..', __FILE__), :rays
6
+
5
7
  require 'mkmf'
6
- require 'xot/rake/helpers'
8
+ require 'xot/rake'
7
9
  require 'xot/module'
8
10
  require 'rucy/module'
9
11
  require 'rays/module'
@@ -4,22 +4,26 @@
4
4
  module Rays
5
5
 
6
6
 
7
- extend module ClassMethods
7
+ extend module ModuleInfo
8
8
 
9
- def root_dir ()
10
- File.expand_path(File.join File.dirname(__FILE__), '..', '..')
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
- [File.join(root_dir, 'include')]
18
+ %w[include].map {|dir| root_dir dir}
15
19
  end
16
20
 
17
- def library_dirs ()
18
- %w[lib ext].map {|dir| File.join root_dir, dir}
21
+ def lib_dirs ()
22
+ %w[lib].map {|dir| root_dir dir}
19
23
  end
20
24
 
21
25
  def task_dir ()
22
- File.join root_dir, 'task'
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# ClassMethods
42
+ end# ModuleInfo
43
43
 
44
44
 
45
45
  end# Rays
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require 'xot/blockutil'
4
+ require 'xot/block_util'
5
5
  require 'rays/ext'
6
6
 
7
7
 
@@ -1,19 +1,21 @@
1
1
  # -*- mode: ruby; coding: utf-8 -*-
2
2
 
3
3
 
4
- $: << File.expand_path('../lib', __FILE__)
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
- def glob (*patterns)
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 'bundler'
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 $/
@@ -4,7 +4,7 @@
4
4
 
5
5
  #include <assert.h>
6
6
  #import <Cocoa/Cocoa.h>
7
- #include "helpers.h"
7
+ #include "helper.h"
8
8
 
9
9
 
10
10
  namespace Rays
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  #include <ApplicationServices/ApplicationServices.h>
6
- #include "helpers.h"
6
+ #include "helper.h"
7
7
 
8
8
 
9
9
  namespace Rays
@@ -1,7 +1,7 @@
1
1
  // -*- c++ -*-
2
2
  #pragma once
3
- #ifndef __RAYS_COCOA_HELPERS_H__
4
- #define __RAYS_COCOA_HELPERS_H__
3
+ #ifndef __RAYS_COCOA_HELPER_H__
4
+ #define __RAYS_COCOA_HELPER_H__
5
5
 
6
6
 
7
7
  #include <boost/shared_ptr.hpp>
@@ -1,5 +1,5 @@
1
1
  // -*- objc -*-
2
- #include "helpers.h"
2
+ #include "helper.h"
3
3
 
4
4
 
5
5
  namespace Rays
@@ -1,7 +1,9 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require 'bundler/setup'
4
+ require 'xot/load_path'
5
+ Xot::LoadPath.unshift_lib File.expand_path('../../..', __FILE__), :rays
6
+
5
7
  require 'test/unit'
6
8
  require 'rays'
7
9
 
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require_relative 'helpers'
4
+ require_relative 'helper'
5
5
 
6
6
 
7
7
  class TestBitmap < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require_relative 'helpers'
4
+ require_relative 'helper'
5
5
 
6
6
 
7
7
  class TestBounds < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require_relative 'helpers'
4
+ require_relative 'helper'
5
5
 
6
6
 
7
7
  class TestColor < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require_relative 'helpers'
4
+ require_relative 'helper'
5
5
 
6
6
 
7
7
  class TestFont < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require_relative 'helpers'
4
+ require_relative 'helper'
5
5
 
6
6
 
7
7
  class TestImage < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require_relative 'helpers'
4
+ require_relative 'helper'
5
5
 
6
6
 
7
7
  class TestPainter < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require_relative 'helpers'
4
+ require_relative 'helper'
5
5
 
6
6
 
7
7
  class TestPoint < Test::Unit::TestCase
@@ -3,7 +3,7 @@
3
3
 
4
4
  $RAYS_NOAUTOINIT = true
5
5
 
6
- require_relative 'helpers'
6
+ require_relative 'helper'
7
7
 
8
8
 
9
9
  class TestRays < Test::Unit::TestCase
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
 
4
- require_relative 'helpers'
4
+ require_relative 'helper'
5
5
 
6
6
 
7
7
  class TestTexture < Test::Unit::TestCase
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
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-23 00:00:00.000000000 Z
12
+ date: 2013-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: bundler
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/helpers.h
173
- - src/cocoa/helpers.mm
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/helpers.rb
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.25
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/helpers.rb
218
+ - test/helper.rb
238
219
  - test/test_bitmap.rb
239
220
  - test/test_bounds.rb
240
221
  - test/test_color.rb