diy_rails 0.1.0 → 0.1.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.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/lib/diy_rails/version.rb +1 -1
  3. data/lib/diy_rails.rb +7 -3
  4. metadata +12 -151
  5. data/vendor/bundle/ruby/3.0.0/bin/rackup +0 -29
  6. data/vendor/bundle/ruby/3.0.0/bin/rake +0 -29
  7. data/vendor/bundle/ruby/3.0.0/cache/rack-2.2.4.gem +0 -0
  8. data/vendor/bundle/ruby/3.0.0/cache/rake-13.0.6.gem +0 -0
  9. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/CHANGELOG.md +0 -708
  10. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/CONTRIBUTING.md +0 -136
  11. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/MIT-LICENSE +0 -20
  12. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/README.rdoc +0 -306
  13. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/Rakefile +0 -130
  14. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/SPEC.rdoc +0 -288
  15. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/bin/rackup +0 -5
  16. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/contrib/rack.png +0 -0
  17. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/contrib/rack.svg +0 -150
  18. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/contrib/rack_logo.svg +0 -164
  19. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/contrib/rdoc.css +0 -412
  20. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/example/lobster.ru +0 -6
  21. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/example/protectedlobster.rb +0 -16
  22. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/example/protectedlobster.ru +0 -10
  23. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/auth/abstract/handler.rb +0 -39
  24. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/auth/abstract/request.rb +0 -47
  25. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/auth/basic.rb +0 -61
  26. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/auth/digest/md5.rb +0 -131
  27. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/auth/digest/nonce.rb +0 -54
  28. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/auth/digest/params.rb +0 -54
  29. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/auth/digest/request.rb +0 -43
  30. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/body_proxy.rb +0 -45
  31. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/builder.rb +0 -257
  32. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/cascade.rb +0 -68
  33. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/chunked.rb +0 -117
  34. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/common_logger.rb +0 -83
  35. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/conditional_get.rb +0 -83
  36. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/config.rb +0 -22
  37. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/content_length.rb +0 -38
  38. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/content_type.rb +0 -30
  39. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/core_ext/regexp.rb +0 -14
  40. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/deflater.rb +0 -144
  41. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/directory.rb +0 -199
  42. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/etag.rb +0 -77
  43. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/events.rb +0 -153
  44. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/file.rb +0 -7
  45. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/files.rb +0 -218
  46. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/handler/cgi.rb +0 -59
  47. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/handler/fastcgi.rb +0 -100
  48. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/handler/lsws.rb +0 -61
  49. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/handler/scgi.rb +0 -71
  50. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/handler/thin.rb +0 -36
  51. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/handler/webrick.rb +0 -129
  52. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/handler.rb +0 -104
  53. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/head.rb +0 -25
  54. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/lint.rb +0 -806
  55. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/lobster.rb +0 -70
  56. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/lock.rb +0 -32
  57. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/logger.rb +0 -20
  58. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/media_type.rb +0 -43
  59. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/method_override.rb +0 -52
  60. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/mime.rb +0 -685
  61. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/mock.rb +0 -273
  62. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/multipart/generator.rb +0 -97
  63. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/multipart/parser.rb +0 -365
  64. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/multipart/uploaded_file.rb +0 -41
  65. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/multipart.rb +0 -64
  66. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/null_logger.rb +0 -39
  67. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/query_parser.rb +0 -221
  68. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/recursive.rb +0 -64
  69. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/reloader.rb +0 -114
  70. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/request.rb +0 -659
  71. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/response.rb +0 -318
  72. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/rewindable_input.rb +0 -94
  73. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/runtime.rb +0 -34
  74. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/sendfile.rb +0 -162
  75. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/server.rb +0 -466
  76. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/session/abstract/id.rb +0 -523
  77. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/session/cookie.rb +0 -203
  78. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/session/memcache.rb +0 -10
  79. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/session/pool.rb +0 -85
  80. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/show_exceptions.rb +0 -390
  81. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/show_status.rb +0 -113
  82. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/static.rb +0 -187
  83. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb +0 -22
  84. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/urlmap.rb +0 -97
  85. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/utils.rb +0 -616
  86. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack/version.rb +0 -29
  87. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/lib/rack.rb +0 -141
  88. data/vendor/bundle/ruby/3.0.0/gems/rack-2.2.4/rack.gemspec +0 -46
  89. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/History.rdoc +0 -2403
  90. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/MIT-LICENSE +0 -21
  91. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/README.rdoc +0 -155
  92. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/command_line_usage.rdoc +0 -158
  93. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/example/Rakefile1 +0 -38
  94. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/example/Rakefile2 +0 -35
  95. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/example/a.c +0 -6
  96. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/example/b.c +0 -6
  97. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/example/main.c +0 -11
  98. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/glossary.rdoc +0 -42
  99. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/jamis.rb +0 -592
  100. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/proto_rake.rdoc +0 -127
  101. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/rake.1 +0 -156
  102. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/rakefile.rdoc +0 -622
  103. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/doc/rational.rdoc +0 -151
  104. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake +0 -27
  105. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb +0 -831
  106. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/backtrace.rb +0 -24
  107. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/clean.rb +0 -78
  108. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/cloneable.rb +0 -17
  109. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/cpu_counter.rb +0 -107
  110. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/default_loader.rb +0 -15
  111. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/dsl_definition.rb +0 -195
  112. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/early_time.rb +0 -22
  113. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/ext/core.rb +0 -26
  114. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/ext/string.rb +0 -176
  115. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/file_creation_task.rb +0 -25
  116. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/file_list.rb +0 -435
  117. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/file_task.rb +0 -54
  118. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/file_utils.rb +0 -134
  119. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/file_utils_ext.rb +0 -134
  120. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/invocation_chain.rb +0 -57
  121. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/invocation_exception_mixin.rb +0 -17
  122. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/late_time.rb +0 -18
  123. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/linked_list.rb +0 -112
  124. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/loaders/makefile.rb +0 -54
  125. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/multi_task.rb +0 -14
  126. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/name_space.rb +0 -38
  127. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/packagetask.rb +0 -222
  128. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/phony.rb +0 -16
  129. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/private_reader.rb +0 -21
  130. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/promise.rb +0 -100
  131. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/pseudo_status.rb +0 -30
  132. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/rake_module.rb +0 -67
  133. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb +0 -27
  134. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/rule_recursion_overflow_error.rb +0 -20
  135. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/scope.rb +0 -43
  136. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task.rb +0 -434
  137. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task_argument_error.rb +0 -8
  138. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task_arguments.rb +0 -109
  139. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/task_manager.rb +0 -331
  140. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/tasklib.rb +0 -12
  141. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/testtask.rb +0 -189
  142. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/thread_history_display.rb +0 -49
  143. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/thread_pool.rb +0 -163
  144. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/trace_output.rb +0 -23
  145. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/version.rb +0 -10
  146. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/win32.rb +0 -51
  147. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake.rb +0 -71
  148. data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/rake.gemspec +0 -100
  149. data/vendor/bundle/ruby/3.0.0/specifications/rack-2.2.4.gemspec +0 -41
  150. data/vendor/bundle/ruby/3.0.0/specifications/rake-13.0.6.gemspec +0 -26
