opulent 1.8.3 → 1.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opulent/parser/node.rb +1 -1
- data/lib/opulent/tokens.rb +2 -1
- data/lib/opulent/version.rb +1 -1
- data/opulent.gemspec +2 -2
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43decf33dbeeeaca0c8bdd91d708c2915077b213
|
4
|
+
data.tar.gz: 591bbd86398805f2cdeb2d6d09ee62a0acaf4a68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21449222466f9b1d6dba9b4bffab2bea4bdd39d22e97caac3cb96921f7315829a375e795ddf4e2c8114c4ea4c96206bf0863a56548e263e868217736be518026
|
7
|
+
data.tar.gz: 09c7dd825889c97c1e6327f75d0c10d337f1dec3c4e566925149b3d2dd0de62648e912b1979025287284befbf5a459a8fb6bbe926dc600383a539bce1938100e
|
data/lib/opulent/parser/node.rb
CHANGED
@@ -169,7 +169,7 @@ module Opulent
|
|
169
169
|
escaped = accept(:unescaped_value) ? false : true
|
170
170
|
|
171
171
|
# Get the attribute value and process it
|
172
|
-
if (value = accept(:
|
172
|
+
if (value = accept(:shorthand_node))
|
173
173
|
value = [:expression, value.inspect, { escaped: escaped }]
|
174
174
|
elsif (value = accept(:exp_string))
|
175
175
|
value = [:expression, value, { escaped: escaped }]
|
data/lib/opulent/tokens.rb
CHANGED
@@ -20,7 +20,8 @@ module Opulent
|
|
20
20
|
|
21
21
|
# Shorthand attributes
|
22
22
|
shorthand: /\A[\.\#\&]/,
|
23
|
-
|
23
|
+
shorthand_node: /\A\-?\w+(\-\w+)*/,
|
24
|
+
shorthand_lookahead: /\A[\.\#\&][a-zA-Z\-\_\(\"]/,
|
24
25
|
|
25
26
|
# Leading and trailing whitespace
|
26
27
|
leading_whitespace: /\A(\')/,
|
data/lib/opulent/version.rb
CHANGED
data/opulent.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Alex Grozav"]
|
10
10
|
spec.email = ["alex@grozav.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description = %q{Opulent is
|
12
|
+
spec.summary = %q{Template Engine for Creative Web Developers}
|
13
|
+
spec.description = %q{Opulent is a templating engine which strives to make page markup as beautiful and expressive as it should be. It's blazing fast, offers useful reusable component definitions and encourages well organised front end code. Opulent provides the cleanliness, readability and development speed you need for your project.}
|
14
14
|
spec.homepage = "http://opulent.io"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opulent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Grozav
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,8 +80,10 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.3.0
|
83
|
-
description: Opulent is
|
84
|
-
|
83
|
+
description: Opulent is a templating engine which strives to make page markup as beautiful
|
84
|
+
and expressive as it should be. It's blazing fast, offers useful reusable component
|
85
|
+
definitions and encourages well organised front end code. Opulent provides the cleanliness,
|
86
|
+
readability and development speed you need for your project.
|
85
87
|
email:
|
86
88
|
- alex@grozav.com
|
87
89
|
executables:
|
@@ -186,5 +188,5 @@ rubyforge_project:
|
|
186
188
|
rubygems_version: 2.5.1
|
187
189
|
signing_key:
|
188
190
|
specification_version: 4
|
189
|
-
summary:
|
191
|
+
summary: Template Engine for Creative Web Developers
|
190
192
|
test_files: []
|