rack-handlers 0.5.6 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: 97fb1f3567cdeaa4b70c22b96cfc47f859b97d53
4
- data.tar.gz: b65abcf06838ad66c1a398ed1a609379240061c8
5
- !binary "U0hBNTEy":
6
- metadata.gz: 0f867ed4d07d1b4a9fae63475b83e76680227e9204a507f6a64da8a83fc4243c0c814dbedf65316ff69d7236b518bcb67c5c02548ae8a41a28ed6479d8309bd2
7
- data.tar.gz: 3bff97ba81c9d1a88c4dde2c25a8f60df0981227051a718025fdd865a31f62ba15f892f929fcb9c1b3cebd607cf8a6b57b6f430c8c6d283a7dcb3f0492cfddbd
2
+ SHA1:
3
+ metadata.gz: ae6ca20b819a80c3e6f1f3ba09c9725c36b99d47
4
+ data.tar.gz: 2ef170d274a98bd3360814630f6cab7302904881
5
+ SHA512:
6
+ metadata.gz: e7ffb525560794d6e5a6ce30cd36398e4ac62f66336969e531612c5a418934c3f6ebe8b3aa25c82eb2fa4a50c38d14d01a98e409126207f4752ccb62ff668ef8
7
+ data.tar.gz: d9da2c7d84c2a23df79291c4470ea526a5b023b7d39f83be776465bc76564ef995eb674663291a176049de72812be9d91ad57c2166c3d3900ab0ff928518ea9a
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## rack-handlers 0.6.0 -- 2013-07-11
4
+
5
+ * Properly find the default config path.
6
+
3
7
  ## rack-handlers 0.5.6 -- 2013-04-01
4
8
 
5
9
  * [rails server] Don't hack Rack. Instead, always try to look up
data/README.md CHANGED
@@ -45,7 +45,7 @@ is selected.
45
45
 
46
46
  Apache License 2.0
47
47
 
48
- Copyright (c) 2012, Lin Jen-Shin (godfat)
48
+ Copyright (c) 2012-2013, Lin Jen-Shin (godfat)
49
49
 
50
50
  Licensed under the Apache License, Version 2.0 (the "License");
51
51
  you may not use this file except in compliance with the License.
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ desc 'Generate gemspec'
8
8
  task 'gem:spec' do
9
9
  Gemgem.spec = Gemgem.create do |s|
10
10
  s.name = 'rack-handlers'
11
- s.version = '0.5.6'
11
+ s.version = '0.6.0'
12
12
 
13
13
  %w[rack].each{ |g| s.add_runtime_dependency(g) }
14
14
  end
@@ -7,12 +7,12 @@ class Rack::Handler::Unicorn
7
7
  ::Unicorn::HttpServer
8
8
  end
9
9
 
10
- def self.run app, options
11
- config_path = "config/#{name.downcase}.rb"
10
+ def self.run app, opts
11
+ config_path = "#{File.dirname(opts[:config])}/config/#{opts[:server]}.rb"
12
12
  config_file = config_path if File.exist?(config_path)
13
13
 
14
14
  server = server_class.new(app,
15
- :listeners => "#{options[:Host]}:#{options[:Port]}",
15
+ :listeners => "#{opts[:Host]}:#{opts[:Port]}",
16
16
  :config_file => config_file)
17
17
 
18
18
  yield(server) if block_given?
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rack-handlers"
5
- s.version = "0.5.6"
5
+ s.version = "0.6.0"
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 = "2013-04-01"
9
+ s.date = "2013-07-11"
10
10
  s.description = "Some Rack handlers which are not included in Rack distribution."
11
11
  s.email = ["godfat (XD) godfat.org"]
12
12
  s.files = [
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  "task/gemgem.rb"]
25
25
  s.homepage = "https://github.com/godfat/rack-handlers"
26
26
  s.require_paths = ["lib"]
27
- s.rubygems_version = "2.0.0"
27
+ s.rubygems_version = "2.0.4"
28
28
  s.summary = "Some Rack handlers which are not included in Rack distribution."
29
29
 
30
30
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-handlers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lin Jen-Shin (godfat)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-01 00:00:00.000000000 Z
11
+ date: 2013-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: Some Rack handlers which are not included in Rack distribution.
@@ -52,17 +52,17 @@ require_paths:
52
52
  - lib
53
53
  required_ruby_version: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ! '>='
55
+ - - '>='
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>='
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
64
  rubyforge_project:
65
- rubygems_version: 2.0.0
65
+ rubygems_version: 2.0.4
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: Some Rack handlers which are not included in Rack distribution.