rack-http_router 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack-http_router/action.rb +0 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8116a8bf789a572ba51ac9b1644a88bcf7cffdd5d47533afccea57040d48556
|
4
|
+
data.tar.gz: 2c8f9d461996645b791e8087921d03d577576f56778669e8851c2cf2c3de9a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 932d5f2c0b87140b7b0f6f9fb8bdf897af1335fd950af076204449153312013cbd0d866331b3a36dd4dde5563c57ebcbd99c4d213e7fd2f7100ab8729eebc7db
|
7
|
+
data.tar.gz: 460cf2a15bfb6e3f2837f59470127a77c15cd83abb0df2c264bd9c1c70db13b733351e5534d689dbcbad3285053c1ab2bcd7e5d5159a98b14480ebd352b9a034
|
@@ -48,10 +48,6 @@ module Rack
|
|
48
48
|
Rack::HttpRouter::Action.layout(layout_path, file_path)
|
49
49
|
end
|
50
50
|
|
51
|
-
def assign(obj, hash)
|
52
|
-
Rack::HttpRouter::Action.assign(obj, hash)
|
53
|
-
end
|
54
|
-
|
55
51
|
def html(content, status: 200)
|
56
52
|
Rack::HttpRouter::Action.html(content, status: status)
|
57
53
|
end
|
@@ -166,14 +162,6 @@ module Rack
|
|
166
162
|
]
|
167
163
|
end
|
168
164
|
|
169
|
-
def assign(obj, hash)
|
170
|
-
hash.each do |k, v|
|
171
|
-
obj.define_singleton_method(k) { v }
|
172
|
-
end
|
173
|
-
|
174
|
-
obj
|
175
|
-
end
|
176
|
-
|
177
165
|
def html(content, status: 200)
|
178
166
|
[status, { 'Content-Type' => 'text/html' }, [content]]
|
179
167
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-http_router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrique F. Teixeira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubi
|