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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1caa99b674c764b9cb78ecdfc5688a43fb8f86c5
4
- data.tar.gz: ec040b50c181f412068d76de6bfa1620fee18d62
3
+ metadata.gz: b894e172b3556c608d1bfca5e24bc9205c69235b
4
+ data.tar.gz: 9ef5cf96f1c41c03ed2d247e7b0b0716aba7506b
5
5
  SHA512:
6
- metadata.gz: 5d968bba17caf2f486dcd0a1e02f90eb8a4bd95f765cd87701130410a577461f88c8f28bfe15ed63ce1d9f28fe15190bceee275ef2377cb8f04ef52917452b3a
7
- data.tar.gz: 8adfee92b44ef759fd07357f46c747bd7a8d82f928df341d80882a6f0128656ffbabc943ae39a1807ec2b4fc24726422825c612307c156faa898228e70ba04cd
6
+ metadata.gz: aaa8ff06ad582e5864aa35af2451a537d51e2ac5bdca309908088f28c1187630da10f62c2e1d0fee973d685df12dbe531d71b9a595c607180cba753286ac3e3f
7
+ data.tar.gz: ba4780d0f2c515ed2b11794d0b6d0d36ac5356e0ac933df3413ded154e4f66fc6a949d2a83dcf14964db3dea2322671ef42c77034ad5cbdb3b8201d1c9b069a3
@@ -1,3 +1,12 @@
1
+ === 1.8.1 2014/09/27
2
+
3
+ * milk web
4
+ * Use thin < 2.0.0.pre
5
+ * Set a viewport attribute
6
+
7
+ * gomilk
8
+ * Add escape to query from gomilk
9
+
1
10
  === 1.8.0 2014/06/26
2
11
 
3
12
  * milk web
@@ -1,3 +1,12 @@
1
+ === 1.8.1 2014/09/27
2
+
3
+ * milk web
4
+ * Use thin < 2.0.0.pre
5
+ * Set a viewport attribute
6
+
7
+ * gomilk
8
+ * Add escape to query from gomilk
9
+
1
10
  === 1.8.0 2014/06/26
2
11
 
3
12
  * milk web
@@ -138,7 +138,7 @@ module Milkode
138
138
  documents = Database.instance.documents
139
139
  grn = documents.table
140
140
 
141
- query = params[:query]
141
+ query = %Q|"#{params[:query]}"|
142
142
 
143
143
  unless params[:all]
144
144
  begin
@@ -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")
@@ -1,3 +1,3 @@
1
1
  module Milkode
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
@@ -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
- 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 }
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
- # # load
33
- yaml = YamlFileWrapper.load
34
- assert_equal yaml.contents, []
35
- assert_equal yaml.version, '0.2'
32
+ # # # load
33
+ # yaml = YamlFileWrapper.load
34
+ # assert_equal yaml.contents, []
35
+ # assert_equal yaml.version, '0.2'
36
36
 
37
- # load fail
38
- FileUtils.mkdir 'loadtest'
39
- FileUtils.cd 'loadtest' do
40
- assert_raise(YamlFileWrapper::YAMLNotExist) { YamlFileWrapper.load }
41
- end
37
+ # # load fail
38
+ # FileUtils.mkdir 'loadtest'
39
+ # FileUtils.cd 'loadtest' do
40
+ # assert_raise(YamlFileWrapper::YAMLNotExist) { YamlFileWrapper.load }
41
+ # end
42
42
 
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 }
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
- # remove
50
- yaml.remove(Package.create('/path/to/dir2'))
51
- assert_equal ['dir1', 'dir3'], yaml.contents.map{|v| v.name }
49
+ # # remove
50
+ # yaml.remove(Package.create('/path/to/dir2'))
51
+ # assert_equal ['dir1', 'dir3'], yaml.contents.map{|v| v.name }
52
52
 
53
- # update
54
- yaml.update(Package.create('/path/to/dir1', ["*.bak"]))
55
- assert_equal ['*.bak'], yaml.contents[0].ignore
53
+ # # update
54
+ # yaml.update(Package.create('/path/to/dir1', ["*.bak"]))
55
+ # assert_equal ['*.bak'], yaml.contents[0].ignore
56
56
 
57
- # find_name
58
- assert yaml.find_name('dir1')
59
- assert_nil yaml.find_name('dir2')
57
+ # # find_name
58
+ # assert yaml.find_name('dir1')
59
+ # assert_nil yaml.find_name('dir2')
60
60
 
61
- # find_dir
62
- assert yaml.find_dir('/path/to/dir1')
63
- assert_nil yaml.find_dir('/path/to/dir2')
61
+ # # find_dir
62
+ # assert yaml.find_dir('/path/to/dir1')
63
+ # assert_nil yaml.find_dir('/path/to/dir2')
64
64
 
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
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.0
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-06-25 00:00:00.000000000 Z
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.3
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.