sdoc 2.3.0 → 2.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70eb2edc18b9ea26f3e275f9e7cbe89b1ce69af8c94fe4e0757ade7d39585d65
4
- data.tar.gz: 9358e5e14fc3e26fd5c39f9ff348c4e5ee0cf569921256de2234006b5055ff68
3
+ metadata.gz: 1d7faa59345da609a45912c1e899fe96b8b6940cd87bd21a8a95910ec4d29d41
4
+ data.tar.gz: 50ba9e8545535e895266ceeacc0c4514ff99e74ffc01b7e0aa0b0884138bf9d4
5
5
  SHA512:
6
- metadata.gz: d001cb3198db3cdd7db808a56d7c06325d126a73b93de6240e1826abc6a0b7ad7743b21b67e289289ed35346192164e44900702191def749a5c22ec833f39569
7
- data.tar.gz: 731ad61d0e0ac791e02050d173cc97eab604634c3e9252ed691d2714142b97c0e7f19a30fa9eddda56516fc2e3f46f7d393f0c36d3a3aaad49c28dddcbbca14c
6
+ metadata.gz: 455bacbd6d1eba074efd3838f89ac146782957ca8455bedcd2f8484329ae161d88fb3bdd706effc89bf41f5ff00eeb2a1ed004a67e6886b14765a2ab154bb87e
7
+ data.tar.gz: 55d089df446d8e51b70ad53c83ad4b2b3d5d6ed642beb02c1ecc18150bfdda1673fc9643e2a8a215c981ffdbe80972504d177887e8507e341c954c99c4119763
@@ -2,6 +2,8 @@ name: Tests
2
2
 
3
3
  on:
4
4
  push:
5
+ pull_request:
6
+ branches: [ master ]
5
7
  schedule:
6
8
  - cron: '0 0 * * *'
7
9
 
@@ -31,7 +33,7 @@ jobs:
31
33
  with:
32
34
  ruby-version: ${{ matrix.ruby }}
33
35
  bundler-cache: true
34
- cache-version: 1
36
+ cache-version: 2
35
37
 
36
38
  - name: Test
37
39
  run: |
data/CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
1
1
  Master
2
2
  ======
3
3
 
4
+ 2.4.0
5
+ =====
6
+
7
+ * #187 Allow setting CSS based version badge [@p8](https://github.com/p8)
8
+
9
+ 2.3.2
10
+ =====
11
+
12
+ * #184 Add support for rdoc 6.4.0 [@p8](https://github.com/p8)
13
+
14
+ 2.3.1
15
+ =====
16
+
17
+ * #183 Remove unsupported browser detection [@p8](https://github.com/p8)
18
+ * #182 Use window.location instead of Turbolinks.visit if protocol is 'file:' [@p8](https://github.com/p8)
19
+
4
20
  2.3.0
5
21
  =====
6
22
 
@@ -45,6 +45,9 @@
45
45
  <li><a href="<%= "#{rel_prefix}/#{h file.path}" %>"><%= h file.absolute_name %></a></li>
46
46
  <% end %>
47
47
  </ul>
48
+ <% if ENV['HORO_BADGE_VERSION'] %>
49
+ <div id="version-badge"><%= ENV['HORO_BADGE_VERSION'] %></div>
50
+ <% end %>
48
51
  </div>
49
52
 
50
53
  <main id="bodyContent">
@@ -32,6 +32,9 @@
32
32
  </li>
33
33
  <li>Last modified: <%= file.file_stat.mtime %></li>
34
34
  </ul>
35
+ <% if ENV['HORO_BADGE_VERSION'] %>
36
+ <div id="version-badge"><%= ENV['HORO_BADGE_VERSION'] %></div>
37
+ <% end %>
35
38
  </div>
36
39
 
37
40
  <main id="bodyContent">
@@ -24,6 +24,9 @@
24
24
  <li><%= h index.relative_name %></li>
25
25
  <li>Last modified: <%= index.last_modified %></li>
26
26
  </ul>
27
+ <% if ENV['HORO_BADGE_VERSION'] %>
28
+ <div id="version-badge"><%= ENV['HORO_BADGE_VERSION'] %></div>
29
+ <% end %>
27
30
  </div>
28
31
 
29
32
  <main id="bodyContent">
@@ -403,3 +403,22 @@ p code {
403
403
  background: #fff;
404
404
  font-size: 2rem;
405
405
  }
