jekyll_jam_comments 0.0.2 → 1.0.1

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: cab1988147e713f97a3a754b85c2be3b10356c84165966bbe0b4c13401899801
4
- data.tar.gz: 316bce7d76454cbebcd0310fe4be6dfa00b502c10ba714406a8a0484af298096
3
+ metadata.gz: 63d6c2793424859c33a7bd8e08f7169509b5dbcfa29f5e5b4eafa1c738d64d81
4
+ data.tar.gz: 8d11eac1c8c081e7383bf9eef3fa2fdae8ef8b3d518c9e45c79771a7fbf69378
5
5
  SHA512:
6
- metadata.gz: c793a13bb427f570db98204d3f067cbf80f606a792719f37c5c9e1e91d803ccf724c07891dcd2a84872c8d5f021fa2fc5c8adc474ad706b3fd69fae4f7919b6c
7
- data.tar.gz: 1c2ae50320c3a60affec563ce048d6168320a74f891c7ff668e67f8bc6343a5705d9b2552ba3b0d7db60efcaf2ddef069106f5d6d9021f16bab9ca68e3ea338b
6
+ metadata.gz: baf160c4146ec4e82e97d113003de5e2d7e1e5f86a1c644db7c500c6a8972c86222e2e290d425902fc02af27e0a128074a9b48b9af7b5aa061bdeaa76545f949
7
+ data.tar.gz: 952bf49c67ba7d9d71e35f01eb5771255328d2752c4972f264f59439c73b9dbd531346db086134e5e4073b48dc0422e20fd70606e33930677248d0b730294fbc
@@ -5,19 +5,21 @@ module Jekyll
5
5
  class Configuration
6
6
  class << self
7
7
  def domain
8
- configuration["domain"] || ENV["JAM_COMMENTS_DOMAIN"]
8
+ configuration["domain"] || ENV.fetch("JAM_COMMENTS_DOMAIN", nil)
9
9
  end
10
10
 
11
11
  def base_url
12
- configuration["base_url"] || ENV["JAM_COMMENTS_BASE_URL"]
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["JAM_COMMENTS_API_KEY"]
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["JEKYLL_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
- :'X-Platform' => "jekyll",
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module JamComments
5
- VERSION = "0.0.2"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
@@ -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@1.0.4/dist/index.umd.js"
12
+ CLIENT_SCRIPT_URL = "https://unpkg.com/@jam-comments/client@2.0.0-beta.2/dist/index.umd.js"
13
13
 
14
14
  def initialize(tag_name, path, tokens)
15
15
  super
@@ -25,8 +25,7 @@ module Jekyll
25
25
  #{markup}
26
26
  <script src=\"#{CLIENT_SCRIPT_URL}\"></script>
27
27
  <script>
28
- const root = document.querySelector('[data-jam-comments-component=\"shell\"]');
29
- JamComments.initialize(root);
28
+ window.JamComments.initialize();
30
29
  </script>
31
30
  "
32
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: 0.0.2
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex MacArthur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-07 00:00:00.000000000 Z
11
+ date: 2023-04-22 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.5.0
142
+ version: 2.7.2
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="