bridgetown_jam_comments 0.1.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: 3b75f44a96fcea045bf07300ecfca9b780060c70b390d5cf7539230a43df1f26
4
- data.tar.gz: 627d9eec9ef5399318479149321a550e5bb1257882bba5b44e02524ea6c04f3f
3
+ metadata.gz: 894d5942a9afbe658793e21869e2a3eed94c2685908a376cd0902991bcc3ac3f
4
+ data.tar.gz: eeba19e1e804ffeb385b4c81f30234bd0747a9e77fe9bd67696bfa6b73bcd266
5
5
  SHA512:
6
- metadata.gz: d044be8cfb0557f4f397be37b66f19615f6660053d86955f7303855de568c9573483fa4f95547220e81fa2538b3f5bd91ffadaf4e605711c16ad54834c01a09f
7
- data.tar.gz: 88fd2c347585b1a7d94e22a2371a6b9a0492b6b2b52183211e4603759f9659dc83f770c13d094886f5e25e1f6f492672db700df18260082a1ad88df16cf66d18
6
+ metadata.gz: 95df636b3a640187fc95f78c8c4670d61e36123402365ba2f5d38ff7a72bc95c3db88d2abe1404f08ba2f9a4b4d2e9de098d1c041ab5a7c49f687bd31a12492c
7
+ data.tar.gz: c0778447aabc281da8a28f2d2cd31b0e8a65fca5f105723f08738e835a1be37c853cf4a5fc8e6ca5c4550ccceda5d5b5167e4c72c12068e9c3c3357d107da7d2
@@ -4,7 +4,7 @@ require "pry"
4
4
 
5
5
  module JamComments
6
6
  class Renderer
7
- CLIENT_SCRIPT_URL = "https://unpkg.com/@jam-comments/client@2.1.6/dist/index.umd.js"
7
+ CLIENT_SCRIPT_URL = "https://unpkg.com/@jam-comments/client@2.3.2/dist/index.umd.js"
8
8
 
9
9
  attr_reader :provided_configuration
10
10
 
@@ -4,15 +4,17 @@ require "httparty"
4
4
 
5
5
  module JamComments
6
6
  class Service
7
- attr_reader :base_url, :environment, :domain, :api_key, :client
7
+ attr_reader :base_url, :tz, :environment, :domain, :api_key, :client
8
8
 
9
9
  def initialize(
10
10
  domain:,
11
11
  api_key:,
12
12
  base_url: nil,
13
13
  environment: nil,
14
+ tz: nil,
14
15
  client: HTTParty
15
16
  )
17
+ @tz = tz
16
18
  @client = client
17
19
  @domain = domain
18
20
  @api_key = api_key
@@ -26,6 +28,7 @@ module JamComments
26
28
  path: formatted_path(path),
27
29
  domain: domain,
28
30
  stub: stub_value,
31
+ tz: tz,
29
32
  },
30
33
  headers: {
31
34
  Authorization: "Bearer #{api_key}",
@@ -56,7 +59,7 @@ module JamComments
56
59
  end
57
60
 
58
61
  def endpoint
59
- "#{base_url}/api/v2/markup"
62
+ "#{base_url}/api/v3/markup"
60
63
  end
61
64
 
62
65
  def formatted_path(path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JamComments
4
- VERSION = "0.1.0"
4
+ VERSION = "1.0.0"
5
5
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown_jam_comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.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-05-18 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: httparty
14
+ name: bridgetown
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bridgetown
28
+ name: httparty
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -128,7 +128,8 @@ files:
128
128
  homepage: https://github.com/alexmacarthur/bridgetown-jam-comments
129
129
  licenses:
130
130
  - MIT
131
- metadata: {}
131
+ metadata:
132
+ rubygems_mfa_required: 'true'
132
133
  post_install_message:
133
134
  rdoc_options: []
134
135
  require_paths:
@@ -144,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
145
  - !ruby/object:Gem::Version
145
146
  version: '0'
146
147
  requirements: []
147
- rubygems_version: 3.1.4
148
+ rubygems_version: 3.3.26
148
149
  signing_key:
149
150
  specification_version: 4
150
151
  summary: A Bridgetown plugin for setting up JamComments in a Bridgetown site.