heel 1.0.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +5 -0
- data/LICENSE +1 -1
- data/README +2 -2
- data/gemspec.rb +1 -1
- data/lib/heel/server.rb +2 -2
- data/lib/heel/version.rb +2 -2
- data/spec/server_spec.rb +8 -2
- data/tasks/documentation.rake +1 -0
- metadata +3 -3
data/HISTORY
CHANGED
data/LICENSE
CHANGED
data/README
CHANGED
@@ -50,7 +50,7 @@ Or run it in the background
|
|
50
50
|
-h, --help Display this text
|
51
51
|
-k, --kill Kill an existing daemonized heel process
|
52
52
|
--[no-]highlighting Turn on or off syntax highlighting
|
53
|
-
(default:
|
53
|
+
(default: off)
|
54
54
|
--[no-]launch-browser Turn on or off automatic browser launch
|
55
55
|
(default: on)
|
56
56
|
-p, --port PORT Port to bind to
|
@@ -87,7 +87,7 @@ Or run it in the background
|
|
87
87
|
|
88
88
|
== BSD LICENSE:
|
89
89
|
|
90
|
-
Copyright (c) 2007,
|
90
|
+
Copyright (c) 2007-2009, Jeremy Hinegardner
|
91
91
|
|
92
92
|
All rights reserved.
|
93
93
|
|
data/gemspec.rb
CHANGED
@@ -18,7 +18,7 @@ Heel::GEM_SPEC = Gem::Specification.new do |spec|
|
|
18
18
|
pkg = Configuration.for('packaging')
|
19
19
|
spec.files = pkg.files.all
|
20
20
|
spec.executables = pkg.files.bin.collect { |b| File.basename(b) }
|
21
|
-
spec.add_dependency("thin", "~> 1.
|
21
|
+
spec.add_dependency("thin", "~> 1.2.0")
|
22
22
|
spec.add_dependency("mime-types", "~> 1.16")
|
23
23
|
spec.add_dependency("launchy", "~> 0.3.2")
|
24
24
|
spec.add_dependency("coderay", "~> 0.8.260")
|
data/lib/heel/server.rb
CHANGED
@@ -62,7 +62,7 @@ module Heel
|
|
62
62
|
@default_options.port = 4331
|
63
63
|
@default_options.document_root = Dir.pwd
|
64
64
|
@default_options.daemonize = false
|
65
|
-
@default_options.highlighting =
|
65
|
+
@default_options.highlighting = false
|
66
66
|
@default_options.kill = false
|
67
67
|
@default_options.launch_browser = true
|
68
68
|
end
|
@@ -104,7 +104,7 @@ module Heel
|
|
104
104
|
end
|
105
105
|
|
106
106
|
op.on("--[no-]highlighting", "Turn on or off syntax highlighting",
|
107
|
-
" (default:
|
107
|
+
" (default: off)") do |highlighting|
|
108
108
|
@parsed_options.highlighting = highlighting
|
109
109
|
end
|
110
110
|
|
data/lib/heel/version.rb
CHANGED
data/spec/server_spec.rb
CHANGED
@@ -63,8 +63,14 @@ describe Heel::Server do
|
|
63
63
|
server.options.port.should == 4242
|
64
64
|
end
|
65
65
|
|
66
|
-
it "should allow the highlighting option to be
|
67
|
-
server = Heel::Server.new(%w[--
|
66
|
+
it "should allow the highlighting option to be set" do
|
67
|
+
server = Heel::Server.new(%w[--highlighting])
|
68
|
+
server.merge_options
|
69
|
+
server.options.highlighting.should == true
|
70
|
+
end
|
71
|
+
|
72
|
+
it "should have highlighting off as a default" do
|
73
|
+
server = Heel::Server.new
|
68
74
|
server.merge_options
|
69
75
|
server.options.highlighting.should == false
|
70
76
|
end
|
data/tasks/documentation.rake
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hinegardner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-24 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
23
|
+
version: 1.2.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mime-types
|