remark_analytics 1.0.12 → 1.0.13

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: 530bd298dad02c3867f0b973dca75734788df84d97f61aba45627d3b151c00ba
4
- data.tar.gz: 030a94d0e351ca9acb22973b1a4f8b09970f3c683600dedbbabaa19cd0460d40
3
+ metadata.gz: 6d88b6ba30cf5162e989ac4f5e02540e11484a9ff45c1e394d37dd06cceb81fe
4
+ data.tar.gz: 6ca366a66c3a59c2cd9d3039c735ef997e82b69966fbae7cb08077b5473fecba
5
5
  SHA512:
6
- metadata.gz: 0636a20275afc49a5aef66ed764ff87fdfcf8917de1a3db796fb10225e9251b92db43be714649f146d1a0870a1365b1ae5b6f3bb1a535080a10fbd764bf571c4
7
- data.tar.gz: bea2425be93e8d0899afe41969a6047d90908327a6ed82877d4914ee2d266879e748ed9ae13cff5af649b371b9e84cda653b2acf01ae29a58af2e2484e04e2ed
6
+ metadata.gz: 9dc6e5db6a2bf7ac7c1dae586111aaca36abbf1bd5c557edff5879fbdb9f3e40232ace415d29c84f9d8c703bdb3af20cdc079511d769d205328967f566f549ef
7
+ data.tar.gz: 88f6f12d4b835b5d71bb5d406de04548f338e0db63490c3c6377cab13c6ddcb938742f564d1e66d1f39c9138eed6bf7254574f27062c394e29ed77de00483a34
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ReMark Analytics
2
2
 
3
- Welcome to the readme of ReMark Analytics. This library is used to emit events
3
+ Welcome to the readme of ReMark Analytics. This library is used to emit events
4
4
  from Ruby applications to the ReMark Analytics API in order for ReMark's Data Analytics team to do magic with the built up data set.
5
5
 
6
6
  ## Installation
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
  $ gem install remark_analytics
21
21
 
22
22
  ## Configuration
23
- Make sure the following keys and their values become available in your application's Rails.application.secrets
23
+ Make sure the following keys and their values become available in your application's ENV collection
24
24
 
25
25
  - **REMARK_ANALYTICS_URL** (the url of the ReMark Analytics application)
26
26
  - **REMARK_ANALYTICS_USERNAME** (the Basic Authentication user name)
@@ -36,7 +36,7 @@ or prevent the raise of missing secrets errors by setting just one secret
36
36
  Examples:
37
37
 
38
38
  ```ruby
39
- # You can register an event from everywhere in the code with
39
+ # You can register an event from everywhere in the code with
40
40
  RemarkAnalytics::Event.emit({
41
41
  name: 'event_name_that_is_easy_to_understand',
42
42
  resource_id: resource.id,
@@ -16,13 +16,13 @@ module RemarkAnalytics
16
16
  protected
17
17
 
18
18
  def connection
19
- if Rails.application.secrets.try(:NO_REMARK_ANALYTICS) || ENV['NO_REMARK_ANALYTICS'].present?
19
+ if ENV.fetch('NO_REMARK_ANALYTICS', nil).present?
20
20
  return
21
21
  end
22
22
 
23
- analytics_url = Rails.application.secrets.try(:REMARK_ANALYTICS_URL)
24
- username = Rails.application.secrets.try(:REMARK_ANALYTICS_USERNAME)
25
- password = Rails.application.secrets.try(:REMARK_ANALYTICS_PASSWORD)
23
+ analytics_url = ENV.fetch('REMARK_ANALYTICS_URL', nil)
24
+ username = ENV.fetch('REMARK_ANALYTICS_USERNAME', nil)
25
+ password = ENV.fetch('REMARK_ANALYTICS_PASSWORD', nil)
26
26
  @events_endpoint = "#{analytics_url}/api/v1/events"
27
27
 
28
28
  if analytics_url.blank?
@@ -1,3 +1,3 @@
1
1
  module RemarkAnalytics
2
- VERSION = '1.0.12'.freeze
2
+ VERSION = '1.0.13'.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.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Rockx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-24 00:00:00.000000000 Z
11
+ date: 2024-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.3.16
68
+ rubygems_version: 3.5.11
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Gem to fire events to ReMark Analytics API from a client application