notable 0.0.3 → 0.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfeaf681c5c6bca189685a9e36dbf30b589537c0
4
- data.tar.gz: 5961aa16bf2c1b84cd7139b9e58fb2f1ab3ea7db
3
+ metadata.gz: a96170589cc298003cda848d8ed27894f9094072
4
+ data.tar.gz: ad6a05312428b0bfcbfe1f91ee6614ca83c34f7b
5
5
  SHA512:
6
- metadata.gz: 9af63ec903a2c5f00d98db5f44d2a1fc436d12c31f67e27406ac320d635a1afad3c0fc7b028098b34575ca2d6dd48eeb688a2c504909b60656a912cf1aac158a
7
- data.tar.gz: eba8cf5a860f802c558eae70b45de5d97945573387a6b578225f99df5b4126bbc7e77b25ba6816164c8f6bee3b457196d5ad52b26f574218fe2885bb463bf0d5
6
+ metadata.gz: 5420ef74ab8da9b01df98b04081f1a4ef68f2b3eb1d3d4ba609904a0bf19108797e0d2f95cc8ef525e77869bbe5853aa45cf8951c8b56a9c50fa21cc6e8480ac
7
+ data.tar.gz: d4022d63822a6e97289760f63e228db4c84dabf61b9188d9f5e1a2718e006b40cee7913eebaae3e3381c8cd9670b91cdb52f2f08dfa129ab114a705b16bdfa25
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in notable.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -21,7 +21,7 @@ By default, Notable tracks:
21
21
 
22
22
  You can track custom notes as well.
23
23
 
24
- :tangerine: Battle-tested at [Instacart](https://www.instacart.com)
24
+ :tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
25
25
 
26
26
  ## Installation
27
27
 
@@ -114,6 +114,12 @@ Notable.track_request_method = proc do |data, env|
114
114
  end
115
115
  ```
116
116
 
117
+ Skip tracking CSRF failures
118
+
119
+ ```ruby
120
+ skip_before_filter :track_unverified_request
121
+ ```
122
+
117
123
  ### Jobs
118
124
 
119
125
  Set slow threshold
data/Rakefile CHANGED
@@ -1,2 +1 @@
1
1
  require "bundler/gem_tasks"
2
-
@@ -24,7 +24,6 @@ module Notable
24
24
  def copy_migration
25
25
  migration_template "create_jobs.rb", "db/migrate/create_notable_jobs.rb"
26
26
  end
27
-
28
27
  end
29
28
  end
30
29
  end
@@ -24,7 +24,6 @@ module Notable
24
24
  def copy_migration
25
25
  migration_template "create_requests.rb", "db/migrate/create_notable_requests.rb"
26
26
  end
27
-
28
27
  end
29
28
  end
30
29
  end
@@ -1,15 +1,8 @@
1
1
  module Notable
2
2
  module DebugExceptions
3
- extend ActiveSupport::Concern
4
-
5
- included do
6
- alias_method_chain :render_exception, :pass
7
- end
8
-
9
- def render_exception_with_pass(env, exception)
3
+ def render_exception(env, exception)
10
4
  env["action_dispatch.exception"] = exception
11
- render_exception_without_pass(env, exception)
5
+ super
12
6
  end
13
-
14
7
  end
15
8
  end
@@ -4,6 +4,8 @@ module Notable
4
4
 
5
5
  initializer "notable" do |app|
6
6
  app.config.middleware.insert_after RequestStore::Middleware, Notable::Middleware
7
+
8
+ ActionDispatch::DebugExceptions.send(:prepend, Notable::DebugExceptions)
7
9
  end
8
10
  end
9
11
  end
@@ -3,7 +3,7 @@ module Notable
3
3
  class Sidekiq
4
4
  WRAPPER_CLASSES = Set.new(["ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper"])
5
5
 
6
- def call(worker, job, queue)
6
+ def call(_worker, job, queue)
7
7
  name =
8
8
  if WRAPPER_CLASSES.include?(job["class"])
9
9
  job["args"].first["job_class"]
@@ -1,3 +1,3 @@
1
1
  module Notable
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/notable.rb CHANGED
@@ -99,7 +99,4 @@ module Notable
99
99
  yield
100
100
  end
101
101
  end
102
-
103
102
  end
104
-
105
- ActionDispatch::DebugExceptions.send(:include, Notable::DebugExceptions)
data/notable.gemspec CHANGED
@@ -1,15 +1,15 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'notable/version'
4
+ require "notable/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "notable"
8
8
  spec.version = Notable::VERSION
9
9
  spec.authors = ["Andrew Kane"]
10
10
  spec.email = ["andrew@chartkick.com"]
11
- spec.summary = %q{Track notable requests and background jobs}
12
- spec.description = %q{Track notable requests and background jobs}
11
+ spec.summary = "Track notable requests and background jobs"
12
+ spec.description = "Track notable requests and background jobs"
13
13
  spec.homepage = "https://github.com/ankane/notable"
14
14
  spec.license = "MIT"
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: request_store
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.4.5
119
+ rubygems_version: 2.4.5.1
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Track notable requests and background jobs