never-forget 0.1.2 → 0.2.0

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: 71551ce38586b010fe93514ecd4b585095050369
4
- data.tar.gz: 81ab2f66e5e082610f95064fe014980e6eace1dc
3
+ metadata.gz: 4a4a6ba67ba8998e25491a07b0eab9e167a310b0
4
+ data.tar.gz: a0f5d747c9fa7e551090a597847a6a15559fac5f
5
5
  SHA512:
6
- metadata.gz: 17d6ac24b962442adc083f2bb35d7ee997d8484c4f11dfb29d72e3b8397fedd243e39100bcca2506ab39012a9ef29ff5e2b76e7f42715f69c5391595f5921c87
7
- data.tar.gz: bb090c3084d27c01c7df484feb979a1290e3b1b4380b8d0807e66c53187775023aeaa56ace773ae8d9076a4fa404dabe42ff2209099aa11b4a2cf6970f25d084
6
+ metadata.gz: 2299e549ae76434c1d761412247d83f34413c0427a23030dd1f95d2166530b542d3f32d4a6d43ffab1c00c898ad8ba29c83eeae368b710e0ea3f386e4c9b76c6
7
+ data.tar.gz: c821bd137337b2039afe141309d5e0db48d9625cd45cbd5228d351fa91db830b65b65175f457c7e6113c21d6b627ddbe6df6c5914ab45565a5559d3c13d7b61d
@@ -1,5 +1,4 @@
1
1
  require 'mingo'
2
- require 'active_support/memoizable'
3
2
  require 'active_support/core_ext/kernel/singleton_class'
4
3
  require 'active_support/core_ext/enumerable'
5
4
  require 'active_support/core_ext/hash'
@@ -16,7 +15,6 @@ module NeverForget
16
15
  super
17
16
  end
18
17
 
19
- extend ::ActiveSupport::Memoizable
20
18
  include ::Mingo::Timestamps
21
19
 
22
20
  def self.create(error, env)
@@ -101,7 +99,6 @@ module NeverForget
101
99
  def tag_modules
102
100
  Array(exception.singleton_class.included_modules).map(&:to_s) - KNOWN_MODULES
103
101
  end
104
- memoize :tag_modules
105
102
 
106
103
  def unwrap_exception(exception)
107
104
  if exception.respond_to?(:original_exception)
@@ -123,7 +120,6 @@ module NeverForget
123
120
  def exclude_params
124
121
  Array(env['action_dispatch.parameter_filter']).map(&:to_s)
125
122
  end
126
- memoize :exclude_params
127
123
 
128
124
  def extract_params
129
125
  if params = request.params and params.any?
@@ -1,6 +1,5 @@
1
1
  require 'rbconfig'
2
2
  require 'erubis'
3
- require 'active_support/memoizable'
4
3
  require 'yaml'
5
4
 
6
5
  module NeverForget
@@ -52,7 +51,6 @@ module NeverForget
52
51
 
53
52
  module TemplateHelpers
54
53
  include RbConfig
55
- extend ActiveSupport::Memoizable
56
54
 
57
55
  def y(obj)
58
56
  YAML.dump(obj).sub(/^---.*\n/, '').gsub(/ !(omap|map:BSON::OrderedHash) *$/, '')
@@ -74,7 +72,6 @@ module NeverForget
74
72
  def external_path
75
73
  ['/usr/ruby1.9.2', '/home/heroku_rack', gem_path, system_path].flatten.uniq.map(&:to_s)
76
74
  end
77
- memoize :external_path
78
75
 
79
76
  def collapse_line?(line)
80
77
  external_path.any? {|p| line.start_with? p }
@@ -103,6 +100,5 @@ module NeverForget
103
100
  else Dir.pwd
104
101
  end
105
102
  end
106
- memoize :root_path
107
103
  end
108
104
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: never-forget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mislav Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2018-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mingo
@@ -99,9 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.4.5
102
+ rubygems_version: 2.4.5.1
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Saves exceptions to MongoDB
106
106
  test_files: []
107
- has_rdoc: