blog-gem 0.1.6 → 0.1.7

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: 6030e35b6749b5b45cd53682f686465ea1c1c160
4
- data.tar.gz: 53e0234b0cc799aea1387cc3a849d7933a8d9641
3
+ metadata.gz: 39064a0625d0619fb3eeaa0747e663be4aac6068
4
+ data.tar.gz: f7c296e0fe62bd1103d6f1827f61e7082ebed894
5
5
  SHA512:
6
- metadata.gz: 3ddf0b8eb03af59fa71037646668119f6cdd602d8d04d8470517736cfe25ef503f7be58b5a63b24a651be2a9465d478372e8a505964c16115e0a6c81e43759f5
7
- data.tar.gz: 63434b853097d0cf509ceeb5d72f98ebb91dd9b444c7d1b0a422d2bb1fb95ec7eba70d33443d9613ff3864dbfd59f1e9b85d78f5617b03d4c9cdc607d92e7f35
6
+ metadata.gz: 2af1a08c3462284e18c2e1c3df78c691ecf9f6dd8838fc0c833509e687729c9c759b5a71a5856fe89eef2c301ed1643afcdb5dd777bea070312f5be1036b5732
7
+ data.tar.gz: 6f1475c4b8a75dc45d667125aaeddeb07abfd07d371f602ec952572c67bfeb685217b8bdb834cbad230b5f616388e1c974a43489c15589ebd08e5e18405fa8e6
@@ -35,7 +35,7 @@ class Blog::Gem::BlogController < Blog::Gem::ApplicationController
35
35
  render layout: false
36
36
  end
37
37
  format.json do
38
- @posts = posts.published.all
38
+ @posts = posts.published.limit(params[:limit]||Blog::Gem.per_page).offset(params[:offset]||0)
39
39
  render json: @posts.map{|x| {id: x.id, title: x.title, teaser: x.teaser, url: x.url, tags: x.tags, category: x.category, author: x.author_name, thumbnail: x.image_url, published_at: x.published_at}}
40
40
  end
41
41
  format.html do
@@ -1,5 +1,5 @@
1
1
  module Blog
2
2
  module Gem
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blog-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Thelang
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-18 00:00:00.000000000 Z
12
+ date: 2017-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails