apipie-rails 0.5.15 → 0.5.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +18 -19
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -1
- data/Gemfile.rails42 +1 -0
- data/Gemfile.rails60 +12 -0
- data/README.rst +13 -4
- data/lib/apipie/application.rb +1 -2
- data/lib/apipie/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 76693e27a28b80ae01788b2e561edf21c696281dfc2e4136849dfbc4c4f32c15
|
4
|
+
data.tar.gz: 7143177bc11ccf92dec72f636683a46561ac05eaf5e788a1f3184028a6ed7dfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d3e61a2f83762bbdcd2d90393f14a617ba0dac25f0a7367d20faa36f7d2829577c34db65ab2fe7902ee133b080030fe7460cea2b56e167b772a12d86a9aef4c
|
7
|
+
data.tar.gz: a2dec8a9cadfbf5ed44df8868c23af5ed8de9eff3b349222a2a829ee09773725e6dabbd1af6f155a1d1800a1636284f2db37f683c3f30b70dfa6442a71f77972
|
data/.travis.yml
CHANGED
@@ -1,27 +1,26 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
|
+
before_install: >-
|
4
|
+
if ruby -v | grep 'ruby 2.2'; then
|
5
|
+
gem install bundler -v '~> 1.17'
|
6
|
+
fi
|
3
7
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.
|
8
|
+
- 2.2.10
|
9
|
+
- 2.3.8
|
10
|
+
- 2.4.5
|
11
|
+
- 2.5.3
|
12
|
+
- 2.6.0
|
9
13
|
gemfile:
|
10
|
-
- Gemfile.rails41
|
11
14
|
- Gemfile.rails42
|
12
|
-
- Gemfile.rails50 # Min ruby 2.2.2
|
13
15
|
- Gemfile.rails51 # Min ruby 2.2.2
|
16
|
+
- Gemfile.rails60 # Min ruby 2.5.0
|
14
17
|
matrix:
|
15
18
|
exclude:
|
16
|
-
- rvm: 2.
|
17
|
-
gemfile: Gemfile.
|
18
|
-
- rvm: 2.
|
19
|
-
gemfile: Gemfile.
|
20
|
-
- rvm: 2.
|
21
|
-
gemfile: Gemfile.
|
22
|
-
- rvm: 2.
|
23
|
-
gemfile: Gemfile.
|
24
|
-
- rvm: 2.4.3
|
25
|
-
gemfile: Gemfile.rails41
|
26
|
-
- rvm: 2.5.0
|
27
|
-
gemfile: Gemfile.rails41
|
19
|
+
- rvm: 2.6.0
|
20
|
+
gemfile: Gemfile.rails42
|
21
|
+
- rvm: 2.2.10
|
22
|
+
gemfile: Gemfile.rails60
|
23
|
+
- rvm: 2.3.8
|
24
|
+
gemfile: Gemfile.rails60
|
25
|
+
- rvm: 2.4.5
|
26
|
+
gemfile: Gemfile.rails60
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
Changelog
|
2
2
|
===========
|
3
3
|
|
4
|
+
[v0.5.16](https://github.com/Apipie/apipie-rails/tree/v0.5.16) (2019-05-22)
|
5
|
+
--------
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/Apipie/apipie-rails/compare/v0.5.15...v0.5.16)
|
8
|
+
|
9
|
+
- Load file directly instead of using Rails constant [\#665](https://github.com/Apipie/apipie-rails/pull/665) ([speckins](https://github.com/speckins))
|
10
|
+
|
4
11
|
[v0.5.15](https://github.com/Apipie/apipie-rails/tree/v0.5.15) (2019-01-03)
|
5
12
|
--------
|
6
13
|
[Full Changelog](https://github.com/Apipie/apipie-rails/compare/v0.5.14...v0.5.15)
|
data/Gemfile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Gemfile.rails50
|
1
|
+
./Gemfile.rails50
|
data/Gemfile.rails42
CHANGED
data/Gemfile.rails60
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
gem 'rails', '~> 6.0.0.rc1'
|
6
|
+
gem 'mime-types', '~> 2.99.3'
|
7
|
+
gem 'rails-controller-testing'
|
8
|
+
gem 'rspec-rails', git: 'https://github.com/rspec/rspec-rails', branch: '4-0-dev'
|
9
|
+
gem 'rspec-core', git: 'https://github.com/rspec/rspec-core'
|
10
|
+
gem 'rspec-mocks', git: 'https://github.com/rspec/rspec-mocks'
|
11
|
+
gem 'rspec-support', git: 'https://github.com/rspec/rspec-support'
|
12
|
+
gem 'rspec-expectations', git: 'https://github.com/rspec/rspec-expectations'
|
data/README.rst
CHANGED
@@ -45,7 +45,7 @@ Now you can start documenting your resources and actions (see
|
|
45
45
|
.. code:: ruby
|
46
46
|
|
47
47
|
api :GET, '/users/:id'
|
48
|
-
param :id, :number
|
48
|
+
param :id, :number, desc: 'id of the requested user'
|
49
49
|
def show
|
50
50
|
# ...
|
51
51
|
end
|
@@ -1237,10 +1237,15 @@ override parameters described on the resource level.
|
|
1237
1237
|
#...
|
1238
1238
|
end
|
1239
1239
|
|
1240
|
-
|
1241
|
-
|
1240
|
+
NumberValidator
|
1241
|
+
---------------
|
1242
1242
|
|
1243
|
-
Check if the parameter is
|
1243
|
+
Check if the parameter is a positive integer number or zero
|
1244
|
+
|
1245
|
+
.. code:: ruby
|
1246
|
+
|
1247
|
+
param :product_id, :number, :desc => "Identifier of the product", :required => true
|
1248
|
+
param :quantity, :number, :desc => "Number of products to order", :required => true
|
1244
1249
|
|
1245
1250
|
DecimalValidator
|
1246
1251
|
--------------
|
@@ -1252,6 +1257,10 @@ Check if the parameter is a decimal number
|
|
1252
1257
|
param :latitude, :decimal, :desc => "Geographic latitude", :required => true
|
1253
1258
|
param :longitude, :decimal, :desc => "Geographic longitude", :required => true
|
1254
1259
|
|
1260
|
+
ArrayValidator
|
1261
|
+
--------------
|
1262
|
+
|
1263
|
+
Check if the parameter is an array
|
1255
1264
|
|
1256
1265
|
Additional options
|
1257
1266
|
~~~~~~~~~~~~~~~~~
|
data/lib/apipie/application.rb
CHANGED
@@ -434,8 +434,7 @@ module Apipie
|
|
434
434
|
end
|
435
435
|
|
436
436
|
def load_controller_from_file(controller_file)
|
437
|
-
|
438
|
-
controller_class_name.constantize
|
437
|
+
require_dependency controller_file
|
439
438
|
end
|
440
439
|
|
441
440
|
def ignored?(controller, method = nil)
|
data/lib/apipie/version.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.16
|
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: 2019-
|
12
|
+
date: 2019-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- Gemfile.rails42
|
156
156
|
- Gemfile.rails50
|
157
157
|
- Gemfile.rails51
|
158
|
+
- Gemfile.rails60
|
158
159
|
- MIT-LICENSE
|
159
160
|
- NOTICE
|
160
161
|
- PROPOSAL_FOR_RESPONSE_DESCRIPTIONS.md
|
@@ -332,7 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
333
|
version: '0'
|
333
334
|
requirements: []
|
334
335
|
rubyforge_project:
|
335
|
-
rubygems_version: 2.
|
336
|
+
rubygems_version: 2.7.6
|
336
337
|
signing_key:
|
337
338
|
specification_version: 4
|
338
339
|
summary: Rails REST API documentation tool
|