Domain_Handler 0.0.4 → 0.0.5

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: c3a325c9b481a241b98059ae96a2c98866324c5bc21b9adeaa6671655fdf62c4
4
- data.tar.gz: b23defd160f265cd694192397a611f14390079d0b014f05517cd104258534b87
3
+ metadata.gz: d32c49c08c35002adbe7722082dbb18cd70ef1b3b904f868fe60a7fd3992461e
4
+ data.tar.gz: 6d9feaaa0f7baf53226d81c704b14a702ffdc50ebc2ade37209fda0f91f76166
5
5
  SHA512:
6
- metadata.gz: ac7e7c6cd501c22eb8029caa99b97b1420a3a5b93b2d066652c97e2b0947284801f6f4388d5fec1b9f6f322467ea07d1fb44a92819cc379ebf27ca00877f06e0
7
- data.tar.gz: 03603d630db697b014175c8396158ffb4a19f2062799e7632bb4aa8cb155ff81b11a9b313fc425b5400f459d1af065a20638c364a123a934f686386bf9a40501
6
+ metadata.gz: 8afabc81051e39a816402d5d20245ea0218369b71629cb81000da7a56a4b6c7e35c13e48dd084524f9cb08b43031cac1c33b13b09432c089b6763c5049e452fd
7
+ data.tar.gz: c74620461e28c47f703ee0deb31ebe3493f8a72ba7893e51a5f69c09cbfb47160543df3689cb9dccfe6356ae69b3bc6725b6fd3a96a3ddc7e425f0ecda602d64
@@ -1,7 +1,7 @@
1
1
  require 'rails/generators'
2
2
  require 'rails/generators/migration'
3
3
 
4
- module Domain_Handler
4
+ module YourGemName
5
5
  module Generators
6
6
  class MigrationGenerator < Rails::Generators::Base
7
7
  include Rails::Generators::Migration
@@ -9,12 +9,12 @@ module Domain_Handler
9
9
  source_root File.expand_path('templates', __dir__)
10
10
 
11
11
  def create_migration_file
12
- migration_template 'create_domain.rb', 'db/migrate/create_your_table.rb'
12
+ migration_template 'migration.rb', 'db/migrate/create_domains.rb'
13
13
  end
14
14
 
15
15
  def self.next_migration_number(dirname)
16
- Time.now.utc.strftime("%Y%m%d%H%M%S")
16
+ ActiveRecord::Generators::Base.next_migration_number(dirname)
17
17
  end
18
18
  end
19
19
  end
20
- end
20
+ 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
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arun Sahu
@@ -31,8 +31,8 @@ extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
33
  - lib/domain_handler.rb
34
- - lib/generators/doamin_handler/migration/tempates/create_domain.rb
35
34
  - lib/generators/doamin_handler/migration/tempates/create_domain_generator.rb
35
+ - lib/generators/doamin_handler/migration/tempates/migration.rb
36
36
  homepage: https://rubygems.org/gems/hola
37
37
  licenses:
38
38
  - MIT