project_templater 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +8 -0
- data/lib/generators/ruby_project.rb +4 -1
- metadata +1 -1
data/README.md
CHANGED
|
@@ -54,5 +54,13 @@ Define a `run` method that will be called. There are two methods available:
|
|
|
54
54
|
|
|
55
55
|
You can also define a `post_install` method that is run after the `run` method has. You also have access to the `@base` variable, which is the directory the generator was run in.
|
|
56
56
|
|
|
57
|
+
## Changelog
|
|
58
|
+
|
|
59
|
+
__0.1.1__
|
|
60
|
+
- updated `ruby_basic` generator so it creates a couple more folders
|
|
61
|
+
|
|
62
|
+
__0.1.0__
|
|
63
|
+
- initial release
|
|
64
|
+
|
|
57
65
|
|
|
58
66
|
|
|
@@ -9,10 +9,13 @@ class RubyProject < Generator
|
|
|
9
9
|
"--color"
|
|
10
10
|
}
|
|
11
11
|
make_file(".gitignore")
|
|
12
|
+
make_dir("lib")
|
|
12
13
|
make_dir("spec")
|
|
14
|
+
make_dir("spec/unit")
|
|
15
|
+
make_dir("spec/integration")
|
|
13
16
|
end
|
|
14
17
|
|
|
15
18
|
def post_install
|
|
16
|
-
`cd #{@base} && git init && bundle`
|
|
19
|
+
puts `cd #{@base} && git init && bundle`
|
|
17
20
|
end
|
|
18
21
|
end
|