submitter 0.0.3 → 0.0.4
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 +4 -4
- data/lib/submitter/generators/install/install_generator.rb +0 -24
- data/lib/submitter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc86826fc6c39fba408450df9d217585ca2b3839
|
4
|
+
data.tar.gz: cfffa27870f508367ee88a462ca8d69bb1e97ae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12c688947e0a8bfe0b7d643d7b5d606fc4b528bdbfc8bb09b4fdac78a28d3f91624d87d9181a9966548bd590277f6787c839052afa2d1d81a1104ed50fa55fe7
|
7
|
+
data.tar.gz: b796cb3666b5dfec35cf6e36e0bd3276a7410b9474cd5bdc16ed59680dc8a24407d88c3908eac85447ec9874a831fc71a9571de1f5862617c00a2b2e4ba6cb0e
|
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'rails/generators/migration'
|
2
|
-
|
3
|
-
module Submitter
|
4
|
-
module Generators
|
5
|
-
class InstallGenerator < ::Rails::Generators::Base
|
6
|
-
include Rails::Generators::Migration
|
7
|
-
source_root File.expand_path('../templates', __FILE__)
|
8
|
-
desc "add the migrations"
|
9
|
-
|
10
|
-
def self.next_migration_number(path)
|
11
|
-
unless @prev_migration_nr
|
12
|
-
@prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
|
13
|
-
else
|
14
|
-
@prev_migration_nr += 1
|
15
|
-
end
|
16
|
-
@prev_migration_nr.to_s
|
17
|
-
end
|
18
|
-
|
19
|
-
def copy_migrations
|
20
|
-
migration_template "create_applications_and_jobs.rb", "db/migrate/create_applications_and_jobs.rb"
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
data/lib/submitter/version.rb
CHANGED