florrick 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/florrick/builder.rb +3 -3
- data/lib/florrick/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 788584d1b8ef4f846b4a51c7d704e95090339842
|
4
|
+
data.tar.gz: 82bfb35d3fb551a10582276cf9857c3202220da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aafb8f95cb16d91d7ce73672d90e41b66aa1655323c0dbf3be51eed54c2fcc5a52bef80a9fd4914db4d8441126650e7cc9fdf7434dae83f50fa5816cae4ddafd
|
7
|
+
data.tar.gz: 517fd236467dbdbc4fe0b6846a23fb98750aa709b5df0d95e258e6a232712a7c0e64df058797bbff5235c2eb30e4c008552bc3be3fd804f8565cd0181a36448a
|
data/lib/florrick/builder.rb
CHANGED
@@ -12,10 +12,10 @@ module Florrick
|
|
12
12
|
|
13
13
|
def output
|
14
14
|
string = @original_string.dup
|
15
|
-
string.gsub(/(\{\{([
|
15
|
+
string.gsub(/(\{\{\s*([\w+\.]+)(?>\ ?\|\ ?([\w\-\+\ \!\?\[\]\(\)]+))?\s*\}\})/) do
|
16
16
|
original_string = $1
|
17
|
-
fallback_string = $3
|
18
|
-
parts = $2.split('.')
|
17
|
+
fallback_string = $3 ? $3.strip : nil
|
18
|
+
parts = $2.downcase.split('.')
|
19
19
|
final_string = nil
|
20
20
|
previous_object = @objects[parts.shift.to_sym]
|
21
21
|
|
data/lib/florrick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: florrick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Rails extension for providing awesome user-initiated string interpolation
|
14
14
|
email:
|
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
47
|
rubyforge_project:
|
48
|
-
rubygems_version: 2.
|
48
|
+
rubygems_version: 2.4.5
|
49
49
|
signing_key:
|
50
50
|
specification_version: 4
|
51
51
|
summary: A Rails extension for providing awesome user-initiated string interpolation
|