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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72ded218986890ab953e08fd2827246f536c98e6
4
- data.tar.gz: e3499a4fb82bec5a3d5d0f0a4fd6db718ba7474e
3
+ metadata.gz: 788584d1b8ef4f846b4a51c7d704e95090339842
4
+ data.tar.gz: 82bfb35d3fb551a10582276cf9857c3202220da3
5
5
  SHA512:
6
- metadata.gz: 774763f7e32f619b9d3fd55726944cd9a14b485046ecbefef9269d701ced77e0c957996529861af11ca69968a023175641043dd072f9a459e54b917a760a9f9a
7
- data.tar.gz: 48aaf1f0e22df3c6302c12ef6de6af79d2df94977b230bfed60aab6d7a6dd290a4630c6fe6b404ada233521ab7170a748f5a8438f8d85846420d4426dc37dd99
6
+ metadata.gz: aafb8f95cb16d91d7ce73672d90e41b66aa1655323c0dbf3be51eed54c2fcc5a52bef80a9fd4914db4d8441126650e7cc9fdf7434dae83f50fa5816cae4ddafd
7
+ data.tar.gz: 517fd236467dbdbc4fe0b6846a23fb98750aa709b5df0d95e258e6a232712a7c0e64df058797bbff5235c2eb30e4c008552bc3be3fd804f8565cd0181a36448a
@@ -12,10 +12,10 @@ module Florrick
12
12
 
13
13
  def output
14
14
  string = @original_string.dup
15
- string.gsub(/(\{\{([(\w+)\.]+)(?>\ ?\|\ ?([\w\-\+\ \!\?\[\]\(\)]+))?\}\})/) do
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
 
@@ -1,3 +1,3 @@
1
1
  module Florrick
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
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.2
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-28 00:00:00.000000000 Z
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.2.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