heel 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,102 +1,161 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: heel
3
- version: !ruby/object:Gem::Version
4
- version: 2.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.0
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Jeremy Hinegardner
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
-
12
- date: 2009-06-24 00:00:00 -06:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: thin
12
+ date: 2013-02-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: puma
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
17
22
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
21
27
  - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 1.2.0
24
- version:
25
- - !ruby/object:Gem::Dependency
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - !ruby/object:Gem::Dependency
26
31
  name: mime-types
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '1.19'
27
38
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
31
43
  - - ~>
32
- - !ruby/object:Gem::Version
33
- version: "1.16"
34
- version:
35
- - !ruby/object:Gem::Dependency
44
+ - !ruby/object:Gem::Version
45
+ version: '1.19'
46
+ - !ruby/object:Gem::Dependency
36
47
  name: launchy
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '2.2'
37
54
  type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
41
59
  - - ~>
42
- - !ruby/object:Gem::Version
43
- version: 0.3.2
44
- version:
45
- - !ruby/object:Gem::Dependency
60
+ - !ruby/object:Gem::Version
61
+ version: '2.2'
62
+ - !ruby/object:Gem::Dependency
46
63
  name: coderay
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.0.7
47
70
  type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.0.7
78
+ - !ruby/object:Gem::Dependency
79
+ name: rake
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 10.0.3
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 10.0.3
94
+ - !ruby/object:Gem::Dependency
95
+ name: minitest
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
51
99
  - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 0.8.260
