net-http-server-rails 0.0.1
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.
- data/.gitignore +31 -0
- data/Gemfile +3 -0
- data/LICENSE +22 -0
- data/README.md +42 -0
- data/Rakefile +3 -0
- data/lib/net/http/server/rails.rb +12 -0
- data/net-http-server-rails.gemspec +23 -0
- metadata +103 -0
data/.gitignore
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
*.gem
|
|
2
|
+
!vendor/cache/*
|
|
3
|
+
*.rbc
|
|
4
|
+
.bundle
|
|
5
|
+
.config
|
|
6
|
+
Gemfile.lock
|
|
7
|
+
coverage
|
|
8
|
+
InstalledFiles
|
|
9
|
+
lib/bundler/man
|
|
10
|
+
pkg
|
|
11
|
+
spec/reports
|
|
12
|
+
test/tmp
|
|
13
|
+
test/version_tmp
|
|
14
|
+
tmp
|
|
15
|
+
|
|
16
|
+
# YARD artifacts
|
|
17
|
+
.yardoc
|
|
18
|
+
_yardoc
|
|
19
|
+
doc/
|
|
20
|
+
rdoc
|
|
21
|
+
|
|
22
|
+
# temporary emacs files
|
|
23
|
+
\#*
|
|
24
|
+
\.\#*
|
|
25
|
+
|
|
26
|
+
.rvmrc
|
|
27
|
+
.ruby-version
|
|
28
|
+
.ruby-gemset
|
|
29
|
+
|
|
30
|
+
NOTES
|
|
31
|
+
.rspec
|
data/Gemfile
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2011 Samuel Kadolph
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[](http://badge.fury.io/rb/net-http-rails)
|
|
2
|
+
[](https://gemnasium.com/deepak/net-http-rails)
|
|
3
|
+
[](https://codeclimate.com/github/deepak/net-http-rails)
|
|
4
|
+
|
|
5
|
+
# net-http-rails
|
|
6
|
+
|
|
7
|
+
net-http-rails is a simple gem that sets the default server for rack (and rails) to [net-http-server](https://github.com/postmodern/net-http-server).
|
|
8
|
+
|
|
9
|
+
## Description
|
|
10
|
+
|
|
11
|
+
net-http-rails overrides the `Rack::Handler.default` method to return `Rack::Handler::HTTP` which will cause rack (and rails) to use net-hhtp-server by default.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Add this line to your application's `Gemfile`:
|
|
16
|
+
|
|
17
|
+
gem "net-http-rails"
|
|
18
|
+
|
|
19
|
+
And then execute:
|
|
20
|
+
|
|
21
|
+
$ bundle install
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
Just add the gem to your `Gemfile` and then `rails server` will default to using net-http-server.
|
|
26
|
+
|
|
27
|
+
## TODO
|
|
28
|
+
|
|
29
|
+
add tests
|
|
30
|
+
|
|
31
|
+
## Credits
|
|
32
|
+
|
|
33
|
+
5 lines of code here but i copied it from [thin-rails](https://github.com/samuelkadolph/thin-rails).
|
|
34
|
+
|
|
35
|
+
## Contributing
|
|
36
|
+
|
|
37
|
+
1. Fork it
|
|
38
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
39
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
40
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
41
|
+
5. Create new Pull Request
|
|
42
|
+
|
data/Rakefile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
|
|
4
|
+
Gem::Specification.new do |gem|
|
|
5
|
+
gem.name = "net-http-server-rails"
|
|
6
|
+
gem.version = '0.0.1'
|
|
7
|
+
|
|
8
|
+
gem.authors = ["Deepak Kannan"]
|
|
9
|
+
gem.email = ["kannan.deepak@gmail.com"]
|
|
10
|
+
gem.description = "simple gem that sets the default server for rack (and rails) to net-http-rails"
|
|
11
|
+
gem.summary = "simple gem that sets the default server for rack (and rails) to net-http-rails"
|
|
12
|
+
gem.homepage = "https://github.com/deepak/net-http-server-rails"
|
|
13
|
+
|
|
14
|
+
gem.files = `git ls-files`.split($/)
|
|
15
|
+
gem.require_paths = ["lib"]
|
|
16
|
+
|
|
17
|
+
gem.add_dependency "rack", "~> 1.4.5"
|
|
18
|
+
gem.add_dependency "net-http-server", "~> 0.2.2"
|
|
19
|
+
|
|
20
|
+
gem.add_development_dependency "rake", "~> 10.0.4"
|
|
21
|
+
|
|
22
|
+
gem.required_ruby_version = ">= 1.9.3"
|
|
23
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: net-http-server-rails
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Deepak Kannan
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2013-05-24 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: rack
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 1.4.5
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ~>
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: 1.4.5
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: net-http-server
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ~>
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: 0.2.2
|
|
38
|
+
type: :runtime
|
|
39
|
+
prerelease: false
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ~>
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: 0.2.2
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: rake
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
none: false
|
|
50
|
+
requirements:
|
|
51
|
+
- - ~>
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 10.0.4
|
|
54
|
+
type: :development
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ~>
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 10.0.4
|
|
62
|
+
description: simple gem that sets the default server for rack (and rails) to net-http-rails
|
|
63
|
+
email:
|
|
64
|
+
- kannan.deepak@gmail.com
|
|
65
|
+
executables: []
|
|
66
|
+
extensions: []
|
|
67
|
+
extra_rdoc_files: []
|
|
68
|
+
files:
|
|
69
|
+
- .gitignore
|
|
70
|
+
- Gemfile
|
|
71
|
+
- LICENSE
|
|
72
|
+
- README.md
|
|
73
|
+
- Rakefile
|
|
74
|
+
- lib/net/http/server/rails.rb
|
|
75
|
+
- net-http-server-rails.gemspec
|
|
76
|
+
homepage: https://github.com/deepak/net-http-server-rails
|
|
77
|
+
licenses: []
|
|
78
|
+
post_install_message:
|
|
79
|
+
rdoc_options: []
|
|
80
|
+
require_paths:
|
|
81
|
+
- lib
|
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
|
+
none: false
|
|
84
|
+
requirements:
|
|
85
|
+
- - ! '>='
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: 1.9.3
|
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
|
+
none: false
|
|
90
|
+
requirements:
|
|
91
|
+
- - ! '>='
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '0'
|
|
94
|
+
segments:
|
|
95
|
+
- 0
|
|
96
|
+
hash: 1451039516073818541
|
|
97
|
+
requirements: []
|
|
98
|
+
rubyforge_project:
|
|
99
|
+
rubygems_version: 1.8.23
|
|
100
|
+
signing_key:
|
|
101
|
+
specification_version: 3
|
|
102
|
+
summary: simple gem that sets the default server for rack (and rails) to net-http-rails
|
|
103
|
+
test_files: []
|