cheap_ams 0.10.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.travis.yml +26 -0
- data/CHANGELOG.md +13 -0
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +35 -0
- data/LICENSE.txt +22 -0
- data/README.md +348 -0
- data/Rakefile +12 -0
- data/appveyor.yml +25 -0
- data/cheap_ams.gemspec +49 -0
- data/docs/README.md +27 -0
- data/docs/general/adapters.md +51 -0
- data/docs/general/getting_started.md +73 -0
- data/docs/howto/add_pagination_links.md +112 -0
- data/docs/howto/add_root_key.md +51 -0
- data/lib/action_controller/serialization.rb +62 -0
- data/lib/active_model/serializable_resource.rb +84 -0
- data/lib/active_model/serializer/adapter/flatten_json.rb +19 -0
- data/lib/active_model/serializer/adapter/fragment_cache.rb +82 -0
- data/lib/active_model/serializer/adapter/json/fragment_cache.rb +16 -0
- data/lib/active_model/serializer/adapter/json.rb +53 -0
- data/lib/active_model/serializer/adapter/json_api/fragment_cache.rb +24 -0
- data/lib/active_model/serializer/adapter/json_api/pagination_links.rb +58 -0
- data/lib/active_model/serializer/adapter/json_api.rb +183 -0
- data/lib/active_model/serializer/adapter/null.rb +11 -0
- data/lib/active_model/serializer/adapter.rb +98 -0
- data/lib/active_model/serializer/array_serializer.rb +35 -0
- data/lib/active_model/serializer/association.rb +21 -0
- data/lib/active_model/serializer/associations.rb +97 -0
- data/lib/active_model/serializer/belongs_to_reflection.rb +10 -0
- data/lib/active_model/serializer/collection_reflection.rb +7 -0
- data/lib/active_model/serializer/configuration.rb +14 -0
- data/lib/active_model/serializer/fieldset.rb +42 -0
- data/lib/active_model/serializer/has_many_reflection.rb +10 -0
- data/lib/active_model/serializer/has_one_reflection.rb +10 -0
- data/lib/active_model/serializer/lint.rb +131 -0
- data/lib/active_model/serializer/railtie.rb +9 -0
- data/lib/active_model/serializer/reflection.rb +74 -0
- data/lib/active_model/serializer/singular_reflection.rb +7 -0
- data/lib/active_model/serializer/version.rb +5 -0
- data/lib/active_model/serializer.rb +205 -0
- data/lib/active_model_serializers.rb +29 -0
- data/lib/generators/serializer/USAGE +6 -0
- data/lib/generators/serializer/resource_override.rb +12 -0
- data/lib/generators/serializer/serializer_generator.rb +37 -0
- data/lib/generators/serializer/templates/serializer.rb +8 -0
- data/test/action_controller/adapter_selector_test.rb +53 -0
- data/test/action_controller/explicit_serializer_test.rb +134 -0
- data/test/action_controller/json_api/linked_test.rb +180 -0
- data/test/action_controller/json_api/pagination_test.rb +116 -0
- data/test/action_controller/serialization_scope_name_test.rb +67 -0
- data/test/action_controller/serialization_test.rb +426 -0
- data/test/adapter/fragment_cache_test.rb +37 -0
- data/test/adapter/json/belongs_to_test.rb +47 -0
- data/test/adapter/json/collection_test.rb +82 -0
- data/test/adapter/json/has_many_test.rb +47 -0
- data/test/adapter/json_api/belongs_to_test.rb +157 -0
- data/test/adapter/json_api/collection_test.rb +96 -0
- data/test/adapter/json_api/has_many_embed_ids_test.rb +45 -0
- data/test/adapter/json_api/has_many_explicit_serializer_test.rb +98 -0
- data/test/adapter/json_api/has_many_test.rb +145 -0
- data/test/adapter/json_api/has_one_test.rb +81 -0
- data/test/adapter/json_api/json_api_test.rb +38 -0
- data/test/adapter/json_api/linked_test.rb +283 -0
- data/test/adapter/json_api/pagination_links_test.rb +115 -0
- data/test/adapter/json_api/resource_type_config_test.rb +59 -0
- data/test/adapter/json_test.rb +47 -0
- data/test/adapter/null_test.rb +25 -0
- data/test/adapter_test.rb +52 -0
- data/test/array_serializer_test.rb +97 -0
- data/test/capture_warnings.rb +57 -0
- data/test/fixtures/active_record.rb +57 -0
- data/test/fixtures/poro.rb +266 -0
- data/test/generators/scaffold_controller_generator_test.rb +24 -0
- data/test/generators/serializer_generator_test.rb +56 -0
- data/test/lint_test.rb +44 -0
- data/test/poro_test.rb +9 -0
- data/test/serializable_resource_test.rb +27 -0
- data/test/serializers/adapter_for_test.rb +50 -0
- data/test/serializers/association_macros_test.rb +36 -0
- data/test/serializers/associations_test.rb +150 -0
- data/test/serializers/attribute_test.rb +62 -0
- data/test/serializers/attributes_test.rb +63 -0
- data/test/serializers/cache_test.rb +164 -0
- data/test/serializers/configuration_test.rb +15 -0
- data/test/serializers/fieldset_test.rb +26 -0
- data/test/serializers/meta_test.rb +121 -0
- data/test/serializers/options_test.rb +21 -0
- data/test/serializers/root_test.rb +23 -0
- data/test/serializers/serializer_for_test.rb +65 -0
- data/test/serializers/urls_test.rb +26 -0
- data/test/support/rails_app.rb +21 -0
- data/test/support/stream_capture.rb +49 -0
- data/test/support/test_case.rb +5 -0
- data/test/test_helper.rb +41 -0
- metadata +287 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module ActiveModel
|
4
|
+
class Serializer
|
5
|
+
class SerializerForTest < Minitest::Test
|
6
|
+
class ArraySerializerTest < Minitest::Test
|
7
|
+
def setup
|
8
|
+
@array = [1, 2, 3]
|
9
|
+
@previous_array_serializer = ActiveModel::Serializer.config.array_serializer
|
10
|
+
end
|
11
|
+
|
12
|
+
def teardown
|
13
|
+
ActiveModel::Serializer.config.array_serializer = @previous_array_serializer
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_serializer_for_array
|
17
|
+
serializer = ActiveModel::Serializer.serializer_for(@array)
|
18
|
+
assert_equal ActiveModel::Serializer.config.array_serializer, serializer
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_overwritten_serializer_for_array
|
22
|
+
new_array_serializer = Class.new
|
23
|
+
ActiveModel::Serializer.config.array_serializer = new_array_serializer
|
24
|
+
serializer = ActiveModel::Serializer.serializer_for(@array)
|
25
|
+
assert_equal new_array_serializer, serializer
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class SerializerTest < Minitest::Test
|
30
|
+
class MyProfile < Profile
|
31
|
+
end
|
32
|
+
class CustomProfile
|
33
|
+
def serializer_class; ProfileSerializer; end
|
34
|
+
end
|
35
|
+
|
36
|
+
def setup
|
37
|
+
@profile = Profile.new
|
38
|
+
@my_profile = MyProfile.new
|
39
|
+
@custom_profile = CustomProfile.new
|
40
|
+
@model = ::Model.new
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_serializer_for_existing_serializer
|
44
|
+
serializer = ActiveModel::Serializer.serializer_for(@profile)
|
45
|
+
assert_equal ProfileSerializer, serializer
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_serializer_for_not_existing_serializer
|
49
|
+
serializer = ActiveModel::Serializer.serializer_for(@model)
|
50
|
+
assert_equal nil, serializer
|
51
|
+
end
|
52
|
+
|
53
|
+
def test_serializer_inherited_serializer
|
54
|
+
serializer = ActiveModel::Serializer.serializer_for(@my_profile)
|
55
|
+
assert_equal ProfileSerializer, serializer
|
56
|
+
end
|
57
|
+
|
58
|
+
def test_serializer_custom_serializer
|
59
|
+
serializer = ActiveModel::Serializer.serializer_for(@custom_profile)
|
60
|
+
assert_equal ProfileSerializer, serializer
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module ActiveModel
|
4
|
+
class Serializer
|
5
|
+
class UrlsTest < Minitest::Test
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
|
9
|
+
@post = Post.new({ title: 'New Post', body: 'Body' })
|
10
|
+
@comment = Comment.new({ id: 1, body: 'ZOMG A COMMENT' })
|
11
|
+
@post.comments = [@comment]
|
12
|
+
|
13
|
+
@profile_serializer = ProfileSerializer.new(@profile)
|
14
|
+
@post_serializer = PostSerializer.new(@post)
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_urls_definition
|
18
|
+
assert_equal([:posts, :comments], @profile_serializer.class._urls)
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_url_definition
|
22
|
+
assert_equal([:comments], @post_serializer.class._urls)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class Foo < Rails::Application
|
2
|
+
if Rails::VERSION::MAJOR >= 4
|
3
|
+
config.eager_load = false
|
4
|
+
config.secret_key_base = 'abc123'
|
5
|
+
config.action_controller.perform_caching = true
|
6
|
+
config.active_support.test_order = :random
|
7
|
+
config.logger = Logger.new(nil)
|
8
|
+
ActionController::Base.cache_store = :memory_store
|
9
|
+
end
|
10
|
+
end
|
11
|
+
Foo.initialize!
|
12
|
+
|
13
|
+
module TestHelper
|
14
|
+
Routes = ActionDispatch::Routing::RouteSet.new
|
15
|
+
Routes.draw do
|
16
|
+
get ':controller(/:action(/:id))'
|
17
|
+
get ':controller(/:action)'
|
18
|
+
end
|
19
|
+
|
20
|
+
ActionController::Base.send :include, Routes.url_helpers
|
21
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Use cleaner stream testing interface from Rails 5 if available
|
2
|
+
# see https://github.com/rails/rails/blob/29959eb59d/activesupport/lib/active_support/testing/stream.rb
|
3
|
+
begin
|
4
|
+
require "active_support/testing/stream"
|
5
|
+
rescue LoadError
|
6
|
+
module ActiveSupport
|
7
|
+
module Testing
|
8
|
+
module Stream #:nodoc:
|
9
|
+
private
|
10
|
+
|
11
|
+
def silence_stream(stream)
|
12
|
+
old_stream = stream.dup
|
13
|
+
stream.reopen(IO::NULL)
|
14
|
+
stream.sync = true
|
15
|
+
yield
|
16
|
+
ensure
|
17
|
+
stream.reopen(old_stream)
|
18
|
+
old_stream.close
|
19
|
+
end
|
20
|
+
|
21
|
+
def quietly
|
22
|
+
silence_stream(STDOUT) do
|
23
|
+
silence_stream(STDERR) do
|
24
|
+
yield
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def capture(stream)
|
30
|
+
stream = stream.to_s
|
31
|
+
captured_stream = Tempfile.new(stream)
|
32
|
+
stream_io = eval("$#{stream}")
|
33
|
+
origin_stream = stream_io.dup
|
34
|
+
stream_io.reopen(captured_stream)
|
35
|
+
|
36
|
+
yield
|
37
|
+
|
38
|
+
stream_io.rewind
|
39
|
+
return captured_stream.read
|
40
|
+
ensure
|
41
|
+
captured_stream.close
|
42
|
+
captured_stream.unlink
|
43
|
+
stream_io.reopen(origin_stream)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
|
3
|
+
require 'timecop'
|
4
|
+
require 'rails'
|
5
|
+
require 'action_controller'
|
6
|
+
require 'action_controller/test_case'
|
7
|
+
require 'action_controller/railtie'
|
8
|
+
require 'active_support/json'
|
9
|
+
require 'fileutils'
|
10
|
+
FileUtils.mkdir_p(File.expand_path('../../tmp/cache', __FILE__))
|
11
|
+
|
12
|
+
require 'minitest/autorun'
|
13
|
+
# Ensure backward compatibility with Minitest 4
|
14
|
+
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
|
15
|
+
|
16
|
+
|
17
|
+
require 'capture_warnings'
|
18
|
+
@capture_warnings = CaptureWarnings.new(fail_build = true)
|
19
|
+
@capture_warnings.before_tests
|
20
|
+
if Minitest.respond_to?(:after_run)
|
21
|
+
Minitest.after_run do
|
22
|
+
@capture_warnings.after_tests
|
23
|
+
end
|
24
|
+
else
|
25
|
+
at_exit do
|
26
|
+
STDOUT.puts "Minitest.after_run not available."
|
27
|
+
@capture_warnings.after_tests
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
require 'active_model_serializers'
|
32
|
+
|
33
|
+
require 'support/stream_capture'
|
34
|
+
|
35
|
+
require 'support/rails_app'
|
36
|
+
|
37
|
+
require 'support/test_case'
|
38
|
+
|
39
|
+
require 'fixtures/active_record'
|
40
|
+
|
41
|
+
require 'fixtures/poro'
|
metadata
ADDED
@@ -0,0 +1,287 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cheap_ams
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.10.0.rc2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Steve Klabnik
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activemodel
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: actionpack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: railties
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '4.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: kaminari
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: will_paginate
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.6'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.6'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: timecop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.7'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.7'
|
111
|
+
description: ActiveModel::Serializers allows you to generate your JSON in an object-oriented
|
112
|
+
and convention-driven manner.
|
113
|
+
email:
|
114
|
+
- steve@steveklabnik.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".travis.yml"
|
121
|
+
- CHANGELOG.md
|
122
|
+
- CONTRIBUTING.md
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- appveyor.yml
|
128
|
+
- cheap_ams.gemspec
|
129
|
+
- docs/README.md
|
130
|
+
- docs/general/adapters.md
|
131
|
+
- docs/general/getting_started.md
|
132
|
+
- docs/howto/add_pagination_links.md
|
133
|
+
- docs/howto/add_root_key.md
|
134
|
+
- lib/action_controller/serialization.rb
|
135
|
+
- lib/active_model/serializable_resource.rb
|
136
|
+
- lib/active_model/serializer.rb
|
137
|
+
- lib/active_model/serializer/adapter.rb
|
138
|
+
- lib/active_model/serializer/adapter/flatten_json.rb
|
139
|
+
- lib/active_model/serializer/adapter/fragment_cache.rb
|
140
|
+
- lib/active_model/serializer/adapter/json.rb
|
141
|
+
- lib/active_model/serializer/adapter/json/fragment_cache.rb
|
142
|
+
- lib/active_model/serializer/adapter/json_api.rb
|
143
|
+
- lib/active_model/serializer/adapter/json_api/fragment_cache.rb
|
144
|
+
- lib/active_model/serializer/adapter/json_api/pagination_links.rb
|
145
|
+
- lib/active_model/serializer/adapter/null.rb
|
146
|
+
- lib/active_model/serializer/array_serializer.rb
|
147
|
+
- lib/active_model/serializer/association.rb
|
148
|
+
- lib/active_model/serializer/associations.rb
|
149
|
+
- lib/active_model/serializer/belongs_to_reflection.rb
|
150
|
+
- lib/active_model/serializer/collection_reflection.rb
|
151
|
+
- lib/active_model/serializer/configuration.rb
|
152
|
+
- lib/active_model/serializer/fieldset.rb
|
153
|
+
- lib/active_model/serializer/has_many_reflection.rb
|
154
|
+
- lib/active_model/serializer/has_one_reflection.rb
|
155
|
+
- lib/active_model/serializer/lint.rb
|
156
|
+
- lib/active_model/serializer/railtie.rb
|
157
|
+
- lib/active_model/serializer/reflection.rb
|
158
|
+
- lib/active_model/serializer/singular_reflection.rb
|
159
|
+
- lib/active_model/serializer/version.rb
|
160
|
+
- lib/active_model_serializers.rb
|
161
|
+
- lib/generators/serializer/USAGE
|
162
|
+
- lib/generators/serializer/resource_override.rb
|
163
|
+
- lib/generators/serializer/serializer_generator.rb
|
164
|
+
- lib/generators/serializer/templates/serializer.rb
|
165
|
+
- test/action_controller/adapter_selector_test.rb
|
166
|
+
- test/action_controller/explicit_serializer_test.rb
|
167
|
+
- test/action_controller/json_api/linked_test.rb
|
168
|
+
- test/action_controller/json_api/pagination_test.rb
|
169
|
+
- test/action_controller/serialization_scope_name_test.rb
|
170
|
+
- test/action_controller/serialization_test.rb
|
171
|
+
- test/adapter/fragment_cache_test.rb
|
172
|
+
- test/adapter/json/belongs_to_test.rb
|
173
|
+
- test/adapter/json/collection_test.rb
|
174
|
+
- test/adapter/json/has_many_test.rb
|
175
|
+
- test/adapter/json_api/belongs_to_test.rb
|
176
|
+
- test/adapter/json_api/collection_test.rb
|
177
|
+
- test/adapter/json_api/has_many_embed_ids_test.rb
|
178
|
+
- test/adapter/json_api/has_many_explicit_serializer_test.rb
|
179
|
+
- test/adapter/json_api/has_many_test.rb
|
180
|
+
- test/adapter/json_api/has_one_test.rb
|
181
|
+
- test/adapter/json_api/json_api_test.rb
|
182
|
+
- test/adapter/json_api/linked_test.rb
|
183
|
+
- test/adapter/json_api/pagination_links_test.rb
|
184
|
+
- test/adapter/json_api/resource_type_config_test.rb
|
185
|
+
- test/adapter/json_test.rb
|
186
|
+
- test/adapter/null_test.rb
|
187
|
+
- test/adapter_test.rb
|
188
|
+
- test/array_serializer_test.rb
|
189
|
+
- test/capture_warnings.rb
|
190
|
+
- test/fixtures/active_record.rb
|
191
|
+
- test/fixtures/poro.rb
|
192
|
+
- test/generators/scaffold_controller_generator_test.rb
|
193
|
+
- test/generators/serializer_generator_test.rb
|
194
|
+
- test/lint_test.rb
|
195
|
+
- test/poro_test.rb
|
196
|
+
- test/serializable_resource_test.rb
|
197
|
+
- test/serializers/adapter_for_test.rb
|
198
|
+
- test/serializers/association_macros_test.rb
|
199
|
+
- test/serializers/associations_test.rb
|
200
|
+
- test/serializers/attribute_test.rb
|
201
|
+
- test/serializers/attributes_test.rb
|
202
|
+
- test/serializers/cache_test.rb
|
203
|
+
- test/serializers/configuration_test.rb
|
204
|
+
- test/serializers/fieldset_test.rb
|
205
|
+
- test/serializers/meta_test.rb
|
206
|
+
- test/serializers/options_test.rb
|
207
|
+
- test/serializers/root_test.rb
|
208
|
+
- test/serializers/serializer_for_test.rb
|
209
|
+
- test/serializers/urls_test.rb
|
210
|
+
- test/support/rails_app.rb
|
211
|
+
- test/support/stream_capture.rb
|
212
|
+
- test/support/test_case.rb
|
213
|
+
- test/test_helper.rb
|
214
|
+
homepage:
|
215
|
+
licenses:
|
216
|
+
- MIT
|
217
|
+
metadata: {}
|
218
|
+
post_install_message:
|
219
|
+
rdoc_options: []
|
220
|
+
require_paths:
|
221
|
+
- lib
|
222
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
223
|
+
requirements:
|
224
|
+
- - ">="
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: 1.9.3
|
227
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
|
+
requirements:
|
229
|
+
- - ">"
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: 1.3.1
|
232
|
+
requirements: []
|
233
|
+
rubyforge_project:
|
234
|
+
rubygems_version: 2.4.5.1
|
235
|
+
signing_key:
|
236
|
+
specification_version: 4
|
237
|
+
summary: Conventions-based JSON generation for Rails.
|
238
|
+
test_files:
|
239
|
+
- test/action_controller/adapter_selector_test.rb
|
240
|
+
- test/action_controller/explicit_serializer_test.rb
|
241
|
+
- test/action_controller/json_api/linked_test.rb
|
242
|
+
- test/action_controller/json_api/pagination_test.rb
|
243
|
+
- test/action_controller/serialization_scope_name_test.rb
|
244
|
+
- test/action_controller/serialization_test.rb
|
245
|
+
- test/adapter/fragment_cache_test.rb
|
246
|
+
- test/adapter/json/belongs_to_test.rb
|
247
|
+
- test/adapter/json/collection_test.rb
|
248
|
+
- test/adapter/json/has_many_test.rb
|
249
|
+
- test/adapter/json_api/belongs_to_test.rb
|
250
|
+
- test/adapter/json_api/collection_test.rb
|
251
|
+
- test/adapter/json_api/has_many_embed_ids_test.rb
|
252
|
+
- test/adapter/json_api/has_many_explicit_serializer_test.rb
|
253
|
+
- test/adapter/json_api/has_many_test.rb
|
254
|
+
- test/adapter/json_api/has_one_test.rb
|
255
|
+
- test/adapter/json_api/json_api_test.rb
|
256
|
+
- test/adapter/json_api/linked_test.rb
|
257
|
+
- test/adapter/json_api/pagination_links_test.rb
|
258
|
+
- test/adapter/json_api/resource_type_config_test.rb
|
259
|
+
- test/adapter/json_test.rb
|
260
|
+
- test/adapter/null_test.rb
|
261
|
+
- test/adapter_test.rb
|
262
|
+
- test/array_serializer_test.rb
|
263
|
+
- test/capture_warnings.rb
|
264
|
+
- test/fixtures/active_record.rb
|
265
|
+
- test/fixtures/poro.rb
|
266
|
+
- test/generators/scaffold_controller_generator_test.rb
|
267
|
+
- test/generators/serializer_generator_test.rb
|
268
|
+
- test/lint_test.rb
|
269
|
+
- test/poro_test.rb
|
270
|
+
- test/serializable_resource_test.rb
|
271
|
+
- test/serializers/adapter_for_test.rb
|
272
|
+
- test/serializers/association_macros_test.rb
|
273
|
+
- test/serializers/associations_test.rb
|
274
|
+
- test/serializers/attribute_test.rb
|
275
|
+
- test/serializers/attributes_test.rb
|
276
|
+
- test/serializers/cache_test.rb
|
277
|
+
- test/serializers/configuration_test.rb
|
278
|
+
- test/serializers/fieldset_test.rb
|
279
|
+
- test/serializers/meta_test.rb
|
280
|
+
- test/serializers/options_test.rb
|
281
|
+
- test/serializers/root_test.rb
|
282
|
+
- test/serializers/serializer_for_test.rb
|
283
|
+
- test/serializers/urls_test.rb
|
284
|
+
- test/support/rails_app.rb
|
285
|
+
- test/support/stream_capture.rb
|
286
|
+
- test/support/test_case.rb
|
287
|
+
- test/test_helper.rb
|