snowplow-tracker 0.6.0 → 0.7.0.pre.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +36 -39
- data/lib/snowplow-tracker/emitters.rb +2 -2
- data/lib/snowplow-tracker/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b761416688e2e517281d14cdfd3d2622311688afb43bca3d9fab8f8a40c05e17
|
4
|
+
data.tar.gz: c6b27bf1738e3a6a01581edda360b47583bc7fed98a6339aae0c3d4d7986445b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf5148bf18bdd3b8579b22941156e61f79716b2b0081967dc560f67abfba0fe5413210b49b05b18d5b34228c8d0326af3228bf141d2616d05129830ae5dcc3bd
|
7
|
+
data.tar.gz: dab9ce5aa09db2d1b550daefe09c0ecadcb5d3e99f97044329771967932bb058dbd7d02897250b9fa22c231847bb0c63ef349c053638781af69fb5857d44eb87
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
# Ruby Analytics for Snowplow
|
2
|
-
|
1
|
+
# Ruby Analytics for Snowplow
|
2
|
+
|
3
|
+
[![early-release]][tracker-classification]
|
4
|
+
[](https://badge.fury.io/rb/snowplow-tracker)
|
3
5
|
[](https://travis-ci.org/snowplow/snowplow-ruby-tracker)
|
4
6
|
[](https://codeclimate.com/github/snowplow/snowplow-ruby-tracker)
|
5
7
|
[](https://coveralls.io/r/snowplow/snowplow-ruby-tracker)
|
@@ -7,42 +9,44 @@
|
|
7
9
|
|
8
10
|
## Overview
|
9
11
|
|
10
|
-
Add analytics to your Ruby and Rails apps and gems with the **[Snowplow]
|
12
|
+
Add analytics to your Ruby and Rails apps and gems with the **[Snowplow][snowplow]** event tracker for **[Ruby][ruby]**.
|
11
13
|
|
12
|
-
With this tracker you can collect event data from your **[Ruby]
|
14
|
+
With this tracker you can collect event data from your **[Ruby][ruby]** applications, **[Ruby on Rails][rails]** web applications and **[Ruby gems][rubygems]**.
|
13
15
|
|
14
|
-
## Quickstart
|
16
|
+
## Maintainer Quickstart
|
15
17
|
|
16
|
-
|
18
|
+
Clone this repo and navigate into the cloned folder. To run the tests locally, you will need [Docker][docker] installed.
|
17
19
|
|
18
20
|
```bash
|
19
|
-
|
20
|
-
|
21
|
-
host$ vagrant up && vagrant ssh
|
22
|
-
guest$ cd /vagrant
|
23
|
-
guest$ gem install bundler
|
24
|
-
guest$ bundle install
|
25
|
-
guest$ rspec
|
21
|
+
docker build . -t ruby-tracker
|
22
|
+
docker run -v "$(pwd)":"/code" ruby-tracker
|
26
23
|
```
|
27
24
|
|
28
|
-
|
25
|
+
The `-v` flag for `docker run` creates a bind mount for the project directory. This means that changes to the files will be automatically applied within the Docker image. However, if you modify the `Gemfile` or `snowplow-tracker.gemspec` files, the image must be rebuilt.
|
26
|
+
|
27
|
+
Alternatively, test directly by installing Ruby 2.6+ and [Bundler][bundler]. Then run:
|
29
28
|
|
30
|
-
```bash
|
31
|
-
host$ vagrant push
|
32
29
|
```
|
30
|
+
bundle install
|
31
|
+
rspec
|
32
|
+
```
|
33
|
+
|
34
|
+
## Contributing
|
35
|
+
|
36
|
+
Feedback and contributions are welcome - if you have identified a bug, please log an issue on this repo. For all other feedback, discussion or questions please open a thread on our [Discourse forum][discourse].
|
33
37
|
|
34
38
|
## Find out more
|
35
39
|
|
36
|
-
| Technical Docs
|
37
|
-
|
38
|
-
| ![i1]
|
39
|
-
| **[Technical Docs]
|
40
|
+
| Technical Docs | Contributing |
|
41
|
+
| ------------------------------ | ----------------------------------- |
|
42
|
+
| ![i1][techdocs-image] | ![i4][contributing-image] |
|
43
|
+
| **[Technical Docs][techdocs]** | **[Contributing](Contributing.md)** |
|
40
44
|
|
41
45
|
## Copyright and license
|
42
46
|
|
43
|
-
The Snowplow Ruby Tracker is copyright 2013-
|
47
|
+
The Snowplow Ruby Tracker is copyright 2013-2016 Snowplow Analytics Ltd.
|
44
48
|
|
45
|
-
Licensed under the **[Apache License, Version 2.0]
|
49
|
+
Licensed under the **[Apache License, Version 2.0][license]** (the "License");
|
46
50
|
you may not use this software except in compliance with the License.
|
47
51
|
|
48
52
|
Unless required by applicable law or agreed to in writing, software
|
@@ -51,24 +55,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
51
55
|
See the License for the specific language governing permissions and
|
52
56
|
limitations under the License.
|
53
57
|
|
54
|
-
[license-image]:
|
55
|
-
[license]:
|
56
|
-
|
58
|
+
[license-image]: https://img.shields.io/badge/license-Apache--2-blue.svg?style=flat
|
59
|
+
[license]: https://www.apache.org/licenses/LICENSE-2.0
|
57
60
|
[ruby]: https://www.ruby-lang.org/en/
|
58
|
-
[rails]:
|
61
|
+
[rails]: https://rubyonrails.org/
|
59
62
|
[rubygems]: https://rubygems.org/
|
60
|
-
|
61
|
-
[
|
62
|
-
|
63
|
-
[
|
64
|
-
[virtualbox-install]: https://www.virtualbox.org/wiki/Downloads
|
65
|
-
|
63
|
+
[docker]: https://www.docker.com/
|
64
|
+
[bundler]: https://bundler.io/
|
65
|
+
[snowplow]: httpd://snowplowanalytics.com
|
66
|
+
[discourse]: https://discourse.snowplowanalytics.com
|
66
67
|
[techdocs-image]: https://d3i6fms1cm1j0i.cloudfront.net/github/images/techdocs.png
|
67
|
-
[setup-image]: https://d3i6fms1cm1j0i.cloudfront.net/github/images/setup.png
|
68
|
-
[roadmap-image]: https://d3i6fms1cm1j0i.cloudfront.net/github/images/roadmap.png
|
69
68
|
[contributing-image]: https://d3i6fms1cm1j0i.cloudfront.net/github/images/contributing.png
|
70
|
-
|
71
|
-
[
|
72
|
-
[
|
73
|
-
[roadmap]: https://github.com/snowplow/snowplow/wiki/Ruby-Tracker-Roadmap
|
74
|
-
[contributing]: https://github.com/snowplow/snowplow/wiki/Ruby-Tracker-Contributing
|
69
|
+
[techdocs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/ruby-tracker/
|
70
|
+
[tracker-classification]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/tracker-maintenance-classification/
|
71
|
+
[early-release]: https://img.shields.io/static/v1?style=flat&label=Snowplow&message=Early%20Release&color=014477&labelColor=9ba0aa&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAeFBMVEVMaXGXANeYANeXANZbAJmXANeUANSQAM+XANeMAMpaAJhZAJeZANiXANaXANaOAM2WANVnAKWXANZ9ALtmAKVaAJmXANZaAJlXAJZdAJxaAJlZAJdbAJlbAJmQAM+UANKZANhhAJ+EAL+BAL9oAKZnAKVjAKF1ALNBd8J1AAAAKHRSTlMAa1hWXyteBTQJIEwRgUh2JjJon21wcBgNfmc+JlOBQjwezWF2l5dXzkW3/wAAAHpJREFUeNokhQOCA1EAxTL85hi7dXv/E5YPCYBq5DeN4pcqV1XbtW/xTVMIMAZE0cBHEaZhBmIQwCFofeprPUHqjmD/+7peztd62dWQRkvrQayXkn01f/gWp2CrxfjY7rcZ5V7DEMDQgmEozFpZqLUYDsNwOqbnMLwPAJEwCopZxKttAAAAAElFTkSuQmCC
|
@@ -114,14 +114,14 @@ module SnowplowTracker
|
|
114
114
|
LOGGER.info("Attempting to send #{evts.size} request#{evts.size == 1 ? '' : 's'}")
|
115
115
|
|
116
116
|
evts.each do |event|
|
117
|
-
event['stm'] = (Time.now.to_f * 1000).to_i # add the sent timestamp, overwrite if already exists
|
117
|
+
event['stm'] = (Time.now.to_f * 1000).to_i.to_s # add the sent timestamp, overwrite if already exists
|
118
118
|
end
|
119
119
|
|
120
120
|
if @method == 'post'
|
121
121
|
post_succeeded = false
|
122
122
|
begin
|
123
123
|
request = http_post(SelfDescribingJson.new(
|
124
|
-
'iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-
|
124
|
+
'iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4',
|
125
125
|
evts
|
126
126
|
).to_json)
|
127
127
|
post_succeeded = is_good_status_code(request.code)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snowplow-tracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0.pre.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Dean
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: contracts
|
@@ -79,7 +79,7 @@ files:
|
|
79
79
|
- lib/snowplow-tracker/version.rb
|
80
80
|
homepage: http://github.com/snowplow/snowplow-ruby-tracker
|
81
81
|
licenses:
|
82
|
-
- Apache
|
82
|
+
- Apache-2.0
|
83
83
|
metadata: {}
|
84
84
|
post_install_message:
|
85
85
|
rdoc_options: []
|
@@ -92,12 +92,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: 2.0.0
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - "
|
95
|
+
- - ">"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 1.3.1
|
98
98
|
requirements: []
|
99
|
-
|
100
|
-
rubygems_version: 2.6.6
|
99
|
+
rubygems_version: 3.0.3.1
|
101
100
|
signing_key:
|
102
101
|
specification_version: 4
|
103
102
|
summary: Ruby Analytics for Snowplow
|