refe2 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/refe +36 -0
  2. data/lib/bitclust.rb +9 -0
  3. metadata +86 -0
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'pathname'
4
+
5
+ bindir = Pathname.new(__FILE__).realpath.dirname
6
+ $LOAD_PATH.unshift((bindir + '../lib').realpath)
7
+
8
+ unless defined?(::Encoding)
9
+ # Ruby 1.8
10
+ $KCODE = 'UTF-8'
11
+ end
12
+
13
+ require 'bitclust/searcher'
14
+
15
+ def main
16
+ Signal.trap(:PIPE, 'IGNORE') rescue nil # Win32 does not have SIGPIPE
17
+ Signal.trap(:INT) { exit 1 }
18
+ _main
19
+ rescue Errno::EPIPE
20
+ exit 0
21
+ end
22
+
23
+ def _main
24
+ refe = BitClust::Searcher.new
25
+ refe.parse ARGV
26
+ refe.exec nil, ARGV
27
+ rescue OptionParser::ParseError => err
28
+ $stderr.puts err.message
29
+ $stderr.puts refe.parser.help
30
+ exit 1
31
+ rescue BitClust::UserError => err
32
+ $stderr.puts err.message
33
+ exit 1
34
+ end
35
+
36
+ main
@@ -0,0 +1,9 @@
1
+ require 'bitclust/requesthandler'
2
+ require 'bitclust/screen'
3
+ require 'bitclust/server'
4
+ require 'bitclust/searcher'
5
+ require 'bitclust/methoddatabase'
6
+ require 'bitclust/functiondatabase'
7
+ require 'bitclust/rrdparser'
8
+ require 'bitclust/exception'
9
+ require 'bitclust/version'
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: refe2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - http://bugs.ruby-lang.org/projects/rurema
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bitclust-core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - '='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.5.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.5.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: test-unit
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 2.3.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.3.0
46
+ description: ! 'Rurema is a Japanese ruby documentation project, and
47
+
48
+ bitclust is a rurema document processor.
49
+
50
+ This is tools for Rubyists.
51
+
52
+ '
53
+ email:
54
+ - ''
55
+ executables:
56
+ - refe
57
+ extensions: []
58
+ extra_rdoc_files: []
59
+ files:
60
+ - bin/refe
61
+ - lib/bitclust.rb
62
+ homepage: http://doc.ruby-lang.org/ja/
63
+ licenses: []
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project: ''
82
+ rubygems_version: 1.8.23
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: BitClust is a rurema document processor.
86
+ test_files: []