barebones 1.0.0.3 → 1.0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dc79144f7b1f6d0e3e6477efd66609029b2a632
4
- data.tar.gz: f52228bb62d0b6e568424a5efecdb5a72658d7dc
3
+ metadata.gz: 5b6ecd5ef7ad77d57f2486703bce4fa9af974bca
4
+ data.tar.gz: 5b569a61a5ea35a644f79416b11ea8b04b5713ba
5
5
  SHA512:
6
- metadata.gz: cddca208d51c7bb04e419c2956b887272c6ecfac34084c6fad7571f467790fd409756186aa32164ae7cb3bc677353527fc6ed8c22b8b59c03c11c2289eac137f
7
- data.tar.gz: 74730609b7e1da1915f4d740dc2b7058292341a1412fb57ffd7a675ab3fb19c65fa9eed6c8f35d48859c169322b21b75d1bd74920a93f00b60756b0dd62f7b05
6
+ metadata.gz: 7c74b24b09689accfb663d7a4e861272a9c8d4d04724c47ab7f3a21a8464ebd78c6f11bb202f837dd2f5403b688615c590b5c65f5a4732953df3407993fd07c7
7
+ data.tar.gz: 0ee003b10f8701b285ff7bde5c733e9ebd637b3d6abea54b2d1818fdfd61a55e364a90278e5d2dfa6574d85131a09d2a4ad1b814fcb238cf240a5b35e28b2b83
@@ -3,7 +3,7 @@ require "date"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "barebones"
6
- s.version = "1.0.0.3"
6
+ s.version = "1.0.0.4"
7
7
  s.date = Date.today.to_s
8
8
  s.licenses = ['MIT']
9
9
  s.summary = "Rails template generator"
@@ -2,5 +2,5 @@ class Api::V1::ApplicationController < ActionController::Base
2
2
  include ApiDefaults
3
3
  # Prevent CSRF attacks by raising an exception.
4
4
  # For APIs, you may want to use :null_session instead.
5
- protect_from_forgery with: :null_session
5
+ protect_from_forgery unless: -> { request.format.json? }
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barebones
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.3
4
+ version: 1.0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Yu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-19 00:00:00.000000000 Z
11
+ date: 2017-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails