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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a05f50c6c4364f6e0c0ad119a9061f4daef9e2f5
4
- data.tar.gz: 05ea27245215efd3d2e2d685fa5e82b9de0e17b8
2
+ SHA256:
3
+ metadata.gz: 76693e27a28b80ae01788b2e561edf21c696281dfc2e4136849dfbc4c4f32c15
4
+ data.tar.gz: 7143177bc11ccf92dec72f636683a46561ac05eaf5e788a1f3184028a6ed7dfe
5
5
  SHA512:
6
- metadata.gz: 07198e0935b6f4c8ea51616153b29578213614de9a783a602d9edf9ebde2223652ddb1482a55a48a0bdb6582423fe4ff6c807412c4bb0529736b5c0d4f3453b4
7
- data.tar.gz: a4cb3227c448f0f444e6c28972b8d1d6788f011ab3c9bdea8accbf9b41ec614393edff8aafd8c1a521f3a18f05e3eaee767da65cf0f49a2fedfac99f4e046a3a
6
+ metadata.gz: 2d3e61a2f83762bbdcd2d90393f14a617ba0dac25f0a7367d20faa36f7d2829577c34db65ab2fe7902ee133b080030fe7460cea2b56e167b772a12d86a9aef4c
7
+ data.tar.gz: a2dec8a9cadfbf5ed44df8868c23af5ed8de9eff3b349222a2a829ee09773725e6dabbd1af6f155a1d1800a1636284f2db37f683c3f30b70dfa6442a71f77972
@@ -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.1.7
5
- - 2.2.3
6
- - 2.3.3
7
- - 2.4.3
8
- - 2.5.0
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.0.0
17
- gemfile: Gemfile.rails50
18
- - rvm: 2.0.0
19
- gemfile: Gemfile.rails51
20
- - rvm: 2.1.7
21
- gemfile: Gemfile.rails50
22
- - rvm: 2.1.7
23
- gemfile: Gemfile.rails51
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
@@ -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
@@ -4,6 +4,7 @@ gemspec
4
4
 
5
5
  gem 'rails', '~> 4.2.5'
6
6
  gem 'mime-types', '~> 2.99.3'
7
+ gem 'sqlite3', '~> 1.3.6'
7
8
 
8
9
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1.0')
9
10
  gem 'nokogiri', '~> 1.6.8'
@@ -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
- ArrayValidator
1241
- --------------
1240
+ NumberValidator
1241
+ ---------------
1242
1242
 
1243
- Check if the parameter is an array
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
  ~~~~~~~~~~~~~~~~~
@@ -434,8 +434,7 @@ module Apipie
434
434
  end
435
435
 
436
436
  def load_controller_from_file(controller_file)
437
- controller_class_name = controller_file.gsub(/\A.*\/app\/controllers\//,"").gsub(/\.\w*\Z/,"").camelize
438
- controller_class_name.constantize
437
+ require_dependency controller_file
439
438
  end
440
439
 
441
440
  def ignored?(controller, method = nil)
@@ -1,3 +1,3 @@
1
1
  module Apipie
2
- VERSION = '0.5.15'
2
+ VERSION = '0.5.16'
3
3
  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.5.15
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-01-03 00:00:00.000000000 Z
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.5.1
336
+ rubygems_version: 2.7.6
336
337
  signing_key:
337
338
  specification_version: 4
338
339
  summary: Rails REST API documentation tool