milkode 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,70 @@
1
+ === 0.2.2 2011/08/26
2
+
3
+ * ファイル内grepを追加
4
+ * マッチ行へのアンカーリンクが画面上部に表示されるように
5
+ * 駆け上がり検索を検索
6
+ * トピックパス(ディレクトリのリンク)をクリックした時、検索クエリーを引き継ぐように
7
+ * 検索ワード入力→トピックパスクリックで検索範囲の変更が可能に
8
+ * その都度「検索」ボタンを押さなくても、テキスト入力→トピックパスクリック、で入力した新しいキーワードで再検索出来る。
9
+ * トピックパスの先頭に"home"を追加
10
+ * milkode/lib/file.rb -> home/milkode/lib/file.rb
11
+ * 検索結果ファイル名は相対パスで表示する
12
+ * [ファイル一覧] ボタンを追加
13
+ * 検索ワードを入力せず検索(Enterを押す)と、エラーになる問題を修正 (thanks ryo)
14
+
15
+ === 0.2.1 2011/08/12
16
+
17
+ Milkode レポジトリがバージョンアップしました。
18
+ レポジトリをリビルドして下さい。
19
+
20
+ milk rebuild
21
+
22
+ * AutoPagerizeのサポート (thanks awasira)
23
+ * 'documents' groongaテーブル形式の変更, 'Groonga::Array -> Groonga:: Hash'.
24
+ * 'milk update' の高速化 (thanks kou)
25
+ * Issues#6 CentOS 5.5 (32bit) in 'milk update' fails (thanks yoshikaw)
26
+
27
+ === 0.2.0 2011/08/10
28
+
29
+ * Issues#4 Bug fix, wrong display of search results. (thanks rakkoyaku, ryo)
30
+ * Issues#5 Delete GoogleAnalytics code. (thanks vividtone)
31
+
32
+ === 0.1.9 2011/08/05
33
+
34
+ * Bug fix, can't move 'milk web'.
35
+
36
+ === 0.1.8, 0.1.7 2011/08/04
37
+
38
+ * archive-zip patch for Ruby1.9.2.
39
+
40
+ === 0.1.6 2011/08/03
41
+
42
+ * Bug fix, faild 'milk init' for Ubunts. (thanks kumonopanya, and maroekun)
43
+
44
+ === 0.1.5 2011/08/02
45
+
46
+ * Compatibility Ruby 1.9.2p290.
47
+
48
+ === 0.1.4 2011/08/01
49
+
50
+ * To act reasonably even if it fails to require 'readline'.
51
+
52
+ === 0.1.3 2011/07/30
53
+
54
+ * Change Icon.
55
+ * Change web-app design.
56
+ * Change text, lib/milkode/cdweb/views/help.haml.
57
+
58
+ === 0.1.2 2011/07/26
59
+
60
+ * milk web --host, default value "127.0.0.1" (for Windows).
61
+ * to update all packages at 'milk update' (no arg).
62
+
63
+ === 0.1.1 2011/07/25
64
+
65
+ * Add comment.
66
+
67
+ === 0.1.0 2011/07/25
68
+
69
+ * 1st release.
70
+
@@ -1,3 +1,17 @@
1
+ === 0.2.2 2011/08/26
2
+
3
+ * Add a file grep.
4
+ * To be displayed at the top of the anchor link to match the line.
5
+ * Implement search 'topic path'.
6
+ * Breadcrumbs (link directory) when you click, to take over the search query.
7
+ * 'Enter search words -> click breadcrumbs', search scope can be changed.
8
+ * Each time "search" without pressing any button on a new keyword search can be entered in 'the text entry → click breadcrumbs'.
9
+ * Add breadcrumbs at the top "home".
10
+ * milkode/lib/file.rb -> home/milkode/lib/file.rb
11
+ * Results will be displayed in the file name relative path.
12
+ * Add [List of files] button
13
+ * Search without entering a search word (hit Enter), and fixed the problem that the error (thanks ryo)
14
+
1
15
  === 0.2.1 2011/08/12
