Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'develop'

  • Loading branch information...
commit 078455eb6ab459b78d528a72925a70f938e07b7c 2 parents af56460 + 479e518
@ongaeshi authored
View
5 HISTORY.rdoc
@@ -1,3 +1,8 @@
+=== 0.1.2 2011/07/26
+
+* milk web --host, default value "127.0.0.1" (for Windows).
+* to update all packages at 'milk update' (no arg).
+
=== 0.1.1 2011/07/25
* Add comment.
View
2  VERSION
@@ -1 +1 @@
-0.1.1
+0.1.2
View
2  bin/milk
@@ -6,5 +6,5 @@
require 'rubygems'
require 'milkode/cdstk/cli_cdstk'
-Version = "0.1.1"
+Version = "0.1.2"
Milkode::CLI_Cdstk.execute(STDOUT, ARGV)
View
4 lib/milkode/cdstk/cdstk.rb
@@ -53,8 +53,8 @@ def init
def update(args = nil)
print_result do
yaml = yaml_load
- query = args ? CdstkYaml::Query.new(args) : nil
- update_list = yaml_load.list(query)
+
+ update_list = (!args || args.empty?) ? yaml_load.list : yaml_load.list(CdstkYaml::Query.new(args))
db_open(db_file)
View
4 lib/milkode/cdstk/cli_cdstksub.rb
@@ -74,7 +74,7 @@ def self.setup_web
:environment => ENV['RACK_ENV'] || "development",
:pid => nil,
:Port => 9292,
- :Host => "0.0.0.0",
+ :Host => "127.0.0.1",
:AccessLog => [],
:config => "config.ru",
# ----------------------------
@@ -85,7 +85,7 @@ def self.setup_web
opts = OptionParser.new("#{File.basename($0)} web")
opts.on('--db DB_DIR', 'Database dir (default : current_dir)') {|v| options[:DbDir] = v }
- opts.on("-o", "--host HOST", "listen on HOST (default: 0.0.0.0)") {|host| options[:Host] = host }
+ opts.on("-o", "--host HOST", "listen on HOST (default: 127.0.0.1)") {|host| options[:Host] = host }
opts.on('-p', '--port PORT', 'use PORT (default: 9292)') {|v| options[:Port] = v }
opts.on("-s", "--server SERVER", "serve using SERVER (default : thin)") {|s| options[:server] = s }
opts.on('-n', '--no-browser', 'No launch browser.') {|v| options[:LaunchBrowser] = false }
View
2  lib/milkode/cdweb/app.rb
@@ -18,7 +18,7 @@
set :haml, :format => :html5
get '/' do
- @version = "0.1.1"
+ @version = "0.1.2"
@package_num = Database.instance.fileList('').size
@file_num = Database.instance.fileNum
haml :index
Please sign in to comment.
Something went wrong with that request. Please try again.