jekyll_jam_comments 1.0.0 → 1.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f754fa5fc7b4928cb8d0bc993b36727486abae5a25af340a72018248d57bd2b3
|
4
|
+
data.tar.gz: bef980f94a12dc8b25c25bdaab3464ab68e0bd8872c1b54e972e60bbf9fb2241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad805de6497ab5a4b68bb8c164dab41a04910e34a91213bbe78538786683f6d8a4a7f37ddee93ed09d189678d1d2ea0d6592e24a9ebc0b2a9e0aefb55d3a346d
|
7
|
+
data.tar.gz: 4908511bfd3603849160dd6f826fed19830f8fc840e4daf7637d6cd596746eef03147b3334ff02e3edbfe3cd40e533e8cf8be199cc2013ada27138922c044e47
|
@@ -5,19 +5,21 @@ module Jekyll
|
|
5
5
|
class Configuration
|
6
6
|
class << self
|
7
7
|
def domain
|
8
|
-
configuration["domain"] || ENV
|
8
|
+
configuration["domain"] || ENV.fetch("JAM_COMMENTS_DOMAIN", nil)
|
9
9
|
end
|
10
10
|
|
11
11
|
def base_url
|
12
|
-
configuration["base_url"] || ENV
|
12
|
+
configuration["base_url"] || ENV.fetch("JAM_COMMENTS_BASE_URL", nil)
|
13
13
|
end
|
14
14
|
|
15
15
|
def api_key
|
16
|
-
configuration["api_key"] || ENV
|
16
|
+
configuration["api_key"] || ENV.fetch("JAM_COMMENTS_API_KEY", nil)
|
17
17
|
end
|
18
18
|
|
19
19
|
def environment
|
20
|
-
configuration["environment"] || ENV["JAM_COMMENTS_ENVIRONMENT"] || ENV
|
20
|
+
configuration["environment"] || ENV["JAM_COMMENTS_ENVIRONMENT"] || ENV.fetch(
|
21
|
+
"JEKYLL_ENV", nil
|
22
|
+
)
|
21
23
|
end
|
22
24
|
|
23
25
|
def configuration
|
@@ -31,7 +31,7 @@ module Jekyll
|
|
31
31
|
:headers => {
|
32
32
|
:Authorization => "Bearer #{api_key}",
|
33
33
|
:Accept => "application/json",
|
34
|
-
:
|
34
|
+
:"X-Platform" => "jekyll",
|
35
35
|
},
|
36
36
|
}
|
37
37
|
|
@@ -61,7 +61,7 @@ module Jekyll
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def endpoint
|
64
|
-
"#{base_url}/api/markup"
|
64
|
+
"#{base_url}/api/v2/markup"
|
65
65
|
end
|
66
66
|
|
67
67
|
def formatted_path(path)
|
data/lib/jekyll_jam_comments.rb
CHANGED
@@ -9,7 +9,7 @@ module Jekyll
|
|
9
9
|
class Tag < Liquid::Tag
|
10
10
|
attr_reader :path, :markup
|
11
11
|
|
12
|
-
CLIENT_SCRIPT_URL = "https://unpkg.com/@jam-comments/client@2.
|
12
|
+
CLIENT_SCRIPT_URL = "https://unpkg.com/@jam-comments/client@2.1.6/dist/index.umd.js"
|
13
13
|
|
14
14
|
def initialize(tag_name, path, tokens)
|
15
15
|
super
|
@@ -25,7 +25,7 @@ module Jekyll
|
|
25
25
|
#{markup}
|
26
26
|
<script src=\"#{CLIENT_SCRIPT_URL}\"></script>
|
27
27
|
<script>
|
28
|
-
window.JamComments.initialize(
|
28
|
+
window.JamComments.initialize();
|
29
29
|
</script>
|
30
30
|
"
|
31
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_jam_comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex MacArthur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
139
|
requirements:
|
140
140
|
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version: 2.
|
142
|
+
version: 2.7.2
|
143
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
145
|
- - ">="
|