2
16
 
3
17
  Milkode repository is version up.
data/Rakefile CHANGED
@@ -32,6 +32,7 @@ Jeweler::Tasks.new do |gem|
32
32
  gem.add_runtime_dependency 'archive-zip', '>=0.3.0'
33
33
  gem.add_runtime_dependency 'haml', '>=3.1.2'
34
34
  gem.add_runtime_dependency 'sass', '>=3.1.3'
35
+ gem.add_runtime_dependency 'nokogiri', '>=1.5.0'
35
36
 
36
37
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
37
38
  # gem.add_development_dependency 'rspec', '> 1.2.3'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/bin/milk CHANGED
@@ -6,5 +6,5 @@
6
6
  require 'rubygems'
7
7
  require 'milkode/cdstk/cli_cdstk'
8
8
 
9
- Version = "0.2.1"
9
+ Version = "0.2.2"
10
10
  Milkode::CLI_Cdstk.execute(STDOUT, ARGV)
@@ -18,23 +18,23 @@ require 'milkode/cdweb/lib/mkurl'
18
18
  set :haml, :format => :html5
19
19
 
20
20
  get '/' do
21
- @version = "0.2.1"
21
+ @version = "0.2.2"
22
22
  @package_num = Database.instance.fileList('').size
23
23
  @file_num = Database.instance.fileNum
24
24
  haml :index
25
25
  end
26
26
 
