barthes 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/barthes/action.rb +6 -0
- data/lib/barthes/version.rb +1 -1
- metadata +4 -4
data/lib/barthes/action.rb
CHANGED
@@ -76,6 +76,12 @@ module Barthes
|
|
76
76
|
params.each do |k, v|
|
77
77
|
if v.class == String
|
78
78
|
new_v = v.gsub(/\$\{time:(.+?):(.+?)\}/) { Chronic.parse($1).strftime($2) }
|
79
|
+
new_v = v.gsub(/^\$\{base64:(.+)\}$/) do
|
80
|
+
match = $1
|
81
|
+
match = match.gsub(/\$\{(.+?)\}/) { @env[$1] }
|
82
|
+
match = match.gsub(/\@\{(.+?)\}/) { Barthes::Cache[$1] }
|
83
|
+
Base64.encode64(match)
|
84
|
+
end
|
79
85
|
new_v = new_v.gsub(/\$\{(.+?)\}/) { @env[$1] }
|
80
86
|
new_v = new_v.gsub(/\@\{(.+?)\}/) { Barthes::Cache[$1] }
|
81
87
|
else
|
data/lib/barthes/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barthes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -231,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
231
|
version: '0'
|
232
232
|
segments:
|
233
233
|
- 0
|
234
|
-
hash: -
|
234
|
+
hash: -683782512786175880
|
235
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
236
|
none: false
|
237
237
|
requirements:
|
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
240
|
version: '0'
|
241
241
|
segments:
|
242
242
|
- 0
|
243
|
-
hash: -
|
243
|
+
hash: -683782512786175880
|
244
244
|
requirements: []
|
245
245
|
rubyforge_project:
|
246
246
|
rubygems_version: 1.8.24
|