jsonapi_suite 0.2.1 → 0.5.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
  SHA1:
3
- metadata.gz: e5a4fb62c94c1e8dfd278e9a069a8a4f8d50cb2c
4
- data.tar.gz: a33210d61f6a5e49e0fc1c1f8e6c2641982802cc
3
+ metadata.gz: 8dc13ae4e08232332709201174753213a5fd5da4
4
+ data.tar.gz: 0118b818c4508dd1370eb11441b21810feffb419
5
5
  SHA512:
6
- metadata.gz: 50801e18b7ad6ae26f4d004745c8293bc0a75c82a4914bf72e8347b9be090ac7a236965c7baeaf7bd6b85768982da65bfc756c8347ff37bf39a09bf6d61ad6af
7
- data.tar.gz: b0ad36065fa8a22a5fdcc85bc1e747ada7f74bffab914fe6eef282cc0642baf13b7a35df12ecbf919881615f0bd104923e0ca9171cf7fba9eca5fbbe2316bed8
6
+ metadata.gz: d84e406cb41839890932b844713f42d5f2306e0c5e2e3347268f58338532fc9d5c8df6c35057f59e8462156c2cf923ed4f4b09d6687315b43317e67bdee696d9
7
+ data.tar.gz: be7458647ebcca4146b54b499586a3d7fc91c943194ce03dfd23795eb4c06ade0f37d7559ea5007664b96e510f677da74e99849de3c83cdfd438441ef0981860
@@ -2,7 +2,11 @@ module JsonapiSuite
2
2
  module ControllerMixin
3
3
  def self.included(klass)
4
4
  klass.class_eval do
5
- include JsonapiCompliable
5
+ if defined?(Rails)
6
+ include JsonapiCompliable::Rails
7
+ else
8
+ include JsonapiCompliable::Base
9
+ end
6
10
  include JsonapiErrorable
7
11
  include StrongResources::Controller::Mixin
8
12
  end
@@ -1,3 +1,3 @@
1
1
  module JsonapiSuite
2
- VERSION = "0.2.1"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_suite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-09 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails