volna 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.md +8 -0
  2. data/VERSION +1 -1
  3. data/bin/volna +16 -4
  4. data/volna.gemspec +53 -0
  5. metadata +3 -2
data/README.md CHANGED
@@ -10,3 +10,11 @@ Volna is a simple webserver for when you want to develop straight HTML, CSS and
10
10
 
11
11
  Go to your browser on http://localhost:1995 and have fun.
12
12
 
13
+ ## Options
14
+
15
+ You can also run volna specifying a path:
16
+
17
+ $ volna ~/this-is-amazing
18
+
19
+ Have fun!
20
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
data/bin/volna CHANGED
@@ -3,14 +3,26 @@
3
3
  $: << File.join(File.dirname(__FILE__), "..", "lib")
4
4
 
5
5
  require "volna"
6
+ require "getoptlong"
6
7
 
7
- if ARGV.empty? || ARGV.size > 1
8
- puts "Usage: "
9
- puts "#$0 path_to_document_root"
8
+ def show_help
9
+ puts "volna [-h] [DOCUMENT ROOT]"
10
10
  exit
11
11
  end
12
12
 
13
- server = Volna.new(File.expand_path(ARGV.shift))
13
+ opts = GetoptLong.new(["--help", "-h", GetoptLong::NO_ARGUMENT])
14
+
15
+ opts.each do |opt, arg|
16
+ show_help if opt == "--help"
17
+ end
18
+
19
+ root = if ARGV.empty?
20
+ Dir.pwd
21
+ else
22
+ ARGV.shift
23
+ end
24
+
25
+ server = Volna.new(File.expand_path(root))
14
26
 
15
27
  trap("INT") { server.stop }
16
28
 
data/volna.gemspec ADDED
@@ -0,0 +1,53 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{volna}
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Vitor Peres"]
12
+ s.date = %q{2011-05-22}
13
+ s.default_executable = %q{volna}
14
+ s.description = %q{I know you're always always in the middle of doing something with HTML, js and CSS, but want to use real server-side paths. I know how it bothers you to set up Apache, nginx, IIS, SOMETHING, just to see your pages and apps blossom. volna lets you run a server for a given path on a fixed port, no sweat. You're left with the clackety sound, now.}
15
+ s.email = %q{dodecaphonic@gmail.com}
16
+ s.executables = ["volna"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ "Gemfile",
24
+ "LICENSE.txt",
25
+ "README.md",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "bin/volna",
29
+ "lib/volna.rb",
30
+ "volna.gemspec"
31
+ ]
32
+ s.homepage = %q{http://github.com/dodecaphonic/volna}
33
+ s.licenses = ["MIT"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.5.1}
36
+ s.summary = %q{volna launches a stupid-simple webserver on a path}
37
+
38
+ if s.respond_to? :specification_version then
39
+ s.specification_version = 3
40
+
41
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
43
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
44
+ else
45
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
46
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
47
+ end
48
+ else
49
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
50
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
51
+ end
52
+ end
53
+
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: volna
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Vitor Peres
@@ -53,6 +53,7 @@ files:
53
53
  - VERSION
54
54
  - bin/volna
55
55
  - lib/volna.rb
56
+ - volna.gemspec
56
57
  has_rdoc: true
57
58
  homepage: http://github.com/dodecaphonic/volna
58
59
  licenses:
@@ -67,7 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
68
  requirements:
68
69
  - - ">="
69
70
  - !ruby/object:Gem::Version
70
- hash: -552284451
71
+ hash: 271124717
71
72
  segments:
72
73
  - 0
73
74
  version: "0"