rakwik 0.4.0 → 0.4.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 +8 -8
- data/.ruby-version +1 -1
- data/README.md +6 -2
- data/lib/rakwik/tracker.rb +3 -1
- data/lib/rakwik/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjkyN2RjNzM1ZGJjMGI4YzgzMzk2MDFmNGNlNWRiNTQwNWI1ZDYxYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGIyOTY0YzFlNjBjNTY1NjJjZWY2MDFhNGM4MjA3MDUwODI3MDkwZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmRjODkyMzc0YWJiNDU4ZmRhNDM1OTU0ZWQ2OTM3ZTg0OWVhYjVlNDVjZTc1
|
10
|
+
ZTMwNTE1ZWY4OTYwZjQyNGU5NzgzMGM5NWQ1OWIwYTk4ZWI0OWM3NDQ2N2Ji
|
11
|
+
MTM3OGUyZGZhYWNiYmZlNWNiMmNmNzhkOGY1ZTE3N2Q4ZmYxYzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDAyOTAwMmRmYTk3MDFjNzc2YjkyZDg4MzZkMzczMjFjMDVmNmI3Yjk3Y2U2
|
14
|
+
MjZkYWM2YjAzNTlkMWYwMDhlOTgzNjc5MTdkZDYzNmQyYzUwYjg2NjIyNzQ4
|
15
|
+
NGVkODNlNGVkZTFmYmEwNDg3NWRiMGQyNTY0ZTE3ZjQ0NzE0NTE=
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-1.9.3-
|
1
|
+
ruby-1.9.3-p484
|
data/README.md
CHANGED
@@ -88,15 +88,19 @@ end
|
|
88
88
|
|
89
89
|
Currently, `action_name` points to a instance variable.
|
90
90
|
|
91
|
+
## Warden integration
|
92
|
+
|
93
|
+
Since version 0.4.0 Rakwik detects [Warden](/hassox/warden) based credentials, eg. from [Devise](/plataformatec/devise). It'll create a MD5 hash of the current user instance to reliably identify subsequent requests of the same user.
|
94
|
+
|
91
95
|
## TODO
|
92
96
|
|
93
97
|
* ~~Handle tracking cookies~~ no way to do this asynchronously
|
94
98
|
* Implement a helper to set the action title ~~from the controller~~ or view
|
95
99
|
* Implement a way to provide custom variables from the controller or view
|
96
100
|
* Implement a way to detect client capabilities without a separate request
|
97
|
-
* Detect [Warden](/hassox/warden) based credentials, eg. from [Devise](/plataformatec/devise)
|
101
|
+
* ~~Detect [Warden](/hassox/warden) based credentials, eg. from [Devise](/plataformatec/devise)~~
|
98
102
|
* ~~Track 404 responses~~
|
99
|
-
* Implement meaningful specs
|
103
|
+
* ~~Implement meaningful specs~~
|
100
104
|
|
101
105
|
## Reference
|
102
106
|
|
data/lib/rakwik/tracker.rb
CHANGED
@@ -80,7 +80,9 @@ module Rakwik
|
|
80
80
|
end
|
81
81
|
|
82
82
|
if not_found? && @options[:track_404] === true
|
83
|
-
data['action_name'] = "404
|
83
|
+
data['action_name'] = "404"
|
84
|
+
data['action_name'] += "/URL = #{data['url'].gsub(/\//, '%2f')}" if data['url']
|
85
|
+
data['action_name'] += "/From = #{data['urlref'].gsub(/\//, '%2f')}" if data['urlref']
|
84
86
|
end
|
85
87
|
|
86
88
|
[header, data]
|
data/lib/rakwik/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rakwik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Aust
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.1.
|
103
|
+
rubygems_version: 2.1.11
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Rack-based server-side asynchronous Piwik tracker integration.
|