rdoc-generator-sixfish 0.1.0 → 0.2.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: 7f65a068f3ec7d7360f6c477760d22fcac70bb83f675e589cb2b47f1e6ad0566
4
- data.tar.gz: 4572bee86d8f5d18d309514249fc2857bccff0079fc2e280026a953ff22b36d1
3
+ metadata.gz: d9849ca6ccfe321b2ea21409cb3fdd0e8372a30ccc5b77154f72879356692ebb
4
+ data.tar.gz: a57b90d60d348e4a984d771cfaad4858fa1e3b218e1c7b51bfe024b59554804c
5
5
  SHA512:
6
- metadata.gz: 6ad068aa5c4f937ee7c044154839d9528ce76575657eb11f6ced8405436517a3dd8955c1f8d6b3a3e95bb5fc5367b383a8edb23caf4f75cc5f9c893bf6e53ac4
7
- data.tar.gz: 6a27027c87c715757ccb4b0d15aeb53f8d3c1df58f661e7a587e170e88d3af8601eb55ad3a819ab3bf0a764d7105abd6085435adb90514c29f5c6bf6b7c0f89b
6
+ metadata.gz: 169dd6792bb608de45c0232aa7846304297f2e62b18f083a44cedfe1a1df6f95936a823fe97d25373137b9b583aeacf9ec52c713ead51584b28fdb876c3145f5
7
+ data.tar.gz: 0aa5f892b480f041d30459936336a1b9b00b462f214aa953130a097c1f69a2c7f3e2208f9aabc6a056cb41a6014681fae197065857da2a4b2133ba292b179330
checksums.yaml.gz.sig CHANGED
Binary file
data/History.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Release History for rdoc-generator-sixfish
2
2
 
3
3
  ---
4
+ ## v0.2.0 [2022-12-01] Michael Granger <ged@faeriemud.org>
5
+
6
+ Fixes:
7
+
8
+ - Remove unused code and dependencies
4
9
 
5
10
 
6
11
  ## v0.1.0 [2022-11-15] Michael Granger <ged@FaerieMUD.org>
@@ -3,7 +3,6 @@
3
3
  gem 'rdoc'
4
4
 
5
5
  require 'uri'
6
- require 'yajl'
7
6
  require 'inversion'
8
7
  require 'loggability'
9
8
  require 'fileutils'
@@ -32,7 +31,7 @@ class RDoc::Generator::Sixfish
32
31
  File.exist?( Gem.loaded_specs['rdoc-generator-sixfish'].datadir )
33
32
  Pathname( Gem.loaded_specs['rdoc-generator-sixfish'].datadir )
34
33
  else
35
- Pathname( __FILE__ ).dirname.parent + 'data/rdoc-generator-sixfish'
34
+ Pathname( __FILE__ ).dirname.parent.parent.parent + 'data/rdoc-generator-sixfish'
36
35
  end
37
36
 
38
37
  # Register with RDoc as an alternative generator
@@ -75,7 +74,6 @@ class RDoc::Generator::Sixfish
75
74
  @template_cache = {}
76
75
  @files = nil
77
76
  @classes = nil
78
- @search_index = {}
79
77
 
80
78
  Inversion::Template.configure( :template_paths => [self.template_dir + 'templates'] )
81
79
  end
@@ -130,8 +128,6 @@ class RDoc::Generator::Sixfish
130
128
  self.generate_class_files
131
129
  self.generate_file_files
132
130
 
133
- self.generate_search_index
134
-
135
131
  self.copy_static_assets
136
132
  end
137
133
 
@@ -220,35 +216,6 @@ class RDoc::Generator::Sixfish
220
216
  end
221
217
 
222
218
 
223
- ### Generate a JSON search index for the quicksearch blank.
224
- def generate_search_index
225
- out_file = self.output_dir + 'js/searchindex.json'
226
-
227
- self.log.debug "Generating search index (%s)." % [ out_file ]
228
- index = []
229
-
230
- objs = self.get_indexable_objects
231
- objs.each do |codeobj|
232
- self.log.debug " #{codeobj.name}..."
233
- record = codeobj.search_record
234
- index << {
235
- name: record[2],
236
- link: record[4],
237
- snippet: record[6],
238
- type: codeobj.class.name.downcase.sub( /.*::/, '' )
239
- }
240
- end
241
-
242
- self.log.debug " dumping JSON..."
243
- out_file.dirname.mkpath
244
- ofh = out_file.open( 'w:utf-8', 0644 )
245
-
246
- json = Yajl.dump( index, pretty: true, indent: "\t" )
247
-
248
- ofh.puts( 'var SearchIndex = ', json, ';' )
249
- end
250
-
251
-
252
219
  ### Copies static files from the static_path into the output directory
253
220
  def copy_static_assets
254
221
  asset_paths = self.find_static_assets
data/lib/sixfish.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  module Sixfish
7
7
 
8
8
  # Library version constant
9
- VERSION = '0.1.0'
9
+ VERSION = '0.2.0'
10
10
 
11
11
  # Fivefish project URL
12
12
  PROJECT_URL = 'https://hg.sr.ht/~ged/Sixfish'
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc-generator-sixfish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -33,7 +33,7 @@ cert_chain:
33
33
  P5YP5BAbNW+gvd3QHRiWTTuhgHrdDnGdXg93N2M5KHn1ug8BtPLQwlcFwEpKnlLn
34
34
  btEP+7EplFuoiMfd
35
35
  -----END CERTIFICATE-----
36
- date: 2022-11-15 00:00:00.000000000 Z
36
+ date: 2022-12-01 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: inversion
metadata.gz.sig CHANGED
Binary file