apidoco 1.5.1 → 1.5.2

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
  SHA256:
3
- metadata.gz: eaedb68c0b3c0855c32787e0c4c2a3d943022df15b7def1e4a91c0975e11e97b
4
- data.tar.gz: 9285d5c75bd01f3c7ac1d67fb02ef2ae0d195523c2305620eb43a44622cf294a
3
+ metadata.gz: 022b708782a65ee704f4d76320f4c6481a7579f2d103aaadd3f207e603e3d2d1
4
+ data.tar.gz: c6e3d5921c68096c2cc29c2577a7af9a6cc8c13200ac1faff92f64916154cf67
5
5
  SHA512:
6
- metadata.gz: 36c137e04f691a6b82fcbed0872205ed2f50dc561a948c8e6a7ed0c9e0fd184931d718a1a7ec87d71ca58be13a6c71a3cd59e7be0dd5b9136beefe02bd630dc9
7
- data.tar.gz: c3bef495bf6b949f4967356bfb30bc4502d837c00919fe5870dc6e32a16084147801eb135bd75a330e17cdcd5088eeb35600dcba8b0c00435b81c570dceec48c
6
+ metadata.gz: 75898d778b57489579d43ee14532aaa79fdd16e0e4d9a7840c64dadc5ae02a5fa5ff5aa660ce6853c5f2cb5b27fcccdbd05f8521afbd759863d798f132956c6a
7
+ data.tar.gz: 1e89929d7179793a2c871f94a78e9b38e7e86a2c3bb9f8e4f5870efe31e71ae23e2ecb907860afb626766e188cdddd9681af2cccb11d835092b5c48311f67b50
data/README.md CHANGED
@@ -35,6 +35,7 @@ Create a configuration file in initializers e.g. /config/initializers/apidoco.rb
35
35
  ```ruby
36
36
  Apidoco.auth_name = 'authentication_name'
37
37
  Apidoco.auth_password = 'authentication_password'
38
+ Apidoco.app_name = 'your app name' # This will appear as the HTML title for api_doco pages
38
39
  ```
39
40
 
40
41
  ## Generators
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html ng-app="apiDocoApp">
3
3
  <head>
4
- <title>Apidoco</title>
4
+ <title><%= Apidoco.app_name %></title>
5
5
  <%= stylesheet_link_tag "apidoco/application", media: "all" %>
6
6
  <%= javascript_include_tag "apidoco/application" %>
7
7
  <%= csrf_meta_tags %>
@@ -6,6 +6,10 @@ require 'apidoco/version_documentation'
6
6
  require 'apidoco/folder_parser'
7
7
  require 'apidoco/file_parser'
8
8
 
9
+ APIDOCO_TITLE = 'ApiDoco'
10
+
9
11
  module Apidoco
10
- mattr_accessor :auth_name, :auth_password
12
+ mattr_accessor :app_name, :auth_name, :auth_password
13
+
14
+ self.app_name = APIDOCO_TITLE
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module Apidoco
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidoco
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Al Ameen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-10-08 00:00:00.000000000 Z
14
+ date: 2018-11-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails