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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4eaf1c781940b63c1fbce747b329bde6762e2cea0b9be799101cdc5ec0ce77d
4
- data.tar.gz: 91f44d2f8794a764520106c956401c02f0c2fef52157e625be7665c9017fa601
3
+ metadata.gz: 287dbb619eaa2542331bdfe1c4dc85b167fd5d278ccb29d9e8c6efc9f7018f25
4
+ data.tar.gz: 76d078511d927554643d36f55b1180c145150d0ad57e66531b657a3f9b066954
5
5
  SHA512:
6
- metadata.gz: 0e7799d17276f86313a788945cdfbf4bd28faaec669b613c3890b4139830064d6e486ea40e35bda96c96569d3012333b907e0ac8c67429e205b86181b2fb5ce8
7
- data.tar.gz: ae72958a087df3b94f648045730fb5450a1369c9608236534ee30ac76825efc9f8b8f05f04dfb2d2067d9d479a4768dcac3cd60b34e7f333638c6ef9c8a96a3a
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=2002e6cb033fc09cb3a764c5d1622f756e0c2d2b61f0a62e51b8e38070cdff00
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
- [![Maintainability](https://api.codeclimate.com/v1/badges/d1e81476a4c63779815e/maintainability)](https://codeclimate.com/github/hausgold/railsful/maintainability)
3
- [![Test Coverage](https://api.codeclimate.com/v1/badges/d1e81476a4c63779815e/test_coverage)](https://codeclimate.com/github/hausgold/railsful/test_coverage)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Railsful
4
- VERSION = '0.1.3'.freeze
4
+ VERSION = '0.2.0'.freeze
5
5
  end
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.1.3
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-01-17 00:00:00.000000000 Z
12
+ date: 2019-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: deep_merge