clwiki 3.1.6 → 3.2.1

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: 11a75960c5f2a6ce8df2deb45fd3156d708540306f5bbcf8a45191d3a89fa8ae
4
- data.tar.gz: ad05256ad2f5b9a9efce5bd502dc4797162e5fc792c72eb6d7a714b8357014d4
3
+ metadata.gz: 8a2232e70e14e34f4e8f664b0847b7e903354e6cc5a7a60eecee180309616579
4
+ data.tar.gz: 6070cd435e81ab9d9746ef809bababc22a977648fffc00f782441ebb4c147853
5
5
  SHA512:
6
- metadata.gz: f0532ec14b562b0f2e7015b31fae25c374ff26ef7e29c40206ba9e6ba1e48a1f12687b4a55229868569bfdc54ad993e4d5dc16df7629d7a3f6efb6cc5994a4b8
7
- data.tar.gz: 299f77fa1958fd237d7ff552ed988033496df5c328f2e8cbc05b488f190446db0b7ecf6ef9259a8da98f112ddf17d36c95b24046404cf14983cecf9ad06c9277
6
+ metadata.gz: 3667e2163b45499cd5ad3648b0109af8577625486b8f7a8ca963e7f51668a063ce05ea27ca3a04795c8213d60d239bbb91cff5e11bef02cd48da3c4d31fc4b7e
7
+ data.tar.gz: 283312b0775802dc66a502ba7836ecfc4f517978c031ff2de1ba7d51199591904d619722fa3d8f0af1a253a444c0c00a276752d5966fd5f3d33904d47521309f
@@ -4,6 +4,8 @@ module ClWiki
4
4
  class Engine < ::Rails::Engine
5
5
  isolate_namespace ClWiki
6
6
 
7
+ config.autoload_paths << "#{root}/lib"
8
+
7
9
  initializer 'cl_wiki.assets.precompile' do |app|
8
10
  app.config.assets.precompile += %w[application.css application.js]
9
11
  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.1'
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.1
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