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 CHANGED
@@ -1,4 +1,9 @@
1
1
  = Changelog
2
+ == Version 2.0.0 - 2009-06-24
3
+
4
+ * Change highlighting mode default to 'off' instead of 'on'
5
+ * Update for Thin 1.2.2
6
+
2
7
  == Version 1.0.3 - 2009-03-02
3
8
 
4
9
  * Update for MIME::Types 1.16
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2007, 2008, Jeremy Hinegardner
1
+ Copyright (c) 2007-2009, Jeremy Hinegardner
2
2
 
3
3
  All rights reserved.
4
4
 
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: on)
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, 2008, Jeremy Hinegardner
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.0.0")
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 = true
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: on)") do |highlighting|
107
+ " (default: off)") do |highlighting|
108
108
  @parsed_options.highlighting = highlighting
109
109
  end
110
110
 
data/lib/heel/version.rb CHANGED
@@ -5,9 +5,9 @@
5
5
 
6
6
  module Heel
7
7
  module Version
8
- MAJOR = 1
8
+ MAJOR = 2
9
9
  MINOR = 0
10
- BUILD = 3
10
+ BUILD = 0
11
11
 
12
12
  def to_a
13
13
  [MAJOR, MINOR, BUILD]
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 unset" do
67
- server = Heel::Server.new(%w[--no-highlighting])
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
@@ -13,6 +13,7 @@ if rdoc_config = Configuration.for_if_exist?('rdoc') then
13
13
 
14
14
  namespace :doc do
15
15
 
16
+ require 'rdoc'
16
17
  require 'rake/rdoctask'
17
18
 
18
19
  # generating documentation locally
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: 1.0.3
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-03-02 00:00:00 -07:00
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.0.0
23
+ version: 1.2.0
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mime-types