sdoc 2.6.3 → 2.6.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 350088af1f10f943ed222479613fdba12c26d7c6b224f13586a49414456ed197
4
- data.tar.gz: 411c762743f43a6f7df2a8ea505ce743de95795cd17b77f8d9952ef65e60fa30
3
+ metadata.gz: 7178efec6a22ae92279536eb4704e3749e5b7cf3ecf29c9c59ff758f761c1932
4
+ data.tar.gz: 7a9b33b23580f0a9369309109ea82dba3f33155cd45e27f647bffcfde7c87d92
5
5
  SHA512:
6
- metadata.gz: ff0f16a691f772143768945bdee629846cacaaf2feed954896880442d4592475d4c1f7d96d8eb4f7eabb8d84e5d1af65d425e05b8b568344ade1da7977e06aa8
7
- data.tar.gz: 4294db1489e4a147e2d057ab5d324d90584c3021becd5dca3893f4c9d262b0ca7dd0585bcc80305c9994a2f50780dce540831dcab9f44addac77d36a26bb510e
6
+ metadata.gz: e949ce17d5b9c5c6a9212d67cdb4314899274317b84eb3ab981375c5582817536d17d2afb3a14ae5f5cefc296089a525448c94b75fd0e77873f3676b15b61717
7
+ data.tar.gz: f6438e320a3b0ace7119954d30496710a4e2177b0d7aaa091ba85451e59941ca36eb66912c98e19adee36ca6a70556682efa1f3cc30171c915d4a7aa873967ce
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Master
2
2
  ======
3
3
 
4
+ 2.6.3
5
+ =====
6
+
7
+ * Generate files and classes in subdirectories
8
+
4
9
  2.6.2
5
10
  =====
6
11
 
@@ -25,6 +25,9 @@ class RDoc::Generator::SDoc
25
25
 
26
26
  DESCRIPTION = 'Searchable HTML documentation'
27
27
 
28
+ FILE_DIR = "files"
29
+ CLASS_DIR = "classes"
30
+
28
31
  include ERB::Util
29
32
  include SDoc::GitHub
30
33
  include SDoc::Templatable
@@ -35,9 +38,6 @@ class RDoc::Generator::SDoc
35
38
  TREE_FILE = File.join 'panel', 'tree.js'
36
39
  SEARCH_INDEX_FILE = File.join 'js', 'search_index.js'
37
40
 
38
- FILE_DIR = 'files'
39
- CLASS_DIR = 'classes'
40
-
41
41
  RESOURCES_DIR = File.join('resources', '.')
42
42
 
43
43
  attr_reader :base_dir
@@ -64,6 +64,14 @@ class RDoc::Generator::SDoc
64
64
  puts SDoc::VERSION
65
65
  exit
66
66
  end
67
+
68
+ if options.respond_to?(:class_module_path_prefix)
69
+ options.class_module_path_prefix = CLASS_DIR
70
+ end
71
+
72
+ if options.respond_to?(:file_path_prefix)
73
+ options.file_path_prefix = FILE_DIR
74
+ end
67
75
  end
68
76
 
69
77
  def initialize(store, options)
@@ -98,10 +106,12 @@ class RDoc::Generator::SDoc
98
106
  generate_class_files
99
107
  end
100
108
 
109
+ # For compatibility with RDoc < 6.13.0
101
110
  def class_dir
102
111
  CLASS_DIR
103
112
  end
104
113
 
114
+ # For compatibility with RDoc < 6.13.0
105
115
  def file_dir
106
116
  FILE_DIR
107
117
  end
data/lib/sdoc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SDoc
2
- VERSION = '2.6.3'
2
+ VERSION = '2.6.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Kolesnikov