discourse_plugin_statistics 0.1.0.pre4 → 0.1.0.pre5

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: 5ecea4649c6e62e7a516377d370b3c3eb46880c8732b1c8d03e5f3b2c05e1de4
4
- data.tar.gz: c81cd9627a8935c9b9fbbff145e49171f20465776c736c32bfb0d11770000c87
3
+ metadata.gz: f0ae8228274c7608227e6f43cde59bfcc1ba9439e84700327046b2be31358912
4
+ data.tar.gz: f2647b45ff91752b9cfb34e7835f50e01241cbc582e5ab2a856590d1b7d0f0af
5
5
  SHA512:
6
- metadata.gz: e9e5edc1aa1add98a8348b42e3c532832814ee6b96ea327de04abfa770f8ca95b4f83323e6be3f61e64e361ea1ca2e6415301eb717a84c2156742d00be6b72f6
7
- data.tar.gz: '079f5357ab3e37b2b6923fa6b122ad2d77e20cae5e5a08a551bc526009754f0c90b4e6c10e55027331ded6ed4345503342a30b724887bc5722c66a13df26c131'
6
+ metadata.gz: 03b52b0cdeade6fdd80fd71b3b736ed345cde720817b231440b5600c44491b0e6f56b9c98331341a702fb9d95bb1eb1b9357aadc27abbc9df41ca052e9f4812f
7
+ data.tar.gz: 833048742be89bbc38c210b2633615584158fcef8038a23f63d739249efacb68c899a333a3e3110a3b32152ffade04277cd68763ef65588911c87664fbfdfdff
@@ -4,6 +4,8 @@ require "excon"
4
4
 
5
5
  module DiscoursePluginStatistics
6
6
  class Statistics
7
+ PATH = "plugin-manager/statistics"
8
+
7
9
  def self.update!
8
10
  new.update
9
11
  end
@@ -28,7 +30,7 @@ module DiscoursePluginStatistics
28
30
 
29
31
  def request(body, url = nil)
30
32
  ::Excon.post(
31
- url || DiscoursePluginStatistics.server_url,
33
+ url || "#{DiscoursePluginStatistics.server_url}/#{PATH}",
32
34
  headers: { "Content-Type" => "application/json" },
33
35
  body: body
34
36
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiscoursePluginStatistics
4
- VERSION = "0.1.0.pre4"
4
+ VERSION = "0.1.0.pre5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_plugin_statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre4
4
+ version: 0.1.0.pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angus McLeod