reflexion 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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__), :reflex
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__), :reflex
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'
@@ -44,7 +46,7 @@ FRAMEWORKS = []
44
46
  DEFS << '_DEBUG' if debug
45
47
  DEFS << 'NDEBUG' unless debug
46
48
  DEFS << $~[0].upcase if RUBY_PLATFORM =~ /mswin|ming|cygwin|darwin/i
47
- LIBDIRS.concat Rays.library_dirs
49
+ LIBDIRS.concat Rays.lib_dirs
48
50
  LIBS << 'rays/native' unless cocoa?
49
51
  if win32?
50
52
  DEFS << 'WINDOWS' << 'WIN32'
data/lib/reflex/module.rb CHANGED
@@ -4,22 +4,26 @@
4
4
  module Reflex
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 Reflex
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# Reflex
data/lib/reflex/view.rb CHANGED
@@ -3,9 +3,9 @@
3
3
 
4
4
  require 'xot/hookable'
5
5
  require 'xot/setter'
6
- require 'xot/blockutil'
6
+ require 'xot/block_util'
7
7
  require 'reflex/ext'
8
- require 'reflex/helpers'
8
+ require 'reflex/helper'
9
9
 
10
10
 
11
11
  module Reflex
data/lib/reflex/window.rb CHANGED
@@ -4,10 +4,10 @@
4
4
  require 'forwardable'
5
5
  require 'xot/hookable'
6
6
  require 'xot/setter'
7
- require 'xot/blockutil'
7
+ require 'xot/block_util'
8
8
  require 'reflex/ext'
9
9
  require 'reflex/painter'
10
- require 'reflex/helpers'
10
+ require 'reflex/helper'
11
11
 
12
12
 
13
13
  module Reflex
data/reflex.gemspec CHANGED
@@ -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 'reflex/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 = Reflex
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}ion"
19
21
  s.summary = 'A Graphical User Interface Tool Kit.'
@@ -22,16 +24,15 @@ 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
35
  s.add_runtime_dependency 'rays'
34
- s.add_development_dependency 'rake'
35
36
  s.add_development_dependency 'gemcutter'
36
37
 
37
38
  s.files = `git ls-files`.split $/
@@ -1,7 +1,7 @@
1
1
  // -*- c++ -*-
2
2
  #pragma once
3
- #ifndef __REFLEX_HELPERS_H__
4
- #define __REFLEX_HELPERS_H__
3
+ #ifndef __REFLEX_HELPER_H__
4
+ #define __REFLEX_HELPER_H__
5
5
 
6
6
 
7
7
  namespace Reflex
@@ -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__), :reflex
6
+
5
7
  require 'test/unit'
6
8
  require 'reflex'
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 TestApplication < Test::Unit::TestCase
data/test/test_reflex.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  $RAYS_NOAUTOINIT = true
5
5
  $REFLEX_NOAUTOINIT = true
6
6
 
7
- require_relative 'helpers'
7
+ require_relative 'helper'
8
8
 
9
9
 
10
10
  class TestReflex < Test::Unit::TestCase
data/test/test_view.rb CHANGED
@@ -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 TestView < Test::Unit::TestCase
data/test/test_window.rb CHANGED
@@ -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 TestWindow < Test::Unit::TestCase
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reflexion
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:
@@ -75,22 +75,6 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: rake
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
78
  - !ruby/object:Gem::Dependency
95
79
  name: gemcutter
96
80
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +155,7 @@ files:
171
155
  - lib/reflex/bitmap.rb
172
156
  - lib/reflex/bounds.rb
173
157
  - lib/reflex/ext.rb
174
- - lib/reflex/helpers.rb
158
+ - lib/reflex/helper.rb
175
159
  - lib/reflex/image.rb
176
160
  - lib/reflex/module.rb
177
161
  - lib/reflex/painter.rb
@@ -197,7 +181,7 @@ files:
197
181
  - src/cocoa/windowdata.h
198
182
  - src/defs.cpp
199
183
  - src/exception.cpp
200
- - src/helpers.h
184
+ - src/helper.h
201
185
  - src/reflex.cpp
202
186
  - src/view.cpp
203
187
  - src/win32/application.cpp
@@ -208,7 +192,7 @@ files:
208
192
  - src/win32/reflex.cpp
209
193
  - src/win32/window.cpp
210
194
  - src/window.cpp
211
- - test/helpers.rb
195
+ - test/helper.rb
212
196
  - test/test_application.rb
213
197
  - test/test_reflex.rb
214
198
  - test/test_view.rb
@@ -221,7 +205,7 @@ files:
221
205
  - .doc/ext/reflex/reflex.cpp
222
206
  - .doc/ext/reflex/view.cpp
223
207
  - .doc/ext/reflex/window.cpp
224
- homepage: http://github.com/xord/reflex
208
+ homepage: http://github.com/xord/reflex/wiki
225
209
  licenses: []
226
210
  post_install_message:
227
211
  rdoc_options: []
@@ -239,17 +223,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
223
  - - ! '>='
240
224
  - !ruby/object:Gem::Version
241
225
  version: '0'
242
- segments:
243
- - 0
244
- hash: 3313943226242490739
245
226
  requirements: []
246
227
  rubyforge_project:
247
- rubygems_version: 1.8.25
228
+ rubygems_version: 1.8.24
248
229
  signing_key:
249
230
  specification_version: 3
250
231
  summary: A Graphical User Interface Tool Kit.
251
232
  test_files:
252
- - test/helpers.rb
233
+ - test/helper.rb
253
234
  - test/test_application.rb
254
235
  - test/test_reflex.rb
255
236
  - test/test_view.rb
File without changes