site_blog 0.11.0 → 0.13.0

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
  SHA256:
3
- metadata.gz: 17887d197e4f068342e6b4b5488168131bf0322a10bd3ed5599db3c4133677e6
4
- data.tar.gz: 6919603b9225bcdf09606af5faad5749f6864e83ce9996986e2cebd6b883ddf5
3
+ metadata.gz: '096554105a3aff053c1250f5aeb0e6921c4e0456a6b8846ca99bb94604af3032'
4
+ data.tar.gz: dbd69e2738818771b24bdae75ddbe8bd45deba6c069fc0facf6ec4b47ac538cb
5
5
  SHA512:
6
- metadata.gz: 6de7294cc0bc47e8d0b846abf65909a2d5d91f7f48c501d86ba9a691774e3370cbd2255b4538298dc2f5c57820dd738e795bfd437c8ee844943f2d05fc472ff1
7
- data.tar.gz: 4ec3a1ef2ad9c2d8c5e951982e791eacd32580c5c27e3af300ad2abbdeb33f9ce6559019c8438712c19999d1cb9b09fe06ad8c9240fac53fa5f16919af88ded1
6
+ metadata.gz: fd7701929be83bb6775dc3ace88a010804c106b144b1d69f26e7b0326820fcf674a772d2c9ee57dd47f168f6a47d22f7c41bf27427245c5da9bd4c376d06c37b
7
+ data.tar.gz: d32c0276d3eda5bbe729f1c31cb8d9d30d6e892f987476a614a679e35cdfde8f77696db2818b4d029e32f0d5142cea6000a223e06826e74986d07f1204aaabde
@@ -24,7 +24,7 @@ module SiteBlog
24
24
  private
25
25
 
26
26
  def set_host
27
- @host = !Rails.env.production? ? request.host : ''
27
+ @host = !Rails.env.production? ? "https://#{request.host}" : ''
28
28
  end
29
29
 
30
30
  end
@@ -35,8 +35,7 @@ module SiteBlog
35
35
  data = data.search(params[:query]) if params[:query].present?
36
36
  count = data.count
37
37
  data = data.order('created_at DESC')
38
- data = data.page(params[:page]).per(20)
39
- data = data.limit(params[:limit]) if params[:limit]
38
+ data = data.page(params[:page]).per(params[:limit])
40
39
 
41
40
  {
42
41
  total_count: count,
@@ -1,3 +1,3 @@
1
1
  module SiteBlog
2
- VERSION = "0.11.0"
2
+ VERSION = "0.13.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eldar