Skip to content

Commit f843edf

Browse files
committed
Use bones to manage the gem tasks.
1 parent 59dda94 commit f843edf

24 files changed

+1057
-73
lines changed

History.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
== 1.0.0 / 2008-06-07
2+
3+
* 1 major enhancement
4+
* Birthday!

Manifest.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
History.txt
2+
Manifest.txt
3+
README.txt
4+
Rakefile
5+
bin/rmmseg
6+
data/chars.dic
7+
data/words.dic
8+
ext/rmmseg/algor.cpp
9+
ext/rmmseg/algor.h
10+
ext/rmmseg/chunk.h
11+
ext/rmmseg/dict.cpp
12+
ext/rmmseg/dict.h
13+
ext/rmmseg/extconf.rb
14+
ext/rmmseg/memory.cpp
15+
ext/rmmseg/memory.h
16+
ext/rmmseg/rmmseg.cpp
17+
ext/rmmseg/rules.h
18+
ext/rmmseg/token.h
19+
ext/rmmseg/word.h
20+
lib/rmmseg.rb
21+
lib/rmmseg/dictionary.rb
22+
lib/rmmseg/ferret.rb
23+
misc/convert.rb
24+
spec/rmmseg_spec.rb
25+
spec/spec_helper.rb
26+
tasks/ann.rake
27+
tasks/bones.rake
28+
tasks/gem.rake
29+
tasks/git.rake
30+
tasks/manifest.rake
31+
tasks/notes.rake
32+
tasks/post_load.rake
33+
tasks/rdoc.rake
34+
tasks/rubyforge.rake
35+
tasks/setup.rb
36+
tasks/spec.rake
37+
tasks/svn.rake
38+
tasks/test.rake
39+
test/test_rmmseg.rb

README

Lines changed: 0 additions & 51 deletions
This file was deleted.

README.txt

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
rmmseg-cpp
2+
by pluskid
3+
http://rmmseg-cpp.rubyforge.org
4+
5+
== DESCRIPTION:
6+
7+
rmmseg-cpp is a re-written of RMMSeg in C++. The interface is almost
8+
identical to RMMSeg but the performance is much better. This package
9+
is always preferable in production use.
10+
11+
RMMSeg (http://rmmseg.rubyforge.org) is a Chinese word segmentation library
12+
written for and in Ruby. It features full integration with Ruby. However,
13+
its performance (both time and memory) is terrible in some cases, especially
14+
when you use the complex algorithm.
15+
16+
== FEATURES/PROBLEMS:
17+
18+
* Runs fast and the memory consumption is small.
19+
* Support user customized dictionaries.
20+
* Easy Ferret integration.
21+
22+
== SYNOPSIS:
23+
24+
FIXME
25+
26+
== REQUIREMENTS:
27+
28+
* ruby 1.8.x
29+
* g++
30+
31+
== INSTALL:
32+
33+
* sudo gem install rmmseg-cpp
34+
35+
== LICENSE:
36+
37+
(The MIT License)
38+
39+
Copyright (c) 2008 FIXME (different license?)
40+
41+
Permission is hereby granted, free of charge, to any person obtaining
42+
a copy of this software and associated documentation files (the
43+
'Software'), to deal in the Software without restriction, including
44+
without limitation the rights to use, copy, modify, merge, publish,
45+
distribute, sublicense, and/or sell copies of the Software, and to
46+
permit persons to whom the Software is furnished to do so, subject to
47+
the following conditions:
48+
49+
The above copyright notice and this permission notice shall be
50+
included in all copies or substantial portions of the Software.
51+
52+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
53+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
54+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
55+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
56+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
57+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
58+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Rakefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Look in the tasks/setup.rb file for the various options that can be
2+
# configured in this Rakefile. The .rake files in the tasks directory
3+
# are where the options are used.
4+
5+
load 'tasks/setup.rb'
6+
7+
ensure_in_path 'lib'
8+
require 'rmmseg'
9+
10+
task :default => 'spec:run'
11+
12+
PROJ.name = 'rmmseg-cpp'
13+
PROJ.version = '0.2.4'
14+
PROJ.authors = 'pluskid'
15+
PROJ.email = '[email protected]'
16+
PROJ.url = 'http://rmmseg-cpp.rubyforge.org'
17+
PROJ.rubyforge.name = 'rmmseg-cpp'
18+
19+
PROJ.spec.opts << '--color'
20+
21+
# EOF

bin/rmmseg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
3+
require File.expand_path(
4+
File.join(File.dirname(__FILE__), '..', 'lib', 'rmmseg'))
5+
6+
# Put your code here
7+
8+
# EOF
File renamed without changes.

rmmseg-cpp.gemspec

Lines changed: 0 additions & 22 deletions
This file was deleted.

spec/rmmseg_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# $Id$
2+
3+
require File.join(File.dirname(__FILE__), %w[spec_helper])
4+
5+
describe Rmmseg do
6+
end
7+
8+
# EOF

spec/spec_helper.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# $Id$
2+
3+
require File.expand_path(
4+
File.join(File.dirname(__FILE__), %w[.. lib rmmseg]))
5+
6+
Spec::Runner.configure do |config|
7+
# == Mock Framework
8+
#
9+
# RSpec uses it's own mocking framework by default. If you prefer to
10+
# use mocha, flexmock or RR, uncomment the appropriate line:
11+
#
12+
# config.mock_with :mocha
13+
# config.mock_with :flexmock
14+
# config.mock_with :rr
15+
end
16+
17+
# EOF

0 commit comments

Comments
 (0)