sdoc 2.4.0 → 2.6.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
  SHA256:
3
- metadata.gz: 1d7faa59345da609a45912c1e899fe96b8b6940cd87bd21a8a95910ec4d29d41
4
- data.tar.gz: 50ba9e8545535e895266ceeacc0c4514ff99e74ffc01b7e0aa0b0884138bf9d4
3
+ metadata.gz: 5b09b938b2cfe852100d338c140337f89866966c70e715bb03a7b8eff39ae0c1
4
+ data.tar.gz: 8d81845ac295d4050f4c5b6953aaced7cad5cbd02dfd4facc4c699958de470bf
5
5
  SHA512:
6
- metadata.gz: 455bacbd6d1eba074efd3838f89ac146782957ca8455bedcd2f8484329ae161d88fb3bdd706effc89bf41f5ff00eeb2a1ed004a67e6886b14765a2ab154bb87e
7
- data.tar.gz: 55d089df446d8e51b70ad53c83ad4b2b3d5d6ed642beb02c1ecc18150bfdda1673fc9643e2a8a215c981ffdbe80972504d177887e8507e341c954c99c4119763
6
+ metadata.gz: bcea48419555f33ff7013cec713d902f0cdce0cd44eb86bbc6ec5f635ee550b950c0c813f1d85434417124e0a0d66b9f2fd98caf8e01c44639d8711c662329c8
7
+ data.tar.gz: 6b0c6a8aec4601ffde7304691aa2d8e8320f09f007db1dcf557c54bcd13e43993ec043c574592044497364e1db83025ac0573c883624af401a27cb2beefa007e
@@ -9,7 +9,7 @@ on:
9
9
 
10
10
  jobs:
11
11
  test:
12
- runs-on: ubuntu-20.04
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
 
@@ -72,7 +72,8 @@ pre .regexp {
72
72
  color: #009926
73
73
  }
74
74
 
75
- pre .class {
75
+ pre .class,
76
+ pre .constant {
76
77
  color: #458;
77
78
  font-weight: bold
78
79
  }
@@ -262,8 +262,9 @@ tt {
262
262
  }
263
263
 
264
264
  .description pre {
265
- padding: 0.5em;
265
+ padding: 1em 1.2em;
266
266
  background: #EEEEEE;
267
+ border-radius: 10px;
267
268
  font-size: 15px;
268
269
  overflow-x: scroll;
269
270
  }
@@ -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.include?("::")
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
@@ -50,7 +50,7 @@ module SDoc::GitHub
50
50
 
51
51
  def path_to_git_dir(path)
52
52
  while !path.empty? && path != '.'
53
- if (File.exists? File.join(path, '.git'))
53
+ if (File.exist? File.join(path, '.git'))
54
54
  return path
55
55
  end
56
56
  path = File.dirname(path)
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.exists? @op_dir
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.exists?(File.join(dir, FLAG_FILE)) &&
180
- File.exists?(File.join(dir, RDoc::Generator::SDoc::TREE_FILE)) &&
181
- File.exists?(File.join(dir, RDoc::Generator::SDoc::SEARCH_INDEX_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
@@ -1,3 +1,3 @@
1
1
  module SDoc
2
- VERSION = '2.4.0'
2
+ VERSION = '2.6.0'
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.4.0
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: 2022-05-10 00:00:00.000000000 Z
14
+ date: 2023-01-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rdoc