railsful 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/README.md +6 -2
- data/lib/railsful/serializable.rb +10 -0
- data/lib/railsful/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 287dbb619eaa2542331bdfe1c4dc85b167fd5d278ccb29d9e8c6efc9f7018f25
|
4
|
+
data.tar.gz: 76d078511d927554643d36f55b1180c145150d0ad57e66531b657a3f9b066954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5dbe0c90a4f3104bcac9b2eb41c289b4c3a11adff09884f020d5eaf0f5321290e8970d71ea084cb7a4798cf6bfd7d6da429a2a5e61339e6bdd1c427fb50a174
|
7
|
+
data.tar.gz: aec33b3ee51fcd7338a0e83b6306bdf2e42e9fd7bbd35ec4cefa9e0dc584506f7aaafc61c1dba37d61474786af67e9e7caf5c10dc1468f95167e2a45c04a4344
|
data/.travis.yml
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
sudo: false
|
2
2
|
env:
|
3
3
|
global:
|
4
|
-
- CC_TEST_REPORTER_ID=
|
4
|
+
- CC_TEST_REPORTER_ID=8d58c3ef3ddae0beacbd0bc989e55b75a729e5d1c53926b6a663dfc4382761af
|
5
5
|
language: ruby
|
6
6
|
rvm:
|
7
7
|
- 2.6
|
8
8
|
- 2.5
|
9
9
|
- 2.4
|
10
10
|
- 2.3
|
11
|
+
before_install: gem install bundler
|
11
12
|
before_script:
|
12
13
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
13
14
|
- chmod +x ./cc-test-reporter
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Railsful
|
2
|
-
|
3
|
-
[![
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.com/hausgold/railsful.svg?branch=master)](https://travis-ci.com/hausgold/railsful)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/railsful.svg)](https://badge.fury.io/rb/railsful)
|
5
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/280110b88c5de6b6c472/maintainability)](https://codeclimate.com/repos/5cac8bcf6969c376b7007d57/maintainability)
|
6
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/280110b88c5de6b6c472/test_coverage)](https://codeclimate.com/repos/5cac8bcf6969c376b7007d57/test_coverage)
|
7
|
+
[![API docs](https://img.shields.io/badge/docs-API-blue.svg)](https://www.rubydoc.info/gems/railsful)
|
4
8
|
|
5
9
|
A small but helpful collection of concerns and tools to create
|
6
10
|
a restful JSON API compliant Rails application.
|
@@ -3,6 +3,16 @@
|
|
3
3
|
module Railsful
|
4
4
|
module Serializable
|
5
5
|
def render(options = nil, extra_options = {}, &block)
|
6
|
+
|
7
|
+
# In case we see regular page-render requests like:
|
8
|
+
#
|
9
|
+
# render :index, layout: true
|
10
|
+
#
|
11
|
+
# we just pass them through without modification to Rails.
|
12
|
+
if options.is_a?(Symbol) || extra_options.key?(:layout)
|
13
|
+
return super(*[options, extra_options], &block)
|
14
|
+
end
|
15
|
+
|
6
16
|
super(fast_jsonapi_options(options), extra_options, &block)
|
7
17
|
end
|
8
18
|
|
data/lib/railsful/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Vogt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: deep_merge
|