browser_sense 1.0.0 → 1.0.1
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/CHANGELOG.org +7 -3
- data/README.org +3 -2
- data/browser_sense.gemspec +2 -24
- data/lib/browser_sense/version.rb +1 -1
- metadata +5 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7238bd65f27ab5515a8450831550d517d5c577d74d4d16d3a92a9cfab12598c
|
4
|
+
data.tar.gz: 6bd9cb1d1e1938ef1c10a863d6119ababbfc30eda63b2c68f28c3141397fc5b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 700b1052c5227ac87b7579223a337908b7ba520487c420d4387c366f29954672db9181370dac3cc988901df06a087c6c405e89619547d879ae0861cd1e785e00
|
7
|
+
data.tar.gz: 7873048616326259c8ccacd7ce35ca93698d1e9565557bb1afc67c97da4ddaea65941997bad7da893e81d5d55844f3a9aaa2c4d854c7ad4794c29835e25f1dfc
|
data/CHANGELOG.org
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
#+TITLE:
|
1
|
+
#+TITLE: BrowserSense ChangeLog
|
2
2
|
|
3
|
-
* [1.0.
|
3
|
+
* [1.0.1] - <2025-09-30 Tue>
|
4
|
+
|
5
|
+
- Fixes documentation
|
6
|
+
|
7
|
+
* [1.0.0] - <2025-08-31 Sun>
|
4
8
|
|
5
9
|
- First public release
|
6
10
|
- Changes and improvements to the documenation for public release
|
7
11
|
|
8
|
-
* [0.1.0] - 2022-11-23
|
12
|
+
* [0.1.0] - <2022-11-23 Wed>
|
9
13
|
|
10
14
|
- Initial release (private)
|
data/README.org
CHANGED
@@ -18,13 +18,14 @@ Add the gem to your application's Gemfile and then bundle:
|
|
18
18
|
bundle
|
19
19
|
#+end_example
|
20
20
|
|
21
|
-
To enable logging, add =
|
22
|
-
your app, e
|
21
|
+
To enable logging, add =browser_sense= to the =application_controller.rb= of
|
22
|
+
your app, i.e.:
|
23
23
|
|
24
24
|
#+begin_src ruby
|
25
25
|
class ApplicationController < ActionController::Base
|
26
26
|
[...]
|
27
27
|
|
28
|
+
include BrowserSenseFilter
|
28
29
|
browser_sense
|
29
30
|
|
30
31
|
[...]
|
data/browser_sense.gemspec
CHANGED
@@ -10,31 +10,9 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "Monitor which browser is accessing your Ruby on Rails app."
|
12
12
|
spec.description = <<-EOS
|
13
|
-
BrowserSense logs information about the
|
14
|
-
RubyOnRails app.
|
13
|
+
BrowserSense logs information about the browsers accessing your RubyOnRails app.
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
1. Add =gem "browser_sense"= to your Gemfile
|
19
|
-
|
20
|
-
2. Add the following line to your =application_controller.rb=:
|
21
|
-
|
22
|
-
browser_sense
|
23
|
-
|
24
|
-
Data is stored in csv format in Rails' production log. Each URL invocation
|
25
|
-
generates a log line.
|
26
|
-
|
27
|
-
Extract browser info data with:
|
28
|
-
|
29
|
-
grep BrowserSense development.log | cut -f2- -d:
|
30
|
-
|
31
|
-
Analyize with
|
32
|
-
|
33
|
-
browser-info log/production.log > output.txt
|
34
|
-
|
35
|
-
or with log_sense (https://rubygems.org/gems/log_sense)
|
36
|
-
|
37
|
-
BrowserSense relies on the browser gem to get informaton about the browsers.
|
15
|
+
Data can be easily extracted from the log, analyzed with the included script or with the log_sense gem.
|
38
16
|
EOS
|
39
17
|
spec.homepage = "https://github.com/shair-tech/browser_sense"
|
40
18
|
spec.license = "MIT"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browser_sense
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adolfo Villafiorita
|
@@ -23,15 +23,10 @@ dependencies:
|
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
25
|
version: 6.2.0
|
26
|
-
description:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
log. Each URL invocation\n generates a log line.\n\n Extract browser info
|
31
|
-
data with:\n\n grep BrowserSense development.log | cut -f2- -d:\n\n Analyize
|
32
|
-
with\n\n browser-info log/production.log > output.txt\n\n or with log_sense
|
33
|
-
(https://rubygems.org/gems/log_sense)\n\n BrowserSense relies on the browser
|
34
|
-
gem to get informaton about the browsers.\n"
|
26
|
+
description: |2
|
27
|
+
BrowserSense logs information about the browsers accessing your RubyOnRails app.
|
28
|
+
|
29
|
+
Data can be easily extracted from the log, analyzed with the included script or with the log_sense gem.
|
35
30
|
email:
|
36
31
|
- adolfo@shair.tech
|
37
32
|
executables:
|