apress-api 1.22.1 → 1.23.0
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/CHANGELOG.md +5 -1
- data/app/docs/swagger/v1/root.rb +7 -6
- data/lib/apress/api/engine.rb +12 -6
- data/lib/apress/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43a748096b021dd156152b6a5ee52c0c703f35f1
|
|
4
|
+
data.tar.gz: 68962ab9f9bd963895bc9d2e1a3f2793c9ef68be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b29d9678ced4f182c973217a8cf40e2c653dfc5923965e4cb572c6952014d5797f6def7ca11d7c9a491578a852015102d5c5215710bdf6afe4f6030dd233329
|
|
7
|
+
data.tar.gz: 797a2899d08241da697020f25bc4cf90ea655ad44df6a2d518e8b942ec33e410933a4d6837e9b48dfdca712677e838646bf6821bdef16cdb87bbe44f2ba771cb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
# v1.23.0
|
|
2
|
+
|
|
3
|
+
* 2018-10-01 [c235b5e](../../commit/c235b5e) - __(Artem Napolskih)__ Release 1.23.0
|
|
4
|
+
* 2018-10-01 [d0e5a8e](../../commit/d0e5a8e) - __(Artem Napolskih)__ feat: adds ability to configure root page
|
|
5
|
+
|
|
1
6
|
# v1.22.1
|
|
2
7
|
|
|
3
|
-
* 2018-08-30 [02be014](../../commit/02be014) - __(Ilya Zhidkov)__ Release 1.22.1
|
|
4
8
|
* 2018-08-30 [1328469](../../commit/1328469) - __(Ilya Zhidkov)__ fix(gemspec): add min version for addressable
|
|
5
9
|
|
|
6
10
|
# v1.22.0
|
data/app/docs/swagger/v1/root.rb
CHANGED
|
@@ -4,16 +4,17 @@ module Swagger
|
|
|
4
4
|
swagger_root do
|
|
5
5
|
key :swagger, '2.0'
|
|
6
6
|
info do
|
|
7
|
-
key :version,
|
|
8
|
-
key :title,
|
|
9
|
-
key :description,
|
|
10
|
-
key :termsOfService,
|
|
7
|
+
key :version, Rails.application.config.api[:version]
|
|
8
|
+
key :title, Rails.application.config.api[:title]
|
|
9
|
+
key :description, Rails.application.config.api[:description]
|
|
10
|
+
key :termsOfService, Rails.application.config.api[:terms_of_service]
|
|
11
|
+
|
|
11
12
|
contact do
|
|
12
|
-
key :name,
|
|
13
|
+
key :name, Rails.application.config.api[:contact_name]
|
|
13
14
|
end
|
|
14
15
|
end
|
|
15
16
|
|
|
16
|
-
key :basePath,
|
|
17
|
+
key :basePath, Rails.application.config.api[:base_path]
|
|
17
18
|
key :produces, ['application/json']
|
|
18
19
|
|
|
19
20
|
security_definition :APIAuth do
|
data/lib/apress/api/engine.rb
CHANGED
|
@@ -8,15 +8,21 @@ module Apress
|
|
|
8
8
|
|
|
9
9
|
Apress::Documentation.add_load_path(config.root.join('app/docs'))
|
|
10
10
|
|
|
11
|
+
config.api = {
|
|
12
|
+
secret_token_ttl: 1.hour,
|
|
13
|
+
refresh_token_ttl: 1.week,
|
|
14
|
+
v1_doc_path: 'docs/swagger/v1.json',
|
|
15
|
+
version: '1.0.0',
|
|
16
|
+
title: 'Apress API',
|
|
17
|
+
description: 'Apress API',
|
|
18
|
+
terms_of_service: 'None',
|
|
19
|
+
contact_name: 'Abak-Press Team',
|
|
20
|
+
base_path: '/api/v1'
|
|
21
|
+
}
|
|
22
|
+
|
|
11
23
|
initializer "apress-api", before: :load_init_rb do |app|
|
|
12
24
|
app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded)
|
|
13
25
|
|
|
14
|
-
app.config.api = {
|
|
15
|
-
secret_token_ttl: 1.hour,
|
|
16
|
-
refresh_token_ttl: 1.week,
|
|
17
|
-
v1_doc_path: 'docs/swagger/v1.json'
|
|
18
|
-
}
|
|
19
|
-
|
|
20
26
|
::MultiJson.use :oj
|
|
21
27
|
|
|
22
28
|
require 'jbuilder/jbuilder_template'
|
data/lib/apress/api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apress-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.23.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- merkushin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|