406
+
407
+ #version-badge {
408
+ position: fixed;
409
+ right: 0;
410
+ top: 0;
411
+ z-index: 100;
412
+ color: white;
413
+ transform: rotate(45deg) translate(27.5%, -40%);
414
+ min-width: 200px;
415
+ font-family: Helvetica, Arial, sans-serif;
416
+ font-size: 30px;
417
+ font-weight: bold;
418
+ font-style: italic;
419
+ line-height: 1.5;
420
+ text-shadow: 2px 2px 4px #5400007d;
421
+ text-align: center;
422
+ box-shadow: 0px 2px 2px 1px #1209096e;
423
+ background: radial-gradient(circle, rgb(255, 10, 0) 0%, rgb(200, 0, 0) 90%);
424
+ }
@@ -12,8 +12,7 @@
12
12
  top: 0;
13
13
  background: #000;
14
14
  color: #fff;
15
- padding-right: 10px;
16
- text-align: right;
15
+ padding: 0 10px;
17
16
  line-height: 40px;
18
17
  cursor: pointer;
19
18
  z-index: 2;
@@ -84,7 +83,7 @@
84
83
  width: 300px;
85
84
  height: 100%;
86
85
  background: #FFF;
87
- z-index: 10;
86
+ z-index: 200;
88
87
  font-family: "Helvetica Neue", "Arial", sans-serif;
89
88
  overflow-x: hidden;
90
89
  border-right: 1px #ccc solid;
@@ -89,7 +89,6 @@ Searchdoc.Navigation = new function() {
89
89
  };
90
90
 
91
91
  this.startMoveTimeout = function(isDown) {
92
- if (!$.browser.mozilla && !$.browser.opera) return;
93
92
  if (this.moveTimeout) this.clearMoveTimeout();
94
93
  var _this = this;
95
94
 
@@ -231,8 +230,12 @@ Searchdoc.Panel.prototype = $.extend({}, Searchdoc.Navigation, new function() {
231
230
  };
232
231
 
233
232
  this.open = function(src) {
234
- var prefix = $('meta[name="data-rel-prefix"]').attr("content");
235
- Turbolinks.visit(prefix + src);
233
+ var location = $('meta[name="data-rel-prefix"]').attr("content") + src;
234
+ if (window.location.protocol === "file:") {
235
+ window.location.href = location;
236
+ } else {
237
+ Turbolinks.visit(location);
238
+ }
236
239
  if (this.highlight) this.highlight(src);
237
240
  };
238
241
 
data/lib/sdoc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SDoc
2
- VERSION = '2.3.0'
2
+ VERSION = '2.4.0'
3
3
  end
data/sdoc.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.rdoc_options = ["--charset=UTF-8"]
23
23
  s.extra_rdoc_files = ["README.md"]
24
24
 
25
- s.add_runtime_dependency("rdoc", ">= 5.0", "< 6.4.0")
25
+ s.add_runtime_dependency("rdoc", ">= 5.0")
26
26
 
27
27
  s.files = `git ls-files`.split("\n")
28
28
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Kolesnikov
8
8
  - Nathan Broadbent
9
9
  - Jean Mertz
10
10
  - Zachary Scott
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-01-05 00:00:00.000000000 Z
14
+ date: 2022-05-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rdoc
@@ -20,9 +20,6 @@ dependencies:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: '5.0'
23
- - - "<"
24
- - !ruby/object:Gem::Version
25
- version: 6.4.0
26
23
  type: :runtime
27
24
  prerelease: false
28
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,9 +27,6 @@ dependencies:
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: '5.0'
33
- - - "<"
34
- - !ruby/object:Gem::Version
35
- version: 6.4.0
36
30
  description: rdoc generator html with javascript search index.
37
31
  email: voloko@gmail.com mail@zzak.io
38
32
  executables:
@@ -113,7 +107,7 @@ homepage: https://github.com/zzak/sdoc
113
107
  licenses:
114
108
  - MIT
115
109
  metadata: {}
116
- post_install_message:
110
+ post_install_message:
117
111
  rdoc_options:
118
112
  - "--charset=UTF-8"
119
113
  require_paths:
@@ -129,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
123
  - !ruby/object:Gem::Version
130
124
  version: 1.3.6
131
125
  requirements: []
132
- rubygems_version: 3.1.6
133
- signing_key:
126
+ rubygems_version: 3.0.3.1
127
+ signing_key:
134
128
  specification_version: 4
135
129
  summary: rdoc html with javascript search index.
136
130
  test_files: []