clwiki 3.1.5 → 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: 046da72e8a1a7f29f4f364b9d8cd7083ea964ae8dbecdbf010975b68c6139437
4
- data.tar.gz: 40807c8b3a0971b23903ec94f03fe60419b10f2921350325c7e4ffa53cba2976
3
+ metadata.gz: 97ebde2a781a39b20a317e022578893b96b7a91c15ad7460ac27cc5cf1b50621
4
+ data.tar.gz: 784855ebf77c99bfba0317713c2162b53fadb3efdd5a5c317c5a41849390f30c
5
5
  SHA512:
6
- metadata.gz: bc957dbd4899639e849076d780a8f8f26e0552e2dce1004ab278167508d4f1580556e1bd6e187b9ddcf15f72c947bdd5a394b673a8527c18fbadbde2c8f858fc
7
- data.tar.gz: b9ab46727f5c1542b86ff1563d5133b03835d0bcd09f6eddfbc762e0b9a47665eb866548fe996c55c04dc9ee39cfad3d7dadd5994acacbca0e522dd9f3062493
6
+ metadata.gz: 55c493276b0aa74b80a797da484d7a9999f2bfd1ec13aeea58a9c18a08c2405f322fa95bb78e84272393316f3b756818a7eab3525f9cce3d7951dd2f323adff5
7
+ data.tar.gz: 3b4ee3ba130a13cf79da8fa1c4db28dcbeced8c1d802550e37ee2374e7ab1fbb11e1f3cdbb0c96fc77970477d33b0a6c5b11bc846eab0c4e79e69f487c37dc4d
@@ -120,7 +120,10 @@ form {
120
120
 
121
121
  textarea {
122
122
  width: 100%;
123
- height: 100%;
123
+ /* probably a smarter way to ensure the bottom row of
124
+ inputs aren't too crowded on a mobile view, but this
125
+ should be fine */
126
+ height: 95%;
124
127
  /* otherwise it's a monospace in Chrome by default */
125
128
  font-family: inherit;
126
129
  }
@@ -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.5'
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.5
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-18 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