remark_analytics 1.0.2 → 1.0.3

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: a67bceda96ecf1668255b23a734e54fd245d2b994e79dab243c40ca8877f5f8f
4
- data.tar.gz: '076875c5f45d3d3c6debe5baf2faa3fbd85219becee020ba161833e34a521cd1'
3
+ metadata.gz: b98a853933f8d8e086326d38792764a90cb77d23035c99521cfe80956303f2cb
4
+ data.tar.gz: d426d2f41a49d60b805c5c45e7631fb02a1e1536377014d82171fa3cec2ab568
5
5
  SHA512:
6
- metadata.gz: caec26560bebac4e079691f1fec6fb62e2931abe2d58604c8e438c3653389c15fa75b23426cf6f5591a0f01864aa424e10420260f2fe0c2b154c3f1c13293baa
7
- data.tar.gz: 625a60541fe3877607e58e4885dac8078bef1a2b0d57f7ee2716e8ad3c5620d825ce3dd5c04df3c1721629e9aeb0455f38657a306bfc1176e76935d56fae27b8
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)
@@ -1,3 +1,3 @@
1
1
  module RemarkAnalytics
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
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.2
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-06-21 00:00:00.000000000 Z
11
+ date: 2022-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday