rails_admin_settings 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,18 +69,15 @@ module RailsAdminSettings
69
69
  end
70
70
 
71
71
  def process_text
72
- replacer = Proc.new do |m|
72
+ text = raw.dup
73
+ text.gsub!('{{year}}', Time.now.strftime('%Y'))
74
+ text.gsub! /\{\{year\|([\d]{4})\}\}/ do
73
75
  if Time.now.strftime('%Y') == $1
74
76
  $1
75
77
  else
76
78
  "#{$1}-#{Time.now.strftime('%Y')}"
77
79
  end
78
80
  end
79
-
80
- text = raw.dup
81
-
82
- text.gsub!('{{year}}', Time.now.strftime('%Y'))
83
- text.gsub!(/\{\{year\|([\d]{4})\}\}/, &replacer)
84
81
  text = text.html_safe if html_type?
85
82
  text
86
83
  end
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
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: 2013-03-26 00:00:00.000000000 Z
12
+ date: 2013-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -292,7 +292,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
292
  version: '0'
293
293
  segments:
294
294
  - 0
295
- hash: -3328257958509862173
295
+ hash: 1723205690084144871
296
296
  required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  none: false
298
298
  requirements:
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  version: '0'
302
302
  segments:
303
303
  - 0
304
- hash: -3328257958509862173
304
+ hash: 1723205690084144871
305
305
  requirements: []
306
306
  rubyforge_project:
307
307
  rubygems_version: 1.8.25