@@ -1,136 +0,0 @@
1
- Contributing to Rack
2
- =====================
3
-
4
- Rack is work of [hundreds of contributors](https://github.com/rack/rack/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/rack/rack/pulls), [propose features and discuss issues](https://github.com/rack/rack/issues). When in doubt, post to the [rack-devel](http://groups.google.com/group/rack-devel) mailing list.
5
-
6
- #### Fork the Project
7
-
8
- Fork the [project on Github](https://github.com/rack/rack) and check out your copy.
9
-
10
- ```
11
- git clone https://github.com/contributor/rack.git
12
- cd rack
13
- git remote add upstream https://github.com/rack/rack.git
14
- ```
15
-
16
- #### Create a Topic Branch
17
-
18
- Make sure your fork is up-to-date and create a topic branch for your feature or bug fix.
19
-
20
- ```
21
- git checkout master
22
- git pull upstream master
23
- git checkout -b my-feature-branch
24
- ```
25
-
26
- #### Bundle Install and Quick Test
27
-
28
- Ensure that you can build the project and run quick tests.
29
-
30
- ```
31
- bundle install --without extra
32
- bundle exec rake test
33
- ```
34
-
35
- #### Running All Tests
36
-
37
- Install all dependencies.
38
-
39
- ```
40
- bundle install
41
- ```
42
-
43
- Run all tests.
44
-
45
- ```
46
- rake test
47
- ```
48
-
49
- The test suite has no dependencies outside of the core Ruby installation and bacon.
50
-
51
- Some tests will be skipped if a dependency is not found.
52
-
53
- To run the test suite completely, you need:
54
-
55
- * fcgi
56
- * dalli
57
- * thin
58
-
59
- To test Memcache sessions, you need memcached (will be run on port 11211) and dalli installed.
60
-
61
- #### Write Tests
62
-
63
- Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build.
64
-
65
- We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
66
-
67
- #### Write Code
68
-
69
- Implement your feature or bug fix.
70
-
71
- Make sure that `bundle exec rake fulltest` completes without errors.
72
-
73
- #### Write Documentation
74
-
75
- Document any external behavior in the [README](README.rdoc).
76
-
77
- #### Update Changelog
78
-
79
- Add a line to [CHANGELOG](CHANGELOG.md).
80
-
81
- #### Commit Changes
82
-
83
- Make sure git knows your name and email address:
84
-
85
- ```
86
- git config --global user.name "Your Name"
87
- git config --global user.email "contributor@example.com"
88
- ```
89
-
90
- Writing good commit logs is important. A commit log should describe what changed and why.
91
-
92
- ```
93
- git add ...
94
- git commit
95
- ```
96
-
97
- #### Push
98
-
99
- ```
100
- git push origin my-feature-branch
101
- ```
102
-
103
- #### Make a Pull Request
104
-
105
- Go to https://github.com/contributor/rack and select your feature branch. Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
106
-
107
- #### Rebase
108
-
109
- If you've been working on a change for a while, rebase with upstream/master.
110
-
111
- ```
112
- git fetch upstream
113
- git rebase upstream/master
114
- git push origin my-feature-branch -f
115
- ```
116
-
117
- #### Make Required Changes
118
-
119
- Amend your previous commit and force push the changes.
120
-
121
- ```
122
- git commit --amend
123
- git push origin my-feature-branch -f
124
- ```
125
-
126
- #### Check on Your Pull Request
127
-
128
- Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
129
-
130
- #### Be Patient
131
-
132
- It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang on there!
133
-
134
- #### Thank You
135
-
136
- Please do know that we really appreciate and value your time and work. We love you, really.
@@ -1,20 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (C) 2007-2019 Leah Neukirchen <http://leahneukirchen.org/infopage.html>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to
7
- deal in the Software without restriction, including without limitation the
8
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
- sell copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,306 +0,0 @@
1
- = \Rack, a modular Ruby webserver interface
2
-
3
- {<img src="https://rack.github.io/logo.png" width="400" alt="rack powers web applications" />}[https://rack.github.io/]
4
-
5
- {<img src="https://circleci.com/gh/rack/rack.svg?style=svg" alt="CircleCI" />}[https://circleci.com/gh/rack/rack]
6
- {<img src="https://badge.fury.io/rb/rack.svg" alt="Gem Version" />}[http://badge.fury.io/rb/rack]
7
- {<img src="https://api.dependabot.com/badges/compatibility_score?dependency-name=rack&package-manager=bundler&version-scheme=semver" alt="SemVer Stability" />}[https://dependabot.com/compatibility-score.html?dependency-name=rack&package-manager=bundler&version-scheme=semver]
8
- {<img src="http://inch-ci.org/github/rack/rack.svg?branch=master" alt="Inline docs" />}[http://inch-ci.org/github/rack/rack]
9
-
10
- \Rack provides a minimal, modular, and adaptable interface for developing
11
- web applications in Ruby. By wrapping HTTP requests and responses in
12
- the simplest way possible, it unifies and distills the API for web
13
- servers, web frameworks, and software in between (the so-called
14
- middleware) into a single method call.
15
-
16
- The exact details of this are described in the \Rack specification,
17
- which all \Rack applications should conform to.
18
-
19
- == Supported web servers
20
-
21
- The included *handlers* connect all kinds of web servers to \Rack:
22
-
23
- * WEBrick[https://github.com/ruby/webrick]
24
- * FCGI
25
- * CGI
26
- * SCGI
27
- * LiteSpeed[https://www.litespeedtech.com/]
28
- * Thin[https://rubygems.org/gems/thin]
29
-
30
- These web servers include \Rack handlers in their distributions:
31
-
32
- * Agoo[https://github.com/ohler55/agoo]
33
- * Falcon[https://github.com/socketry/falcon]
34
- * Iodine[https://github.com/boazsegev/iodine]
35
- * {NGINX Unit}[https://unit.nginx.org/]
36
- * {Phusion Passenger}[https://www.phusionpassenger.com/] (which is mod_rack for Apache and for nginx)
37
- * Puma[https://puma.io/]
38
- * Unicorn[https://yhbt.net/unicorn/]
39
- * uWSGI[https://uwsgi-docs.readthedocs.io/en/latest/]
40
-
41
- Any valid \Rack app will run the same on all these handlers, without
42
- changing anything.
43
-
44
- == Supported web frameworks
45
-
46
- These frameworks and many others support the \Rack API:
47
-
48
- * Camping[http://www.ruby-camping.com/]
49
- * Coset[http://leahneukirchen.org/repos/coset/]
50
- * Hanami[https://hanamirb.org/]
51
- * Padrino[http://padrinorb.com/]
52
- * Ramaze[http://ramaze.net/]
53
- * Roda[https://github.com/jeremyevans/roda]
54
- * {Ruby on Rails}[https://rubyonrails.org/]
55
- * Rum[https://github.com/leahneukirchen/rum]
56
- * Sinatra[http://sinatrarb.com/]
57
- * Utopia[https://github.com/socketry/utopia]
58
- * WABuR[https://github.com/ohler55/wabur]
59
-
60
- == Available middleware shipped with \Rack
61
-
62
- Between the server and the framework, \Rack can be customized to your
63
- applications needs using middleware. \Rack itself ships with the following
64
- middleware:
65
-
66
- * Rack::Chunked, for streaming responses using chunked encoding.
67
- * Rack::CommonLogger, for creating Apache-style logfiles.
68
- * Rack::ConditionalGet, for returning not modified responses when the response
69
- has not changed.
70
- * Rack::Config, for modifying the environment before processing the request.
71
- * Rack::ContentLength, for setting Content-Length header based on body size.
72
- * Rack::ContentType, for setting default Content-Type header for responses.
73
- * Rack::Deflater, for compressing responses with gzip.
74
- * Rack::ETag, for setting ETag header on string bodies.
75
- * Rack::Events, for providing easy hooks when a request is received
76
- and when the response is sent.
77
- * Rack::Files, for serving static files.
78
- * Rack::Head, for returning an empty body for HEAD requests.
79
- * Rack::Lint, for checking conformance to the \Rack API.
80
- * Rack::Lock, for serializing requests using a mutex.
81
- * Rack::Logger, for setting a logger to handle logging errors.
82
- * Rack::MethodOverride, for modifying the request method based on a submitted
83
- parameter.
84
- * Rack::Recursive, for including data from other paths in the application,
85
- and for performing internal redirects.
86
- * Rack::Reloader, for reloading files if they have been modified.
87
- * Rack::Runtime, for including a response header with the time taken to
88
- process the request.
89
- * Rack::Sendfile, for working with web servers that can use optimized
90
- file serving for file system paths.
91
- * Rack::ShowException, for catching unhandled exceptions and
92
- presenting them in a nice and helpful way with clickable backtrace.
93
- * Rack::ShowStatus, for using nice error pages for empty client error
94
- responses.
95
- * Rack::Static, for more configurable serving of static files.
96
- * Rack::TempfileReaper, for removing temporary files creating during a
97
- request.
98
-
99
- All these components use the same interface, which is described in
100
- detail in the \Rack specification. These optional components can be
101
- used in any way you wish.
102
-
103
- == Convenience
104
-
105
- If you want to develop outside of existing frameworks, implement your
106
- own ones, or develop middleware, \Rack provides many helpers to create
107
- \Rack applications quickly and without doing the same web stuff all
108
- over:
109
-
110
- * Rack::Request, which also provides query string parsing and
111
- multipart handling.
112
- * Rack::Response, for convenient generation of HTTP replies and
113
- cookie handling.
114
- * Rack::MockRequest and Rack::MockResponse for efficient and quick
115
- testing of \Rack application without real HTTP round-trips.
116
- * Rack::Cascade, for trying additional \Rack applications if an
117
- application returns a not found or method not supported response.
118
- * Rack::Directory, for serving files under a given directory, with
119
- directory indexes.
120
- * Rack::MediaType, for parsing Content-Type headers.
121
- * Rack::Mime, for determining Content-Type based on file extension.
122
- * Rack::RewindableInput, for making any IO object rewindable, using
123
- a temporary file buffer.
124
- * Rack::URLMap, to route to multiple applications inside the same process.
125
-
126
- == rack-contrib
127
-
128
- The plethora of useful middleware created the need for a project that
129
- collects fresh \Rack middleware. rack-contrib includes a variety of
130
- add-on components for \Rack and it is easy to contribute new modules.
131
-
132
- * https://github.com/rack/rack-contrib
133
-
134
- == rackup
135
-
136
- rackup is a useful tool for running \Rack applications, which uses the
137
- Rack::Builder DSL to configure middleware and build up applications
138
- easily.
139
-
140
- rackup automatically figures out the environment it is run in, and
141
- runs your application as FastCGI, CGI, or WEBrick---all from the
142
- same configuration.
143
-
144
- == Quick start
145
-
146
- Try the lobster!
147
-
148
- Either with the embedded WEBrick starter:
149
-
150
- ruby -Ilib lib/rack/lobster.rb
151
-
152
- Or with rackup:
153
-
154
- bin/rackup -Ilib example/lobster.ru
155
-
156
- By default, the lobster is found at http://localhost:9292.
157
-
158
- == Installing with RubyGems
159
-
160
- A Gem of \Rack is available at {rubygems.org}[https://rubygems.org/gems/rack]. You can install it with:
161
-
162
- gem install rack
163
-
164
- == Usage
165
-
166
- You should require the library:
167
-
168
- require 'rack'
169
-
170
- \Rack uses autoload to automatically load other files \Rack ships with on demand,
171
- so you should not need require paths under +rack+. If you require paths under
172
- +rack+ without requiring +rack+ itself, things may not work correctly.
173
-
174
- == Configuration
175
-
176
- Several parameters can be modified on Rack::Utils to configure \Rack behaviour.
177
-
178
- e.g:
179
-
180
- Rack::Utils.key_space_limit = 128
181
-
182
- === key_space_limit
183
-
184
- The default number of bytes to allow all parameters keys in a given parameter hash to take up.
185
- Does not affect nested parameter hashes, so doesn't actually prevent an attacker from using
186
- more than this many bytes for parameter keys.
187
-
188
- Defaults to 65536 characters.
189
-
190
- === param_depth_limit
191
-
192
- The maximum amount of nesting allowed in parameters.
193
- For example, if set to 3, this query string would be allowed:
194
-
195
- ?a[b][c]=d
196
-
197
- but this query string would not be allowed:
198
-
199
- ?a[b][c][d]=e
200
-
201
- Limiting the depth prevents a possible stack overflow when parsing parameters.
202
-
203
- Defaults to 100.
204
-
205
- === multipart_part_limit
206
-
207
- The maximum number of parts a request can contain.
208
- Accepting too many part can lead to the server running out of file handles.
209
-
210
- The default is 128, which means that a single request can't upload more than 128 files at once.
211
-
212
- Set to 0 for no limit.
213
-
214
- Can also be set via the +RACK_MULTIPART_PART_LIMIT+ environment variable.
215
-
216
- == Changelog
217
-
218
- See {CHANGELOG.md}[https://github.com/rack/rack/blob/master/CHANGELOG.md].
219
-
220
- == Contributing
221
-
222
- See {CONTRIBUTING.md}[https://github.com/rack/rack/blob/master/CONTRIBUTING.md].
223
-
224
- == Contact
225
-
226
- Please post bugs, suggestions and patches to
227
- the bug tracker at {issues}[https://github.com/rack/rack/issues].
228
-
229
- Please post security related bugs and suggestions to the core team at
230
- <https://groups.google.com/forum/#!forum/rack-core> or rack-core@googlegroups.com. This
231
- list is not public. Due to wide usage of the library, it is strongly preferred
232
- that we manage timing in order to provide viable patches at the time of
233
- disclosure. Your assistance in this matter is greatly appreciated.
234
-
235
- Mailing list archives are available at
236
- <https://groups.google.com/forum/#!forum/rack-devel>.
237
-
238
- Git repository (send Git patches to the mailing list):
239
-
240
- * https://github.com/rack/rack
241
-
242
- You are also welcome to join the #rack channel on irc.freenode.net.
243
-
244
- == Thanks
245
-
246
- The \Rack Core Team, consisting of
247
-
248
- * Aaron Patterson (tenderlove[https://github.com/tenderlove])
249
- * Samuel Williams (ioquatix[https://github.com/ioquatix])
250
- * Jeremy Evans (jeremyevans[https://github.com/jeremyevans])
251
- * Eileen Uchitelle (eileencodes[https://github.com/eileencodes])
252
- * Matthew Draper (matthewd[https://github.com/matthewd])
253
- * Rafael França (rafaelfranca[https://github.com/rafaelfranca])
254
-
255
- and the \Rack Alumni
256
-
257
- * Ryan Tomayko (rtomayko[https://github.com/rtomayko])
258
- * Scytrin dai Kinthra (scytrin[https://github.com/scytrin])
259
- * Leah Neukirchen (leahneukirchen[https://github.com/leahneukirchen])
260
- * James Tucker (raggi[https://github.com/raggi])
261
- * Josh Peek (josh[https://github.com/josh])
262
- * José Valim (josevalim[https://github.com/josevalim])
263
- * Michael Fellinger (manveru[https://github.com/manveru])
264
- * Santiago Pastorino (spastorino[https://github.com/spastorino])
265
- * Konstantin Haase (rkh[https://github.com/rkh])
266
-
267
- would like to thank:
268
-
269
- * Adrian Madrid, for the LiteSpeed handler.
270
- * Christoffer Sawicki, for the first Rails adapter and Rack::Deflater.
271
- * Tim Fletcher, for the HTTP authentication code.
272
- * Luc Heinrich for the Cookie sessions, the static file handler and bugfixes.
273
- * Armin Ronacher, for the logo and racktools.
274
- * Alex Beregszaszi, Alexander Kahn, Anil Wadghule, Aredridel, Ben
275
- Alpert, Dan Kubb, Daniel Roethlisberger, Matt Todd, Tom Robinson,
276
- Phil Hagelberg, S. Brent Faulkner, Bosko Milekic, Daniel Rodríguez
277
- Troitiño, Genki Takiuchi, Geoffrey Grosenbach, Julien Sanchez, Kamal
278
- Fariz Mahyuddin, Masayoshi Takahashi, Patrick Aljordm, Mig, Kazuhiro
279
- Nishiyama, Jon Bardin, Konstantin Haase, Larry Siden, Matias
280
- Korhonen, Sam Ruby, Simon Chiang, Tim Connor, Timur Batyrshin, and
281
- Zach Brock for bug fixing and other improvements.
282
- * Eric Wong, Hongli Lai, Jeremy Kemper for their continuous support
283
- and API improvements.
284
- * Yehuda Katz and Carl Lerche for refactoring rackup.
285
- * Brian Candler, for Rack::ContentType.
286
- * Graham Batty, for improved handler loading.
287
- * Stephen Bannasch, for bug reports and documentation.
288
- * Gary Wright, for proposing a better Rack::Response interface.
289
- * Jonathan Buch, for improvements regarding Rack::Response.
290
- * Armin Röhrl, for tracking down bugs in the Cookie generator.
291
- * Alexander Kellett for testing the Gem and reviewing the announcement.
292
- * Marcus Rückert, for help with configuring and debugging lighttpd.
293
- * The WSGI team for the well-done and documented work they've done and
294
- \Rack builds up on.
295
- * All bug reporters and patch contributors not mentioned above.
296
-
297
- == Links
298
-
299
- \Rack:: <https://rack.github.io/>
300
- Official \Rack repositories:: <https://github.com/rack>
301
- \Rack Bug Tracking:: <https://github.com/rack/rack/issues>
302
- rack-devel mailing list:: <https://groups.google.com/forum/#!forum/rack-devel>
303
-
304
- == License
305
-
306
- \Rack is released under the {MIT License}[https://opensource.org/licenses/MIT].
@@ -1,130 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rake/testtask"
5
-
6
- desc "Run all the tests"
7
- task default: :test
8
-
9
- desc "Install gem dependencies"
10
- task :deps do
11
- require 'rubygems'
12
- spec = Gem::Specification.load('rack.gemspec')
13
- spec.dependencies.each do |dep|
14
- reqs = dep.requirements_list
15
- reqs = (["-v"] * reqs.size).zip(reqs).flatten
16
- # Use system over sh, because we want to ignore errors!
17
- system Gem.ruby, "-S", "gem", "install", '--conservative', dep.name, *reqs
18
- end
19
- end
20
-
21
- desc "Make an archive as .tar.gz"
22
- task dist: %w[chmod changelog spec rdoc] do
23
- sh "git archive --format=tar --prefix=#{release}/ HEAD^{tree} >#{release}.tar"
24
- sh "pax -waf #{release}.tar -s ':^:#{release}/:' SPEC.rdoc ChangeLog doc rack.gemspec"
25
- sh "gzip -f -9 #{release}.tar"
26
- end
27
-
28
- desc "Make an official release"
29
- task :officialrelease do
30
- puts "Official build for #{release}..."
31
- sh "rm -rf stage"
32
- sh "git clone --shared . stage"
33
- sh "cd stage && rake officialrelease_really"
34
- sh "mv stage/#{release}.tar.gz stage/#{release}.gem ."
35
- end
36
-
37
- task officialrelease_really: %w[spec dist gem] do
38
- sh "shasum #{release}.tar.gz #{release}.gem"
39
- end
40
-
41
- def release
42
- "rack-" + File.read('lib/rack/version.rb')[/RELEASE += +([\"\'])([\d][\w\.]+)\1/, 2]
43
- end
44
-
45
- desc "Make binaries executable"
46
- task :chmod do
47
- Dir["bin/*"].each { |binary| File.chmod(0755, binary) }
48
- Dir["test/cgi/test*"].each { |binary| File.chmod(0755, binary) }
49
- end
50
-
51
- desc "Generate a ChangeLog"
52
- task changelog: "ChangeLog"
53
-
54
- file '.git/index'
55
- file "ChangeLog" => '.git/index' do
56
- File.open("ChangeLog", "w") { |out|
57
- log = `git log -z`
58
- log.force_encoding(Encoding::BINARY)
59
- log.split("\0").map { |chunk|
60
- author = chunk[/Author: (.*)/, 1].strip
61
- date = chunk[/Date: (.*)/, 1].strip
62
- desc, detail = $'.strip.split("\n", 2)
63
- detail ||= ""
64
- detail = detail.gsub(/.*darcs-hash:.*/, '')
65
- detail.rstrip!
66
- out.puts "#{date} #{author}"
67
- out.puts " * #{desc.strip}"
68
- out.puts detail unless detail.empty?
69
- out.puts
70
- }
71
- }
72
- end
73
-
74
- desc "Generate Rack Specification"
75
- task spec: "SPEC.rdoc"
76
-
77
- file 'lib/rack/lint.rb'
78
- file "SPEC.rdoc" => 'lib/rack/lint.rb' do
79
- File.open("SPEC.rdoc", "wb") { |file|
80
- IO.foreach("lib/rack/lint.rb") { |line|
81
- if line =~ /^\s*## ?(.*)/
82
- file.puts $1
83
- end
84
- }
85
- }
86
- end
87
-
88
- Rake::TestTask.new("test:regular") do |t|
89
- t.libs << "test"
90
- t.test_files = FileList["test/**/*_test.rb", "test/**/spec_*.rb", "test/gemloader.rb"]
91
- t.warning = false
92
- t.verbose = true
93
- end
94
-
95
- desc "Run tests with coverage"
96
- task "test_cov" do
97
- ENV['COVERAGE'] = '1'
98
- Rake::Task['test:regular'].invoke
99
- end
100
-
101
- desc "Run all the fast + platform agnostic tests"
102
- task test: %w[spec test:regular]
103
-
104
- desc "Run all the tests we run on CI"
105
- task ci: :test
106
-
107
- task gem: :spec do
108
- sh "gem build rack.gemspec"
109
- end
110
-
111
- task doc: :rdoc
112
-
113
- desc "Generate RDoc documentation"
114
- task rdoc: %w[changelog spec] do
115
- sh(*%w{rdoc --line-numbers --main README.rdoc
116
- --title 'Rack\ Documentation' --charset utf-8 -U -o doc} +
117
- %w{README.rdoc KNOWN-ISSUES SPEC.rdoc ChangeLog} +
118
- `git ls-files lib/\*\*/\*.rb`.strip.split)
119
- cp "contrib/rdoc.css", "doc/rdoc.css"
120
- end
121
-
122
- task pushdoc: :rdoc do
123
- sh "rsync -avz doc/ rack.rubyforge.org:/var/www/gforge-projects/rack/doc/"
124
- end
125
-
126
- task pushsite: :pushdoc do
127
- sh "cd site && git gc"
128
- sh "rsync -avz site/ rack.rubyforge.org:/var/www/gforge-projects/rack/"
129
- sh "cd site && git push"
130
- end