milkode 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/milk +1 -1
- data/lib/milkode/cdweb/app.rb +1 -1
- data/lib/milkode/common/archive-zip.rb +2 -35
- data/vendor/archive/support/io.rb +53 -0
- metadata +210 -156
- data/.document +0 -5
- data/lib/milkode/cdweb/config.ru +0 -3
- data/lib/milkode/cdweb/public/css/coderay.css +0 -131
- data/lib/milkode/cdweb/public/css/gren.css +0 -78
- data/lib/milkode/cdweb/public/images/MilkodeIcon135.png +0 -0
- data/lib/milkode/cdweb/public/images/directory.png +0 -0
- data/lib/milkode/cdweb/public/images/file.png +0 -0
- data/lib/milkode/cdweb/views/filelist.haml +0 -14
- data/lib/milkode/cdweb/views/help.haml +0 -16
- data/lib/milkode/cdweb/views/index.haml +0 -17
- data/lib/milkode/cdweb/views/layout.haml +0 -33
- data/lib/milkode/cdweb/views/search.haml +0 -12
- data/lib/milkode/cdweb/views/view.haml +0 -16
- data/milkode.gemspec +0 -147
data/Rakefile
CHANGED
@@ -20,6 +20,7 @@ Jeweler::Tasks.new do |gem|
|
|
20
20
|
gem.description = %Q{Line based local source code search engine & web-app.}
|
21
21
|
gem.email = "ongaeshi0621@gmail.com"
|
22
22
|
gem.authors = ["ongaeshi"]
|
23
|
+
gem.files = FileList['lib/**/*.rb', 'bin/*', '[A-Z]*', 'test/**/*', 'vendor/**/*.rb'].to_a
|
23
24
|
|
24
25
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
25
26
|
gem.add_runtime_dependency 'termcolor','>= 1.2.0'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/bin/milk
CHANGED
data/lib/milkode/cdweb/app.rb
CHANGED
@@ -1,42 +1,9 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
3
|
# @file
|
4
|
-
# @brief archive-zipがRuby1.9.2
|
4
|
+
# @brief archive-zipがRuby1.9.2に対応するまでのパッチ
|
5
5
|
# @author ongaeshi
|
6
6
|
# @date 2011/08/04
|
7
7
|
|
8
|
-
|
9
|
-
require 'readbytes'
|
10
|
-
rescue LoadError
|
11
|
-
# for Ruby 1.9.2
|
12
|
-
class TruncatedDataError<IOError
|
13
|
-
def initialize(mesg, data) # :nodoc:
|
14
|
-
@data = data
|
15
|
-
super(mesg)
|
16
|
-
end
|
17
|
-
|
18
|
-
# The read portion of an IO#readbytes attempt.
|
19
|
-
attr_reader :data
|
20
|
-
end
|
21
|
-
|
22
|
-
class IO
|
23
|
-
# Reads exactly +n+ bytes.
|
24
|
-
#
|
25
|
-
# If the data read is nil an EOFError is raised.
|
26
|
-
#
|
27
|
-
# If the data read is too short a TruncatedDataError is raised and the read
|
28
|
-
# data is obtainable via its #data method.
|
29
|
-
def readbytes(n)
|
30
|
-
str = read(n)
|
31
|
-
if str == nil
|
32
|
-
raise EOFError, "End of file reached"
|
33
|
-
end
|
34
|
-
if str.size < n
|
35
|
-
raise TruncatedDataError.new("data truncated", str)
|
36
|
-
end
|
37
|
-
str
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
8
|
+
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '../../../vendor')
|
42
9
|
require 'archive/zip'
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# @file
|
4
|
+
# @brief archive-zip/lib/archive/support/io.rb patch, removed in the future.
|
5
|
+
# @author ongaeshi
|
6
|
+
# @date 2011/08/04
|
7
|
+
|
8
|
+
begin
|
9
|
+
require 'readbytes'
|
10
|
+
rescue LoadError
|
11
|
+
# for Ruby 1.9.2
|
12
|
+
class TruncatedDataError<IOError
|
13
|
+
def initialize(mesg, data) # :nodoc:
|
14
|
+
@data = data
|
15
|
+
super(mesg)
|
16
|
+
end
|
17
|
+
|
18
|
+
# The read portion of an IO#readbytes attempt.
|
19
|
+
attr_reader :data
|
20
|
+
end
|
21
|
+
|
22
|
+
class IO
|
23
|
+
# Reads exactly +n+ bytes.
|
24
|
+
#
|
25
|
+
# If the data read is nil an EOFError is raised.
|
26
|
+
#
|
27
|
+
# If the data read is too short a TruncatedDataError is raised and the read
|
28
|
+
# data is obtainable via its #data method.
|
29
|
+
def readbytes(n)
|
30
|
+
str = read(n)
|
31
|
+
if str == nil
|
32
|
+
raise EOFError, "End of file reached"
|
33
|
+
end
|
34
|
+
if str.size < n
|
35
|
+
raise TruncatedDataError.new("data truncated", str)
|
36
|
+
end
|
37
|
+
str
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class IO
|
43
|
+
# Returns +true+ if the seek method of this IO instance would succeed, +false+
|
44
|
+
# otherwise.
|
45
|
+
def seekable?
|
46
|
+
begin
|
47
|
+
pos
|
48
|
+
true
|
49
|
+
rescue SystemCallError
|
50
|
+
false
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
metadata
CHANGED
@@ -1,171 +1,214 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: milkode
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 8
|
9
|
+
version: 0.1.8
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- ongaeshi
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
requirements:
|
16
|
+
|
17
|
+
date: 2011-08-04 00:00:00 +09:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
19
23
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
segments:
|
26
|
+
- 1
|
27
|
+
- 0
|
28
|
+
- 0
|
21
29
|
version: 1.0.0
|
22
|
-
|
30
|
+
name: bundler
|
31
|
+
requirement: *id001
|
23
32
|
prerelease: false
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
|
27
|
-
|
28
|
-
none: false
|
29
|
-
requirements:
|
33
|
+
type: :development
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
30
37
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 1
|
41
|
+
- 5
|
42
|
+
- 2
|
32
43
|
version: 1.5.2
|
33
|
-
|
44
|
+
name: jeweler
|
45
|
+
requirement: *id002
|
34
46
|
prerelease: false
|
35
|
-
version_requirements: *2152342800
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: rcov
|
38
|
-
requirement: &2152341300 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ! '>='
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '0'
|
44
47
|
type: :development
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 0
|
55
|
+
version: "0"
|
56
|
+
name: rcov
|
57
|
+
requirement: *id003
|
45
58
|
prerelease: false
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
59
|
+
type: :development
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
segments:
|
66
|
+
- 1
|
67
|
+
- 2
|
68
|
+
- 0
|
54
69
|
version: 1.2.0
|
55
|
-
|
70
|
+
name: termcolor
|
71
|
+
requirement: *id004
|
56
72
|
prerelease: false
|
57
|
-
version_requirements: *2152339920
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: rroonga
|
60
|
-
requirement: &2152338240 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ! '>='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: 1.0.0
|
66
73
|
type: :runtime
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
segments:
|
80
|
+
- 1
|
81
|
+
- 0
|
82
|
+
- 0
|
83
|
+
version: 1.0.0
|
84
|
+
name: rroonga
|
85
|
+
requirement: *id005
|
67
86
|
prerelease: false
|
68
|
-
version_requirements: *2152338240
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rack
|
71
|
-
requirement: &2152335820 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
74
|
-
- - ! '>='
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 1.2.1
|
77
87
|
type: :runtime
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
segments:
|
94
|
+
- 1
|
95
|
+
- 2
|
96
|
+
- 1
|
97
|
+
version: 1.2.1
|
98
|
+
name: rack
|
99
|
+
requirement: *id006
|
78
100
|
prerelease: false
|
79
|
-
version_requirements: *2152335820
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: sinatra
|
82
|
-
requirement: &2152333760 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
|
-
requirements:
|
85
|
-
- - ! '>='
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: 1.2.6
|
88
101
|
type: :runtime
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
segments:
|
108
|
+
- 1
|
109
|
+
- 2
|
110
|
+
- 6
|
111
|
+
version: 1.2.6
|
112
|
+
name: sinatra
|
113
|
+
requirement: *id007
|
89
114
|
prerelease: false
|
90
|
-
version_requirements: *2152333760
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: launchy
|
93
|
-
requirement: &2152331640 !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
|
-
requirements:
|
96
|
-
- - ! '>='
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 0.3.7
|
99
115
|
type: :runtime
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
- 3
|
124
|
+
- 7
|
125
|
+
version: 0.3.7
|
126
|
+
name: launchy
|
127
|
+
requirement: *id008
|
100
128
|
prerelease: false
|
101
|
-
version_requirements: *2152331640
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
name: coderay
|
104
|
-
requirement: &2152329700 !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 0.9.8
|
110
129
|
type: :runtime
|
130
|
+
- !ruby/object:Gem::Dependency
|
131
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
segments:
|
136
|
+
- 0
|
137
|
+
- 9
|
138
|
+
- 8
|
139
|
+
version: 0.9.8
|
140
|
+
name: coderay
|
141
|
+
requirement: *id009
|
111
142
|
prerelease: false
|
112
|
-
version_requirements: *2152329700
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
|
-
name: thin
|
115
|
-
requirement: &2152328500 !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
117
|
-
requirements:
|
118
|
-
- - ! '>='
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
version: 1.2.10
|
121
143
|
type: :runtime
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
segments:
|
150
|
+
- 1
|
151
|
+
- 2
|
152
|
+
- 10
|
153
|
+
version: 1.2.10
|
154
|
+
name: thin
|
155
|
+
requirement: *id010
|
122
156
|
prerelease: false
|
123
|
-
version_requirements: *2152328500
|
124
|
-
- !ruby/object:Gem::Dependency
|
125
|
-
name: archive-zip
|
126
|
-
requirement: &2152326780 !ruby/object:Gem::Requirement
|
127
|
-
none: false
|
128
|
-
requirements:
|
129
|
-
- - ! '>='
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 0.3.0
|
132
157
|
type: :runtime
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
segments:
|
164
|
+
- 0
|
165
|
+
- 3
|
166
|
+
- 0
|
167
|
+
version: 0.3.0
|
168
|
+
name: archive-zip
|
169
|
+
requirement: *id011
|
133
170
|
prerelease: false
|
134
|
-
version_requirements: *2152326780
|
135
|
-
- !ruby/object:Gem::Dependency
|
136
|
-
name: haml
|
137
|
-
requirement: &2152313960 !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
|
-
requirements:
|
140
|
-
- - ! '>='
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: 3.1.2
|
143
171
|
type: :runtime
|
172
|
+
- !ruby/object:Gem::Dependency
|
173
|
+
version_requirements: &id012 !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
segments:
|
178
|
+
- 3
|
179
|
+
- 1
|
180
|
+
- 2
|
181
|
+
version: 3.1.2
|
182
|
+
name: haml
|
183
|
+
requirement: *id012
|
144
184
|
prerelease: false
|
145
|
-
version_requirements: *2152313960
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: sass
|
148
|
-
requirement: &2152312460 !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
|
-
requirements:
|
151
|
-
- - ! '>='
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: 3.1.3
|
154
185
|
type: :runtime
|
186
|
+
- !ruby/object:Gem::Dependency
|
187
|
+
version_requirements: &id013 !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
segments:
|
192
|
+
- 3
|
193
|
+
- 1
|
194
|
+
- 3
|
195
|
+
version: 3.1.3
|
196
|
+
name: sass
|
197
|
+
requirement: *id013
|
155
198
|
prerelease: false
|
156
|
-
|
199
|
+
type: :runtime
|
157
200
|
description: Line based local source code search engine & web-app.
|
158
201
|
email: ongaeshi0621@gmail.com
|
159
|
-
executables:
|
202
|
+
executables:
|
160
203
|
- cdv
|
161
|
-
- cdview
|
162
204
|
- milk
|
205
|
+
- cdview
|
163
206
|
extensions: []
|
164
|
-
|
207
|
+
|
208
|
+
extra_rdoc_files:
|
165
209
|
- LICENSE.txt
|
166
210
|
- README.rdoc
|
167
|
-
files:
|
168
|
-
- .document
|
211
|
+
files:
|
169
212
|
- Gemfile
|
170
213
|
- Gemfile.lock
|
171
214
|
- HISTORY.rdoc
|
@@ -183,7 +226,6 @@ files:
|
|
183
226
|
- lib/milkode/cdview/cli_cdview.rb
|
184
227
|
- lib/milkode/cdweb/app.rb
|
185
228
|
- lib/milkode/cdweb/cli_cdweb.rb
|
186
|
-
- lib/milkode/cdweb/config.ru
|
187
229
|
- lib/milkode/cdweb/lib/coderay_wrapper.rb
|
188
230
|
- lib/milkode/cdweb/lib/command.rb
|
189
231
|
- lib/milkode/cdweb/lib/database.rb
|
@@ -192,17 +234,6 @@ files:
|
|
192
234
|
- lib/milkode/cdweb/lib/query.rb
|
193
235
|
- lib/milkode/cdweb/lib/search_contents.rb
|
194
236
|
- lib/milkode/cdweb/lib/search_files.rb
|
195
|
-
- lib/milkode/cdweb/public/css/coderay.css
|
196
|
-
- lib/milkode/cdweb/public/css/gren.css
|
197
|
-
- lib/milkode/cdweb/public/images/MilkodeIcon135.png
|
198
|
-
- lib/milkode/cdweb/public/images/directory.png
|
199
|
-
- lib/milkode/cdweb/public/images/file.png
|
200
|
-
- lib/milkode/cdweb/views/filelist.haml
|
201
|
-
- lib/milkode/cdweb/views/help.haml
|
202
|
-
- lib/milkode/cdweb/views/index.haml
|
203
|
-
- lib/milkode/cdweb/views/layout.haml
|
204
|
-
- lib/milkode/cdweb/views/search.haml
|
205
|
-
- lib/milkode/cdweb/views/view.haml
|
206
237
|
- lib/milkode/common/archive-zip.rb
|
207
238
|
- lib/milkode/common/dbdir.rb
|
208
239
|
- lib/milkode/common/dir.rb
|
@@ -214,7 +245,6 @@ files:
|
|
214
245
|
- lib/milkode/common/util.rb
|
215
246
|
- lib/milkode/findgrep/findgrep.rb
|
216
247
|
- lib/milkode/findgrep/result.rb
|
217
|
-
- milkode.gemspec
|
218
248
|
- test/data/abc.zip
|
219
249
|
- test/data/nodir_abc.zip
|
220
250
|
- test/data/nodir_abc_xpi.xpi
|
@@ -236,29 +266,53 @@ files:
|
|
236
266
|
- test/test_query.rb
|
237
267
|
- test/test_string_snip.rb
|
238
268
|
- test/test_util.rb
|
269
|
+
- vendor/archive/support/io.rb
|
270
|
+
has_rdoc: true
|
239
271
|
homepage: http://github.com/ongaeshi/milkode
|
240
|
-
licenses:
|
272
|
+
licenses:
|
241
273
|
- MIT
|
242
274
|
post_install_message:
|
243
275
|
rdoc_options: []
|
244
|
-
|
276
|
+
|
277
|
+
require_paths:
|
245
278
|
- lib
|
246
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
requirements:
|
255
|
-
- -
|
256
|
-
- !ruby/object:Gem::Version
|
257
|
-
|
279
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
280
|
+
requirements:
|
281
|
+
- - ">="
|
282
|
+
- !ruby/object:Gem::Version
|
283
|
+
segments:
|
284
|
+
- 0
|
285
|
+
version: "0"
|
286
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
287
|
+
requirements:
|
288
|
+
- - ">="
|
289
|
+
- !ruby/object:Gem::Version
|
290
|
+
segments:
|
291
|
+
- 0
|
292
|
+
version: "0"
|
258
293
|
requirements: []
|
294
|
+
|
259
295
|
rubyforge_project:
|
260
|
-
rubygems_version: 1.
|
296
|
+
rubygems_version: 1.3.6
|
261
297
|
signing_key:
|
262
298
|
specification_version: 3
|
263
299
|
summary: Line based local source code search engine & web-app.
|
264
|
-
test_files:
|
300
|
+
test_files:
|
301
|
+
- test/file_assert.rb
|
302
|
+
- test/file_test_utils.rb
|
303
|
+
- test/rake_test_loader.rb
|
304
|
+
- test/runner.rb
|
305
|
+
- test/test_bin_exec.rb
|
306
|
+
- test/test_cdstk.rb
|
307
|
+
- test/test_cdstk_yaml.rb
|
308
|
+
- test/test_coderay_wrapper.rb
|
309
|
+
- test/test_coderay_wrapper_data.rb
|
310
|
+
- test/test_database.rb
|
311
|
+
- test/test_dbdir.rb
|
312
|
+
- test/test_dir.rb
|
313
|
+
- test/test_gren_util.rb
|
314
|
+
- test/test_helper.rb
|
315
|
+
- test/test_mkurl.rb
|
316
|
+
- test/test_query.rb
|
317
|
+
- test/test_string_snip.rb
|
318
|
+
- test/test_util.rb
|
data/.document
DELETED
data/lib/milkode/cdweb/config.ru
DELETED
@@ -1,131 +0,0 @@
|
|
1
|
-
.CodeRay {
|
2
|
-
background-color: #f8f8f8;
|
3
|
-
border: 1px solid silver;
|
4
|
-
font-family: 'Courier New', 'Terminal', monospace;
|
5
|
-
color: #000;
|
6
|
-
}
|
7
|
-
.CodeRay pre { margin: 0px }
|
8
|
-
|
9
|
-
div.CodeRay { }
|
10
|
-
|
11
|
-
span.CodeRay { white-space: pre; border: 0px; padding: 2px }
|
12
|
-
|
13
|
-
table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px }
|
14
|
-
table.CodeRay td { padding: 2px 4px; vertical-align: top }
|
15
|
-
|
16
|
-
.CodeRay .line_numbers, .CodeRay .no {
|
17
|
-
background-color: #def;
|
18
|
-
color: gray;
|
19
|
-
text-align: right;
|
20
|
-
}
|
21
|
-
.CodeRay .line_numbers tt { font-weight: bold }
|
22
|
-
.CodeRay .line_numbers .highlighted { color: red }
|
23
|
-
.CodeRay .line { display: block; float: left; width: 100%; }
|
24
|
-
.CodeRay .no { padding: 0px 4px }
|
25
|
-
.CodeRay .code { width: 100% }
|
26
|
-
|
27
|
-
ol.CodeRay { font-size: 10pt }
|
28
|
-
ol.CodeRay li { white-space: pre }
|
29
|
-
|
30
|
-
.CodeRay .code pre { overflow: auto }
|
31
|
-
|
32
|
-
.CodeRay .debug { color:white ! important; background:blue ! important; }
|
33
|
-
|
34
|
-
.CodeRay .af { color:#00C }
|
35
|
-
.CodeRay .an { color:#007 }
|
36
|
-
.CodeRay .at { color:#f08 }
|
37
|
-
.CodeRay .av { color:#700 }
|
38
|
-
.CodeRay .aw { color:#C00 }
|
39
|
-
.CodeRay .bi { color:#509; font-weight:bold }
|
40
|
-
.CodeRay .c { color:#888; }
|
41
|
-
|
42
|
-
.CodeRay .ch { color:#04D }
|
43
|
-
.CodeRay .ch .k { color:#04D }
|
44
|
-
.CodeRay .ch .dl { color:#039 }
|
45
|
-
|
46
|
-
.CodeRay .cl { color:#B06; font-weight:bold }
|
47
|
-
.CodeRay .cm { color:#A08; font-weight:bold }
|
48
|
-
.CodeRay .co { color:#036; font-weight:bold }
|
49
|
-
.CodeRay .cr { color:#0A0 }
|
50
|
-
.CodeRay .cv { color:#369 }
|
51
|
-
.CodeRay .de { color:#B0B; }
|
52
|
-
.CodeRay .df { color:#099; font-weight:bold }
|
53
|
-
.CodeRay .di { color:#088; font-weight:bold }
|
54
|
-
.CodeRay .dl { color:black }
|
55
|
-
.CodeRay .do { color:#970 }
|
56
|
-
.CodeRay .dt { color:#34b }
|
57
|
-
.CodeRay .ds { color:#D42; font-weight:bold }
|
58
|
-
.CodeRay .e { color:#666; font-weight:bold }
|
59
|
-
.CodeRay .en { color:#800; font-weight:bold }
|
60
|
-
.CodeRay .er { color:#F00; background-color:#FAA }
|
61
|
-
.CodeRay .ex { color:#C00; font-weight:bold }
|
62
|
-
.CodeRay .fl { color:#60E; font-weight:bold }
|
63
|
-
.CodeRay .fu { color:#06B; font-weight:bold }
|
64
|
-
.CodeRay .gv { color:#d70; font-weight:bold }
|
65
|
-
.CodeRay .hx { color:#058; font-weight:bold }
|
66
|
-
.CodeRay .i { color:#00D; font-weight:bold }
|
67
|
-
.CodeRay .ic { color:#B44; font-weight:bold }
|
68
|
-
|
69
|
-
.CodeRay .il { background: #ddd; color: black }
|
70
|
-
.CodeRay .il .il { background: #ccc }
|
71
|
-
.CodeRay .il .il .il { background: #bbb }
|
72
|
-
.CodeRay .il .idl { background: #ddd; font-weight: bold; color: #666 }
|
73
|
-
.CodeRay .idl { background-color: #bbb; font-weight: bold; color: #666; }
|
74
|
-
|
75
|
-
.CodeRay .im { color:#f00; }
|
76
|
-
.CodeRay .in { color:#B2B; font-weight:bold }
|
77
|
-
.CodeRay .iv { color:#33B }
|
78
|
-
.CodeRay .la { color:#970; font-weight:bold }
|
79
|
-
.CodeRay .lv { color:#963 }
|
80
|
-
.CodeRay .oc { color:#40E; font-weight:bold }
|
81
|
-
.CodeRay .of { color:#000; font-weight:bold }
|
82
|
-
.CodeRay .op { }
|
83
|
-
.CodeRay .pc { color:#038; font-weight:bold }
|
84
|
-
.CodeRay .pd { color:#369; font-weight:bold }
|
85
|
-
.CodeRay .pp { color:#579; }
|
86
|
-
.CodeRay .ps { color:#00C; font-weight:bold }
|
87
|
-
.CodeRay .pt { color:#074; font-weight:bold }
|
88
|
-
.CodeRay .r, .kw { color:#080; font-weight:bold }
|
89
|
-
|
90
|
-
.CodeRay .ke { color: #808; }
|
91
|
-
.CodeRay .ke .dl { color: #606; }
|
92
|
-
.CodeRay .ke .ch { color: #80f; }
|
93
|
-
.CodeRay .vl { color: #088; }
|
94
|
-
|
95
|
-
.CodeRay .rx { background-color:#fff0ff }
|
96
|
-
.CodeRay .rx .k { color:#808 }
|
97
|
-
.CodeRay .rx .dl { color:#404 }
|
98
|
-
.CodeRay .rx .mod { color:#C2C }
|
99
|
-
.CodeRay .rx .fu { color:#404; font-weight: bold }
|
100
|
-
|
101
|
-
.CodeRay .s { background-color:#fff0f0; color: #D20; }
|
102
|
-
.CodeRay .s .s { background-color:#ffe0e0 }
|
103
|
-
.CodeRay .s .s .s { background-color:#ffd0d0 }
|
104
|
-
.CodeRay .s .k { }
|
105
|
-
.CodeRay .s .ch { color: #b0b; }
|
106
|
-
.CodeRay .s .dl { color: #710; }
|
107
|
-
|
108
|
-
.CodeRay .sh { background-color:#f0fff0; color:#2B2 }
|
109
|
-
.CodeRay .sh .k { }
|
110
|
-
.CodeRay .sh .dl { color:#161 }
|
111
|
-
|
112
|
-
.CodeRay .sy { color:#A60 }
|
113
|
-
.CodeRay .sy .k { color:#A60 }
|
114
|
-
.CodeRay .sy .dl { color:#630 }
|
115
|
-
|
116
|
-
.CodeRay .ta { color:#070 }
|
117
|
-
.CodeRay .tf { color:#070; font-weight:bold }
|
118
|
-
.CodeRay .ts { color:#D70; font-weight:bold }
|
119
|
-
.CodeRay .ty { color:#339; font-weight:bold }
|
120
|
-
.CodeRay .v { color:#036 }
|
121
|
-
.CodeRay .xt { color:#444 }
|
122
|
-
|
123
|
-
.CodeRay .ins { background: #afa; }
|
124
|
-
.CodeRay .del { background: #faa; }
|
125
|
-
.CodeRay .chg { color: #aaf; background: #007; }
|
126
|
-
.CodeRay .head { color: #f8f; background: #505 }
|
127
|
-
|
128
|
-
.CodeRay .ins .ins { color: #080; font-weight:bold }
|
129
|
-
.CodeRay .del .del { color: #800; font-weight:bold }
|
130
|
-
.CodeRay .chg .chg { color: #66f; }
|
131
|
-
.CodeRay .head .head { color: #f4f; }
|
@@ -1,78 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
}
|
3
|
-
|
4
|
-
div.header {
|
5
|
-
}
|
6
|
-
|
7
|
-
div.footer {
|
8
|
-
}
|
9
|
-
|
10
|
-
div.header_home {
|
11
|
-
font-size: 170%;
|
12
|
-
}
|
13
|
-
|
14
|
-
div.footer_home {
|
15
|
-
font-size: 85%;
|
16
|
-
margin-top: 3em;
|
17
|
-
}
|
18
|
-
|
19
|
-
div.search-summary {
|
20
|
-
border-color: #e92926;
|
21
|
-
background-color:#FFF0F0;
|
22
|
-
border-top-style:solid;
|
23
|
-
border-top-width:1px;
|
24
|
-
border-bottom-style:solid;
|
25
|
-
border-bottom-width:1px;
|
26
|
-
margin-bottom:1em;
|
27
|
-
margin-top:1em;
|
28
|
-
padding-bottom:5px;
|
29
|
-
padding-top:5px;
|
30
|
-
padding-left:5px;
|
31
|
-
}
|
32
|
-
|
33
|
-
dt.result-record {
|
34
|
-
font-size: 105%;
|
35
|
-
}
|
36
|
-
|
37
|
-
dt.result-file {
|
38
|
-
font-size: 95%;
|
39
|
-
}
|
40
|
-
|
41
|
-
div.pagination {
|
42
|
-
border-color: #e92926;
|
43
|
-
background-color:#FFF0F0;
|
44
|
-
border-top-style:solid;
|
45
|
-
border-top-width:1px;
|
46
|
-
text-align: center;
|
47
|
-
margin-bottom: 20px;
|
48
|
-
}
|
49
|
-
|
50
|
-
pre.lines {
|
51
|
-
border: 1px solid #dedede;
|
52
|
-
margin-bottom: 5px;
|
53
|
-
padding-left: 5px;
|
54
|
-
background-color: #fdfdfd;
|
55
|
-
font-weight: inherit;
|
56
|
-
margin-top: 5px;
|
57
|
-
padding-top: 5px;
|
58
|
-
padding-bottom: 5px;
|
59
|
-
}
|
60
|
-
|
61
|
-
span.keyword {
|
62
|
-
font-weight: bold;
|
63
|
-
}
|
64
|
-
|
65
|
-
font.version {
|
66
|
-
font-size: 35%;
|
67
|
-
}
|
68
|
-
|
69
|
-
span.highlight-line {
|
70
|
-
background-color: #d0ff9c;
|
71
|
-
/*background-color: #FFFF55;*/
|
72
|
-
}
|
73
|
-
|
74
|
-
a.headmenu {
|
75
|
-
font-size: 40%;
|
76
|
-
font-weight: normal;
|
77
|
-
}
|
78
|
-
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,14 +0,0 @@
|
|
1
|
-
.header
|
2
|
-
%h1
|
3
|
-
<a href="/"><img src="/images/MilkodeIcon135.png" alt="milkode-icon-mini" border="0" height="75px"/></a>
|
4
|
-
Milkode
|
5
|
-
= create_headmenu(@path, params)
|
6
|
-
|
7
|
-
.content
|
8
|
-
= create_form(@path, params[:query], params[:shead])
|
9
|
-
|
10
|
-
.search-summary
|
11
|
-
<span class="keyword">#{topic_path(@path, params)}</span> <span class="total-entries">#{@total_records}</span>件(#{@elapsed}秒)
|
12
|
-
~ @record_content
|
13
|
-
|
14
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
- @title = 'help'
|
2
|
-
|
3
|
-
.header
|
4
|
-
%h1
|
5
|
-
<a href="/"><img src="/images/MilkodeIcon135.png" alt="milkode-icon-mini" border="0" height="75px"/></a>
|
6
|
-
#{@title} - Milkode
|
7
|
-
|
8
|
-
.content
|
9
|
-
.sample-code
|
10
|
-
%ol
|
11
|
-
%li キーワードを並べてAND検索<br>#{link('def open')}
|
12
|
-
%li 1フレーズとして検索<br>#{link('"def open"')}
|
13
|
-
%li パッケージ名で絞り込み<br>#{link('def open p:milkode')}
|
14
|
-
%li ファイル名で絞り込み<br>#{link('def open f:test')}
|
15
|
-
%li 拡張子で絞り込み<br>#{link('s:rb')}
|
16
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
%div(align="center")
|
2
|
-
.header_home
|
3
|
-
%h1 <a href="/"><img src="/images/MilkodeIcon135.png" alt="milkode-icon" border="0" height="135px"/></a> Milkode <font class="version">#{@version}</font>
|
4
|
-
|
5
|
-
.content
|
6
|
-
%form(method="post" action="home")
|
7
|
-
%p
|
8
|
-
%input(name="query" type="text" size="60")
|
9
|
-
%input(type="submit" value="検索")
|
10
|
-
|
11
|
-
.footer_home
|
12
|
-
<a href="/home">#{@package_num}</a>のパッケージ<br>
|
13
|
-
<a href="/home?query=f:*">#{@file_num}</a>のファイル<br>
|
14
|
-
<a href="/help">ヘルプ</a> ,
|
15
|
-
<a href="http://milkode.ongaeshi.me">milkodeについて</a>
|
16
|
-
|
17
|
-
|
@@ -1,33 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
|
3
|
-
%html(lang='ja')
|
4
|
-
%head
|
5
|
-
%meta(charset='utf-8')
|
6
|
-
%title= [@title, 'Milkode'].compact.join(' - ')
|
7
|
-
%link(rel="stylesheet" href="/css/gren.css" type="text/css" media="all")
|
8
|
-
%link(rel="stylesheet" href="/css/coderay.css" type="text/css" media="all")
|
9
|
-
|
10
|
-
%body
|
11
|
-
-# %header
|
12
|
-
-# %h1 <a href=".">Milkode</a>
|
13
|
-
|
14
|
-
!= yield
|
15
|
-
|
16
|
-
%script{:type=>"text/javascript"}
|
17
|
-
var _gaq = _gaq || [];
|
18
|
-
_gaq.push(['_setAccount', 'UA-13136329-8']);
|
19
|
-
_gaq.push(['_trackPageview']);
|
20
|
-
|
21
|
-
(function() {
|
22
|
-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
23
|
-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
24
|
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
25
|
-
})();
|
26
|
-
|
27
|
-
-# %hr
|
28
|
-
|
29
|
-
-# %footer
|
30
|
-
-# %p
|
31
|
-
-# ! Develop by <a href="./contact.html">ongaeshi</a>
|
32
|
-
-# ! Powered by <a href="http://www.ruby-lang.org/">Ruby</a> #{::RUBY_VERSION},
|
33
|
-
-# ! <a href="http://www.sinatrarb.com/">Sinatra</a> #{Sinatra::VERSION}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
.header
|
2
|
-
%h1
|
3
|
-
<a href="/"><img src="/images/MilkodeIcon135.png" alt="milkode-icon-mini" border="0" height="75px"/></a>
|
4
|
-
Milkode
|
5
|
-
= create_headmenu(@path, params)
|
6
|
-
|
7
|
-
.content
|
8
|
-
= create_form(@path, params[:query], params[:shead])
|
9
|
-
|
10
|
-
.search-summary
|
11
|
-
<span class="keyword">#{topic_path(@path, params)}</span> <span class="total-entries">#{@total_records}</span>件中 <span class="display-range">#{@range.first} - #{@range.last}</span>件(#{@elapsed}秒)
|
12
|
-
~ @record_content
|
@@ -1,16 +0,0 @@
|
|
1
|
-
.header
|
2
|
-
%h1
|
3
|
-
<a href="/"><img src="/images/MilkodeIcon135.png" alt="milkode-icon-mini" border="0" height="75px"/></a>
|
4
|
-
Milkode
|
5
|
-
= create_headmenu(@path, params)
|
6
|
-
|
7
|
-
.content
|
8
|
-
= create_form(@path, params[:query], params[:shead])
|
9
|
-
|
10
|
-
.search-summary
|
11
|
-
<span class="keyword">#{topic_path(@path, params)}</span>(#{@elapsed}秒)
|
12
|
-
~ @record_content
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
data/milkode.gemspec
DELETED
@@ -1,147 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{milkode}
|
8
|
-
s.version = "0.1.7"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [%q{ongaeshi}]
|
12
|
-
s.date = %q{2011-08-03}
|
13
|
-
s.description = %q{Line based local source code search engine & web-app.}
|
14
|
-
s.email = %q{ongaeshi0621@gmail.com}
|
15
|
-
s.executables = [%q{cdv}, %q{cdview}, %q{milk}]
|
16
|
-
s.extra_rdoc_files = [
|
17
|
-
"LICENSE.txt",
|
18
|
-
"README.rdoc"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".document",
|
22
|
-
"Gemfile",
|
23
|
-
"Gemfile.lock",
|
24
|
-
"HISTORY.rdoc",
|
25
|
-
"LICENSE.txt",
|
26
|
-
"README.rdoc",
|
27
|
-
"Rakefile",
|
28
|
-
"VERSION",
|
29
|
-
"bin/cdv",
|
30
|
-
"bin/cdview",
|
31
|
-
"bin/milk",
|
32
|
-
"lib/milkode/cdstk/cdstk.rb",
|
33
|
-
"lib/milkode/cdstk/cdstk_yaml.rb",
|
34
|
-
"lib/milkode/cdstk/cli_cdstk.rb",
|
35
|
-
"lib/milkode/cdstk/cli_cdstksub.rb",
|
36
|
-
"lib/milkode/cdview/cli_cdview.rb",
|
37
|
-
"lib/milkode/cdweb/app.rb",
|
38
|
-
"lib/milkode/cdweb/cli_cdweb.rb",
|
39
|
-
"lib/milkode/cdweb/config.ru",
|
40
|
-
"lib/milkode/cdweb/lib/coderay_wrapper.rb",
|
41
|
-
"lib/milkode/cdweb/lib/command.rb",
|
42
|
-
"lib/milkode/cdweb/lib/database.rb",
|
43
|
-
"lib/milkode/cdweb/lib/grep.rb",
|
44
|
-
"lib/milkode/cdweb/lib/mkurl.rb",
|
45
|
-
"lib/milkode/cdweb/lib/query.rb",
|
46
|
-
"lib/milkode/cdweb/lib/search_contents.rb",
|
47
|
-
"lib/milkode/cdweb/lib/search_files.rb",
|
48
|
-
"lib/milkode/cdweb/public/css/coderay.css",
|
49
|
-
"lib/milkode/cdweb/public/css/gren.css",
|
50
|
-
"lib/milkode/cdweb/public/images/MilkodeIcon135.png",
|
51
|
-
"lib/milkode/cdweb/public/images/directory.png",
|
52
|
-
"lib/milkode/cdweb/public/images/file.png",
|
53
|
-
"lib/milkode/cdweb/views/filelist.haml",
|
54
|
-
"lib/milkode/cdweb/views/help.haml",
|
55
|
-
"lib/milkode/cdweb/views/index.haml",
|
56
|
-
"lib/milkode/cdweb/views/layout.haml",
|
57
|
-
"lib/milkode/cdweb/views/search.haml",
|
58
|
-
"lib/milkode/cdweb/views/view.haml",
|
59
|
-
"lib/milkode/common/archive-zip.rb",
|
60
|
-
"lib/milkode/common/dbdir.rb",
|
61
|
-
"lib/milkode/common/dir.rb",
|
62
|
-
"lib/milkode/common/display_util.rb",
|
63
|
-
"lib/milkode/common/grenfiletest.rb",
|
64
|
-
"lib/milkode/common/grensnip.rb",
|
65
|
-
"lib/milkode/common/platform.rb",
|
66
|
-
"lib/milkode/common/string_snip.rb",
|
67
|
-
"lib/milkode/common/util.rb",
|
68
|
-
"lib/milkode/findgrep/findgrep.rb",
|
69
|
-
"lib/milkode/findgrep/result.rb",
|
70
|
-
"milkode.gemspec",
|
71
|
-
"test/data/abc.zip",
|
72
|
-
"test/data/nodir_abc.zip",
|
73
|
-
"test/data/nodir_abc_xpi.xpi",
|
74
|
-
"test/file_assert.rb",
|
75
|
-
"test/file_test_utils.rb",
|
76
|
-
"test/rake_test_loader.rb",
|
77
|
-
"test/runner.rb",
|
78
|
-
"test/test_bin_exec.rb",
|
79
|
-
"test/test_cdstk.rb",
|
80
|
-
"test/test_cdstk_yaml.rb",
|
81
|
-
"test/test_coderay_wrapper.rb",
|
82
|
-
"test/test_coderay_wrapper_data.rb",
|
83
|
-
"test/test_database.rb",
|
84
|
-
"test/test_dbdir.rb",
|
85
|
-
"test/test_dir.rb",
|
86
|
-
"test/test_gren_util.rb",
|
87
|
-
"test/test_helper.rb",
|
88
|
-
"test/test_mkurl.rb",
|
89
|
-
"test/test_query.rb",
|
90
|
-
"test/test_string_snip.rb",
|
91
|
-
"test/test_util.rb"
|
92
|
-
]
|
93
|
-
s.homepage = %q{http://github.com/ongaeshi/milkode}
|
94
|
-
s.licenses = [%q{MIT}]
|
95
|
-
s.require_paths = [%q{lib}]
|
96
|
-
s.rubygems_version = %q{1.8.6}
|
97
|
-
s.summary = %q{Line based local source code search engine & web-app.}
|
98
|
-
|
99
|
-
if s.respond_to? :specification_version then
|
100
|
-
s.specification_version = 3
|
101
|
-
|
102
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
103
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
104
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
105
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
106
|
-
s.add_runtime_dependency(%q<termcolor>, [">= 1.2.0"])
|
107
|
-
s.add_runtime_dependency(%q<rroonga>, [">= 1.0.0"])
|
108
|
-
s.add_runtime_dependency(%q<rack>, [">= 1.2.1"])
|
109
|
-
s.add_runtime_dependency(%q<sinatra>, [">= 1.2.6"])
|
110
|
-
s.add_runtime_dependency(%q<launchy>, [">= 0.3.7"])
|
111
|
-
s.add_runtime_dependency(%q<coderay>, [">= 0.9.8"])
|
112
|
-
s.add_runtime_dependency(%q<thin>, [">= 1.2.10"])
|
113
|
-
s.add_runtime_dependency(%q<archive-zip>, [">= 0.3.0"])
|
114
|
-
s.add_runtime_dependency(%q<haml>, [">= 3.1.2"])
|
115
|
-
s.add_runtime_dependency(%q<sass>, [">= 3.1.3"])
|
116
|
-
else
|
117
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
118
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
119
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
120
|
-
s.add_dependency(%q<termcolor>, [">= 1.2.0"])
|
121
|
-
s.add_dependency(%q<rroonga>, [">= 1.0.0"])
|
122
|
-
s.add_dependency(%q<rack>, [">= 1.2.1"])
|
123
|
-
s.add_dependency(%q<sinatra>, [">= 1.2.6"])
|
124
|
-
s.add_dependency(%q<launchy>, [">= 0.3.7"])
|
125
|
-
s.add_dependency(%q<coderay>, [">= 0.9.8"])
|
126
|
-
s.add_dependency(%q<thin>, [">= 1.2.10"])
|
127
|
-
s.add_dependency(%q<archive-zip>, [">= 0.3.0"])
|
128
|
-
s.add_dependency(%q<haml>, [">= 3.1.2"])
|
129
|
-
s.add_dependency(%q<sass>, [">= 3.1.3"])
|
130
|
-
end
|
131
|
-
else
|
132
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
133
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
134
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
135
|
-
s.add_dependency(%q<termcolor>, [">= 1.2.0"])
|
136
|
-
s.add_dependency(%q<rroonga>, [">= 1.0.0"])
|
137
|
-
s.add_dependency(%q<rack>, [">= 1.2.1"])
|
138
|
-
s.add_dependency(%q<sinatra>, [">= 1.2.6"])
|
139
|
-
s.add_dependency(%q<launchy>, [">= 0.3.7"])
|
140
|
-
s.add_dependency(%q<coderay>, [">= 0.9.8"])
|
141
|
-
s.add_dependency(%q<thin>, [">= 1.2.10"])
|
142
|
-
s.add_dependency(%q<archive-zip>, [">= 0.3.0"])
|
143
|
-
s.add_dependency(%q<haml>, [">= 3.1.2"])
|
144
|
-
s.add_dependency(%q<sass>, [">= 3.1.3"])
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|