seo_landing_pages 0.2.0 → 0.2.1

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: 6cec4cab3f4abdb309717bd20fc068efc9e33b9c
4
- data.tar.gz: 264bea4b83ed3efe70930eff90e22ecaaabb837a
3
+ metadata.gz: fb26c62ef093c524bb9d8d33db0815986a797555
4
+ data.tar.gz: c5c199575b532840790bfac6ccead4ad44f37079
5
5
  SHA512:
6
- metadata.gz: f5d88d0a9d15a095145bac860aaf65b7ef98afe1a7c86bee32762b809109ffdd43a23b715d23c50db00382704be4f305619bc59698fcb256918f373dec821c91
7
- data.tar.gz: 0700a977b0517f01d724561ad036092f93067b72fd839f9b0b2f7761708ad430ddffe21a47f08155d7f3931b1103127892358fa48e02b5fbaea96bcdab896b96
6
+ metadata.gz: 6f5637533ef3005f601ba227d461ae628488e9b9685c7f93f1dc6cd04fb0744a62a9f451673325fa57e0e5c26c6fd74d94efc59cff1c14991705c4b0b6002c88
7
+ data.tar.gz: 26bd218f93363da207aa73a31efc3b0d82142401cd3e04dadaba1c742ad19ec4790df29d77cdd7b4bc1b268165b2c2ad9345190d8bbdfbfe87b0529dc3be33ca
data/README.md CHANGED
@@ -127,6 +127,6 @@ a Pull Request having it ;-)
127
127
 
128
128
  ## Credits
129
129
 
130
- This gem was developed in the [Hack Week at XING Barcelona](http://www.xing.com), Big
131
- thanks to XING for providing the time to see ideas being realized.
130
+ This gem was developed in the [Hack Week at XING Barcelona](https://twitter.com/hashtag/hackweekxing).
131
+ Big thanks to XING for providing the time to see ideas being realized.
132
132
 
@@ -8,7 +8,7 @@ module SeoLandingPages
8
8
  # If the landing page title is empty it returns nothing.
9
9
  def seo_landing_page_title_tag(i18n: false)
10
10
  title = seo_landing_page_title i18n: i18n
11
- if title
11
+ if title.present?
12
12
  "<title>#{ title }</title>".html_safe
13
13
  end
14
14
  end
@@ -19,7 +19,7 @@ module SeoLandingPages
19
19
  def seo_landing_page_title(i18n: false)
20
20
  if seo_current_landing_page
21
21
  title = seo_current_landing_page.title
22
- if title
22
+ if title.present?
23
23
  i18n ? t(title) : title
24
24
  end
25
25
  end
@@ -31,7 +31,7 @@ module SeoLandingPages
31
31
  # If the landing page description is empty it returns nothing.
32
32
  def seo_landing_page_description_tag(i18n: false)
33
33
  description = seo_landing_page_description i18n: i18n
34
- if description
34
+ if description.present?
35
35
  "<meta name='description' content='#{ description }'/>".html_safe
36
36
  end
37
37
  end
@@ -43,7 +43,7 @@ module SeoLandingPages
43
43
  def seo_landing_page_description(i18n: false)
44
44
  if seo_current_landing_page
45
45
  description = seo_current_landing_page.description
46
- if description
46
+ if description.present?
47
47
  i18n ? t(description) : description
48
48
  end
49
49
  end
@@ -55,7 +55,7 @@ module SeoLandingPages
55
55
  # If the landing page keywords is empty it returns nothing.
56
56
  def seo_landing_page_keywords_tag(i18n: false)
57
57
  keywords = seo_landing_page_keywords i18n: i18n
58
- if keywords
58
+ if keywords.present?
59
59
  "<meta name='keywords' content='#{ keywords }'/>".html_safe
60
60
  end
61
61
  end
@@ -67,7 +67,7 @@ module SeoLandingPages
67
67
  def seo_landing_page_keywords(i18n: false)
68
68
  if seo_current_landing_page
69
69
  keywords = seo_current_landing_page.keywords
70
- if keywords
70
+ if keywords.present?
71
71
  i18n ? t(keywords) : keywords
72
72
  end
73
73
  end
@@ -1,4 +1,4 @@
1
1
  module SeoLandingPages
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_landing_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joaquin Rivera Padron