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 +3 -1
- data/VERSION +1 -1
- data/ext/reflex/extconf.rb +5 -3
- data/lib/reflex/module.rb +12 -12
- data/lib/reflex/view.rb +2 -2
- data/lib/reflex/window.rb +2 -2
- data/reflex.gemspec +7 -6
- data/src/{helpers.h → helper.h} +2 -2
- data/test/{helpers.rb → helper.rb} +3 -1
- data/test/test_application.rb +1 -1
- data/test/test_reflex.rb +1 -1
- data/test/test_view.rb +1 -1
- data/test/test_window.rb +1 -1
- metadata +9 -28
- /data/lib/reflex/{helpers.rb → helper.rb} +0 -0
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/ext/reflex/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__), :reflex
|
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'
|
@@ -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.
|
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
|
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 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#
|
42
|
+
end# ModuleInfo
|
43
43
|
|
44
44
|
|
45
45
|
end# Reflex
|
data/lib/reflex/view.rb
CHANGED
data/lib/reflex/window.rb
CHANGED
data/reflex.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 'reflex/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 = 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 '
|
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 $/
|
data/src/{helpers.h → helper.h}
RENAMED
data/test/test_application.rb
CHANGED
data/test/test_reflex.rb
CHANGED
data/test/test_view.rb
CHANGED
data/test/test_window.rb
CHANGED
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
|
+
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:
|
@@ -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/
|
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/
|
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/
|
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.
|
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/
|
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
|