nano-sharp-gem 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.
- checksums.yaml +7 -0
- data/cuba-4.0.3/CHANGELOG +71 -0
- data/cuba-4.0.3/CONTRIBUTING +19 -0
- data/cuba-4.0.3/LICENSE +23 -0
- data/cuba-4.0.3/README.md +781 -0
- data/cuba-4.0.3/cuba.gemspec +18 -0
- data/cuba-4.0.3/examples/config.ru +18 -0
- data/cuba-4.0.3/examples/measure.rb +17 -0
- data/cuba-4.0.3/examples/rack-response.ru +21 -0
- data/cuba-4.0.3/examples/views/home.mote +7 -0
- data/cuba-4.0.3/examples/views/layout.mote +11 -0
- data/cuba-4.0.3/lib/cuba/capybara.rb +13 -0
- data/cuba-4.0.3/lib/cuba/render.rb +63 -0
- data/cuba-4.0.3/lib/cuba/safe/csrf.rb +47 -0
- data/cuba-4.0.3/lib/cuba/safe/secure_headers.rb +43 -0
- data/cuba-4.0.3/lib/cuba/safe.rb +23 -0
- data/cuba-4.0.3/lib/cuba/test.rb +11 -0
- data/cuba-4.0.3/lib/cuba.rb +436 -0
- data/cuba-4.0.3/makefile +4 -0
- data/cuba-4.0.3/test/accept.rb +77 -0
- data/cuba-4.0.3/test/captures.rb +162 -0
- data/cuba-4.0.3/test/composition.rb +103 -0
- data/cuba-4.0.3/test/cookie.rb +34 -0
- data/cuba-4.0.3/test/csrf.rb +140 -0
- data/cuba-4.0.3/test/extension.rb +21 -0
- data/cuba-4.0.3/test/helper.rb +11 -0
- data/cuba-4.0.3/test/host.rb +29 -0
- data/cuba-4.0.3/test/integration.rb +114 -0
- data/cuba-4.0.3/test/match.rb +86 -0
- data/cuba-4.0.3/test/middleware.rb +47 -0
- data/cuba-4.0.3/test/number.rb +36 -0
- data/cuba-4.0.3/test/on.rb +157 -0
- data/cuba-4.0.3/test/param.rb +66 -0
- data/cuba-4.0.3/test/path.rb +86 -0
- data/cuba-4.0.3/test/plugin.rb +68 -0
- data/cuba-4.0.3/test/rack.rb +22 -0
- data/cuba-4.0.3/test/redirect.rb +21 -0
- data/cuba-4.0.3/test/render.rb +128 -0
- data/cuba-4.0.3/test/root.rb +83 -0
- data/cuba-4.0.3/test/run.rb +23 -0
- data/cuba-4.0.3/test/safe.rb +74 -0
- data/cuba-4.0.3/test/segment.rb +45 -0
- data/cuba-4.0.3/test/session.rb +21 -0
- data/cuba-4.0.3/test/settings.rb +52 -0
- data/cuba-4.0.3/test/views/about.erb +1 -0
- data/cuba-4.0.3/test/views/about.str +1 -0
- data/cuba-4.0.3/test/views/content-yield.erb +1 -0
- data/cuba-4.0.3/test/views/custom/abs_path.mote +1 -0
- data/cuba-4.0.3/test/views/frag.mote +1 -0
- data/cuba-4.0.3/test/views/home.erb +2 -0
- data/cuba-4.0.3/test/views/home.mote +1 -0
- data/cuba-4.0.3/test/views/home.str +2 -0
- data/cuba-4.0.3/test/views/layout-alternative.erb +2 -0
- data/cuba-4.0.3/test/views/layout-yield.erb +3 -0
- data/cuba-4.0.3/test/views/layout.erb +2 -0
- data/cuba-4.0.3/test/views/layout.mote +2 -0
- data/cuba-4.0.3/test/views/layout.str +2 -0
- data/cuba-4.0.3/test/views/test.erb +1 -0
- data/cuba-4.0.3/test/with.rb +42 -0
- data/nano-sharp-gem.gemspec +11 -0
- metadata +99 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 99e702136ec40e52d6dbc41232b4bc28635a5387ca3c57f06f943c0421e82b0c
|
|
4
|
+
data.tar.gz: 2ae002b3e236bc5492bae1638bcb5da5f46003a98174d3d85ad970912ad49d0a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e90841b65083379a3e5832c8ec416333874f898df56bf1d1a3dd057a88b376a5527f05445e0b258f84e630e2d08bdd7515d96ab0d40fe90de6d06fc6cb8b7e0a
|
|
7
|
+
data.tar.gz: 398071321242264c6fd0b6647f254899264201814d175435f51c143e2853e78cadd31b4047cae108e68b0d321d5a5c05340bb0fba3d921201200a0c553ae918b
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
4.0.3
|
|
2
|
+
|
|
3
|
+
* Change secure headers to lowercase.
|
|
4
|
+
|
|
5
|
+
3.9.0
|
|
6
|
+
|
|
7
|
+
* Cache regular expressions.
|
|
8
|
+
|
|
9
|
+
3.8.1
|
|
10
|
+
|
|
11
|
+
* Remove requirement on Time.
|
|
12
|
+
|
|
13
|
+
3.8.0
|
|
14
|
+
|
|
15
|
+
* Change gemspec to allow Rack 2.
|
|
16
|
+
|
|
17
|
+
3.7.0
|
|
18
|
+
|
|
19
|
+
* Add syntactic sugar for matching all HTTP methods.
|
|
20
|
+
|
|
21
|
+
3.6.0
|
|
22
|
+
|
|
23
|
+
* Set Strict-Transport-Security to a better default.
|
|
24
|
+
|
|
25
|
+
3.5.0
|
|
26
|
+
|
|
27
|
+
* Add `not_found` hook for customizing the 404 error.
|
|
28
|
+
|
|
29
|
+
* Remove undocumented `header` matcher.
|
|
30
|
+
|
|
31
|
+
* Depend explicitly on Rack 1.6.x.
|
|
32
|
+
|
|
33
|
+
* Experimental feature: `param` now accepts a second parameter
|
|
34
|
+
with a default value.
|
|
35
|
+
|
|
36
|
+
3.4.0
|
|
37
|
+
|
|
38
|
+
* Add `Cuba::Safe` plugin. This plugin contains security related
|
|
39
|
+
defaults.
|
|
40
|
+
|
|
41
|
+
3.3.0
|
|
42
|
+
|
|
43
|
+
* Restrict when to add the default content type.
|
|
44
|
+
|
|
45
|
+
3.2.0
|
|
46
|
+
|
|
47
|
+
* Return 404 when status is not explicitly set and body is empty.
|
|
48
|
+
|
|
49
|
+
3.1.1
|
|
50
|
+
|
|
51
|
+
* Add support for custom default layouts.
|
|
52
|
+
|
|
53
|
+
3.1.0
|
|
54
|
+
|
|
55
|
+
* Do a deep clone of the settings object during inheritance.
|
|
56
|
+
* Start namespacing plugins (i.e. settings[:render]).
|
|
57
|
+
* Use rack/test when doing `require 'cuba/test'`.
|
|
58
|
+
* Capybara available via `require 'cuba/capybara'`.
|
|
59
|
+
* Use a default hash for the render plugin.
|
|
60
|
+
* Allow the use of custom Request and Response objects.
|
|
61
|
+
|
|
62
|
+
3.0.0
|
|
63
|
+
|
|
64
|
+
* Remove Cuba.build. Use subclassing instead.
|
|
65
|
+
* Remove warnings.
|
|
66
|
+
* Use Cuba::Response instead of Rack::Response.
|
|
67
|
+
* Integrate Cuba.plugin and Cuba.settings.
|
|
68
|
+
* Remove Cuba::VERSION.
|
|
69
|
+
* Rename _call to call! (inspired from Sinatra).
|
|
70
|
+
* Fix a memory leak with the caching used in Tilt.
|
|
71
|
+
* Adding syntax highlighting to the README Code blocks.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
This code tries to solve a particular problem with a very simple
|
|
2
|
+
implementation. We try to keep the code to a minimum while making
|
|
3
|
+
it as clear as possible. The design is very likely finished, and
|
|
4
|
+
if some feature is missing it is possible that it was left out on
|
|
5
|
+
purpose. That said, new usage patterns may arise, and when that
|
|
6
|
+
happens we are ready to adapt if necessary.
|
|
7
|
+
|
|
8
|
+
A good first step for contributing is to meet us on IRC and discuss
|
|
9
|
+
ideas. We spend a lot of time on #lesscode at freenode, always ready
|
|
10
|
+
to talk about code and simplicity. If connecting to IRC is not an
|
|
11
|
+
option, you can create an issue explaining the proposed change and
|
|
12
|
+
a use case. We pay a lot of attention to use cases, because our
|
|
13
|
+
goal is to keep the code base simple. Usually the result of a
|
|
14
|
+
conversation is the creation of a different tool.
|
|
15
|
+
|
|
16
|
+
Please don't start the conversation with a pull request. The code
|
|
17
|
+
should come at last, and even though it may help to convey an idea,
|
|
18
|
+
more often than not it draws the attention to a particular
|
|
19
|
+
implementation.
|
data/cuba-4.0.3/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Copyright (c) 2008-2009 Christian Neukirchen
|
|
2
|
+
Copyright (c) 2010-2015 Michel Martens
|
|
3
|
+
Copyright (c) 2010-2015 Damian Janowski
|
|
4
|
+
Copyright (c) 2010-2015 Cyril David
|
|
5
|
+
Copyright (c) 2013-2015 Francesco Rodríguez
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
THE SOFTWARE.
|