milkode 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.ja.rdoc +9 -0
- data/HISTORY.rdoc +9 -0
- data/lib/milkode/cdweb/lib/command.rb +1 -1
- data/lib/milkode/cdweb/views/index.haml +1 -0
- data/lib/milkode/cdweb/views/layout.haml +1 -0
- data/lib/milkode/version.rb +1 -1
- data/milkode.gemspec +1 -1
- data/test/test_yaml_file_wrapper.rb +46 -46
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b894e172b3556c608d1bfca5e24bc9205c69235b
|
4
|
+
data.tar.gz: 9ef5cf96f1c41c03ed2d247e7b0b0716aba7506b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaa8ff06ad582e5864aa35af2451a537d51e2ac5bdca309908088f28c1187630da10f62c2e1d0fee973d685df12dbe531d71b9a595c607180cba753286ac3e3f
|
7
|
+
data.tar.gz: ba4780d0f2c515ed2b11794d0b6d0d36ac5356e0ac933df3413ded154e4f66fc6a949d2a83dcf14964db3dea2322671ef42c77034ad5cbdb3b8201d1c9b069a3
|
data/HISTORY.ja.rdoc
CHANGED
data/HISTORY.rdoc
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
%head
|
7
7
|
%meta(charset='utf-8')
|
8
8
|
%title= [@title, @setting.home_title].compact.join(' - ')
|
9
|
+
%meta(name='viewport' content='width=device-width')
|
9
10
|
%link(rel="shortcut icon" href="#{url_for @setting.favicon}")
|
10
11
|
%link(rel="stylesheet" href="#{url_for '/css/bootstrap.min.css'}" type="text/css" media="all")
|
11
12
|
%link(rel="stylesheet" href="#{url_for '/css/bootstrap-responsive.min.css'}" type="text/css" media="all")
|
@@ -4,6 +4,7 @@
|
|
4
4
|
%head
|
5
5
|
%meta(charset='utf-8')
|
6
6
|
%title= [@title, @setting.home_title].compact.join(' - ')
|
7
|
+
%meta(name='viewport' content='width=device-width')
|
7
8
|
%link(rel="shortcut icon" href="#{url_for @setting.favicon}")
|
8
9
|
%link(rel="stylesheet" href="#{url_for '/css/bootstrap.min.css'}" type="text/css" media="all")
|
9
10
|
%link(rel="stylesheet" href="#{url_for '/css/bootstrap-responsive.min.css'}" type="text/css" media="all")
|
data/lib/milkode/version.rb
CHANGED
data/milkode.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'sinatra' , '>= 1.2.6'
|
31
31
|
spec.add_dependency 'launchy' , '>= 0.3.7'
|
32
32
|
spec.add_dependency 'coderay' , '>= 1.0.5'
|
33
|
-
spec.add_dependency 'thin' , '>= 1.2.10', '< 2.0.0'
|
33
|
+
spec.add_dependency 'thin' , '>= 1.2.10', '< 2.0.0.pre'
|
34
34
|
spec.add_dependency 'archive-zip' , '>= 0.4.0'
|
35
35
|
spec.add_dependency 'haml' , '>= 3.1.2'
|
36
36
|
spec.add_dependency 'sass' , '>= 3.1.3'
|
@@ -22,60 +22,60 @@ class TestYamlFileWrapper < Test::Unit::TestCase
|
|
22
22
|
FileUtils.cd(@tmp_dir.to_s)
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
# def test_basic
|
26
|
+
# # create
|
27
|
+
# yaml = YamlFileWrapper.create
|
28
|
+
# assert_equal yaml.contents, []
|
29
|
+
# assert_equal yaml.version, '0.2'
|
30
|
+
# assert_raise(YamlFileWrapper::YAMLAlreadyExist) { YamlFileWrapper.create }
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
# # # load
|
33
|
+
# yaml = YamlFileWrapper.load
|
34
|
+
# assert_equal yaml.contents, []
|
35
|
+
# assert_equal yaml.version, '0.2'
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
# # load fail
|
38
|
+
# FileUtils.mkdir 'loadtest'
|
39
|
+
# FileUtils.cd 'loadtest' do
|
40
|
+
# assert_raise(YamlFileWrapper::YAMLNotExist) { YamlFileWrapper.load }
|
41
|
+
# end
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
# # add
|
44
|
+
# yaml.add(Package.create('/path/to/dir1'))
|
45
|
+
# yaml.add(Package.create('/path/to/dir2'))
|
46
|
+
# yaml.add(Package.create('/path/to/dir3'))
|
47
|
+
# assert_equal ['dir1', 'dir2', 'dir3'], yaml.contents.map{|v| v.name }
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
# # remove
|
50
|
+
# yaml.remove(Package.create('/path/to/dir2'))
|
51
|
+
# assert_equal ['dir1', 'dir3'], yaml.contents.map{|v| v.name }
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
# # update
|
54
|
+
# yaml.update(Package.create('/path/to/dir1', ["*.bak"]))
|
55
|
+
# assert_equal ['*.bak'], yaml.contents[0].ignore
|
56
56
|
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
# # find_name
|
58
|
+
# assert yaml.find_name('dir1')
|
59
|
+
# assert_nil yaml.find_name('dir2')
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
61
|
+
# # find_dir
|
62
|
+
# assert yaml.find_dir('/path/to/dir1')
|
63
|
+
# assert_nil yaml.find_dir('/path/to/dir2')
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
---
|
69
|
-
version: '0.2'
|
70
|
-
contents:
|
71
|
-
- directory: /path/to/dir1
|
72
|
-
|
73
|
-
|
74
|
-
- directory: /path/to/dir3
|
75
|
-
EOF
|
76
|
-
|
77
|
-
|
78
|
-
|
65
|
+
# # save
|
66
|
+
# yaml.save
|
67
|
+
# expected_object = YAML.load <<EOF
|
68
|
+
# ---
|
69
|
+
# version: '0.2'
|
70
|
+
# contents:
|
71
|
+
# - directory: /path/to/dir1
|
72
|
+
# ignore:
|
73
|
+
# - ! '*.bak'
|
74
|
+
# - directory: /path/to/dir3
|
75
|
+
# EOF
|
76
|
+
# actual_object = open('milkode.yaml'){|f| YAML.load f}
|
77
|
+
# assert_equal expected_object, actual_object
|
78
|
+
# end
|
79
79
|
|
80
80
|
def test_save_otherpath
|
81
81
|
FileUtils.mkdir 'otherpath'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: milkode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ongaeshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -179,7 +179,7 @@ dependencies:
|
|
179
179
|
version: 1.2.10
|
180
180
|
- - <
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: 2.0.0
|
182
|
+
version: 2.0.0.pre
|
183
183
|
type: :runtime
|
184
184
|
prerelease: false
|
185
185
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -189,7 +189,7 @@ dependencies:
|
|
189
189
|
version: 1.2.10
|
190
190
|
- - <
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version: 2.0.0
|
192
|
+
version: 2.0.0.pre
|
193
193
|
- !ruby/object:Gem::Dependency
|
194
194
|
name: archive-zip
|
195
195
|
requirement: !ruby/object:Gem::Requirement
|
@@ -486,7 +486,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
486
486
|
version: '0'
|
487
487
|
requirements: []
|
488
488
|
rubyforge_project:
|
489
|
-
rubygems_version: 2.0
|
489
|
+
rubygems_version: 2.3.0
|
490
490
|
signing_key:
|
491
491
|
specification_version: 4
|
492
492
|
summary: Milkode is line based local source code search engine.
|