remark_analytics 1.0.0 → 1.0.1

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: 4c76a31814603a543b8ded0d7160a91742560ebf3a0fecef0bc3eb9398a83e92
4
- data.tar.gz: e5f4c54206f4623f730ca26459212fa90c6785f1ded21849384fa48eab94a6b7
3
+ metadata.gz: e1702e8faba069627dd5a47d1d921341562bcb2e89033b751ae07298c55538b5
4
+ data.tar.gz: a7d5e138c5fa42dd65071b5f71c63c07d6f630675099dba3bb3ddab9caa91fc6
5
5
  SHA512:
6
- metadata.gz: 9cfb9a742215c299b72d254beb2f36a11bcc1b65a3f1c2d4f04d324ddbe9ab1afa01a8afc1b6e436d8afdec12b3c91aa94c571c5258f01f0cfe504e450836955
7
- data.tar.gz: cb957ffc43dec4a9d3d44aff5bc206a9dfe819c620a7bff4afb70c761866da741a7d08d1822a86885f50a658cdb561615520aa31a6f81b5b42e66c9aa909cd2b
6
+ metadata.gz: 2a8fa7aaffbf6cb4244e10a7b945c4d98d56ead736eaf35b54cf00e4d1a24939cab5b0395fdabab45d4b26a02c2901c366f3beb015b5a29a38d2c127472d1188
7
+ data.tar.gz: '038e96e6787e4976f1b88d13e20a2a7841d9b13798104c446dabcd9a35709b7e7423badf0998cc3ce368859787bea23f8470adcc25349f16e4522fe323692302'
data/README.md CHANGED
@@ -1,29 +1,47 @@
1
- # README #
1
+ # ReMark Analytics
2
2
 
3
- This README would normally document whatever steps are necessary to get your application up and running.
3
+ Welcome to the readme of ReMark Analytics. This library is used to emit events
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.
4
5
 
5
- ### What is this repository for? ###
6
+ ## Installation
6
7
 
7
- * Quick summary
8
- * Version
9
- * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
8
+ Add this line to your application's Gemfile:
10
9
 
11
- ### How do I get set up? ###
10
+ ```ruby
11
+ gem 'remark_analytics'
12
+ ```
12
13
 
13
- * Summary of set up
14
- * Configuration
15
- * Dependencies
16
- * Database configuration
17
- * How to run tests
18
- * Deployment instructions
14
+ And then execute:
19
15
 
20
- ### Contribution guidelines ###
16
+ $ bundle install
21
17
 
22
- * Writing tests
23
- * Code review
24
- * Other guidelines
18
+ Or install it yourself as:
25
19
 
26
- ### Who do I talk to? ###
20
+ $ gem install remark_analytics
27
21
 
28
- * Repo owner or admin
29
- * Other community or team contact
22
+ ## Configuration
23
+ Make sure the following keys and their values become available in your application's Rails.application.secrets
24
+
25
+ - **REMARK_ANALYTICS_URL** (the url of the application to post to (within the velogica cluster)
26
+ - **REMARK_ANALYTICS_USERNAME** (the Basic Authentication user name)
27
+ - **REMARK_ANALYTICS_PASSWORD** (the Basic Authentication user password)
28
+ - **REMARK_ANALYTICS_TENANT_NAME** (the name of the tenant/client)
29
+
30
+
31
+ ## Usage
32
+
33
+ Examples:
34
+
35
+ ```ruby
36
+ # You can register an event from everywhere in the code with
37
+ RemarkAnalytics::Event.emit({
38
+ name: 'event_name_that_is_easy_to_understand',
39
+ resource_id: resource.id,
40
+ resource_type: 'Dossier',
41
+ data: {
42
+ outcome: resource.outcome,
43
+ by_system: resource.by_system,
44
+ other_attribute: 'some value'
45
+ }
46
+ })
47
+ ```
@@ -1,3 +1,3 @@
1
1
  module RemarkAnalytics
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remark_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Rockx