passenger-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f518d3065faae9f4f5f8d1dbb3a7fc5721243c71
4
+ data.tar.gz: 8e24ed33a902e09691ca45866170f57cf1e91f0b
5
+ SHA512:
6
+ metadata.gz: 5596436b11f13b956efb1d58ab774fb40b76c570f8dee329a5b5ff4927bb97f058ee4ae3f33ad12f5e54a417f8130ecd3498b0ad6f94bf21bb057c03e59ea8c4
7
+ data.tar.gz: 4238f357eafd511607b8e6c2f7058349cc925236cfb9a2e0b50f63e0be4a6cbf6162f3e6e4f50f5ddcad0a65e880d6ff7fc90899d017bf67d4a6cbde17137c0a
@@ -0,0 +1 @@
1
+ require 'passenger/rails'
@@ -0,0 +1,32 @@
1
+ module Passenger
2
+ module Rails
3
+ require 'passenger/rails/version'
4
+ end
5
+ end
6
+
7
+ module Rack
8
+ module Handler
9
+ class Passenger
10
+ class << self
11
+ def run(app, options = {})
12
+ port = "-p #{options[:Port]}"
13
+ address = "-a #{options[:Host]}"
14
+ rack_up_file_path = "-R #{options[:config]}"
15
+ env = "-e #{environment}"
16
+
17
+ system "passenger start #{port} #{address} #{rack_up_file_path} #{env}"
18
+ end
19
+
20
+ def environment
21
+ ENV['RACK_ENV'] || ENV['RAILS_ENV']
22
+ end
23
+ end
24
+ end
25
+
26
+ register 'passenger', 'Rack::Handler::Passenger'
27
+
28
+ def self.default(options = {})
29
+ Rack::Handler::Passenger
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,5 @@
1
+ module Passenger
2
+ module Rails
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: passenger-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Brenno Costa
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: passenger
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: passenger-rails overrides the Rack::Handler.default method to return
42
+ Rack::Handler::Passenger which will cause rack (and rails) to use passenger by default.
43
+ email:
44
+ - brennolncosta@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - lib/passenger/rails/version.rb
50
+ - lib/passenger/rails.rb
51
+ - lib/passenger-rails.rb
52
+ homepage: https://github.com/brennovich/passenger-rails
53
+ licenses: []
54
+ metadata: {}
55
+ post_install_message:
56
+ rdoc_options: []
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '>='
62
+ - !ruby/object:Gem::Version
63
+ version: 1.9.3
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ requirements: []
70
+ rubyforge_project:
71
+ rubygems_version: 2.0.3
72
+ signing_key:
73
+ specification_version: 4
74
+ summary: passenger-rails is a simple gem, clone of unicorn-rails that sets the default
75
+ server for rack (and rails) to passenger.
76
+ test_files: []