rao-api-resources_controller 0.0.13.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cb541474f989fd16ee1a043a514c9320220d777eb09842e982fca79f53232a4e
4
+ data.tar.gz: e7d5bf935d177cd2717c8026d74eb0773efcbcfcc6bbaa7985f652edf4ef62d0
5
+ SHA512:
6
+ metadata.gz: 2d0b719bc11091ddf6b891f4eab70a24949a9b1e84b09b3357016f68e46d8e5d088700ea2142848cb483a091862daf064e46c83b86b88d91f7410a64eaf00fce
7
+ data.tar.gz: 90f8fc326357e0899414c22a165df3511fb56e308e937a5cac774792fcf0da8748b12dd9ae06b02a809b88f66c337cff5918fe474e1a22bd91d337da2a5fd0a3
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2018 Roberto Vasquez Angel
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # Rao::Api:ServiceController
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+
6
+ ### Basic example
7
+
8
+ We are going to add a REST api to a basic rails model.
9
+
10
+ Assume you have a Post model:
11
+
12
+ ```ruby
13
+ # app/models/post.rb
14
+ class Post < ApplicationRecord
15
+ end
16
+ ```
17
+
18
+ To add an api endpoint at /api/posts we will need routes and an api controller.
19
+
20
+ First the routes:
21
+
22
+ ```ruby
23
+ # config/routes.rb
24
+ Rails.application.routes.draw do
25
+ namespace :api do
26
+ resources :posts
27
+ end
28
+ end
29
+ ```
30
+
31
+ Then the controller:
32
+
33
+ ```ruby
34
+ # app/controllers/api/posts_controller.rb
35
+ module Api
36
+ class PostsController < Rao::Api::ResourcesController::Base
37
+ # Here we specify the model class this controller is for.
38
+ def self.resource_class
39
+ Post
40
+ end
41
+ end
42
+ end
43
+ ```
44
+
45
+
46
+ ## Installation
47
+ Add this line to your application's Gemfile:
48
+
49
+ ```ruby
50
+ gem 'rao-api-resources_controller'
51
+ ```
52
+
53
+ And then execute:
54
+ ```bash
55
+ $ bundle
56
+ ```
57
+
58
+ Or install it yourself as:
59
+ ```bash
60
+ $ gem install rao-api-resources_controller
61
+ ```
62
+
63
+ Generate the initializer:
64
+
65
+ ```bash
66
+ $ rails g rao:api:resources_controller:install
67
+ ```
68
+
69
+ ## Contributing
70
+ Contribution directions go here.
71
+
72
+ ## License
73
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,25 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Rails Add-Ons API Resources Controller'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+ load 'rails/tasks/statistics.rake'
22
+
23
+
24
+
25
+ require 'bundler/gem_tasks'
@@ -0,0 +1,32 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::CountActionConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ if respond_to?(:before_action)
8
+ before_action :load_count, only: [:count]
9
+ else
10
+ before_filter :load_count, only: [:count]
11
+ end
12
+ end
13
+
14
+ def count
15
+ respond_to do |format|
16
+ format.json { render json: { count: @count } }
17
+ end
18
+ end
19
+
20
+ private
21
+
22
+ def load_count
23
+ scope = if respond_to?(:with_conditions_from_query, true)
24
+ scope = with_conditions_from_query(resource_class)
25
+ else
26
+ resource_class
27
+ end
28
+ @count = scope.count
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,27 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::DeleteAllActionConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ if respond_to?(:before_action)
8
+ before_action :delete_collection, only: [:delete_all]
9
+ else
10
+ before_filter :delete_collection, only: [:delete_all]
11
+ end
12
+ end
13
+
14
+ def delete_all
15
+ respond_to do |format|
16
+ format.json { render json: { count: @count } }
17
+ end
18
+ end
19
+
20
+ private
21
+
22
+ def delete_collection
23
+ @count = resource_class.delete_all
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::DestroyAllActionConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ if respond_to?(:before_action)
8
+ before_action :load_and_destroy_collection, only: [:destroy_all]
9
+ else
10
+ before_filter :load_and_destroy_collection, only: [:destroy_all]
11
+ end
12
+ end
13
+
14
+ def destroy_all
15
+ respond_to do |format|
16
+ format.json { render json: serialize_collection(@collection) }
17
+ end
18
+ end
19
+
20
+ private
21
+
22
+ def load_and_destroy_collection
23
+ @collection = resource_class.destroy_all
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,42 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::ExceptionHandlingConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ rescue_from Exception do |exception|
8
+ handle_exception(exception)
9
+ end
10
+
11
+ rescue_from ActiveRecord::RecordNotFound do |exception|
12
+ handle_404(exception)
13
+ end
14
+ end
15
+
16
+ private
17
+
18
+ def handle_404(exception = nil)
19
+ respond_to do |format|
20
+ format.json { render json: { error: (exception.try(:message) || 'Not found') }, status: 404 }
21
+ end
22
+ end
23
+
24
+ def handle_exception(exception)
25
+ if Rails.env.development? || Rails.env.test?
26
+ error = { message: exception.message }
27
+
28
+ error[:application_trace] = Rails.backtrace_cleaner.clean(exception.backtrace)
29
+ error[:full_trace] = exception.backtrace
30
+
31
+ respond_to do |format|
32
+ format.json { render json: error, status: 500 }
33
+ end
34
+ else
35
+ respond_to do |format|
36
+ format.json { render json: { error: 'Internal server error.' }, status: 500 }
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,33 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::FirstActionConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ if respond_to?(:before_action)
8
+ before_action :load_first, only: [:first]
9
+ else
10
+ before_filter :load_first, only: [:first]
11
+ end
12
+ end
13
+
14
+ def first
15
+ respond_to do |format|
16
+ if @resource.nil?
17
+ format.json { render json: nil }
18
+ else
19
+ format.json { render json: [serialize_resource(@resource)] }
20
+ end
21
+ end
22
+ end
23
+
24
+ private
25
+
26
+ def load_first
27
+ base_scope = resource_class
28
+ scope = add_conditions_from_query(base_scope)
29
+ @resource = scope.first
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,33 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::LastActionConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ if respond_to?(:before_action)
8
+ before_action :load_last, only: [:last]
9
+ else
10
+ before_filter :load_last, only: [:last]
11
+ end
12
+ end
13
+
14
+ def last
15
+ respond_to do |format|
16
+ if @resource.nil?
17
+ format.json { render json: nil }
18
+ else
19
+ format.json { render json: [serialize_resource(@resource)] }
20
+ end
21
+ end
22
+ end
23
+
24
+ private
25
+
26
+ def load_last
27
+ base_scope = resource_class
28
+ scope = add_conditions_from_query(base_scope)
29
+ @resource = scope.last
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,11 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::ResourcesConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ def resource_class
7
+ self.class.resource_class
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,110 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::RestActionsConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ include ActionController::MimeResponds
8
+
9
+ respond_to :json
10
+
11
+ if respond_to?(:before_action)
12
+ before_action :load_collection, only: [:index]
13
+ before_action :load_resource_for_show, only: [:show]
14
+ before_action :load_resource, only: [:update, :destroy, :delete]
15
+ before_action :initialize_resource_for_create, only: [:create]
16
+ else
17
+ before_filter :load_collection, only: [:index]
18
+ before_filter :load_resource_for_show, only: [:show]
19
+ before_filter :load_resource, only: [:update, :destroy, :delete]
20
+ before_filter :initialize_resource_for_create, only: [:create]
21
+ end
22
+ end
23
+
24
+ def index
25
+ respond_to do |format|
26
+ format.json { render json: serialize_collection(@collection) }
27
+ end
28
+ end
29
+
30
+ def show
31
+ respond_to do |format|
32
+ if @resource.nil?
33
+ format.json { render json: { error: "Couldn't find #{resource_class} with ID=#{params[:id]}" }, status: :not_found }
34
+ else
35
+ format.json { render json: serialize_resource(@resource), status: :ok }
36
+ end
37
+ end
38
+ end
39
+
40
+ def create
41
+ respond_to do |format|
42
+ if @resource.save
43
+ format.json { render json: serialize_resource(@resource), status: :created }
44
+ else
45
+ format.json { render json: { errors: serialize_errors(@resource.errors) }, status: 422 }
46
+ end
47
+ end
48
+ end
49
+
50
+ def update
51
+ respond_to do |format|
52
+ if @resource.update_attributes(permitted_params)
53
+ format.json { render json: serialize_resource(@resource) }
54
+ else
55
+ format.json { render json: { errors: serialize_errors(@resource.errors) }, status: 422 }
56
+ end
57
+ end
58
+ end
59
+
60
+ def destroy
61
+ @resource.destroy
62
+ respond_to do |format|
63
+ format.json { render json: serialize_resource(@resource) }
64
+ end
65
+ end
66
+
67
+ def delete
68
+ @resource.delete
69
+ respond_to do |format|
70
+ format.json { render json: serialize_resource(@resource) }
71
+ end
72
+ end
73
+
74
+ private
75
+
76
+ def load_collection
77
+ scope = if respond_to?(:with_conditions_from_query, true)
78
+ scope = with_conditions_from_query(resource_class)
79
+ else
80
+ resource_class
81
+ end
82
+ @collection = scope.all
83
+ end
84
+
85
+ def load_resource
86
+ @resource = resource_class.find(params[:id])
87
+ end
88
+
89
+ def load_resource_for_show
90
+ begin
91
+ @resource = resource_class.find(params[:id])
92
+ rescue ActiveRecord::RecordNotFound
93
+ @resource = nil
94
+ end
95
+ end
96
+
97
+ def initialize_resource
98
+ @resource = resource_class.new
99
+ end
100
+
101
+ def initialize_resource_for_create
102
+ @resource = resource_class.new(permitted_params)
103
+ end
104
+
105
+ def permitted_params
106
+ raise "not implemented"
107
+ end
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,25 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController::SerializationConcern
4
+ extend ActiveSupport::Concern
5
+
6
+ private
7
+
8
+ def serialize_collection(collection)
9
+ collection.collect do |resource|
10
+ serialize_resource(resource)
11
+ end
12
+ end
13
+
14
+ def serialize_resource(resource)
15
+ json = resource.as_json
16
+ json[:errors] = serialize_errors(resource.errors) if resource.errors.any?
17
+ json
18
+ end
19
+
20
+ def serialize_errors(errors)
21
+ errors.as_json(full_messages: true)
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,17 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController
4
+ class Base < Rao::Api::ResourcesController::Configuration.resources_controller_base_class_name.constantize
5
+ include RestActionsConcern
6
+ include ResourcesConcern
7
+ include SerializationConcern
8
+ include CountActionConcern
9
+ include DestroyAllActionConcern
10
+ include DeleteAllActionConcern
11
+ include FirstActionConcern
12
+ include LastActionConcern
13
+ include ExceptionHandlingConcern
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1 @@
1
+ de:
@@ -0,0 +1 @@
1
+ en:
@@ -0,0 +1,17 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ desc 'Generates the initializer'
7
+
8
+ source_root File.expand_path('../templates', __FILE__)
9
+
10
+ def generate_initializer
11
+ template 'initializer.rb', 'config/initializers/rao-api-resources_controller.rb'
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,7 @@
1
+ Rao::Api::ResourcesController.configure do |config|
2
+ # Set the base controller for resources controllers.
3
+ #
4
+ # default: config.resources_controller_base_class_name = '::ApplicationController'
5
+ #
6
+ config.resources_controller_base_class_name = '::ApplicationController'
7
+ end
@@ -0,0 +1,13 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController
4
+ module Configuration
5
+ def configure
6
+ yield self
7
+ end
8
+
9
+ mattr_accessor(:resources_controller_base_class_name) { '::ApplicationController' }
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ module Rao
2
+ module Api
3
+ module ResourcesController
4
+ class Engine < ::Rails::Engine
5
+ isolate_namespace Rao::Api::ResourcesController
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'rao/version'
2
+
3
+ module Rao
4
+ module Api
5
+ module ResourcesController
6
+ VERSION = ::Rao::VERSION
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ require "rao/api/resources_controller/configuration"
2
+ require "rao/api/resources_controller/version"
3
+ require "rao/api/resources_controller/engine"
4
+
5
+ module Rao
6
+ module Api
7
+ module ResourcesController
8
+ extend Configuration
9
+ end
10
+ end
11
+ end
12
+
13
+ Rao.configure { |c| c.register_configuration(:api_resources_controller, Rao::Api::ResourcesController) }
data/lib/rao/api.rb ADDED
@@ -0,0 +1,4 @@
1
+ module Rao
2
+ module Api
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ require 'rao'
2
+ require "rao/api"
3
+ require "rao/api/resources_controller"
metadata ADDED
@@ -0,0 +1,178 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rao-api-resources_controller
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.13.pre
5
+ platform: ruby
6
+ authors:
7
+ - Roberto Vasquez Angel
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rao
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
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: simplecov
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: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description:
126
+ email:
127
+ - roberto@vasquez-angel.de
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - MIT-LICENSE
133
+ - README.md
134
+ - Rakefile
135
+ - app/concerns/rao/api/resources_controller/count_action_concern.rb
136
+ - app/concerns/rao/api/resources_controller/delete_all_action_concern.rb
137
+ - app/concerns/rao/api/resources_controller/destroy_all_action_concern.rb
138
+ - app/concerns/rao/api/resources_controller/exception_handling_concern.rb
139
+ - app/concerns/rao/api/resources_controller/first_action_concern.rb
140
+ - app/concerns/rao/api/resources_controller/last_action_concern.rb
141
+ - app/concerns/rao/api/resources_controller/resources_concern.rb
142
+ - app/concerns/rao/api/resources_controller/rest_actions_concern.rb
143
+ - app/concerns/rao/api/resources_controller/serialization_concern.rb
144
+ - app/controllers/rao/api/resources_controller/base.rb
145
+ - config/locales/de.yml
146
+ - config/locales/en.yml
147
+ - lib/generators/rao/api/service_controller/install_generator.rb
148
+ - lib/generators/rao/api/service_controller/templates/initializer.rb
149
+ - lib/rao-api-resources_controller.rb
150
+ - lib/rao/api.rb
151
+ - lib/rao/api/resources_controller.rb
152
+ - lib/rao/api/resources_controller/configuration.rb
153
+ - lib/rao/api/resources_controller/engine.rb
154
+ - lib/rao/api/resources_controller/version.rb
155
+ homepage: https://github.com/rao
156
+ licenses:
157
+ - MIT
158
+ metadata: {}
159
+ post_install_message:
160
+ rdoc_options: []
161
+ require_paths:
162
+ - lib
163
+ required_ruby_version: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ required_rubygems_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">"
171
+ - !ruby/object:Gem::Version
172
+ version: 1.3.1
173
+ requirements: []
174
+ rubygems_version: 3.0.2
175
+ signing_key:
176
+ specification_version: 4
177
+ summary: API Resources Controller for Ruby on Rails.
178
+ test_files: []