54
- version:
55
- description: Heel is a small static web server for use when you need a quick web server for a directory. Once the server is running, heel will use {launchy}[http://copiousfreetime.rubyforge.org/launchy/] to open your browser at the URL of your document root. Heel is built using {Rack}[http://rack.rubyforge.org] and {Thin}[http://code.macournoyer.com/thin/] % heel >> Thin web server (v1.0.0 codename That's What She Said) >> Threaded mode OFF >> Maximum connections set to 1024 >> Listening on 0.0.0.0:4331, CTRL+C to stop Launching your browser... Or run it in the background % heel --daemonize Created /Users/jeremy/.heel heel's PID (/Users/jeremy/.heel/heel.pid) and log file (/Users/jeremy/.heel/heel.log) are stored here Launching your browser at http://0.0.0.0:4331/ % heel --kill Sending TERM to process 3304 Done.
56
- email: jeremy at hinegardner dot org
57
- executables:
100
+ - !ruby/object:Gem::Version
101
+ version: 4.5.0
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 4.5.0
110
+ - !ruby/object:Gem::Dependency
111
+ name: rdoc
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '3.12'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '3.12'
126
+ description: Heel is a small static web server for use when you need a quick web server
127
+ for a directory. Once the server is running, heel will use launchy to open your
128
+ browser at the URL of your document root. Heel is built using Rack and Thin %
129
+ heel >> Thin web server (v1.2.8 codename Black Keys) >> Maximum connections
130
+ set to 1024 >> Listening on 0.0.0.0:4331, CTRL+C to stop Launching your browser...
131
+ Or run it in the background % heel --daemonize Created /Users/jeremy/.heel heel's
132
+ PID (/Users/jeremy/.heel/heel.pid) and log file (/Users/jeremy/.heel/heel.log) are
133
+ stored here Launching your browser at http://0.0.0.0:4331/ % heel --kill Sending
134
+ TERM to process 3304 Done.
135
+ email: jeremy@copiousfreetime.org
136
+ executables:
58
137
  - heel
59
138
  extensions: []
60
-
61
- extra_rdoc_files:
62
- - README
63
- - HISTORY
139
+ extra_rdoc_files:
140
+ - HISTORY.rdoc
141
+ - Manifest.txt
142
+ - README.rdoc
143
+ - data/famfamfam/readme.txt
144
+ files:
145
+ - CONTRIBUTING.md
146
+ - HISTORY.rdoc
64
147
  - LICENSE
65
- - lib/heel/configuration.rb
66
- - lib/heel/directory_indexer.rb
67
- - lib/heel/error_response.rb
68
- - lib/heel/logger.rb
69
- - lib/heel/mime_map.rb
70
- - lib/heel/rackapp.rb
71
- - lib/heel/request.rb
72
- - lib/heel/server.rb
73
- - lib/heel/version.rb
74
- - lib/heel.rb
75
- files:
148
+ - Manifest.txt
149
+ - README.rdoc
150
+ - Rakefile
151
+ - TODO
76
152
  - bin/heel
77
- - lib/heel/configuration.rb
78
- - lib/heel/directory_indexer.rb
79
- - lib/heel/error_response.rb
80
- - lib/heel/logger.rb
81
- - lib/heel/mime_map.rb
82
- - lib/heel/rackapp.rb
83
- - lib/heel/request.rb
84
- - lib/heel/server.rb
85
- - lib/heel/version.rb
86
- - lib/heel.rb
87
- - spec/configuration_spec.rb
88
- - spec/directory_indexer_spec.rb
89
- - spec/rackapp_spec.rb
90
- - spec/server_spec.rb
91
- - spec/spec_helper.rb
92
- - data/css
153
+ - data/css/coderay-alpha.css
93
154
  - data/css/coderay-cycnus.css
94
155
  - data/css/coderay-murphy.css
95
156
  - data/css/error.css
96
157
  - data/css/listing.css
97
158
  - data/error.rhtml
98
- - data/famfamfam
99
- - data/famfamfam/icons
100
159
  - data/famfamfam/icons/application.png
101
160
  - data/famfamfam/icons/compress.png
102
161
  - data/famfamfam/icons/error.png
@@ -113,45 +172,54 @@ files:
113
172
  - data/famfamfam/readme.html
114
173
  - data/famfamfam/readme.txt
115
174
  - data/listing.rhtml
116
- - README
117
- - HISTORY
118
- - LICENSE
119
- - tasks/announce.rake
120
- - tasks/distribution.rake
121
- - tasks/documentation.rake
122
- - tasks/config.rb
123
- - tasks/rspec.rb
124
- - tasks/rubyforge.rb
125
- - tasks/utils.rb
126
- - gemspec.rb
127
- has_rdoc: true
128
- homepage: http://copiousfreetime.rubyforge.org/heel/
175
+ - lib/heel.rb
176
+ - lib/heel/configuration.rb
177
+ - lib/heel/directory_indexer.rb
178
+ - lib/heel/error_response.rb
179
+ - lib/heel/mime_map.rb
180
+ - lib/heel/rackapp.rb
181
+ - lib/heel/request.rb
182
+ - lib/heel/server.rb
183
+ - spec/configuration_spec.rb
184
+ - spec/directory_indexer_spec.rb
185
+ - spec/rackapp_spec.rb
186
+ - spec/server_spec.rb
187
+ - spec/spec_helper.rb
188
+ - tasks/default.rake
189
+ - tasks/this.rb
190
+ homepage: http://github.com/copiousfreetime/heel
191
+ licenses: []
129
192
  post_install_message:
130
- rdoc_options:
131
- - --line-numbers
132
- - --inline-source
193
+ rdoc_options:
133
194
  - --main
134
- - README
135
- require_paths:
195
+ - README.rdoc
196
+ - --markup
197
+ - tomdoc
198
+ require_paths:
136
199
  - lib
137
- required_ruby_version: !ruby/object:Gem::Requirement
138
- requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- version: "0"
142
- version:
143
- required_rubygems_version: !ruby/object:Gem::Requirement
144
- requirements:
145
- - - ">="
146
- - !ruby/object:Gem::Version
147
- version: "0"
148
- version:
200
+ required_ruby_version: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ required_rubygems_version: !ruby/object:Gem::Requirement
207
+ none: false
208
+ requirements:
209
+ - - ! '>='
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
149
212
  requirements: []
150
-
151
- rubyforge_project: copiousfreetime
152
- rubygems_version: 1.3.1
213
+ rubyforge_project:
214
+ rubygems_version: 1.8.24
153
215
  signing_key:
154
- specification_version: 2
155
- summary: Heel is a small static web server for use when you need a quick web server for a directory
156
- test_files: []
157
-
216
+ specification_version: 3
217
+ summary: Heel is a small static web server for use when you need a quick web server
218
+ for a directory. Once the server is running, heel will use {launchy}[http://copiousfreetime.rubyforge.org/launchy/]
219
+ to open your browser at the URL of your document root.
220
+ test_files:
221
+ - spec/configuration_spec.rb
222
+ - spec/directory_indexer_spec.rb
223
+ - spec/rackapp_spec.rb
224
+ - spec/server_spec.rb
225
+ - spec/spec_helper.rb
data/gemspec.rb DELETED
@@ -1,42 +0,0 @@
1
- require 'rubygems'
2
- require 'heel/version'
3
- require 'tasks/config'
4
-
5
- Heel::GEM_SPEC = Gem::Specification.new do |spec|
6
- proj = Configuration.for('project')
7
- spec.name = proj.name
8
- spec.version = Heel::VERSION
9
-
10
- spec.author = proj.author
11
- spec.email = proj.email
12
- spec.homepage = proj.homepage
13
- spec.summary = proj.summary
14
- spec.description = proj.description
15
- spec.platform = Gem::Platform::RUBY
16
-
17
-
18
- pkg = Configuration.for('packaging')
19
- spec.files = pkg.files.all
20
- spec.executables = pkg.files.bin.collect { |b| File.basename(b) }
21
- spec.add_dependency("thin", "~> 1.2.0")
22
- spec.add_dependency("mime-types", "~> 1.16")
23
- spec.add_dependency("launchy", "~> 0.3.2")
24
- spec.add_dependency("coderay", "~> 0.8.260")
25
-
26
- if rdoc = Configuration.for_if_exist?('rdoc') then
27
- spec.has_rdoc = true
28
- spec.extra_rdoc_files = pkg.files.rdoc
29
- spec.rdoc_options = rdoc.options + [ "--main" , rdoc.main ]
30
- else
31
- spec.has_rdoc = false
32
- end
33
-
34
- if test = Configuration.for_if_exist?('testing') then
35
- spec.test_files = test.files
36
- end
37
-
38
- if rf = Configuration.for_if_exist?('rubyforge') then
39
- spec.rubyforge_project = rf.project
40
- end
41
-
42
- end
data/lib/heel/logger.rb DELETED
@@ -1,42 +0,0 @@
1
- #--
2
- # Copyright (c) 2007, 2008 Jeremy Hinegardner
3
- # All rights reserved. Licensed under the BSD license. See LICENSE for details
4
- #++
5
-
6
- require 'heel'
7
- require 'rack'
8
-
9
- module Heel
10
-
11
- # wrapper around the rack common logger to open up the file and flush the logs
12
- # this is invoked with a 'use' command in the Builder so a new instance of
13
- # 'Logger' in created with each request, so we do all the heavy lifting in the
14
- # meta class.
15
- #
16
- class Logger < ::Rack::CommonLogger
17
- class << self
18
- def log
19
- # the log can get closed if daemonized, the at_exit will close it.
20
- if @log.closed? then
21
- @log = File.open(@log_file, "a")
22
- end
23
- @log
24
- end
25
-
26
- def log_file=(lf)
27
- @log_file = lf
28
- @log = File.open(@log_file, "a")
29
- at_exit { @log.close unless @log.closed? }
30
- end
31
- end
32
-
33
- def initialize(app)
34
- super(app)
35
- end
36
-
37
- def <<(str)
38
- Heel::Logger.log.write( str )
39
- Heel::Logger.log.flush
40
- end
41
- end
42
- end
data/lib/heel/version.rb DELETED
@@ -1,26 +0,0 @@
1
- #--
2
- # Copyright (c) 2007, 2008 Jeremy Hinegardner
3
- # All rights reserved. Licensed under the BSD license. See LICENSE for details
4
- #++
5
-
6
- module Heel
7
- module Version
8
- MAJOR = 2
9
- MINOR = 0
10
- BUILD = 0
11
-
12
- def to_a
13
- [MAJOR, MINOR, BUILD]
14
- end
15
-
16
- def to_s
17
- to_a.join(".")
18
- end
19
- module_function :to_a
20
- module_function :to_s
21
-
22
- STRING = Version.to_s
23
- end
24
- VERSION = Version.to_s
25
- end
26
-
data/tasks/announce.rake DELETED
@@ -1,42 +0,0 @@
1
- #--
2
- # Copyright (c) 2007, 2008 Jeremy Hinegardner
3
- # All rights reserved. Licensed under the BSD license. See LICENSE for details
4
- #++
5
-
6
- require 'tasks/config'
7
- #-------------------------------------------------------------------------------
8
- # announcement methods
9
- #-------------------------------------------------------------------------------
10
-
11
- proj_config = Configuration.for('project')
12
- namespace :announce do
13
- desc "create email for ruby-talk"
14
- task :email do
15
- info = Utils.announcement
16
-
17
- File.open("email.txt", "w") do |mail|
18
- mail.puts "From: #{proj_config.author} <#{proj_config.email}>"
19
- mail.puts "To: ruby-talk@ruby-lang.org"
20
- mail.puts "Date: #{Time.now.rfc2822}"
21
- mail.puts "Subject: [ANN] #{info[:subject]}"
22
- mail.puts
23
- mail.puts info[:title]
24
- mail.puts
25
- mail.puts info[:urls]
26
- mail.puts
27
- mail.puts info[:description]
28
- mail.puts
29
- mail.puts "{{ Release notes for Version #{Heel::VERSION} }}"
30
- mail.puts
31
- mail.puts info[:release_notes]
32
- mail.puts
33
- mail.puts info[:urls]
34
- end
35
- puts "Created the following as email.txt:"
36
- puts "-" * 72
37
- puts File.read("email.txt")
38
- puts "-" * 72
39
- end
40
-
41
- CLOBBER << "email.txt"
42
- end