jekyll-kw-shorten 0.0.1 → 0.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6125e8c3d524a504d635ef8d54be52fd1921e1a438bedf395e2648ebeab5df37
|
4
|
+
data.tar.gz: 52b469038d47775197f2516c8ebd7c5e364ea6c5e5fd53438abbbf504dc519b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44c016593f8df9f70db887461e88d04eec172f2db398a641543d74b010607c4490da7e56576e2076a2a7bf85fda5db8b75fc580be6a8c34bac6f2c4b7bbbcb41
|
7
|
+
data.tar.gz: 6181b606cbdae7b187a85ce6910298860d845b265b88b8323f6649393a9b4f153f34d17b3a88341791d9edc3e8fa9c8ea91b8e1f02fbb7505777cbc24688ad40
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'jekyll/KargWare/Shorten/parser'
|
4
|
+
|
3
5
|
module Jekyll
|
4
6
|
module KargWare
|
5
7
|
module Shorten
|
@@ -14,8 +16,7 @@ module Jekyll
|
|
14
16
|
end
|
15
17
|
|
16
18
|
def render(context)
|
17
|
-
|
18
|
-
filter.shorten(@input)
|
19
|
+
ShortenFilter.shorten(@input)
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
@@ -5,7 +5,7 @@ module Jekyll
|
|
5
5
|
module Shorten
|
6
6
|
# Shorten configuration class
|
7
7
|
class Configuration
|
8
|
-
|
8
|
+
attr_reader :shorten_gt3_digit, :shorten_gt6_digit, :shorten_gt9_digit
|
9
9
|
|
10
10
|
DEFAULT_CONFIG = {
|
11
11
|
'shorten_gt3_digit' => ' K',
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'jekyll/KargWare/Shorten/configuration'
|
4
|
+
|
3
5
|
module Jekyll
|
4
6
|
module KargWare
|
5
7
|
module Shorten
|
@@ -8,7 +10,7 @@ module Jekyll
|
|
8
10
|
attr_reader :configuration
|
9
11
|
|
10
12
|
def initialize(options = {})
|
11
|
-
@configuration = Configuration.new(options)
|
13
|
+
@configuration = Jekyll::KargWare::Shorten::Configuration.new(options)
|
12
14
|
end
|
13
15
|
|
14
16
|
def shorten(text)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-kw-shorten
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Karg
|
@@ -33,10 +33,10 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
35
|
- README.md
|
36
|
+
- lib/jekyll-kw-shorten.rb
|
36
37
|
- lib/jekyll/KargWare/Shorten/configuration.rb
|
37
38
|
- lib/jekyll/KargWare/Shorten/parser.rb
|
38
39
|
- lib/jekyll/KargWare/Shorten/version.rb
|
39
|
-
- lib/jekyll/KargWare/shorten.rb
|
40
40
|
homepage: https://notes.n13.org/rubygems
|
41
41
|
licenses: []
|
42
42
|
metadata:
|