error_radar 1.0.7 → 1.0.8
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31651a0a76b125730bd2fda4cb4c46c71e2284729251f49f4750f399691388e3
|
|
4
|
+
data.tar.gz: 0de7305d72f21b08db3e3dd115bb51b772cd8351a6c3a289726a6f28885ac170
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fc86a56368ea284eda4aaebf05b0bda88c701a72f72f3a0ae442e18b3df1328ebb0bbc2fa62c9539dfadb9d467cb0ebd58aec84109bc176b1204521d2f21451
|
|
7
|
+
data.tar.gz: 17212fb51b6dd43c1d736c5137d42b4def41f12ae699f8ca958047dbdcac959b60ef41f9df036ed496d0079595151e79716cfbbf7f1c8ed0d5045dbb6ee56aa9
|
data/lib/error_radar/version.rb
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'rails/generators
|
|
3
|
+
require 'rails/generators'
|
|
4
|
+
require 'rails/generators/migration'
|
|
4
5
|
|
|
5
6
|
module ErrorRadar
|
|
6
7
|
module Generators
|
|
7
|
-
class UpgradeV107Generator <
|
|
8
|
-
|
|
8
|
+
class UpgradeV107Generator < Rails::Generators::Base
|
|
9
|
+
include Rails::Generators::Migration
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
source_root File.expand_path('templates', __dir__)
|
|
11
12
|
|
|
12
13
|
desc 'Creates the error_radar_settings table for UI-configurable notification settings (v1.0.7).'
|
|
13
14
|
|
|
14
|
-
def
|
|
15
|
+
def self.next_migration_number(dirname)
|
|
16
|
+
next_num = current_migration_number(dirname) + 1
|
|
17
|
+
ActiveRecord::Migration.next_migration_number(next_num)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def copy_settings_migration
|
|
15
21
|
migration_template 'create_error_radar_settings.rb.tt',
|
|
16
22
|
'db/migrate/create_error_radar_settings.rb'
|
|
17
23
|
end
|