test_gem_task 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: c524c6f4b060d74c5c5d2e808319aa678aa8f916
4
- data.tar.gz: 0e1d803e69a597200807f67725f734ce4d24c2b7
3
+ metadata.gz: 4532620953f7e08c1141d2cd088c2030f8028ea5
4
+ data.tar.gz: 948b2cdcd41c0a6a24fe0e2a913a929581c335ec
5
5
  SHA512:
6
- metadata.gz: 6f36aa0ea32a4d25128a575217dd019e49d61cfd84eb0a678663f1d046b8336179fa697f186555cc7ca150fa585ed61b6fc7e28fa722cd8ce341588e8e02ce4e
7
- data.tar.gz: dd01a9db1c173a52c6561ce95505374bc9b2f3632d1843d23467556fbcf318cc1de4f25cb47fde78dcc7907f6f9ccfcbc9f873be47712458a16d51db05057592
6
+ metadata.gz: 0541561da56664d5fc1b55536ade2a55063de94606d98a8b5f16e9d9d5a631ef2de9517b1967a8ed0938eaad8fca96c57053c7093468e41464185e6a0714a2ba
7
+ data.tar.gz: d54b4d7b7f93bbae06dbe7a3042e5960e029ff11c7069ccbb543345eb9caec63780388e78801435e050ad6422d9129aa7d867de1d324e4c1ae0b344b7315e133
@@ -10,9 +10,11 @@ class InitializerGenerator < Rails::Generators::NamedBase
10
10
  minutes = time.strftime("%M")
11
11
  seconds = time.strftime("%S")
12
12
  migration_prefix = year + month + date + hour + minutes + seconds + "_create_products"
13
+ back_script_prefix = year + month + date + hour + minutes + seconds + "_create_back_script"
13
14
  if file_name.present?
14
- copy_file "initializer.rb", "config/initializers/#{file_name}.rb"
15
+ copy_file "initializer.rb", "config/initializers/#{file_name}.rb"
15
16
  end
16
17
  copy_file "migration_file.rb", "db/migrate/#{migration_prefix}.rb"
18
+ copy_file "file.rb", "db/migrate/#{back_script_prefix}.rb"
17
19
  end
18
20
  end
@@ -10,9 +10,11 @@ class InitializerGenerator < Rails::Generators::NamedBase
10
10
  minutes = time.strftime("%M")
11
11
  seconds = time.strftime("%S")
12
12
  migration_prefix = year + month + date + hour + minutes + seconds + "_create_products"
13
+ back_script_prefix = year + month + date + hour + minutes + seconds + "_create_back_script"
13
14
  if file_name.present?
14
- copy_file "initializer.rb", "config/initializers/#{file_name}.rb"
15
+ copy_file "initializer.rb", "config/initializers/#{file_name}.rb"
15
16
  end
16
17
  copy_file "migration_file.rb", "db/migrate/#{migration_prefix}.rb"
18
+ copy_file "file.rb", "db/migrate/#{back_script_prefix}.rb"
17
19
  end
18
20
  end
@@ -0,0 +1,12 @@
1
+ class CreateProducts < ActiveRecord::Migration
2
+ def change
3
+ create_table :back_scripts do |t|
4
+ t.string :command_name
5
+ t.string :command
6
+ t.string :type
7
+ t.string :active
8
+ t.string :description
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ class CreateProducts < ActiveRecord::Migration
2
+ def change
3
+ create_table :back_scripts do |t|
4
+ t.string :command_name
5
+ t.string :command
6
+ t.string :type
7
+ t.string :active
8
+ t.string :description
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module TestGemTask
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module TestGemTask
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_gem_task
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siva subramanian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-19 00:00:00.000000000 Z
11
+ date: 2016-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -48,6 +48,8 @@ files:
48
48
  - lib/generators/initializer/USAGE
49
49
  - lib/generators/initializer/initializer_generator.rb
50
50
  - lib/generators/initializer/initializer_generator.rb~
51
+ - lib/generators/initializer/templates/file.rb
52
+ - lib/generators/initializer/templates/file.rb~
51
53
  - lib/generators/initializer/templates/initializer.rb
52
54
  - lib/generators/initializer/templates/initializer.rb~
53
55
  - lib/generators/initializer/templates/migration_file.rb