mote 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/mote +1 -1
- data/lib/mote.rb +1 -1
- data/test/mote_test.rb +5 -0
- metadata +15 -15
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 26b0b54d5537850b18d7faa452776b6d079ac0da
|
4
|
+
data.tar.gz: 8da3ff5b57972c1b4189561b660bb01e49457784
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b1110be61eedc588a5e1f3682c1dd6cf75c86655508d9adba51137e1936e86b69422a8a3f493546fdc19fb38ce22584dcd3be8b2d633e62dab6c6151681ad773
|
7
|
+
data.tar.gz: 03be6b8178add22491fefeb362b40c737f05d3248187eddd60e864180e40d92084f40cd3ce90330152c25feedadab8b6f8c435a6ea3a5d5c0c547871f9d683a1
|
data/bin/mote
CHANGED
data/lib/mote.rb
CHANGED
data/test/mote_test.rb
CHANGED
@@ -91,6 +91,11 @@ scope do
|
|
91
91
|
assert_equal "Bruno", example.call(user: "Bruno")
|
92
92
|
end
|
93
93
|
|
94
|
+
test "nil" do
|
95
|
+
example = Mote.parse("{{ user }}", TOPLEVEL_BINDING, [:user])
|
96
|
+
assert_equal "", example.call(user: nil)
|
97
|
+
end
|
98
|
+
|
94
99
|
test "curly bug" do
|
95
100
|
example = Mote.parse("{{ [1, 2, 3].map { |i| i * i }.join(',') }}")
|
96
101
|
assert_equal "1,4,9", example.call
|
metadata
CHANGED
@@ -1,27 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michel Martens
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: cutest
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
description: Mote is a very simple and fast template engine.
|
26
28
|
email:
|
27
29
|
- michel@soveran.com
|
@@ -37,30 +39,28 @@ files:
|
|
37
39
|
- lib/mote.rb
|
38
40
|
- mote.gemspec
|
39
41
|
- test/mote_test.rb
|
40
|
-
-
|
41
|
-
YmluL21vdGU=
|
42
|
+
- bin/mote
|
42
43
|
homepage: http://github.com/soveran/mote
|
43
44
|
licenses: []
|
45
|
+
metadata: {}
|
44
46
|
post_install_message:
|
45
47
|
rdoc_options: []
|
46
48
|
require_paths:
|
47
49
|
- lib
|
48
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
51
|
requirements:
|
51
|
-
- -
|
52
|
+
- - '>='
|
52
53
|
- !ruby/object:Gem::Version
|
53
54
|
version: '0'
|
54
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
56
|
requirements:
|
57
|
-
- -
|
57
|
+
- - '>='
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version:
|
62
|
+
rubygems_version: 2.0.3
|
63
63
|
signing_key:
|
64
|
-
specification_version:
|
64
|
+
specification_version: 4
|
65
65
|
summary: Minimum Operational Template.
|
66
66
|
test_files: []
|