sdoc 2.4.0 → 2.6.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/.github/workflows/test.yml +2 -1
- data/CHANGELOG.md +12 -0
- data/lib/rdoc/generator/template/rails/resources/css/github.css +2 -1
- data/lib/rdoc/generator/template/rails/resources/css/main.css +2 -1
- data/lib/sdoc/generator.rb +1 -1
- data/lib/sdoc/github.rb +1 -1
- data/lib/sdoc/merge.rb +4 -4
- data/lib/sdoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b09b938b2cfe852100d338c140337f89866966c70e715bb03a7b8eff39ae0c1
|
|
4
|
+
data.tar.gz: 8d81845ac295d4050f4c5b6953aaced7cad5cbd02dfd4facc4c699958de470bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcea48419555f33ff7013cec713d902f0cdce0cd44eb86bbc6ec5f635ee550b950c0c813f1d85434417124e0a0d66b9f2fd98caf8e01c44639d8711c662329c8
|
|
7
|
+
data.tar.gz: 6b0c6a8aec4601ffde7304691aa2d8e8320f09f007db1dcf557c54bcd13e43993ec043c574592044497364e1db83025ac0573c883624af401a27cb2beefa007e
|
data/.github/workflows/test.yml
CHANGED
|
@@ -9,7 +9,7 @@ on:
|
|
|
9
9
|
|
|
10
10
|
jobs:
|
|
11
11
|
test:
|
|
12
|
-
runs-on: ubuntu-
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
13
|
strategy:
|
|
14
14
|
matrix:
|
|
15
15
|
ruby:
|
|
@@ -32,6 +32,7 @@ jobs:
|
|
|
32
32
|
uses: ruby/setup-ruby@v1
|
|
33
33
|
with:
|
|
34
34
|
ruby-version: ${{ matrix.ruby }}
|
|
35
|
+
bundler: latest
|
|
35
36
|
bundler-cache: true
|
|
36
37
|
cache-version: 2
|
|
37
38
|
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
Master
|
|
2
2
|
======
|
|
3
3
|
|
|
4
|
+
2.6.0
|
|
5
|
+
=====
|
|
6
|
+
|
|
7
|
+
* #193 Add support for Ruby 3.2 as File.exists? has been removed [@sato11](https://github.com/sato11)
|
|
8
|
+
|
|
9
|
+
2.5.0
|
|
10
|
+
=====
|
|
11
|
+
|
|
12
|
+
* #192 Add padding and rounded borders to code examples [@p8](https://github.com/p8)
|
|
13
|
+
* #191 Add css class for constant [@p8](https://github.com/p8)
|
|
14
|
+
* #189 `index_path` should handle a nil `main_page` [@ghiculescu](https://github.com/ghiculescu)
|
|
15
|
+
|
|
4
16
|
2.4.0
|
|
5
17
|
=====
|
|
6
18
|
|
data/lib/sdoc/generator.rb
CHANGED
|
@@ -194,7 +194,7 @@ class RDoc::Generator::SDoc
|
|
|
194
194
|
### Determines index path based on @options.main_page (or lack thereof)
|
|
195
195
|
def index_path
|
|
196
196
|
# Transform class name to file path
|
|
197
|
-
if @options.main_page
|
|
197
|
+
if @options.main_page&.include?("::")
|
|
198
198
|
slashed = @options.main_page.sub(/^::/, "").gsub("::", "/")
|
|
199
199
|
"%s/%s.html" % [ class_dir, slashed ]
|
|
200
200
|
else
|
data/lib/sdoc/github.rb
CHANGED
data/lib/sdoc/merge.rb
CHANGED
|
@@ -168,7 +168,7 @@ class SDoc::Merge
|
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
def setup_output_dir
|
|
171
|
-
if File.
|
|
171
|
+
if File.exist? @op_dir
|
|
172
172
|
error "#{@op_dir} already exists"
|
|
173
173
|
end
|
|
174
174
|
FileUtils.mkdir_p @op_dir
|
|
@@ -176,9 +176,9 @@ class SDoc::Merge
|
|
|
176
176
|
|
|
177
177
|
def check_directories
|
|
178
178
|
@directories.each do |dir|
|
|
179
|
-
unless File.
|
|
180
|
-
File.
|
|
181
|
-
File.
|
|
179
|
+
unless File.exist?(File.join(dir, FLAG_FILE)) &&
|
|
180
|
+
File.exist?(File.join(dir, RDoc::Generator::SDoc::TREE_FILE)) &&
|
|
181
|
+
File.exist?(File.join(dir, RDoc::Generator::SDoc::SEARCH_INDEX_FILE))
|
|
182
182
|
error "#{dir} does not seem to be an sdoc directory"
|
|
183
183
|
end
|
|
184
184
|
end
|
data/lib/sdoc/version.rb
CHANGED
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.
|
|
4
|
+
version: 2.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vladimir Kolesnikov
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2023-01-11 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rdoc
|