spacy 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 +4 -2
- data/VERSION +1 -1
- data/bin/spacy +3 -4
- data/lib/spacy/module.rb +12 -12
- data/spacy.gemspec +7 -6
- data/test/helper.rb +8 -0
- data/test/test_text.rb +1 -3
- data/test/test_textbuffer.rb +1 -3
- data/test/test_textline.rb +1 -3
- metadata +7 -27
- data/Gemfile +0 -35
- data/test/helpers.rb +0 -10
data/Rakefile
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
3
|
|
4
|
-
require '
|
4
|
+
require 'xot/load_path'
|
5
|
+
Xot::LoadPath.unshift_lib File.expand_path('../..', __FILE__), :spacy
|
6
|
+
|
5
7
|
require 'spacy/module'
|
6
8
|
|
7
9
|
|
@@ -28,7 +30,7 @@ else
|
|
28
30
|
|
29
31
|
include Xot::Rake
|
30
32
|
|
31
|
-
task :default => :
|
33
|
+
task :default => :build
|
32
34
|
|
33
35
|
task :build => :app
|
34
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/bin/spacy
CHANGED
@@ -2,12 +2,11 @@
|
|
2
2
|
# -*- mode: ruby; coding: utf-8 -*-
|
3
3
|
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
require 'xot/load_path'
|
6
|
+
(__FILE__ =~ /\/Spacy.app\// ? '../../../..' : '../..').tap do |root|
|
7
|
+
Xot::LoadPath.unshift_lib File.expand_path(root, __FILE__), :spacy
|
8
8
|
end
|
9
9
|
|
10
|
-
require 'rubygems'
|
11
10
|
require 'spacy'
|
12
11
|
|
13
12
|
|
data/lib/spacy/module.rb
CHANGED
@@ -4,22 +4,26 @@
|
|
4
4
|
module Spacy
|
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].map {|dir|
|
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 Spacy
|
|
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# Spacy
|
data/spacy.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 'spacy/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 = Spacy
|
15
17
|
name = mod.name.downcase
|
16
|
-
rdocs = glob *%w[README]
|
18
|
+
rdocs = glob.call *%w[README]
|
17
19
|
|
18
20
|
s.name = name
|
19
21
|
s.summary = 'A text editor written by Ruby.'
|
@@ -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 'rays'
|
33
35
|
s.add_runtime_dependency 'reflexion'
|
34
|
-
s.add_development_dependency 'rake'
|
35
36
|
s.add_development_dependency 'gemcutter'
|
36
37
|
|
37
38
|
s.files = `git ls-files`.split $/
|
data/test/helper.rb
ADDED
data/test/test_text.rb
CHANGED
data/test/test_textbuffer.rb
CHANGED
data/test/test_textline.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spacy
|
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
|
@@ -119,7 +103,6 @@ files:
|
|
119
103
|
- .gitignore
|
120
104
|
- .gitmodules
|
121
105
|
- ChangeLog
|
122
|
-
- Gemfile
|
123
106
|
- Rakefile
|
124
107
|
- VERSION
|
125
108
|
- bin/spacy
|
@@ -137,11 +120,11 @@ files:
|
|
137
120
|
- spacy.gemspec
|
138
121
|
- task/mac.rake
|
139
122
|
- task/submodule.rake
|
140
|
-
- test/
|
123
|
+
- test/helper.rb
|
141
124
|
- test/test_text.rb
|
142
125
|
- test/test_textbuffer.rb
|
143
126
|
- test/test_textline.rb
|
144
|
-
homepage: http://github.com/xord/spacy
|
127
|
+
homepage: http://github.com/xord/spacy/wiki
|
145
128
|
licenses: []
|
146
129
|
post_install_message:
|
147
130
|
rdoc_options: []
|
@@ -159,17 +142,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
142
|
- - ! '>='
|
160
143
|
- !ruby/object:Gem::Version
|
161
144
|
version: '0'
|
162
|
-
segments:
|
163
|
-
- 0
|
164
|
-
hash: 2855528895130620030
|
165
145
|
requirements: []
|
166
146
|
rubyforge_project:
|
167
|
-
rubygems_version: 1.8.
|
147
|
+
rubygems_version: 1.8.24
|
168
148
|
signing_key:
|
169
149
|
specification_version: 3
|
170
150
|
summary: A text editor written by Ruby.
|
171
151
|
test_files:
|
172
|
-
- test/
|
152
|
+
- test/helper.rb
|
173
153
|
- test/test_text.rb
|
174
154
|
- test/test_textbuffer.rb
|
175
155
|
- test/test_textline.rb
|
data/Gemfile
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# -*- mode: ruby; coding: utf-8 -*-
|
2
|
-
|
3
|
-
|
4
|
-
source 'https://rubygems.org'
|
5
|
-
|
6
|
-
|
7
|
-
SUBMODULES = %w[xot rucy rays reflexion]
|
8
|
-
|
9
|
-
|
10
|
-
def local_path (name)
|
11
|
-
File.expand_path "../#{name.gsub /xion/, 'x'}", __FILE__
|
12
|
-
end
|
13
|
-
|
14
|
-
def have_local (name)
|
15
|
-
File.directory? local_path name
|
16
|
-
end
|
17
|
-
|
18
|
-
def submodule (*names)
|
19
|
-
names.each do |name|
|
20
|
-
if have_local name
|
21
|
-
gem name, path: local_path(name)
|
22
|
-
else
|
23
|
-
gem name
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
group :development do
|
30
|
-
gem 'rake'
|
31
|
-
end
|
32
|
-
|
33
|
-
submodule *SUBMODULES
|
34
|
-
|
35
|
-
gem 'spacy', path: '.' if SUBMODULES.all? {|name| have_local name}
|
data/test/helpers.rb
DELETED