Domain_Handler 0.0.3 → 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: b5be2b3483f11f84902c332853021b4711cc43e54155c4c22b9f48ab187f27f6
4
- data.tar.gz: fad1f62a7f10bfa11884f673cd2fd91d2d0752f781ee252838cd4ecd55781830
3
+ metadata.gz: d32c49c08c35002adbe7722082dbb18cd70ef1b3b904f868fe60a7fd3992461e
4
+ data.tar.gz: 6d9feaaa0f7baf53226d81c704b14a702ffdc50ebc2ade37209fda0f91f76166
5
5
  SHA512:
6
- metadata.gz: efae9cf57ca4f12d099451e6a3a13841d049eb31d054600b22b93bb3176b34806ff4c4c658365caee2b63eac4a8311ab0c361acb3f0a31699357014b1b495e5a
7
- data.tar.gz: b4934050c93fae88496f70592c1b01a589d3a8788c311628db0619d2660dec28d5ed513bcac3be64a9a745dee7991f86e9504c0111aca2a3c58f25a21775bd74
6
+ metadata.gz: 8afabc81051e39a816402d5d20245ea0218369b71629cb81000da7a56a4b6c7e35c13e48dd084524f9cb08b43031cac1c33b13b09432c089b6763c5049e452fd
7
+ data.tar.gz: c74620461e28c47f703ee0deb31ebe3493f8a72ba7893e51a5f69c09cbfb47160543df3689cb9dccfe6356ae69b3bc6725b6fd3a96a3ddc7e425f0ecda602d64
@@ -1,13 +1,20 @@
1
- require 'rails/generators/active_record'
1
+ require 'rails/generators'
2
+ require 'rails/generators/migration'
2
3
 
3
- module DomainHandler
4
+ module YourGemName
4
5
  module Generators
5
- class CreateDomainGenerator < ActiveRecord::Generators::Base
6
- source_root File.expand_path('../templates', __FILE__)
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/create_domain.rb'
12
+ migration_template 'migration.rb', 'db/migrate/create_domains.rb'
13
+ end
14
+
15
+ def self.next_migration_number(dirname)
16
+ ActiveRecord::Generators::Base.next_migration_number(dirname)
10
17
  end
11
18
  end
12
19
  end
13
- 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.3
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
@@ -55,5 +55,5 @@ requirements: []
55
55
  rubygems_version: 3.3.7
56
56
  signing_key:
57
57
  specification_version: 4
58
- summary: Domain Dandler Gem
58
+ summary: Domain Handler Gem
59
59
  test_files: []