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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66a6b1ec02239ee8de7622241d48ae770be48790
4
- data.tar.gz: b673f1df8c37f7ab820f307fdc384ad5ff6628ab
3
+ metadata.gz: e58b34ea86075f7cb44ac8ae103a3cd1d9d4dd4f
4
+ data.tar.gz: 1897ad67c7b775b9194a15794a5b1b1e82492c81
5
5
  SHA512:
6
- metadata.gz: beb48afc8636fedfd1715f6ce8113edf8ed55555d1a009bc5cd4ec7f1819cc35e3150fd02667730cda33012a3132f40d1b5fe46fd150ec62c4c71c6f48ea9c1d
7
- data.tar.gz: a166230ab9e169fde877e42f07254bd588fe04500ebbc1581b802c63a46022345690b919e680231c76f673ee2fb09d4cd7149ffa78d3ba7d975a174caca0b1cb
6
+ metadata.gz: e5770f9afa81ad04069fa6c17a39d67252a7c93d30ee888f724d78e6110e7d3b5a411c10633504fc8b2ac9d80f2c49b87b7ec6a2fdd1958a82d6260b7cdf615a
7
+ data.tar.gz: e847b7a98afb34bd2f5943f9a91f6be98d0501ad42e22e653df3415cf4086617ca0e9d34d5d5ff4bf5b508de628738b3d167c0e9e67f60cac108fa8bc5b72ec5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ants (0.3.4)
4
+ ants (0.3.5)
5
5
  devise
6
6
  mongoid (>= 4.0)
7
7
  mongoid-slug (>= 4.0.0)
data/lib/ants/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ants
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -24,16 +24,14 @@ module Ants
24
24
  slug :title
25
25
 
26
26
  ## Helpers
27
- def _list_item_title
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
- 'article'
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 || excerpt_text
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
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-30 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid