shere 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGES
2
2
 
3
+ ## shere 0.9.1 -- 2011-12-28
4
+
5
+ Now `-h` is the alias of `--help`, and `-o` is the alias of `--host`.
6
+ Same as [Unicorn](http://unicorn.bogomips.org/)
7
+
3
8
  ## shere 0.9.0 -- 2011-11-04
4
9
 
5
10
  Birthday!
data/README.md CHANGED
@@ -10,8 +10,8 @@ by Lin Jen-Shin ([godfat](http://godfat.org))
10
10
  ## DESCRIPTION:
11
11
 
12
12
  _Share_ the directory _here_ with [Nginx][]!
13
-
14
- [Nginx]: http://nginx.org/
13
+ Shere would create a temporary Nginx config and run an
14
+ Nginx instance to serve the directory you specified.
15
15
 
16
16
  ## REQUIREMENTS:
17
17
 
@@ -29,6 +29,8 @@ _Share_ the directory _here_ with [Nginx][]!
29
29
  shere -p 8080 ~/public
30
30
  sudo shere -u nobody
31
31
 
32
+ [Nginx]: http://nginx.org/
33
+
32
34
  ## LICENSE:
33
35
 
34
36
  Apache License 2.0
data/lib/shere/runner.rb CHANGED
@@ -5,7 +5,7 @@ module Shere::Runner
5
5
  def options
6
6
  @options ||=
7
7
  [['-p, --port PORT', 'Which port Nginx should listen on (default 4331)'],
8
- ['-h, --host HOST', 'Which host Nginx should use (default _)' ],
8
+ ['-o, --host HOST', 'Which host Nginx should use (default _)' ],
9
9
  ['-u, --user USER', 'Which user Nginx should use' \
10
10
  ' (if having root privilege)'],
11
11
  [' --help' , 'Print this message' ],
@@ -25,13 +25,13 @@ module Shere::Runner
25
25
  when /^-p=?(.+)?/, /^--port=?(.+)?/
26
26
  opts[:port] = $1 || argv.shift
27
27
 
28
- when /^-h=?(.+)?/, /^--host=?(.+)?/
28
+ when /^-o=?(.+)?/, /^--host=?(.+)?/
29
29
  opts[:host] = $1 || argv.shift
30
30
 
31
31
  when /^-u=?(.+)?/, /^--user=?(.+)?/
32
32
  opts[:user] = $1 || argv.shift
33
33
 
34
- when '--help'
34
+ when '-h', '--help'
35
35
  puts(help)
36
36
  exit
37
37
 
data/lib/shere/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Shere
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.1'
4
4
  end
data/shere.gemspec CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "shere"
5
- s.version = "0.9.0"
5
+ s.version = "0.9.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Lin Jen-Shin (godfat)"]
9
- s.date = "2011-11-04"
10
- s.description = "_Share_ the directory _here_ with [Nginx][]!\n\n[Nginx]: http://nginx.org/"
9
+ s.date = "2011-12-28"
10
+ s.description = "_Share_ the directory _here_ with [Nginx][]!\nShere would create a temporary Nginx config and run an\nNginx instance to serve the directory you specified."
11
11
  s.email = ["godfat (XD) godfat.org"]
12
12
  s.executables = ["shere"]
13
13
  s.files = [
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  "task/gemgem.rb"]
29
29
  s.homepage = "https://github.com/godfat/shere"
30
30
  s.require_paths = ["lib"]
31
- s.rubygems_version = "1.8.11"
31
+ s.rubygems_version = "1.8.13"
32
32
  s.summary = "_Share_ the directory _here_ with [Nginx][]!"
33
33
 
34
34
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,13 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-04 00:00:00.000000000 Z
12
+ date: 2011-12-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! '_Share_ the directory _here_ with [Nginx][]!
15
15
 
16
+ Shere would create a temporary Nginx config and run an
16
17
 
17
- [Nginx]: http://nginx.org/'
18
+ Nginx instance to serve the directory you specified.'
18
19
  email:
19
20
  - godfat (XD) godfat.org
20
21
  executables:
@@ -57,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
58
  version: '0'
58
59
  requirements: []
59
60
  rubyforge_project:
60
- rubygems_version: 1.8.11
61
+ rubygems_version: 1.8.13
61
62
  signing_key:
62
63
  specification_version: 3
63
64
  summary: _Share_ the directory _here_ with [Nginx][]!