milkode 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,8 @@
1
+ === 0.1.2 2011/07/26
2
+
3
+ * milk web --host, default value "127.0.0.1" (for Windows).
4
+ * to update all packages at 'milk update' (no arg).
5
+
1
6
  === 0.1.1 2011/07/25
2
7
 
3
8
  * Add comment.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.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.1.1"
9
+ Version = "0.1.2"
10
10
  Milkode::CLI_Cdstk.execute(STDOUT, ARGV)
@@ -53,8 +53,8 @@ module Milkode
53
53
  def update(args = nil)
54
54
  print_result do
55
55
  yaml = yaml_load
56
- query = args ? CdstkYaml::Query.new(args) : nil
57
- update_list = yaml_load.list(query)
56
+
57
+ update_list = (!args || args.empty?) ? yaml_load.list : yaml_load.list(CdstkYaml::Query.new(args))
58
58
 
59
59
  db_open(db_file)
60
60
 
@@ -74,7 +74,7 @@ EOF
74
74
  :environment => ENV['RACK_ENV'] || "development",
75
75
  :pid => nil,
76
76
  :Port => 9292,
77
- :Host => "0.0.0.0",
77
+ :Host => "127.0.0.1",
78
78
  :AccessLog => [],
79
79
  :config => "config.ru",
80
80
  # ----------------------------
@@ -85,7 +85,7 @@ EOF
85
85
 
86
86
  opts = OptionParser.new("#{File.basename($0)} web")
87
87
  opts.on('--db DB_DIR', 'Database dir (default : current_dir)') {|v| options[:DbDir] = v }
88
- opts.on("-o", "--host HOST", "listen on HOST (default: 0.0.0.0)") {|host| options[:Host] = host }
88
+ opts.on("-o", "--host HOST", "listen on HOST (default: 127.0.0.1)") {|host| options[:Host] = host }
89
89
  opts.on('-p', '--port PORT', 'use PORT (default: 9292)') {|v| options[:Port] = v }
90
90
  opts.on("-s", "--server SERVER", "serve using SERVER (default : thin)") {|s| options[:server] = s }
91
91
  opts.on('-n', '--no-browser', 'No launch browser.') {|v| options[:LaunchBrowser] = false }
@@ -18,7 +18,7 @@ require 'milkode/cdweb/lib/mkurl'
18
18
  set :haml, :format => :html5
19
19
 
20
20
  get '/' do
21
- @version = "0.1.1"
21
+ @version = "0.1.2"
22
22
  @package_num = Database.instance.fileList('').size
23
23
  @file_num = Database.instance.fileNum
24
24
  haml :index
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{milkode}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.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-07-25}
12
+ s.date = %q{2011-07-27}
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"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.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-07-25 00:00:00 +09:00
17
+ date: 2011-07-27 00:00:00 +09:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency