apress-api 1.22.1 → 1.23.0

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
2
  SHA1:
3
- metadata.gz: 73d603e8a89917d1eb2a89c9d3848cd35dacc23d
4
- data.tar.gz: 413149ad18e952059477bf02e60c4547788a8ea2
3
+ metadata.gz: 43a748096b021dd156152b6a5ee52c0c703f35f1
4
+ data.tar.gz: 68962ab9f9bd963895bc9d2e1a3f2793c9ef68be
5
5
  SHA512:
6
- metadata.gz: 13124b14aac2ce1fa08af34eaaa855b94e1b66751c57f7f825a7babb4c2cc571d7e2f50e68c6f185f31b8ee66e6b882f4e47542f3e0ab1efb32afccf66409615
7
- data.tar.gz: addb07d620aef2f8117711fc29bfb4255305c8cc5f5f34db6f5472551aca0df7063d4229fcff7d80d4c4eb575128e5b7b0ead9053f9034072b91ba4a12b9e262
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
@@ -4,16 +4,17 @@ module Swagger
4
4
  swagger_root do
5
5
  key :swagger, '2.0'
6
6
  info do
7
- key :version, '1.0.0'
8
- key :title, 'Apress API'
9
- key :description, 'Apress API'
10
- key :termsOfService, 'None'
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, 'Abak-Press Team'
13
+ key :name, Rails.application.config.api[:contact_name]
13
14
  end
14
15
  end
15
16
 
16
- key :basePath, '/api/v1'
17
+ key :basePath, Rails.application.config.api[:base_path]
17
18
  key :produces, ['application/json']
18
19
 
19
20
  security_definition :APIAuth do
@@ -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'
@@ -1,5 +1,5 @@
1
1
  module Apress
2
2
  module Api
3
- VERSION = '1.22.1'.freeze
3
+ VERSION = '1.23.0'.freeze
4
4
  end
5
5
  end
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.22.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-08-30 00:00:00.000000000 Z
11
+ date: 2018-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails