bundler_audit_notifier 0.0.1 → 0.0.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c55e82bca62e962a5fe5aa1a444a5f41a651eebfeb4df12556a6eaf6924a63d1
|
4
|
+
data.tar.gz: 7f8c1a9dabedf08c06c04233d27d10b1b6fa6adcd09ba8dace7577f9668b5c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdce0b51ece787780d7198757936202be03365cbde2d8dd189824d4c8b20932db02f8dacabd4ae9a43a79d35566328d3239f05171e3d93db8dba183b1d63509c
|
7
|
+
data.tar.gz: 0541bac4465637c37521fd163abffc44761f48b471d32df13c46c99f83343b42fb8ee7e00ac5f2a12bd9880dfbafcdbb52b195ea700b650084e2847a1b4b79dc
|
@@ -2,18 +2,16 @@
|
|
2
2
|
require "rails/generators/active_record"
|
3
3
|
require "rails/generators"
|
4
4
|
module BundlerAuditNotifier
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
source_root File.join(__dir__, "templates")
|
5
|
+
class BundlerAuditNotifierGenerator < Rails::Generators::Base
|
6
|
+
include ActiveRecord::Generators::Migration
|
7
|
+
source_root File.join(__dir__, "templates")
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
def copy_migration
|
10
|
+
migration_template "migration.rb", "db/migrate/create_bundler_audit_issues.rb", migration_version: migration_version
|
11
|
+
end
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
13
|
+
def migration_version
|
14
|
+
"[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
|
17
15
|
end
|
18
16
|
end
|
19
17
|
end
|