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 +4 -4
- data/app/controllers/blog/gem/blog_controller.rb +1 -1
- data/lib/blog/gem/version.rb +1 -1
- 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: 39064a0625d0619fb3eeaa0747e663be4aac6068
|
4
|
+
data.tar.gz: f7c296e0fe62bd1103d6f1827f61e7082ebed894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/blog/gem/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2017-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|