27
- post '/home*' do |path|
28
- path = path.sub(/^\//, "")
29
-
27
+ post '/search*' do
28
+ path = unescape(params[:pathname])
29
+
30
30
  case params[:shead]
31
31
  when 'all'
32
- path = ""
32
+ path = "/home"
33
33
  when 'package'
34
- path = path.split('/')[0]
34
+ path = path.split('/')[0,3].join('/')
35
35
  end
36
36
 
37
- redirect Mkurl.new("home/#{path}", params).inherit_query_shead
37
+ redirect Mkurl.new("#{path}", params).inherit_query_shead
38
38
  end
39
39
 
40
40
  get '/home*' do |path|
@@ -45,10 +45,10 @@ get '/home*' do |path|
45
45
  if (record)
46
46
  view(record, params, before)
47
47
  else
48
- unless (params[:query])
49
- filelist(path, params, before)
50
- else
48
+ if (params[:query] and !params[:query].empty?)
51
49
  search(path, params, before)
50
+ else
51
+ filelist(path, params, before)
52
52
  end
53
53
  end
54
54
  end
@@ -79,16 +79,22 @@ helpers do
79
79
  # こっちにすると'検索'ボタンを押した時に新しくウィンドウが開く
80
80
  # <form action='' target='_blank' method='post'>
81
81
  <<EOF
82
- <form action='' method='post'>
82
+ <script type="text/javascript">
83
+ function set_pathname() {
84
+ document.searchform.pathname.value = location.pathname;
85
+ }
86
+ </script>
87
+ <form name="searchform" action='/search' method='post'>
83
88
  <p>
84
89
  <input name='query' size='60' type='text' value='#{query}' />
85
- <input type='submit' value='検索'><br></input>
90
+ <input type='submit' value='検索' onclick='set_pathname()'><br></input>
86
91
  #{create_radio('all', shead)}
87
92
  <label>全体を検索</label>
88
93
  #{create_radio('package', shead)}
89
94
  <label> #{package_name(path)} 以下</label>
90
95
  #{create_radio('directory', shead)}
91
96
  <label> #{current_name(path)} 以下</label>
97
+ <input name='pathname' type='hidden' value=''></input>
92
98
  </p>
93
99
  </form>
94
100
  EOF
@@ -99,21 +105,27 @@ EOF
99
105
  "<input name='shead' type='radio' value='#{value}' #{str}/>"
100
106
  end
101
107
 
102
- def create_headmenu(path, query)
103
- # href = "#{request.path_info}?'#{request.query_string}"
104
- # href = '/home/rack-1.3.0/lib/rack/handler/cgi.rb?shead=directory'
108
+ def create_headmenu(path, query, flistpath = '')
105
109
  href = Mkurl.new('/home/' + path, params).inherit_query_shead
110
+ flist = File.join("/home/#{path}", flistpath)
106
111
  <<EOF
107
- <a href="/home" class="headmenu">全てのパッケージ</a>
108
- <a href="#{href}" class="headmenu" onclick="window.open('#{href}'); return false;">新しい検索</a>
112
+ #{headicon('go-home-5.png')} <a href="/home" class="headmenu">全てのパッケージ</a>
113
+ #{headicon('document-new-4.png')} <a href="#{href}" class="headmenu" onclick="window.open('#{href}'); return false;">新しい検索</a>
114
+ #{headicon('directory.png')} <a href="#{flist}" class="headmenu">ファイル一覧</a>
109
115
  EOF
110
116
  end
111
117
 
118
+ def headicon(name)
119
+ "<img alt='' style='vertical-align:center; border: 0px; margin: 0px;' src='/images/#{name}'>"
120
+ end
121
+
112
122
  def topic_path(path, params)
113
- href = '/home'
114
- path.split('/').map {|v|
123
+ href = ''
124
+ path = File.join('home', path)
125
+
126
+ path.split('/').map_with_index {|v, index|
115
127
  href += '/' + v
116
- "<a href='#{Mkurl.new(href, params).inherit_shead}'>#{v}</a>"
128
+ "<a id='topic_#{index}' href='#{Mkurl.new(href, params).inherit_query_shead}' onclick='topic_path(\"topic_#{index}\");'>#{v}</a>"
117
129
  }.join('/')
118
130
  end
119
131
 
@@ -134,3 +146,12 @@ EOF
134
146
  end
135
147
  end
136
148
 
149
+ class Array
150
+ def map_with_index!
151
+ each_with_index do |e, idx| self[idx] = yield(e, idx); end
152
+ end
153
+
154
+ def map_with_index(&block)
155
+ dup.map_with_index!(&block)
156
+ end
157
+ end
@@ -8,6 +8,7 @@
8
8
  require 'rubygems'
9
9
  require 'coderay'
10
10
  require 'coderay/helpers/file_type'
11
+ require 'nokogiri'
11
12
 
12
13
  module Milkode
13
14
  class CodeRayWrapper
@@ -42,11 +43,27 @@ module Milkode
42
43
  :highlight_lines => @highlight_lines,
43
44
  :line_number_start => @line_number_start
44
45
  )
45
-
46
46
  milkode_ornament(html)
47
47
  end
48
48
 
49
+ def to_html_anchor
50
+ html = CodeRay.scan(@content, file_type).
51
+ html(
52
+ :wrap => nil,
53
+ :line_numbers => :table,
54
+ :css => :class,
55
+ :highlight_lines => @highlight_lines,
56
+ :line_number_start => @line_number_start
57
+ )
58
+
59
+ html_doc = Nokogiri::HTML(html)
60
+ anchor = create_anchorlink(html_doc.at_css("table.CodeRay td.code pre").inner_html)
61
+ body = milkode_ornament(html)
62
+ return anchor + body
63
+ end
64
+
49
65
  def milkode_ornament(html)
66
+ # @todo nokogiri使う?
50
67
  a = html.split("\n")
51
68
 
52
69
  line_number = @line_number_start
@@ -88,6 +105,28 @@ module Milkode
88
105
  r << "class=\"highlight-line\"" if @highlight_lines.include?(no)
89
106
  r.join(" ")
90
107
  end
108
+
109
+ ANCHOR_OFFSET = 3
110
+
111
+ def create_anchorlink(str)
112
+ if @highlight_lines
113
+ lines = str.split("\n")
114
+
115
+ codes = @highlight_lines.map {|no|
116
+ " <tr><td class=\"line_numbers\">#{no}</td> <td class=\"code\"><pre><a href=\"##{[no - ANCHOR_OFFSET, 1].max}\">#{lines[no - 1]}</a></pre></td> </tr>"
117
+ }.join("\n")
118
+
119
+ <<EOF
120
+ <span class="match-num">#{@highlight_lines.size} results</span>
121
+ <table class="CodeRay anchor-table">
122
+ #{codes}
123
+ </table>
124
+ <p>
125
+ EOF
126
+ else
127
+ ""
128
+ end
129
+ end
91
130
  end
92
131
  end
93
132
 
@@ -21,7 +21,7 @@ module Milkode
21
21
  if (q and !q.keywords.empty?)
22
22
  grep = Grep.new(record.content)
23
23
  match_lines = grep.match_lines_and(q.keywords)
24
- @record_content = CodeRayWrapper.new(record.content, record.shortpath, match_lines).to_html
24
+ @record_content = CodeRayWrapper.new(record.content, record.shortpath, match_lines).to_html_anchor
25
25
  else
26
26
  @record_content = CodeRayWrapper.new(record.content, record.shortpath).to_html
27
27
  end
@@ -57,21 +57,23 @@ module Milkode
57
57
 
58
58
  # マッチ数
59
59
  total_records = table.size
60
+
61
+ # @todo ここが速度低下の原因?と思ったけど、ここは全て選択の部分だけか・・・
60
62
 
61
63
  # 2010/10/29 ongaeshi
62
64
  # 本当はこのようにgroongaAPIでソートしたいのだが上手くいかなかった
63
65
  # # ファイル名順にソート
64
66
  # records = table.sort([{:key => "shortpath", :order => "descending"}],
65
- # :offset => page * limit,
67
+ # :offset => offset,
66
68
  # :limit => limit)
67
-
69
+
68
70
  # ソート
69
71
  if (limit != -1)
70
72
  records = table.records.sort_by{|record| record.shortpath.downcase }[offset, limit]
71
73
  else
72
74
  records = table.records.sort_by{|record| record.shortpath.downcase }[offset..limit]
73
75
  end
74
-
76
+
75
77
  return records, total_records
76
78
  end
77
79
 
@@ -8,6 +8,7 @@
8
8
  require 'milkode/cdweb/lib/query'
9
9
  require 'milkode/cdweb/lib/grep'
10
10
  require 'milkode/cdweb/lib/mkurl'
11
+ require 'milkode/common/util'
11
12
 
12
13
  module Milkode
13
14
  class SearchContents
@@ -23,6 +24,7 @@ module Milkode
23
24
  # NTH = 3 # 表示範囲
24
25
 
25
26
  def initialize(path, params, query)
27
+ @path = path
26
28
  @params = params
27
29
  @q = query
28
30
  @page = params[:page].to_i || 0
@@ -95,7 +97,7 @@ EOF
95
97
  coderay.set_range(first_index..last_index)
96
98
 
97
99
  <<EOS
98
- <dt class='result-record'><a href='#{"/home/" + record_link(record) + "##{coderay.line_number_start}"}'>#{record.shortpath}</a></dt>
100
+ <dt class='result-record'><a href='#{"/home/" + record_link(record) + "##{coderay.line_number_start}"}'>#{Util::relative_path record.shortpath, @path}</a></dt>
99
101
  <dd>
100
102
  #{coderay.to_html}
101
103
  </dd>
@@ -8,6 +8,7 @@
8
8
  require 'milkode/cdweb/lib/query'
9
9
  require 'milkode/cdweb/lib/mkurl'
10
10
  require 'milkode/cdweb/lib/command'
11
+ require 'milkode/common/util'
11
12
 
12
13
  module Milkode
13
14
  class SearchFiles
@@ -16,6 +17,7 @@ module Milkode
16
17
  DISP_NUM = 100 # 1ページの表示数
17
18
 
18
19
  def initialize(path, params, query)
20
+ @path = path
19
21
  @params = params
20
22
  @q = query
21
23
 
@@ -77,7 +79,7 @@ EOF
77
79
 
78
80
  def result_record(record)
79
81
  <<EOS
80
- <dt class='result-file'>#{file_or_dirimg(true)}<a href='#{"/home/" + record_link(record)}'>#{record.shortpath}</a></dt>
82
+ <dt class='result-file'>#{file_or_dirimg(true)}<a href='#{"/home/" + record_link(record)}'>#{Util::relative_path record.shortpath, @path}</a></dt>
81
83
  EOS
82
84
  end
83
85
 
@@ -0,0 +1,10 @@
1
+ /* for CodeRay */
2
+ .CodeRay .highlight-line { background-color: #d0ff9c; }
3
+
4
+ /* html_anchor */
5
+ .match-num { font-size: 13px; font-weight: bold; }
6
+ .anchor-table { background-color: #ffffff; }
7
+ .anchor-table .line_numbers { background-color: #D0FF9C; }
8
+ .anchor-table td { border: 1px solid silver; font-size:13px; }
9
+ .anchor-table a { color: #000000; text-decoration:none; }
10
+ .anchor-table a:hover { text-decoration:underline; background-color: #F0F0F0; }
@@ -66,11 +66,6 @@ font.version {
66
66
  font-size: 35%;
67
67
  }
68
68
 
69
- span.highlight-line {
70
- background-color: #d0ff9c;
71
- /*background-color: #FFFF55;*/
72
- }
73
-
74
69
  a.headmenu {
75
70
  font-size: 40%;
76
71
  font-weight: normal;
@@ -0,0 +1,36 @@
1
+ //
2
+ // @brief
3
+ // @author ongaeshi
4
+ // @date 2011/08/24
5
+
6
+ function replace_query_param(url, value)
7
+ {
8
+ var url_s = url.split("?");
9
+
10
+ if (url_s.length <= 1) {
11
+ return url + "?query=" + value;
12
+ } else {
13
+ var params = url_s[1].split("&");
14
+ var found_query = false;
15
+
16
+ for (var i = 0; i < params.length; i++) {
17
+ if (params[i].search(/^query=/) != -1) {
18
+ params[i] = params[i].replace(/^query=.*/, "query=" + value);
19
+ found_query = true;
20
+ }
21
+ }
22
+
23
+ if (!found_query)
24
+ params.unshift("query=" + value);
25
+
26
+ return url_s[0] + "?" + params.join("&");
27
+ }
28
+ }
29
+
30
+ function topic_path(id)
31
+ {
32
+ var url = document.getElementById(id).href;
33
+ url = replace_query_param(url, document.searchform.query.value);
34
+ document.getElementById(id).href = url;
35
+ }
36
+
@@ -3,10 +3,11 @@
3
3
  %h1 <a href="/"><img src="/images/MilkodeIcon135.png" alt="milkode-icon" border="0" height="135px"/></a> Milkode <font class="version">#{@version}</font>
4
4
 
5
5
  .content
6
- %form(method="post" action="home")
6
+ %form(method="post" action="/search")
7
7
  %p
8
8
  %input(name="query" type="text" size="60")
9
9
  %input(type="submit" value="検索")
10
+ %input(name='pathname' type='hidden' value='/home')
10
11
 
11
12
  .footer_home
12
13
  <a href="/home">#{@package_num}</a>のパッケージ<br>
@@ -4,8 +4,10 @@
4
4
  %head
5
5
  %meta(charset='utf-8')
6
6
  %title= [@title, 'Milkode'].compact.join(' - ')
7
- %link(rel="stylesheet" href="/css/gren.css" type="text/css" media="all")
7
+ %link(rel="stylesheet" href="/css/milkode.css" type="text/css" media="all")
8
8
  %link(rel="stylesheet" href="/css/coderay.css" type="text/css" media="all")
9
+ %link(rel="stylesheet" href="/css/coderay-patch.css" type="text/css" media="all")
10
+ %script(type='text/javascript' src='/js/milkode.js')
9
11
 
10
12
  %body
11
13
  -# %header
@@ -2,7 +2,7 @@
2
2
  %h1
3
3
  <a href="/"><img src="/images/MilkodeIcon135.png" alt="milkode-icon-mini" border="0" height="75px"/></a>
4
4
  Milkode
5
- = create_headmenu(@path, params)
5
+ = create_headmenu(@path, params, '..')
6
6
 
7
7
  .content
8
8
  = create_form(@path, params[:query], params[:shead])
@@ -3,6 +3,7 @@
3
3
  require 'rubygems'
4
4
  require 'milkode/common/archive-zip'
5
5
  require 'fileutils'
6
+ require 'pathname'
6
7
 
7
8
  module Milkode
8
9
  module Util
@@ -41,6 +42,12 @@ module Milkode
41
42
 
42
43
  list
43
44
  end
45
+
46
+ def relative_path(path, basedir)
47
+ path = Pathname.new(path)
48
+ basedir = Pathname.new(basedir)
49
+ path.relative_path_from(basedir)
50
+ end
44
51
  end
45
52
  end
46
53
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{milkode}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["ongaeshi"]
12
- s.date = %q{2011-08-12}
12
+ s.date = %q{2011-08-26}
13
13
  s.description = %q{Line based local source code search engine & web-app.}
14
14
  s.email = %q{ongaeshi0621@gmail.com}
15
15
  s.executables = ["cdv", "milk", "cdview"]
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  ".document",
22
22
  "Gemfile",
23
23
  "Gemfile.lock",
24
+ "HISTORY.ja.rdoc",
24
25
  "HISTORY.rdoc",
25
26
  "LICENSE.txt",
26
27
  "README.rdoc",
@@ -45,11 +46,15 @@ Gem::Specification.new do |s|
45
46
  "lib/milkode/cdweb/lib/query.rb",
46
47
  "lib/milkode/cdweb/lib/search_contents.rb",
47
48
  "lib/milkode/cdweb/lib/search_files.rb",
49
+ "lib/milkode/cdweb/public/css/coderay-patch.css",
48
50
  "lib/milkode/cdweb/public/css/coderay.css",
49
- "lib/milkode/cdweb/public/css/gren.css",
51
+ "lib/milkode/cdweb/public/css/milkode.css",
50
52
  "lib/milkode/cdweb/public/images/MilkodeIcon135.png",
51
53
  "lib/milkode/cdweb/public/images/directory.png",
54
+ "lib/milkode/cdweb/public/images/document-new-4.png",
52
55
  "lib/milkode/cdweb/public/images/file.png",
56
+ "lib/milkode/cdweb/public/images/go-home-5.png",
57
+ "lib/milkode/cdweb/public/js/milkode.js",
53
58
  "lib/milkode/cdweb/views/filelist.haml",
54
59
  "lib/milkode/cdweb/views/help.haml",
55
60
  "lib/milkode/cdweb/views/index.haml",
@@ -135,6 +140,7 @@ Gem::Specification.new do |s|
135
140
  s.add_runtime_dependency(%q<archive-zip>, [">= 0.3.0"])
136
141
  s.add_runtime_dependency(%q<haml>, [">= 3.1.2"])
137
142
  s.add_runtime_dependency(%q<sass>, [">= 3.1.3"])
143
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.5.0"])
138
144
  else
139
145
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
140
146
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
@@ -149,6 +155,7 @@ Gem::Specification.new do |s|
149
155
  s.add_dependency(%q<archive-zip>, [">= 0.3.0"])
150
156
  s.add_dependency(%q<haml>, [">= 3.1.2"])
151
157
  s.add_dependency(%q<sass>, [">= 3.1.3"])
158
+ s.add_dependency(%q<nokogiri>, [">= 1.5.0"])
152
159
  end
153
160
  else
154
161
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -164,6 +171,7 @@ Gem::Specification.new do |s|
164
171
  s.add_dependency(%q<archive-zip>, [">= 0.3.0"])
165
172
  s.add_dependency(%q<haml>, [">= 3.1.2"])
166
173
  s.add_dependency(%q<sass>, [">= 3.1.3"])
174
+ s.add_dependency(%q<nokogiri>, [">= 1.5.0"])
167
175
  end
168
176
  end
169
177
 
@@ -13,8 +13,11 @@ require 'milkode/cdweb/lib/coderay_wrapper'
13
13
  module Milkode
14
14
  class TestCodeRayWrapper < Test::Unit::TestCase
15
15
  def test_basic
16
- assert_lines JS_SHORT_HTML, CodeRayWrapper.new(JS_SHORT_CODE, "console-dir.js").to_html
17
- assert_lines JS_HTML , CodeRayWrapper.new(JS_CODE, "console-dir.js").to_html
16
+ CodeRayWrapper.new(JS_SHORT_CODE, "console-dir.js").to_html
17
+ CodeRayWrapper.new(JS_CODE, "console-dir.js").to_html
18
+
19
+ CodeRayWrapper.new(JS_SHORT_CODE, "console-dir.js").to_html_anchor
20
+ CodeRayWrapper.new(JS_CODE, "console-dir.js").to_html_anchor
18
21
  end
19
22
  end
20
23
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - ongaeshi
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-12 00:00:00 +09:00
17
+ date: 2011-08-26 00:00:00 +09:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -197,6 +197,20 @@ dependencies:
197
197
  requirement: *id013
198
198
  prerelease: false
199
199
  type: :runtime
200
+ - !ruby/object:Gem::Dependency
201
+ version_requirements: &id014 !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ segments:
206
+ - 1
207
+ - 5
208
+ - 0
209
+ version: 1.5.0
210
+ name: nokogiri
211
+ requirement: *id014
212
+ prerelease: false
213
+ type: :runtime
200
214
  description: Line based local source code search engine & web-app.
201
215
  email: ongaeshi0621@gmail.com
202
216
  executables:
@@ -212,6 +226,7 @@ files:
212
226
  - .document
213
227
  - Gemfile
214
228
  - Gemfile.lock
229
+ - HISTORY.ja.rdoc
215
230
  - HISTORY.rdoc
216
231
  - LICENSE.txt
217
232
  - README.rdoc
@@ -236,11 +251,15 @@ files:
236
251
  - lib/milkode/cdweb/lib/query.rb
237
252
  - lib/milkode/cdweb/lib/search_contents.rb
238
253
  - lib/milkode/cdweb/lib/search_files.rb
254
+ - lib/milkode/cdweb/public/css/coderay-patch.css
239
255
  - lib/milkode/cdweb/public/css/coderay.css
240
- - lib/milkode/cdweb/public/css/gren.css
256
+ - lib/milkode/cdweb/public/css/milkode.css
241
257
  - lib/milkode/cdweb/public/images/MilkodeIcon135.png
242
258
  - lib/milkode/cdweb/public/images/directory.png
259
+ - lib/milkode/cdweb/public/images/document-new-4.png
243
260
  - lib/milkode/cdweb/public/images/file.png
261
+ - lib/milkode/cdweb/public/images/go-home-5.png
262
+ - lib/milkode/cdweb/public/js/milkode.js
244
263
  - lib/milkode/cdweb/views/filelist.haml
245
264
  - lib/milkode/cdweb/views/help.haml
246
265
  - lib/milkode/cdweb/views/index.haml