ants 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ants/version.rb +1 -1
- data/lib/concerns/ants/content.rb +4 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e58b34ea86075f7cb44ac8ae103a3cd1d9d4dd4f
|
4
|
+
data.tar.gz: 1897ad67c7b775b9194a15794a5b1b1e82492c81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5770f9afa81ad04069fa6c17a39d67252a7c93d30ee888f724d78e6110e7d3b5a411c10633504fc8b2ac9d80f2c49b87b7ec6a2fdd1958a82d6260b7cdf615a
|
7
|
+
data.tar.gz: e847b7a98afb34bd2f5943f9a91f6be98d0501ad42e22e653df3415cf4086617ca0e9d34d5d5ff4bf5b508de628738b3d167c0e9e67f60cac108fa8bc5b72ec5
|
data/Gemfile.lock
CHANGED
data/lib/ants/version.rb
CHANGED
@@ -24,16 +24,14 @@ module Ants
|
|
24
24
|
slug :title
|
25
25
|
|
26
26
|
## Helpers
|
27
|
-
|
28
|
-
title
|
29
|
-
end
|
27
|
+
alias_attribute :_list_item_title, :title
|
30
28
|
|
31
29
|
def canonical_url
|
32
30
|
"#{protocole}#{host}/#{slug}"
|
33
31
|
end
|
34
32
|
|
35
33
|
def meta_type
|
36
|
-
|
34
|
+
"article"
|
37
35
|
end
|
38
36
|
|
39
37
|
def meta_title
|
@@ -41,7 +39,7 @@ module Ants
|
|
41
39
|
end
|
42
40
|
|
43
41
|
def meta_description
|
44
|
-
_meta_description.presence
|
42
|
+
_meta_description.presence
|
45
43
|
end
|
46
44
|
|
47
45
|
def meta_keywords
|
@@ -57,7 +55,7 @@ module Ants
|
|
57
55
|
url
|
58
56
|
end
|
59
57
|
else
|
60
|
-
|
58
|
+
""
|
61
59
|
end
|
62
60
|
end
|
63
61
|
|
@@ -70,14 +68,6 @@ module Ants
|
|
70
68
|
def protocole
|
71
69
|
@protocole ||= Rails.application.config.force_ssl ? "https://" : "http://"
|
72
70
|
end
|
73
|
-
|
74
|
-
private
|
75
|
-
|
76
|
-
def excerpt_text
|
77
|
-
ActionController::Base.helpers.strip_tags(excerpt_html).
|
78
|
-
gsub("\n", "").
|
79
|
-
gsub("\r", "") # ADD LIMIT HERE WITH TRUNCATION
|
80
|
-
end
|
81
71
|
end
|
82
72
|
end
|
83
73
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ants
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|