clwiki 3.1.6 → 3.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: 11a75960c5f2a6ce8df2deb45fd3156d708540306f5bbcf8a45191d3a89fa8ae
4
- data.tar.gz: ad05256ad2f5b9a9efce5bd502dc4797162e5fc792c72eb6d7a714b8357014d4
3
+ metadata.gz: 97ebde2a781a39b20a317e022578893b96b7a91c15ad7460ac27cc5cf1b50621
4
+ data.tar.gz: 784855ebf77c99bfba0317713c2162b53fadb3efdd5a5c317c5a41849390f30c
5
5
  SHA512:
6
- metadata.gz: f0532ec14b562b0f2e7015b31fae25c374ff26ef7e29c40206ba9e6ba1e48a1f12687b4a55229868569bfdc54ad993e4d5dc16df7629d7a3f6efb6cc5994a4b8
7
- data.tar.gz: 299f77fa1958fd237d7ff552ed988033496df5c328f2e8cbc05b488f190446db0b7ecf6ef9259a8da98f112ddf17d36c95b24046404cf14983cecf9ad06c9277
6
+ metadata.gz: 55c493276b0aa74b80a797da484d7a9999f2bfd1ec13aeea58a9c18a08c2405f322fa95bb78e84272393316f3b756818a7eab3525f9cce3d7951dd2f323adff5
7
+ data.tar.gz: 3b4ee3ba130a13cf79da8fa1c4db28dcbeced8c1d802550e37ee2374e7ab1fbb11e1f3cdbb0c96fc77970477d33b0a6c5b11bc846eab0c4e79e69f487c37dc4d
@@ -4,6 +4,9 @@ module ClWiki
4
4
  class Engine < ::Rails::Engine
5
5
  isolate_namespace ClWiki
6
6
 
7
+ config.eager_load_namespaces << ClWiki
8
+ config.autoload_paths << "#{root}/lib"
9
+
7
10
  initializer 'cl_wiki.assets.precompile' do |app|
8
11
  app.config.assets.precompile += %w[application.css application.js]
9
12
  end
data/lib/cl_wiki/file.rb CHANGED
@@ -4,9 +4,9 @@ require 'fileutils'
4
4
  require 'time'
5
5
 
6
6
  module ClWiki
7
- FILE_EXT = '.txt'
8
-
9
7
  class File
8
+ FILE_EXT = '.txt'
9
+
10
10
  attr_reader :name, :mod_time_at_last_read, :metadata, :owner
11
11
  attr_accessor :client_last_read_mod_time
12
12
 
@@ -68,11 +68,11 @@ module ClWiki
68
68
  private
69
69
 
70
70
  def build
71
- files = Dir[::File.join(@root_dir, '**/*' + ClWiki::FILE_EXT)]
71
+ files = Dir[::File.join(@root_dir, '**/*' + ClWiki::File::FILE_EXT)]
72
72
  files.each do |fn|
73
73
  next unless ::File.file?(fn)
74
74
 
75
- page_name = ::File.basename(fn, ClWiki::FILE_EXT)
75
+ page_name = ::File.basename(fn, ClWiki::File::FILE_EXT)
76
76
  index_page(page_name)
77
77
  end
78
78
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClWiki
4
- VERSION = '3.1.6'
4
+ VERSION = '3.2.0'
5
5
  end
data/lib/cl_wiki_lib.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require File.expand_path('cl_wiki/configuration', __dir__)
4
4
  require File.expand_path('cl_wiki/user_base', __dir__)
5
5
  require File.expand_path('cl_wiki/public_user', __dir__)
6
- require File.expand_path('cl_wiki/memory_index', __dir__)
6
+ require File.expand_path('cl_wiki/memory_indexer', __dir__)
7
7
  require File.expand_path('cl_wiki/file', __dir__)
8
8
  require File.expand_path('cl_wiki/page', __dir__)
9
9
  require File.expand_path('cl_wiki/version', __dir__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clwiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.6
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrismo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-29 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt
@@ -90,7 +90,7 @@ files:
90
90
  - lib/cl_wiki/format/format.opml.rb
91
91
  - lib/cl_wiki/format/format.pre.blockquote.rb
92
92
  - lib/cl_wiki/format/format.simpletable.rb
93
- - lib/cl_wiki/memory_index.rb
93
+ - lib/cl_wiki/memory_indexer.rb
94
94
  - lib/cl_wiki/page.rb
95
95
  - lib/cl_wiki/public_user.rb
96
96
  - lib/cl_wiki/user_base.rb