snipp 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,8 +5,7 @@ module Snipp
5
5
  def set_html_meta args, options = {}
6
6
  i18n_options = {
7
7
  scope: [:views, params[:controller], params[:action], :meta],
8
- default_scope: [:default, :meta],
9
- default: ''
8
+ default_scope: [:default, :meta]
10
9
  }.merge(options)
11
10
 
12
11
  link = args.delete(:link)
@@ -59,7 +58,7 @@ module Snipp
59
58
  end
60
59
  else
61
60
  result = content
62
- result = I18n.t(property, options) if result.blank?
61
+ result = I18n.t(property, options.merge(default: '')) if result.blank?
63
62
  result = I18n.t(property, scope: options[:default_scope], default: '') if result.blank?
64
63
  end
65
64
  result
data/lib/snipp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Snipp
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snipp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.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-08-22 00:00:00.000000000 Z
12
+ date: 2013-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails