rblade 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/rblade/compiler/statements/compiles_form.rb +4 -5
- data/rblade.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7334cbd159959066834b8d7407b4b8e0eb8af1aa57501fd3a3ea352b1a043058
|
4
|
+
data.tar.gz: 104b6b0f7abbf9aee1f35c6ca74ffedc0c771b5d0cfe32796e593ddc55730828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9956d9b662c3bf264bdd9228087fdaf72ff51972427ae21eb1d33c10358fefcf4e0fcd1a8aa362a6df237d3cee51a3bf8d1831750b0b9e55f6e20709dcefb85
|
7
|
+
data.tar.gz: 6de71435e6f099b719b907ab9157eb117a6cd8cfd8c6854b657e533525e67d97b5e66b40ccb0aa97c91cc25fd3340897b0db75971383868e4eeaefd21ae3f44a
|
data/CHANGELOG.md
CHANGED
@@ -5,9 +5,8 @@ module RBlade
|
|
5
5
|
if args&.count != 1
|
6
6
|
raise StandardError.new "Method statement: wrong number of arguments (given #{args&.count || 0}, expecting 1)"
|
7
7
|
end
|
8
|
-
method = RBlade.h(args[0].tr("\"'", ""))
|
9
8
|
|
10
|
-
%(_out<<'<input type="hidden" name="_method" value="
|
9
|
+
%(_out<<'<input type="hidden" name="_method" value="'<<#{args[0]}<<'">';)
|
11
10
|
end
|
12
11
|
|
13
12
|
def compileDelete args
|
@@ -15,7 +14,7 @@ module RBlade
|
|
15
14
|
raise StandardError.new "Delete statement: wrong number of arguments (given #{args.count}, expecting 0)"
|
16
15
|
end
|
17
16
|
|
18
|
-
compileMethod(["DELETE"])
|
17
|
+
compileMethod(["'DELETE'"])
|
19
18
|
end
|
20
19
|
|
21
20
|
def compilePatch args
|
@@ -23,7 +22,7 @@ module RBlade
|
|
23
22
|
raise StandardError.new "Patch statement: wrong number of arguments (given #{args.count}, expecting 0)"
|
24
23
|
end
|
25
24
|
|
26
|
-
compileMethod(["PATCH"])
|
25
|
+
compileMethod(["'PATCH'"])
|
27
26
|
end
|
28
27
|
|
29
28
|
def compilePut args
|
@@ -31,7 +30,7 @@ module RBlade
|
|
31
30
|
raise StandardError.new "Put statement: wrong number of arguments (given #{args.count}, expecting 0)"
|
32
31
|
end
|
33
32
|
|
34
|
-
compileMethod(["PUT"])
|
33
|
+
compileMethod(["'PUT'"])
|
35
34
|
end
|
36
35
|
|
37
36
|
def compileOld args
|
data/rblade.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "rblade"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.5"
|
4
4
|
s.summary = "A component-first templating engine for Rails"
|
5
5
|
s.description = "RBlade is a simple, yet powerful templating engine for Ruby on Rails, inspired by Laravel Blade."
|
6
6
|
s.authors = ["Simon J"]
|