landable 1.10.0.rc1 → 1.10.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/generators/templates/landable.rb +3 -0
- data/lib/landable/configuration.rb +5 -1
- data/lib/landable/traffic.rb +5 -1
- data/lib/landable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18ff721aa14c6fb5bde399c92457e4f074e6a226
|
4
|
+
data.tar.gz: 0603e1abfdf22f19fa4ae7a5011014e29b1a4993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d70d1b346cc558a6692949556b11b44befe6ab2a8d2c62c447a86cd1b21ac457f64c8c703a51673350ddc6f2f778897cb7160f97ea5c680131194429b2d1772b
|
7
|
+
data.tar.gz: d5afd864aa0cda1356c82fe5c0faf65105110ab418dae7e3db75a4ecdc7eb906d8b806b22fe66e8c64d4ded6bdbca256dc9d2f6a14248f8e69b70001a141a445
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,9 @@ See README.md before updating this file.
|
|
4
4
|
|
5
5
|
## Unreleased [#](https://github.com/enova/landable/compare/v1.10.0.rc1...master)
|
6
6
|
|
7
|
+
## 1.10.0.rc2 [#](https://github.com/enova/landable/compare/v1.10.0.rc1...v1.10.0.rc2)
|
8
|
+
* Set up configurable paths that are not visit tracked
|
9
|
+
|
7
10
|
## 1.10.0.rc1 [#](https://github.com/enova/landable/compare/v1.9.2...v1.10.0.rc1)
|
8
11
|
* Handle blank UserAgent [#25]
|
9
12
|
* Make table_name.rb generic. [#22]
|
@@ -34,6 +34,9 @@ Landable.configure do |config|
|
|
34
34
|
|
35
35
|
# If you want to save a different UserAgent if the request.user_agent is blank, set it here
|
36
36
|
# config.blank_user_agent_string = 'blank'
|
37
|
+
|
38
|
+
# Set up paths that are never tracked by Landable visit tracking
|
39
|
+
# config.untracked_paths %w(/status)
|
37
40
|
end
|
38
41
|
|
39
42
|
# Configure asset uploads. Assets will be uploaded to public/uploads by default.
|
@@ -9,7 +9,7 @@ module Landable
|
|
9
9
|
attr_writer :sitemap_exclude_categories, :sitemap_protocol, :sitemap_host, :sitemap_additional_paths
|
10
10
|
attr_writer :reserved_paths, :partials_to_templates, :database_schema_prefix
|
11
11
|
attr_writer :publicist_url, :audit_flags
|
12
|
-
attr_writer :blank_user_agent_string
|
12
|
+
attr_writer :blank_user_agent_string, :untracked_paths
|
13
13
|
|
14
14
|
def authenticators
|
15
15
|
@authenticators || raise("No Landable authenticator configured.")
|
@@ -145,6 +145,10 @@ module Landable
|
|
145
145
|
@blank_user_agent_string ||= 'blank'
|
146
146
|
end
|
147
147
|
|
148
|
+
def untracked_paths
|
149
|
+
@untracked_paths ||= []
|
150
|
+
end
|
151
|
+
|
148
152
|
class Screenshots
|
149
153
|
attr_accessor :autorun
|
150
154
|
attr_accessor :browserstack_username, :browserstack_password
|
data/lib/landable/traffic.rb
CHANGED
@@ -9,7 +9,7 @@ require 'landable/traffic/noop_tracker'
|
|
9
9
|
module Landable
|
10
10
|
module Traffic
|
11
11
|
def track_with_landable!
|
12
|
-
yield and return if request.headers["DNT"]
|
12
|
+
yield and return if (request.headers["DNT"] || untracked_path)
|
13
13
|
begin
|
14
14
|
@tracker = Tracker.for self
|
15
15
|
@tracker.track
|
@@ -31,5 +31,9 @@ module Landable
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
34
|
+
|
35
|
+
def untracked_path
|
36
|
+
Landable.configuration.untracked_paths.include? request.fullpath
|
37
|
+
end
|
34
38
|
end
|
35
39
|
end
|
data/lib/landable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: landable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.0.
|
4
|
+
version: 1.10.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Trogdor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -664,7 +664,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
664
664
|
version: 1.3.1
|
665
665
|
requirements: []
|
666
666
|
rubyforge_project:
|
667
|
-
rubygems_version: 2.
|
667
|
+
rubygems_version: 2.2.2
|
668
668
|
signing_key:
|
669
669
|
specification_version: 4
|
670
670
|
summary: Mountable CMS engine for Rails
|