krishna0000 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c1f86abc0787f4ee03d7903ea3cc9069ac3fc64e
4
+ data.tar.gz: 091b9be90add4e4e465e35522299282890f9af9f
5
+ SHA512:
6
+ metadata.gz: 9d4d9476f5fe0515888198710f1d9e76b49262928627f8cef17d95a6e7ebeaad88d8fd3ad18a1b37a49591f2e3f27977518eaaf7cb80afa27868e43d592e471d
7
+ data.tar.gz: c3c0d4c7381c2dba3a1e9c4c72e47a43199599fd3ea9f05c9f018e789f5107917f3f17b1dac3ea9c04f71bd0d36820255afec40f0e4fb0c8c7fc7993832b438a
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate initializer Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,8 @@
1
+ class InitializerGenerator < Rails::Generators::NamedBase
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def copy_initializer_file
5
+ copy_file "initializer.rb", "config/initializers/#{file_name}.rb"
6
+ end
7
+
8
+ end
@@ -0,0 +1,8 @@
1
+ class InitializerGenerator < Rails::Generators::NamedBase
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def copy_initializer_file
5
+ copy_file "initializer.rb", "config/initializers/#{file_name}.rb"
6
+ end
7
+
8
+ end
@@ -0,0 +1 @@
1
+ "We can see that now an initializer named core_extensions was created at config/initializers/core_extensions.rb with the contents of our template. That means that copy_file copied a file in our source root to the destination path we gave. The method file_name is automatically created when we inherit from Rails::Generators::NamedBase."
@@ -0,0 +1 @@
1
+ "We can see that now an initializer named core_extensions was created at config/initializers/core_extensions.rb with the contents of our template. That means that copy_file copied a file in our source root to the destination path we gave. The method file_name is automatically created when we inherit from Rails::Generators::NamedBase."
@@ -0,0 +1,5 @@
1
+ require "krishna0000/version"
2
+
3
+ module Krishna0000
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module Krishna0000
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: krishna0000
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Siva subramanian
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-09-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.12'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: krishna sample description
42
+ email:
43
+ - Sivasubramanian.Ramachandran@careerbuilder.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/generators/initializer/USAGE
49
+ - lib/generators/initializer/initializer_generator.rb
50
+ - lib/generators/initializer/initializer_generator.rb~
51
+ - lib/generators/initializer/templates/initializer.rb
52
+ - lib/generators/initializer/templates/initializer.rb~
53
+ - lib/krishna0000.rb
54
+ - lib/krishna0000/version.rb
55
+ homepage: ''
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project:
75
+ rubygems_version: 2.4.8
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: krishna sample gem
79
+ test_files: []