solid_errors 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: 91c6565865faefed40bfb9d364e043128953ed61288b90177fc0ac0c0169f40d
4
- data.tar.gz: 5995235b703824223243c8eb80cee2fb54bb1197459dedce2f7b97550f6ae608
3
+ metadata.gz: 042e023f7ef8a19fb20f44b9c6cf044af997a58eab4c15c23030896798738a48
4
+ data.tar.gz: 7e02ed9572becd8e6563c1f089ca710e4186704b6312edb453b5b12741e2679a
5
5
  SHA512:
6
- metadata.gz: aa6ca22cef57a4df3aff203612adcac94e607365d96e7ea08c31f2a0e4b9a77613b15cc71b769e4a6c74ed7ea0fa369f8aafb726b236d0d90e885da1881bd095
7
- data.tar.gz: ff4d8f9551987d135f2ab932a03517a7d24c3f62de6df11354293fffe482ca1dbb34a8ecad236db54947b8cdb21c39c2573fbc2801ab6c37c2cf11b52e0ec34c
6
+ metadata.gz: d71b734df7c89c784a01d005fbe41eb31ad7bd07e51aa2e8d1ef7049aeabee94888d9d93c0440445e40d6a179bbb0a60082b81fe7517d576688b1a05a49e5c1b
7
+ data.tar.gz: 01ee124e9d940f36a0c2b9079bb173ea25fdfb0912991483dd35188984e28ce8a390d8fd9e2c2d10a33ac65e48b203c35eb6fb46a3160a722399dee63605badd
@@ -1,6 +1,6 @@
1
1
  module SolidErrors
2
2
  class Occurrence < Record
3
- belongs_to :solid_error, class_name: "SolidErrors::Error"
3
+ belongs_to :error, class_name: "SolidErrors::Error"
4
4
 
5
5
  # The parsed exception backtrace. Lines in this backtrace that are from installed gems
6
6
  # have the base path for gem installs replaced by "[GEM_ROOT]", while those in the project
@@ -0,0 +1,73 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t "hello"
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t("hello") %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # "true": "foo"
28
+ # en.stripe.individual.card_issuing.user_terms_acceptance.ip
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at https://guides.rubyonrails.org/i18n.html.
31
+ # activerecord.errors.models.card.attributes.stripe_issuing_account.mismatched_accounts
32
+
33
+ en:
34
+ datetime:
35
+ distance_in_words:
36
+ short:
37
+ about_x_hours:
38
+ one: ~%{count}h
39
+ other: ~%{count}h
40
+ about_x_months:
41
+ one: ~%{count}mo
42
+ other: ~%{count}mo
43
+ about_x_years:
44
+ one: ~%{count}y
45
+ other: ~%{count}y
46
+ almost_x_years:
47
+ one: ~%{count}y
48
+ other: ~%{count}y
49
+ half_a_minute: .5m
50
+ less_than_x_seconds:
51
+ one: <%{count}s
52
+ other: <%{count}s
53
+ less_than_x_minutes:
54
+ one: <1m
55
+ other: <%{count}m
56
+ over_x_years:
57
+ one: ">%{count}y"
58
+ other: ">%{count}y"
59
+ x_seconds:
60
+ one: "%{count}s"
61
+ other: "%{count}s"
62
+ x_minutes:
63
+ one: "%{count}m"
64
+ other: "%{count}m"
65
+ x_days:
66
+ one: "%{count}d"
67
+ other: "%{count}d"
68
+ x_months:
69
+ one: "%{count}mo"
70
+ other: "%{count}mo"
71
+ x_years:
72
+ one: "%{count}y"
73
+ other: "%{count}y"
@@ -15,7 +15,7 @@ class CreateSolidErrorsTables < ActiveRecord::Migration<%= migration_version %>
15
15
  end
16
16
 
17
17
  create_table :solid_errors_occurrences do |t|
18
- t.belongs_to :solid_error, null: false, foreign_key: true
18
+ t.belongs_to :error, null: false, foreign_key: { to_table: :solid_errors }
19
19
  t.text :backtrace
20
20
  t.json :context
21
21
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidErrors
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Margheim
@@ -61,6 +61,7 @@ files:
61
61
  - app/views/solid_errors/errors/show.html.erb
62
62
  - app/views/solid_errors/occurrences/_collection.html.erb
63
63
  - app/views/solid_errors/occurrences/_occurrence.html.erb
64
+ - config/locales/en.yml
64
65
  - config/routes.rb
65
66
  - lib/generators/solid_errors/install/USAGE
66
67
  - lib/generators/solid_errors/install/install_generator.rb