remark_analytics 1.0.2 → 1.0.3
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 +4 -4
- data/README.md +4 -1
- data/lib/remark_analytics/jobs/post_event_job.rb +4 -0
- data/lib/remark_analytics/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b98a853933f8d8e086326d38792764a90cb77d23035c99521cfe80956303f2cb
|
|
4
|
+
data.tar.gz: d426d2f41a49d60b805c5c45e7631fb02a1e1536377014d82171fa3cec2ab568
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 775ad1037a02b34f697ca005dfcf9d3a85a39d0513ab2459d63a7dc8ebdc0a0569068cc62e6122ba26d7be1009e19d16cf8ed39a100d8109132863818d5610f7
|
|
7
|
+
data.tar.gz: ff7b12909bd03bedfed50c45be723c68658a9859f67f754504b4ba02507ecc76b5e898990bc457ab8e655c5fb01c45d20c4e99ee9024cfe9e12abfe3f2e7e686
|
data/README.md
CHANGED
|
@@ -27,6 +27,9 @@ Make sure the following keys and their values become available in your applicati
|
|
|
27
27
|
- **REMARK_ANALYTICS_PASSWORD** (the Basic Authentication user password)
|
|
28
28
|
- **REMARK_ANALYTICS_TENANT_NAME** (the name of the tenant/client)
|
|
29
29
|
|
|
30
|
+
or suppress Sentry messages by setting just one secret
|
|
31
|
+
|
|
32
|
+
- **NO_REMARK_ANALYTICS** (any value is good enough; true or yes, foo)
|
|
30
33
|
|
|
31
34
|
## Usage
|
|
32
35
|
|
|
@@ -44,4 +47,4 @@ RemarkAnalytics::Event.emit({
|
|
|
44
47
|
other_attribute: 'some value'
|
|
45
48
|
}
|
|
46
49
|
})
|
|
47
|
-
```
|
|
50
|
+
```
|
|
@@ -16,6 +16,10 @@ module RemarkAnalytics
|
|
|
16
16
|
protected
|
|
17
17
|
|
|
18
18
|
def connection
|
|
19
|
+
if Rails.application.secrets.try(:NO_REMARK_ANALYTICS)
|
|
20
|
+
return
|
|
21
|
+
end
|
|
22
|
+
|
|
19
23
|
analytics_url = Rails.application.secrets.try(:REMARK_ANALYTICS_URL)
|
|
20
24
|
username = Rails.application.secrets.try(:REMARK_ANALYTICS_USERNAME)
|
|
21
25
|
password = Rails.application.secrets.try(:REMARK_ANALYTICS_PASSWORD)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: remark_analytics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Rockx
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|