redde_seo 0.0.7 → 0.0.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38c5cf2a5f38a19bfc182b5f8d851c9a7ec8037c
4
- data.tar.gz: 79f0e68b58758d8a4795fd85187a0d175e90119f
3
+ metadata.gz: 58a06261980da4a8d4404a1bc84a0f12f472781a
4
+ data.tar.gz: 3e58265f82e2bb5e5a0fc4a9c462d2943145955b
5
5
  SHA512:
6
- metadata.gz: 9c97bbdd3c47fe6368aa9b0388a3771fc0b025342b6ce690a41107c7324dbbbabb31783dd403c34a52ff121c6e59e13c205d5704555dec744c212fd7a751a839
7
- data.tar.gz: 6d61021acaf06e801b57cbd6dcf42e9c09ac3cfdabb81c7a96f34cf80fbdc560cb0ea5158419ec9cfaf56bc427311d73d303beefaab85e40a19628cc4b5540f0
6
+ metadata.gz: 7550016b9bfd88f75c5b9df89169f10cec76c935f62413ddb67e934c8545c6c173f85f5674f33e4a9602b063f99f5b58fcd730a40bfa13c83b01b67edd2ca77e
7
+ data.tar.gz: f2821887b9936fd7505ae7486ae1e385c39ad4f7d6fd2c56b9cc3f16c12c618197b9311a9e3e43b251673580f8a47c06dc1e1bb25a6d2bdcaabf2e56e17688fe
@@ -12,8 +12,8 @@ class Redde::Seo::Finder
12
12
 
13
13
  def find
14
14
  @result = find_object_seo if object.present?
15
- @result = find_url_seo if result.nil?
16
- @result = default_seo if result.nil?
15
+ @result = find_url_seo if result.nil? || (result && result.empty?)
16
+ @result = default_seo if result.nil? || (result && result.empty?)
17
17
  @result
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module ReddeSeo
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redde_seo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Bovykin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-02 00:00:00.000000000 Z
11
+ date: 2014-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails