agi_active_model_serializers 0.10.8 → 0.10.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_model/serializer/version.rb +1 -1
- data/test/active_model_serializers/railtie_test_isolated.rb +2 -2
- data/test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb +2 -2
- data/test/active_model_serializers/serialization_context_test_isolated.rb +1 -1
- data/test/benchmark/app.rb +1 -1
- data/test/serializers/caching_configuration_test_isolated.rb +1 -1
- data/test/support/isolated_unit.rb +2 -2
- data/test/test_helper.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4ea978aebbb802806131d16e555e2cb794c2c79
|
4
|
+
data.tar.gz: 7750ceb83239cb4792d2124a3b92b3d26431717a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc61279a23056f2804c5768f4e6f68a330383bdb4a321eb3bfe8169d128b96b43f928b542d05eb6d8458d8a7c254a36c43c49d7c741a8f48e12fc1b5dc02535e
|
7
|
+
data.tar.gz: 658e4e11b7de74160bc4ae6da916f4d3ab7a8f2ddf3f30c58ccaad8be430ff25082ed4e18eea82976f21b4650ec9750a92075e00a35ce91a89c3cb6af7ab1074
|
@@ -7,7 +7,7 @@ class RailtieTest < ActiveSupport::TestCase
|
|
7
7
|
class WithRails < RailtieTest
|
8
8
|
setup do
|
9
9
|
require 'rails'
|
10
|
-
require '
|
10
|
+
require 'agi_active_model_serializers'
|
11
11
|
make_basic_app
|
12
12
|
end
|
13
13
|
|
@@ -38,7 +38,7 @@ class RailtieTest < ActiveSupport::TestCase
|
|
38
38
|
|
39
39
|
class WithoutRails < RailtieTest
|
40
40
|
setup do
|
41
|
-
require '
|
41
|
+
require 'agi_active_model_serializers'
|
42
42
|
make_basic_app
|
43
43
|
end
|
44
44
|
|
@@ -58,7 +58,7 @@ class JsonApiRendererTest < ActionDispatch::IntegrationTest
|
|
58
58
|
require 'rails'
|
59
59
|
require 'active_record'
|
60
60
|
require 'support/rails5_shims'
|
61
|
-
require '
|
61
|
+
require 'agi_active_model_serializers'
|
62
62
|
require 'fixtures/poro'
|
63
63
|
|
64
64
|
make_basic_app
|
@@ -103,7 +103,7 @@ class JsonApiRendererTest < ActionDispatch::IntegrationTest
|
|
103
103
|
require 'rails'
|
104
104
|
require 'active_record'
|
105
105
|
require 'support/rails5_shims'
|
106
|
-
require '
|
106
|
+
require 'agi_active_model_serializers'
|
107
107
|
require 'fixtures/poro'
|
108
108
|
require 'active_model_serializers/register_jsonapi_renderer'
|
109
109
|
|
@@ -20,7 +20,7 @@ class SerializationContextTest < ActiveSupport::TestCase
|
|
20
20
|
|
21
21
|
setup do
|
22
22
|
require 'rails'
|
23
|
-
require '
|
23
|
+
require 'agi_active_model_serializers'
|
24
24
|
make_basic_app
|
25
25
|
@context = ActiveModelSerializers::SerializationContext.new(create_request)
|
26
26
|
end
|
data/test/benchmark/app.rb
CHANGED
@@ -52,7 +52,7 @@ class BenchmarkApp < Rails::Application
|
|
52
52
|
config.log_level = :info
|
53
53
|
end
|
54
54
|
|
55
|
-
require '
|
55
|
+
require 'agi_active_model_serializers'
|
56
56
|
|
57
57
|
# Initialize app before any serializers are defined, for running across revisions.
|
58
58
|
# ref: https://github.com/rails-api/active_model_serializers/pull/1478
|
@@ -9,7 +9,7 @@ class CachingConfigurationTest < ActiveSupport::TestCase
|
|
9
9
|
# AMS needs to be required before Rails.application is initialized for
|
10
10
|
# Railtie's to fire in Rails.application.initialize!
|
11
11
|
# (and make_basic_app initializes the app)
|
12
|
-
require '
|
12
|
+
require 'agi_active_model_serializers'
|
13
13
|
# Create serializers before Rails.application.initialize!
|
14
14
|
# To ensure we're testing that the cache settings depend on
|
15
15
|
# the Railtie firing, not on the ActionController being loaded.
|
@@ -10,7 +10,7 @@
|
|
10
10
|
# class WithRailsDefinedOnLoad < RailtieTest
|
11
11
|
# setup do
|
12
12
|
# require 'rails'
|
13
|
-
# require '
|
13
|
+
# require 'agi_active_model_serializers'
|
14
14
|
# make_basic_app
|
15
15
|
# end
|
16
16
|
#
|
@@ -19,7 +19,7 @@
|
|
19
19
|
#
|
20
20
|
# class WithoutRailsDefinedOnLoad < RailtieTest
|
21
21
|
# setup do
|
22
|
-
# require '
|
22
|
+
# require 'agi_active_model_serializers'
|
23
23
|
# make_basic_app
|
24
24
|
# end
|
25
25
|
#
|
data/test/test_helper.rb
CHANGED
@@ -15,7 +15,7 @@ require 'rails'
|
|
15
15
|
require 'action_controller'
|
16
16
|
require 'action_controller/test_case'
|
17
17
|
require 'action_controller/railtie'
|
18
|
-
require '
|
18
|
+
require 'agi_active_model_serializers'
|
19
19
|
# For now, we only restrict the options to serializable_hash/as_json/to_json
|
20
20
|
# in tests, to ensure developers don't add any unsupported options.
|
21
21
|
# There's no known benefit, at this time, to having the filtering run in
|