redde_seo 0.0.3 → 0.0.4

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: 82feb666ddd524614696ca376160cc7875aa48a2
4
- data.tar.gz: ec3c5d8403b46879a87c90471152a4e00098a0df
3
+ metadata.gz: 5aab502b4441399a9a16afb66cd4702e9e7a8547
4
+ data.tar.gz: e2b0ba29a2b38eec17fd6f77581148f001ec664d
5
5
  SHA512:
6
- metadata.gz: f3bd6fbb0d421082a086b0397db50aba047717dbe8e4421817b58a1a20493ebac8343c2d93a6ff60e07efab2befbcdfbabaff3c4562501fe060f5650c68079dc
7
- data.tar.gz: d23baa4ab2188924f18b1af2c622fd0f030d0973e645491920c5f9e35ed6b3e0ec75ae98ba4393d3f85e97d2083b3cfcd67e34d59224478f5d3e47c091ad8818
6
+ metadata.gz: ccfa6b0fbc6a8e9068a0951c15e67604259d20e4052929ef487f964ce088eb9ed8eb9a727b2a60f03d0ea2f7d9bafbde4c2f17f1eee747e1c370f8fd77098d2d
7
+ data.tar.gz: 313a971c1ffd79f13e2d3dc0fcd30b33cab86a5045b0dfd6abd9116f72a8c5e209388b80b7aad6c8b236b164e93d8c019d044d36c271b4b3277de5a5687e6bfa
@@ -4,7 +4,7 @@ module Redde::Seo::SeosHelper
4
4
  end
5
5
 
6
6
  def seo_url_for(seo)
7
- title = truncate(seo.url, length: 17)
7
+ title = truncate(seo.url, length: 40)
8
8
  title.present? ? title : 'НЕ ЗАПОЛНЕНО'
9
9
  end
10
10
 
@@ -18,7 +18,7 @@ module Redde::Seo::SeosHelper
18
18
  end
19
19
 
20
20
  def seo_title_for(seo)
21
- title = seo.title.present? ? seo.title : 'НЕ ЗАПОЛНЕНО'
21
+ title = seo.title.present? ? truncate(seo.title, length: 17) : 'НЕ ЗАПОЛНЕНО'
22
22
  link_to title, [:edit, :admin, seo], alt: seo.url, title: seo.url
23
23
  end
24
24
 
@@ -1,3 +1,3 @@
1
1
  module ReddeSeo
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redde_seo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Bovykin