Domain_Handler 0.0.3 → 0.0.4
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: c3a325c9b481a241b98059ae96a2c98866324c5bc21b9adeaa6671655fdf62c4
|
4
|
+
data.tar.gz: b23defd160f265cd694192397a611f14390079d0b014f05517cd104258534b87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac7e7c6cd501c22eb8029caa99b97b1420a3a5b93b2d066652c97e2b0947284801f6f4388d5fec1b9f6f322467ea07d1fb44a92819cc379ebf27ca00877f06e0
|
7
|
+
data.tar.gz: 03603d630db697b014175c8396158ffb4a19f2062799e7632bb4aa8cb155ff81b11a9b313fc425b5400f459d1af065a20638c364a123a934f686386bf9a40501
|
@@ -1,12 +1,19 @@
|
|
1
|
-
require 'rails/generators
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/migration'
|
2
3
|
|
3
|
-
module
|
4
|
+
module Domain_Handler
|
4
5
|
module Generators
|
5
|
-
class
|
6
|
-
|
6
|
+
class MigrationGenerator < Rails::Generators::Base
|
7
|
+
include Rails::Generators::Migration
|
8
|
+
|
9
|
+
source_root File.expand_path('templates', __dir__)
|
7
10
|
|
8
11
|
def create_migration_file
|
9
|
-
migration_template 'create_domain.rb', 'db/migrate/
|
12
|
+
migration_template 'create_domain.rb', 'db/migrate/create_your_table.rb'
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.next_migration_number(dirname)
|
16
|
+
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
10
17
|
end
|
11
18
|
end
|
12
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Domain_Handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arun Sahu
|
@@ -55,5 +55,5 @@ requirements: []
|
|
55
55
|
rubygems_version: 3.3.7
|
56
56
|
signing_key:
|
57
57
|
specification_version: 4
|
58
|
-
summary: Domain
|
58
|
+
summary: Domain Handler Gem
|
59
59
|
test_files: []
|