milkode 1.8.8 → 1.8.9

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: c1d78423007d61a792b55000783bfacfc1302cb8
4
- data.tar.gz: de7e900b6eaaa5df808c30bbf344e2f84aae788c
3
+ metadata.gz: 564ac12fd74916fa25c4726f478d659b737516e2
4
+ data.tar.gz: cd51b0a60400fa5d01fb21aabe0171f477ca6c54
5
5
  SHA512:
6
- metadata.gz: 9ee3d4f7f82a438af3f77fbac6914e27212d68408a1f83ab18928bc8ae2373fe0da526d1d3aa4b133d40b368c408f4e4c146cf95c36095a97f1f09e00b928a5d
7
- data.tar.gz: 56eb51f07d0ec81af3d3d10d448e479124d933e08abc3fd1a5ccdf8ab695bbdc8949548288458ef6bf0274adec5104266767962bf4809aeefa18825d59eaba5d
6
+ metadata.gz: 7f398c73a477f42a5cd4e378f0151356fdfb0df7e311147a5df6dbca85fffc0ba18f9950957e2ad3d8a9aec9d4b10db119ab2f57da3b281dbfc73eb1440f568a
7
+ data.tar.gz: e57e4c22154182b32dd82a510670e111c9a3fd76d01e429ab242e584c8a1a4fd5870fafd1dfc3ad3e4e239b2b26200dec742c2fe955453108353985c70cd2b60
@@ -8,8 +8,11 @@ notifications:
8
8
 
9
9
  rvm:
10
10
  # - 1.8.7
11
- - 1.9.3
12
- - 2.0.0
11
+ # - 1.9.3
12
+ # - 2.0.0
13
+ - 2.1.9
14
+ - 2.2.5
15
+ - 2.3.1
13
16
 
14
17
  sudo: required
15
18
  before_install:
@@ -1,3 +1,13 @@
1
+ === 1.8.9 2016/07/17
2
+
3
+ * milk web
4
+ * ショートカットキーの s が押されると、ページトップにスクロール
5
+ * 検索ボックスにフォーカスが移ると、検索ボックスのキーワードをすべて選択状態にする
6
+ * 相対URLモードで起動していると、ショートカットキー S による新タブ検索が行えない問題を修正
7
+
8
+ * etc
9
+ * Travis CI でテストが通らない問題を修正
10
+
1
11
  === 1.8.8 2016/04/18
2
12
 
3
13
  * milk web
@@ -1,3 +1,13 @@
1
+ === 1.8.9 2016/07/17
2
+
3
+ * milk web
4
+ * Scroll to top when short-cut-key s pressed
5
+ * Select query strings on search box when focused
6
+ * Fix error when new search during relative url mode
7
+
8
+ * etc
9
+ * Fix Travis CI Error
10
+
1
11
  === 1.8.8 2016/04/18
2
12
 
3
13
  * milk web
data/Rakefile CHANGED
@@ -3,6 +3,7 @@ require "rake/testtask"
3
3
 
4
4
  Rake::TestTask.new(:test) do |t|
5
5
  t.libs << "test"
6
+ t.warning = false
6
7
  end
7
8
 
8
9
  task :default => :test
@@ -28,6 +28,7 @@
28
28
  %input#query(name="query" type="text" style="width: 419px;")
29
29
  %input(type="submit" value="#{t(:search)}")
30
30
  %input(name='pathname' type='hidden' value='#{url_for '/home'}')
31
+ %input(name='relative_url' type='hidden' value='#{ENV['MILKODE_RELATIVE_URL']}')
31
32
  &nbsp;&nbsp;<a href="#{url_for '/help'}">#{t(:help)}</a>
32
33
 
33
34
  .row
@@ -17,6 +17,13 @@ function divideURL(url) {
17
17
 
18
18
  var path = found[4];
19
19
 
20
+ // when using relative url mode
21
+ var relative_url = $(":hidden[name='relative_url']").val();
22
+ if (relative_url !== undefined) {
23
+ head += relative_url;
24
+ path = path.replace(new RegExp("^" + relative_url), "");
25
+ }
26
+
20
27
  return [head, path];
21
28
  }
22
29
 
@@ -205,6 +212,10 @@ $(document).ready(function() {
205
212
  // $(this).select();
206
213
  // });
207
214
 
215
+ $('#query').focus(function(){
216
+ $(this).select();
217
+ });
218
+
208
219
  $('#shead').change(function(){
209
220
  $('#search').click();
210
221
  });
@@ -240,6 +251,7 @@ $(document).ready(function() {
240
251
  if (!isFocused && k == 115) {
241
252
  $("#query").focus();
242
253
  e.preventDefault();
254
+ $("html,body").animate({ scrollTop: 0 }, "fast");
243
255
  }
244
256
 
245
257
  // S .. Search using a selected text (New tab)
@@ -19,3 +19,4 @@
19
19
  = create_favorite_list(@package_list)
20
20
 
21
21
  %input(name="pathname" type="hidden" value="")
22
+ %input(name="relative_url" type="hidden" value="#{ENV['MILKODE_RELATIVE_URL']}")
@@ -1,3 +1,3 @@
1
1
  module Milkode
2
- VERSION = "1.8.8"
2
+ VERSION = "1.8.9"
3
3
  end
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.8
4
+ version: 1.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ongaeshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -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.4.5
489
+ rubygems_version: 2.5.1
490
490
  signing_key:
491
491
  specification_version: 4
492
492
  summary: Milkode is line based local source code search engine.