thredded-markdown_katex 0.4.0 → 1.0.0

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: ed96f469b7fdcc68693ae31f109cd9a0155917d26b1245a1b4c23f66580c4cce
4
- data.tar.gz: d78fe5092eac6466efea45d80df1b0c19ef6b154d570137f1f25e1c451b02ef6
3
+ metadata.gz: d9c57df28a8f7c67c86947f47ea8454e289e96a0f6d1530cd708b591ffdd534d
4
+ data.tar.gz: 34d28287bbe6d7a867ec0105eef5c1f861b65c96130219642df1e092fbd3187c
5
5
  SHA512:
6
- metadata.gz: a4d4b92e522785dad84adfd325e50cdae9145052daad8ce6053d6ceaa9f70fb6e663457fe114597a01f4f21f269e5b0bc4fa45cc3a599dbe0244416b920f677a
7
- data.tar.gz: ede7ca868117f825cafe819a95687ef39749217066d581f7419a83a6f5de0fbe1a56fab1854a0f283469178a38bbc04d97892118da84d00ab9c97056c6a432da
6
+ metadata.gz: c2db77b36cd305acf6e83866536803a8d3bf72426a12b4aa29b4d4d0cd4dae64929abfaf5d9cdd852f4304c42f48d0ea24bea7cd1d2e25842f548da0d2938c76
7
+ data.tar.gz: b334cd3ca2e9cde5f9a37b7277d66d613044ce952d58e6b7c99dbf89d8e98508c51507f08079ed17515756a8a0f05dc5bd942daef580c64d802b41b224224456
@@ -7,20 +7,17 @@ module Thredded
7
7
  desc 'Installs Thredded Katex plugin.'
8
8
  public_task :install
9
9
 
10
- def install # rubocop:disable Metrics/MethodLength
10
+ def install
11
11
  %w[application.scss _deps.scss].each do |scss_file|
12
12
  scss_path = File.join('app', 'assets', 'stylesheets', scss_file)
13
13
  next unless File.exist? scss_path
14
- append_to_file scss_path, "\n" + '@import "_katex";' + "\n"
14
+
15
+ append_to_file scss_path, "\n@import \"_katex\";\n"
15
16
  end
16
17
  sass_path = 'app/assets/stylesheets/application.sass'
17
- if File.exist? sass_path
18
- append_to_file sass_path, "\n" + '@import "_katex"' + "\n"
19
- end
18
+ append_to_file sass_path, "\n@import \"_katex\"\n" if File.exist? sass_path
20
19
  css_path = 'app/assets/stylesheets/application.css'
21
- if File.exist? css_path # rubocop:disable Style/GuardClause
22
- append_to_file css_path, "\n" + '//= require katex' + "\n"
23
- end
20
+ append_to_file css_path, "\n//= require katex\n" if File.exist? css_path
24
21
  end
25
22
  end
26
23
  end
@@ -7,7 +7,7 @@ module Thredded
7
7
  module Kramdown
8
8
  # The KaTeX converter engine for Kramdown.
9
9
  module KatexConverter
10
- # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
10
+ # rubocop:disable Metrics/MethodLength, Naming/MethodParameterName
11
11
 
12
12
  def self.call(converter, el, opts)
13
13
  display_mode = el.options[:category] == :block
@@ -25,7 +25,7 @@ module Thredded
25
25
  result = "#{' ' * opts[:indent]}#{result}\n" if display_mode
26
26
  result
27
27
  end
28
- # rubocop:enable Metrics/AbcSize,Metrics/MethodLength
28
+ # rubocop:enable Metrics/MethodLength, Naming/MethodParameterName
29
29
  end
30
30
  end
31
31
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Thredded
4
4
  module MarkdownKatex
5
- VERSION = '0.4.0'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
@@ -61,8 +61,10 @@ module Thredded
61
61
  Thredded::ContentFormatter.whitelist[:css] ||= {}
62
62
  Thredded::ContentFormatter.whitelist[:css][:properties] ||= []
63
63
  Thredded::ContentFormatter.whitelist[:css][:properties] += %w[
64
- background-color border-color color width min-width height min-height
65
- vertical-align padding-left margin-left margin-right font-size top
64
+ background-color border-color border-top-width border-right-width
65
+ border-bottom-width color width min-width height min-height
66
+ vertical-align padding-left margin-top margin-right margin-left
67
+ font-size position top left bottom
66
68
  ]
67
69
  end
68
70
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thredded-markdown_katex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-24 00:00:00.000000000 Z
11
+ date: 2022-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katex
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.14'
47
+ version: '2.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.14'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +84,44 @@ dependencies:
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 1.22.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 1.22.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.6.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.6.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.5.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.5.0
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: simplecov
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -144,24 +172,23 @@ homepage: https://github.com/thredded/thredded-markdown_katex
144
172
  licenses:
145
173
  - MIT
146
174
  metadata: {}
147
- post_install_message:
175
+ post_install_message:
148
176
  rdoc_options: []
149
177
  require_paths:
150
178
  - lib
151
179
  required_ruby_version: !ruby/object:Gem::Requirement
152
180
  requirements:
153
- - - "~>"
181
+ - - ">="
154
182
  - !ruby/object:Gem::Version
155
- version: '2.3'
183
+ version: '2.5'
156
184
  required_rubygems_version: !ruby/object:Gem::Requirement
157
185
  requirements:
158
186
  - - ">="
159
187
  - !ruby/object:Gem::Version
160
188
  version: '0'
161
189
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.7.8
164
- signing_key:
190
+ rubygems_version: 3.2.32
191
+ signing_key:
165
192
  specification_version: 4
166
193
  summary: Adds TeX math support to Thredded markup via KaTeX.
167
194
  test_files: []