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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 936efb7758fec888e89ca1a24b62a477bb990f3b
4
- data.tar.gz: f9e57914f0247c9a285e1fa17c28073666f78487
3
+ metadata.gz: 18ff721aa14c6fb5bde399c92457e4f074e6a226
4
+ data.tar.gz: 0603e1abfdf22f19fa4ae7a5011014e29b1a4993
5
5
  SHA512:
6
- metadata.gz: 6567ba6077c5ced9c68ba5b29826fff45824b6859ed8dc58883cf9ac27da4f9daaf14d0e2e89ac899aeb0f7bf457142f9564b18d866ee16752d3bdbc9892c9b9
7
- data.tar.gz: d35d0cafe6fd487ff27af1a0ec1e08a30006dd6be46ad05f0bcd80ff27e1e91cc599ad582b722d42d8d88e082e4ab966b4a87a81646a6f6239301095e6280611
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
@@ -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
@@ -3,7 +3,7 @@ module Landable
3
3
  MAJOR = 1
4
4
  MINOR = 10
5
5
  PATCH = 0
6
- PRE = 'rc1'
6
+ PRE = 'rc2'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
9
9
  end
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.rc1
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-10-24 00:00:00.000000000 Z
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.0.3
667
+ rubygems_version: 2.2.2
668
668
  signing_key:
669
669
  specification_version: 4
670
670
  summary: Mountable CMS engine for Rails