apipie-rails 0.6.0 → 0.7.2
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 +4 -4
- data/.github/workflows/build.yml +11 -4
- data/CHANGELOG.md +25 -0
- data/README.rst +20 -0
- data/apipie-rails.gemspec +3 -3
- data/app/public/apipie/javascripts/bundled/bootstrap-collapse.js +70 -41
- data/app/public/apipie/javascripts/bundled/bootstrap.js +1033 -479
- data/app/public/apipie/javascripts/bundled/jquery.js +5 -5
- data/app/public/apipie/stylesheets/bundled/bootstrap-responsive.min.css +9 -12
- data/app/public/apipie/stylesheets/bundled/bootstrap.min.css +9 -689
- data/config/locales/ko.yml +31 -0
- data/gemfiles/Gemfile.rails50 +10 -0
- data/gemfiles/Gemfile.rails51 +10 -0
- data/lib/apipie/configuration.rb +8 -3
- data/lib/apipie/dsl_definition.rb +12 -1
- data/lib/apipie/extractor/recorder.rb +1 -1
- data/lib/apipie/param_description.rb +8 -4
- data/lib/apipie/static_dispatcher.rb +3 -1
- data/lib/apipie/swagger_generator.rb +7 -1
- data/lib/apipie/version.rb +1 -1
- data/spec/controllers/users_controller_spec.rb +23 -0
- data/spec/dummy/app/controllers/users_controller.rb +6 -0
- data/spec/lib/file_handler_spec.rb +7 -0
- data/spec/lib/param_description_spec.rb +68 -0
- data/spec/lib/swagger/rake_swagger_spec.rb +15 -0
- metadata +11 -11
- data/Gemfile +0 -1
- data/gemfiles/Gemfile.rails42 +0 -15
- data/gemfiles/Gemfile.rails42.lock +0 -122
@@ -0,0 +1,31 @@
|
|
1
|
+
ko:
|
2
|
+
apipie:
|
3
|
+
resources: 리소스
|
4
|
+
resource: 리소스
|
5
|
+
description: 설명
|
6
|
+
no_docs_found: 문서를 찾을 수 없습니다.
|
7
|
+
no_docs_found_descr: 해당 API에 대한 문서를 찾을 수 없습니다.
|
8
|
+
follow_instructions_html: 해당 컨트롤러의 설명을 %{href}를 따르세요.
|
9
|
+
follow_instructions_href: 자세한 설명
|
10
|
+
oops: 이런!!
|
11
|
+
resource_not_found_html: "%{resource} 리소스를 찾을 수 없습니다."
|
12
|
+
method_not_found_html: "%{resource} 리소스에 대한 %{method} 메소드를 찾을 수 없습니다."
|
13
|
+
goto_homepage_html: "%{href}로 시도해보세요."
|
14
|
+
goto_homepage_href: "%{app_name} API 문서 페이지"
|
15
|
+
required: 필수
|
16
|
+
optional: 옵션
|
17
|
+
nil_allowed: nil 허용
|
18
|
+
param_name: Param 이름
|
19
|
+
params: Params
|
20
|
+
examples: 예시
|
21
|
+
metadata: Metadata
|
22
|
+
errors: 에러
|
23
|
+
error_code: 코드
|
24
|
+
error_description: 설명
|
25
|
+
error_metadata: Metadata
|
26
|
+
supported_formats: 지원 포멧
|
27
|
+
enable_javascript_html: "%{comments_href}를 보기 위해서 JavaScript를 허용해주세요."
|
28
|
+
comments_powered_by_disqus: comments powered by %{disqus}
|
29
|
+
api_documentation: API 문서
|
30
|
+
headers: 헤더
|
31
|
+
header_name: 헤더 이름
|
@@ -0,0 +1,10 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec path: '..'
|
4
|
+
|
5
|
+
gem 'actionpack', '~> 5.0.0'
|
6
|
+
gem 'activesupport', '~> 5.0.0'
|
7
|
+
gem 'mime-types', '~> 2.99.3'
|
8
|
+
gem 'rails-controller-testing'
|
9
|
+
|
10
|
+
gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
|
@@ -0,0 +1,10 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec path: '..'
|
4
|
+
|
5
|
+
gem 'actionpack', '~> 5.1.0'
|
6
|
+
gem 'activesupport', '~> 5.1.0'
|
7
|
+
gem 'mime-types', '~> 2.99.3'
|
8
|
+
gem 'rails-controller-testing'
|
9
|
+
|
10
|
+
gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
|
data/lib/apipie/configuration.rb
CHANGED
@@ -5,13 +5,14 @@ module Apipie
|
|
5
5
|
:markup, :disqus_shortname,
|
6
6
|
:api_base_url, :doc_base_url, :required_by_default, :layout,
|
7
7
|
:default_version, :debug, :version_in_url, :namespaced_resources,
|
8
|
-
:validate, :validate_value, :validate_presence, :validate_key, :authenticate, :doc_path,
|
8
|
+
:validate, :validate_value, :validate_presence, :validate_key, :action_on_non_validated_keys, :authenticate, :doc_path,
|
9
9
|
:show_all_examples, :process_params, :update_checksum, :checksum_path,
|
10
10
|
:link_extension, :record, :languages, :translate, :locale, :default_locale,
|
11
|
-
:persist_show_in_doc, :authorize,
|
11
|
+
:persist_show_in_doc, :authorize, :ignore_allow_blank_false,
|
12
12
|
:swagger_include_warning_tags, :swagger_content_type_input, :swagger_json_input_uses_refs,
|
13
13
|
:swagger_suppress_warnings, :swagger_api_host, :swagger_generate_x_computed_id_field,
|
14
|
-
:swagger_allow_additional_properties_in_response, :swagger_responses_use_refs
|
14
|
+
:swagger_allow_additional_properties_in_response, :swagger_responses_use_refs,
|
15
|
+
:swagger_security_definitions, :swagger_global_security
|
15
16
|
|
16
17
|
alias_method :validate?, :validate
|
17
18
|
alias_method :required_by_default?, :required_by_default
|
@@ -152,6 +153,7 @@ module Apipie
|
|
152
153
|
@validate_value = true
|
153
154
|
@validate_presence = true
|
154
155
|
@validate_key = false
|
156
|
+
@action_on_non_validated_keys = :raise
|
155
157
|
@required_by_default = false
|
156
158
|
@api_base_url = HashWithIndifferentAccess.new
|
157
159
|
@doc_base_url = "/apipie"
|
@@ -159,6 +161,7 @@ module Apipie
|
|
159
161
|
@disqus_shortname = nil
|
160
162
|
@default_version = "1.0"
|
161
163
|
@debug = false
|
164
|
+
@ignore_allow_blank_false = false
|
162
165
|
@version_in_url = true
|
163
166
|
@namespaced_resources = false
|
164
167
|
@doc_path = "doc"
|
@@ -181,6 +184,8 @@ module Apipie
|
|
181
184
|
@swagger_generate_x_computed_id_field = false
|
182
185
|
@swagger_allow_additional_properties_in_response = false
|
183
186
|
@swagger_responses_use_refs = true
|
187
|
+
@swagger_security_definitions = {}
|
188
|
+
@swagger_global_security = []
|
184
189
|
end
|
185
190
|
end
|
186
191
|
end
|
@@ -262,7 +262,9 @@ module Apipie
|
|
262
262
|
if Apipie.configuration.validate_key?
|
263
263
|
params.reject{|k,_| %w[format controller action].include?(k.to_s) }.each_pair do |param, _|
|
264
264
|
# params allowed
|
265
|
-
|
265
|
+
if method_params.select {|_,p| p.name.to_s == param.to_s}.empty?
|
266
|
+
self.class._apipie_handle_validate_key_error params, param
|
267
|
+
end
|
266
268
|
end
|
267
269
|
end
|
268
270
|
|
@@ -290,6 +292,15 @@ module Apipie
|
|
290
292
|
end
|
291
293
|
end
|
292
294
|
|
295
|
+
def _apipie_handle_validate_key_error params, param
|
296
|
+
if Apipie.configuration.action_on_non_validated_keys == :raise
|
297
|
+
raise UnknownParam, param
|
298
|
+
elsif Apipie.configuration.action_on_non_validated_keys == :skip
|
299
|
+
params.delete(param)
|
300
|
+
Rails.logger.warn(UnknownParam.new(param).to_s)
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
293
304
|
def _apipie_save_method_params(method, params)
|
294
305
|
@method_params ||= {}
|
295
306
|
@method_params[method] = params
|
@@ -150,7 +150,7 @@ module Apipie
|
|
150
150
|
end
|
151
151
|
|
152
152
|
module FunctionalTestRecording
|
153
|
-
def process(
|
153
|
+
def process(*) # action, parameters = nil, session = nil, flash = nil, http_method = 'GET')
|
154
154
|
ret = super
|
155
155
|
if Apipie.configuration.record
|
156
156
|
Apipie::Extractor.call_recorder.analyze_functional_test(self)
|
@@ -114,16 +114,20 @@ module Apipie
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def validate(value)
|
117
|
-
return true if
|
118
|
-
return true if
|
117
|
+
return true if allow_nil && value.nil?
|
118
|
+
return true if allow_blank && value.blank?
|
119
119
|
value = normalized_value(value)
|
120
|
-
if (
|
121
|
-
error =
|
120
|
+
if (!allow_nil && value.nil?) || (blank_forbidden? && value.blank?) || !validator.valid?(value)
|
121
|
+
error = validator.error
|
122
122
|
error = ParamError.new(error) unless error.is_a? StandardError
|
123
123
|
raise error
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
+
def blank_forbidden?
|
128
|
+
!Apipie.configuration.ignore_allow_blank_false && !allow_blank && !validator.is_a?(Validator::BooleanValidator)
|
129
|
+
end
|
130
|
+
|
127
131
|
def process_value(value)
|
128
132
|
value = normalized_value(value)
|
129
133
|
if @validator.respond_to?(:process_value)
|
@@ -9,7 +9,9 @@ module Apipie
|
|
9
9
|
|
10
10
|
def match?(path)
|
11
11
|
# Replace all null bytes
|
12
|
-
path = ::Rack::Utils.unescape(path || '')
|
12
|
+
path = ::Rack::Utils.unescape(path || '')
|
13
|
+
.encode(Encoding::UTF_8, invalid: :replace, replace: '')
|
14
|
+
.gsub(/\x0/, '')
|
13
15
|
|
14
16
|
full_path = path.empty? ? @root : File.join(@root, path)
|
15
17
|
paths = "#{full_path}#{ext}"
|
@@ -74,6 +74,8 @@ module Apipie
|
|
74
74
|
paths: {},
|
75
75
|
definitions: {},
|
76
76
|
tags: [],
|
77
|
+
securityDefinitions: Apipie.configuration.swagger_security_definitions,
|
78
|
+
security: Apipie.configuration.swagger_global_security
|
77
79
|
}
|
78
80
|
|
79
81
|
if Apipie.configuration.swagger_api_host
|
@@ -476,6 +478,9 @@ module Apipie
|
|
476
478
|
|
477
479
|
if swagger_def[:type] == "array"
|
478
480
|
swagger_def[:items] = {type: "string"}
|
481
|
+
enum = param_desc.options.fetch(:in, [])
|
482
|
+
|
483
|
+
swagger_def[:items][:enum] = enum if enum.any?
|
479
484
|
end
|
480
485
|
|
481
486
|
if swagger_def[:type] == "enum"
|
@@ -504,7 +509,8 @@ module Apipie
|
|
504
509
|
end
|
505
510
|
|
506
511
|
if !in_schema
|
507
|
-
|
512
|
+
# the "name" and "in" keys can only be set on root parameters (non-nested)
|
513
|
+
swagger_def[:in] = @default_value_for_param_in if name.present?
|
508
514
|
swagger_def[:required] = param_desc.required if param_desc.required
|
509
515
|
end
|
510
516
|
|
data/lib/apipie/version.rb
CHANGED
@@ -124,6 +124,29 @@ describe UsersController do
|
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
+
context "key validations are enabled and skip on non-validated keys" do
|
128
|
+
before do
|
129
|
+
Apipie.configuration.validate_value = false
|
130
|
+
Apipie.configuration.validate_presence = true
|
131
|
+
Apipie.configuration.validate_key = true
|
132
|
+
Apipie.configuration.action_on_non_validated_keys = :skip
|
133
|
+
end
|
134
|
+
|
135
|
+
it "should reply to valid request" do
|
136
|
+
expect { get :show, :params => { :id => 5, :session => 'secret_hash' }}.not_to raise_error
|
137
|
+
assert_response :success
|
138
|
+
end
|
139
|
+
|
140
|
+
it "should delete the param and not fail if an extra parameter is passed." do
|
141
|
+
expect { get :show, :params => { :id => 5 , :badparam => 'badfoo', :session => "secret_hash" }}.not_to raise_error
|
142
|
+
expect(controller.params.as_json).to eq({"session"=>"secret_hash", "id"=>"5", "controller"=>"users", "action"=>"show"})
|
143
|
+
end
|
144
|
+
|
145
|
+
after do
|
146
|
+
Apipie.configuration.action_on_non_validated_keys = :raise
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
127
150
|
context "presence and value validations are enabled" do
|
128
151
|
before do
|
129
152
|
Apipie.configuration.validate_value = true
|
@@ -274,6 +274,12 @@ class UsersController < ApplicationController
|
|
274
274
|
render :plain => 'nothing to see here'
|
275
275
|
end
|
276
276
|
|
277
|
+
api :GET, '/users/in_departments', 'show users from specific departments'
|
278
|
+
param :departments, Array, in: ["finance", "operations", "sales", "marketing", "HR"], default_value: ['sales']
|
279
|
+
def get_in_departments
|
280
|
+
render :plain => 'nothing to see here'
|
281
|
+
end
|
282
|
+
|
277
283
|
api :GET, '/users/desc_from_file', 'desc from file'
|
278
284
|
document 'users/desc_from_file.md'
|
279
285
|
def desc_from_file
|
@@ -14,5 +14,12 @@ describe Apipie::FileHandler do
|
|
14
14
|
it { expect(file_handler.match? path).to be_falsy }
|
15
15
|
it { expect { file_handler.match? path }.to_not raise_error }
|
16
16
|
end
|
17
|
+
|
18
|
+
context 'when the path contans an invalid byte sequence in UTF-8' do
|
19
|
+
let(:path) { "%B6" }
|
20
|
+
|
21
|
+
it { expect(file_handler.match? path).to be_falsy }
|
22
|
+
it { expect { file_handler.match? path }.to_not raise_error }
|
23
|
+
end
|
17
24
|
end
|
18
25
|
end
|
@@ -113,6 +113,74 @@ describe Apipie::ParamDescription do
|
|
113
113
|
|
114
114
|
end
|
115
115
|
|
116
|
+
describe 'validate' do
|
117
|
+
context 'when allow_blank is ignored, as it was before 0.7.0' do
|
118
|
+
before do
|
119
|
+
Apipie.configuration.ignore_allow_blank_false = true
|
120
|
+
end
|
121
|
+
|
122
|
+
context 'when the parameter is a boolean' do
|
123
|
+
it "should not throw an exception when passed false" do
|
124
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, :boolean).validate(false) }.to_not raise_error
|
125
|
+
end
|
126
|
+
|
127
|
+
it "should throw an exception when passed an empty value" do
|
128
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, :boolean).validate('') }.to raise_error(Apipie::ParamInvalid)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
context 'when the parameter is a string' do
|
133
|
+
context 'when allow_blank is specified as true' do
|
134
|
+
it "should throw an exception when passed an empty value" do
|
135
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, String, allow_blank: true).validate('') }.to_not raise_error
|
136
|
+
end
|
137
|
+
end
|
138
|
+
context 'when allow_blank is specified as false' do
|
139
|
+
it "should throw an exception when passed an empty value" do
|
140
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, String, allow_blank: false).validate('') }.to_not raise_error
|
141
|
+
end
|
142
|
+
end
|
143
|
+
context 'when allow_blank is not specified' do
|
144
|
+
it "should throw an exception when passed an empty value" do
|
145
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, String).validate('') }.to_not raise_error
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
after do
|
151
|
+
Apipie.configuration.ignore_allow_blank_false = false
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
context 'when the parameter is a boolean' do
|
156
|
+
it "should not throw an exception when passed false" do
|
157
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, :boolean).validate(false) }.to_not raise_error
|
158
|
+
end
|
159
|
+
|
160
|
+
it "should throw an exception when passed an empty value" do
|
161
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, :boolean).validate('') }.to raise_error(Apipie::ParamInvalid)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
context 'when the parameter is a string' do
|
166
|
+
context 'when allow_blank is specified as true' do
|
167
|
+
it "should throw an exception when passed an empty value" do
|
168
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, String, allow_blank: true).validate('') }.to_not raise_error
|
169
|
+
end
|
170
|
+
end
|
171
|
+
context 'when allow_blank is specified as false' do
|
172
|
+
it "should throw an exception when passed an empty value" do
|
173
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, String, allow_blank: false).validate('') }.to raise_error(Apipie::ParamInvalid)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
context 'when allow_blank is not specified' do
|
177
|
+
it "should throw an exception when passed an empty value" do
|
178
|
+
expect { Apipie::ParamDescription.new(method_desc, :param, String).validate('') }.to raise_error(Apipie::ParamInvalid)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
116
184
|
describe "concern substitution" do
|
117
185
|
|
118
186
|
let(:concern_dsl_data) { dsl_data.merge(:from_concern => true) }
|
@@ -51,6 +51,17 @@ describe 'rake tasks' do
|
|
51
51
|
expect(param[field]).to eq(value)
|
52
52
|
end
|
53
53
|
|
54
|
+
def expect_array_param_def(http_method, path, param_name, value)
|
55
|
+
params = apidoc_swagger["paths"][path][http_method]["parameters"]
|
56
|
+
param = params.select { |p| p if p["name"] == param_name }[0]
|
57
|
+
|
58
|
+
expect(param['type']).to eq('array')
|
59
|
+
expect(param['items']).to eq(
|
60
|
+
'type' => 'string',
|
61
|
+
'enum' => value
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
54
65
|
def expect_tags_def(http_method, path, value)
|
55
66
|
params = apidoc_swagger["paths"][path][http_method]["tags"]
|
56
67
|
expect(params).to eq(value)
|
@@ -119,6 +130,10 @@ describe 'rake tasks' do
|
|
119
130
|
expect_param_def("get", "/users/by_department", "department", "enum",
|
120
131
|
["finance", "operations", "sales", "marketing", "HR"])
|
121
132
|
|
133
|
+
expect_param_def("get", "/users/in_departments", "departments", "in", "query")
|
134
|
+
expect_array_param_def("get", "/users/in_departments", "departments",
|
135
|
+
["finance", "operations", "sales", "marketing", "HR"])
|
136
|
+
|
122
137
|
expect_tags_def("get", "/twitter_example/{id}/followers", %w[twitter_example following index search])
|
123
138
|
|
124
139
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apipie-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Pokorny
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '5.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '5.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: activesupport
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '5.0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '5.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec-rails
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,7 +164,6 @@ files:
|
|
164
164
|
- ".rspec"
|
165
165
|
- APACHE-LICENSE-2.0
|
166
166
|
- CHANGELOG.md
|
167
|
-
- Gemfile
|
168
167
|
- MIT-LICENSE
|
169
168
|
- NOTICE
|
170
169
|
- PROPOSAL_FOR_RESPONSE_DESCRIPTIONS.md
|
@@ -205,14 +204,15 @@ files:
|
|
205
204
|
- config/locales/fr.yml
|
206
205
|
- config/locales/it.yml
|
207
206
|
- config/locales/ja.yml
|
207
|
+
- config/locales/ko.yml
|
208
208
|
- config/locales/pl.yml
|
209
209
|
- config/locales/pt-BR.yml
|
210
210
|
- config/locales/ru.yml
|
211
211
|
- config/locales/tr.yml
|
212
212
|
- config/locales/zh-CN.yml
|
213
213
|
- config/locales/zh-TW.yml
|
214
|
-
- gemfiles/Gemfile.
|
215
|
-
- gemfiles/Gemfile.
|
214
|
+
- gemfiles/Gemfile.rails50
|
215
|
+
- gemfiles/Gemfile.rails51
|
216
216
|
- gemfiles/Gemfile.rails52
|
217
217
|
- gemfiles/Gemfile.rails60
|
218
218
|
- gemfiles/Gemfile.rails61
|
@@ -350,14 +350,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
350
350
|
requirements:
|
351
351
|
- - ">="
|
352
352
|
- !ruby/object:Gem::Version
|
353
|
-
version: 2.
|
353
|
+
version: 2.6.0
|
354
354
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
355
355
|
requirements:
|
356
356
|
- - ">="
|
357
357
|
- !ruby/object:Gem::Version
|
358
358
|
version: '0'
|
359
359
|
requirements: []
|
360
|
-
rubygems_version: 3.
|
360
|
+
rubygems_version: 3.1.6
|
361
361
|
signing_key:
|
362
362
|
specification_version: 4
|
363
363
|
summary: Rails REST API documentation tool
|
data/Gemfile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Gemfile.rails61
|
data/gemfiles/Gemfile.rails42
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gemspec path: '..'
|
4
|
-
|
5
|
-
gem 'actionpack', '~> 4.2.5'
|
6
|
-
gem 'activesupport', '~> 4.2.5'
|
7
|
-
gem 'mime-types', '~> 2.99.3'
|
8
|
-
gem 'sqlite3', '~> 1.3.6'
|
9
|
-
|
10
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1.0')
|
11
|
-
gem 'nokogiri', '~> 1.6.8'
|
12
|
-
gem 'rdoc', '~> 4.2.2'
|
13
|
-
end
|
14
|
-
|
15
|
-
gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
|
@@ -1,122 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../spec/dummy/components/test_engine
|
3
|
-
specs:
|
4
|
-
test_engine (0.0.1)
|
5
|
-
|
6
|
-
PATH
|
7
|
-
remote: ..
|
8
|
-
specs:
|
9
|
-
apipie-rails (0.5.20)
|
10
|
-
actionpack (>= 4.1)
|
11
|
-
activesupport (>= 4.1)
|
12
|
-
|
13
|
-
GEM
|
14
|
-
remote: https://rubygems.org/
|
15
|
-
specs:
|
16
|
-
RedCloth (4.3.2)
|
17
|
-
actionpack (4.2.11.3)
|
18
|
-
actionview (= 4.2.11.3)
|
19
|
-
activesupport (= 4.2.11.3)
|
20
|
-
rack (~> 1.6)
|
21
|
-
rack-test (~> 0.6.2)
|
22
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
23
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
24
|
-
actionview (4.2.11.3)
|
25
|
-
activesupport (= 4.2.11.3)
|
26
|
-
builder (~> 3.1)
|
27
|
-
erubis (~> 2.7.0)
|
28
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
29
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
30
|
-
activesupport (4.2.11.3)
|
31
|
-
i18n (~> 0.7)
|
32
|
-
minitest (~> 5.1)
|
33
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
34
|
-
tzinfo (~> 1.1)
|
35
|
-
addressable (2.8.0)
|
36
|
-
public_suffix (>= 2.0.2, < 5.0)
|
37
|
-
builder (3.2.4)
|
38
|
-
concurrent-ruby (1.1.10)
|
39
|
-
crass (1.0.6)
|
40
|
-
diff-lcs (1.5.0)
|
41
|
-
erubis (2.7.0)
|
42
|
-
i18n (0.9.5)
|
43
|
-
concurrent-ruby (~> 1.0)
|
44
|
-
json-schema (2.8.1)
|
45
|
-
addressable (>= 2.4)
|
46
|
-
loofah (2.15.0)
|
47
|
-
crass (~> 1.0.2)
|
48
|
-
nokogiri (>= 1.5.9)
|
49
|
-
maruku (0.7.3)
|
50
|
-
mime-types (2.99.3)
|
51
|
-
mini_portile2 (2.8.0)
|
52
|
-
minitest (5.15.0)
|
53
|
-
nokogiri (1.13.3)
|
54
|
-
mini_portile2 (~> 2.8.0)
|
55
|
-
racc (~> 1.4)
|
56
|
-
psych (4.0.3)
|
57
|
-
stringio
|
58
|
-
public_suffix (4.0.6)
|
59
|
-
racc (1.6.0)
|
60
|
-
rack (1.6.13)
|
61
|
-
rack-test (0.6.3)
|
62
|
-
rack (>= 1.0)
|
63
|
-
rails-deprecated_sanitizer (1.0.4)
|
64
|
-
activesupport (>= 4.2.0.alpha)
|
65
|
-
rails-dom-testing (1.0.9)
|
66
|
-
activesupport (>= 4.2.0, < 5.0)
|
67
|
-
nokogiri (~> 1.6)
|
68
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
69
|
-
rails-html-sanitizer (1.4.2)
|
70
|
-
loofah (~> 2.3)
|
71
|
-
railties (4.2.11.3)
|
72
|
-
actionpack (= 4.2.11.3)
|
73
|
-
activesupport (= 4.2.11.3)
|
74
|
-
rake (>= 0.8.7)
|
75
|
-
thor (>= 0.18.1, < 2.0)
|
76
|
-
rake (13.0.6)
|
77
|
-
rdoc (6.4.0)
|
78
|
-
psych (>= 4.0.0)
|
79
|
-
rspec-core (3.9.3)
|
80
|
-
rspec-support (~> 3.9.3)
|
81
|
-
rspec-expectations (3.9.4)
|
82
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
83
|
-
rspec-support (~> 3.9.0)
|
84
|
-
rspec-mocks (3.9.1)
|
85
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
-
rspec-support (~> 3.9.0)
|
87
|
-
rspec-rails (3.9.1)
|
88
|
-
actionpack (>= 3.0)
|
89
|
-
activesupport (>= 3.0)
|
90
|
-
railties (>= 3.0)
|
91
|
-
rspec-core (~> 3.9.0)
|
92
|
-
rspec-expectations (~> 3.9.0)
|
93
|
-
rspec-mocks (~> 3.9.0)
|
94
|
-
rspec-support (~> 3.9.0)
|
95
|
-
rspec-support (3.9.4)
|
96
|
-
sqlite3 (1.3.13)
|
97
|
-
stringio (3.0.1)
|
98
|
-
thor (1.2.1)
|
99
|
-
thread_safe (0.3.6)
|
100
|
-
tzinfo (1.2.9)
|
101
|
-
thread_safe (~> 0.1)
|
102
|
-
|
103
|
-
PLATFORMS
|
104
|
-
ruby
|
105
|
-
|
106
|
-
DEPENDENCIES
|
107
|
-
RedCloth
|
108
|
-
actionpack (~> 4.2.5)
|
109
|
-
activesupport (~> 4.2.5)
|
110
|
-
apipie-rails!
|
111
|
-
json-schema (~> 2.8)
|
112
|
-
maruku
|
113
|
-
mime-types (~> 2.99.3)
|
114
|
-
minitest
|
115
|
-
rake
|
116
|
-
rdoc
|
117
|
-
rspec-rails (~> 3.0)
|
118
|
-
sqlite3 (~> 1.3.6)
|
119
|
-
test_engine!
|
120
|
-
|
121
|
-
BUNDLED WITH
|
122
|
-
1.17.3
|