project_templater 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. data/README.md +5 -1
  2. data/lib/generators/html_proto.rb +31 -0
  3. metadata +3 -2
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Project Templater
2
2
 
3
- __V0.1.0__
3
+ __V0.1.2__
4
4
 
5
5
  ## Installation
6
6
 
@@ -38,6 +38,7 @@ Run the `sinatra_basic` generator and output to the `pwd/foo/ directory`.
38
38
  - `sinatra_basic`
39
39
  - `js_project`
40
40
  - `ruby_project`
41
+ - `html_proto`
41
42
 
42
43
  ## Adding a Generator
43
44
 
@@ -56,6 +57,9 @@ You can also define a `post_install` method that is run after the `run` method h
56
57
 
57
58
  ## Changelog
58
59
 
60
+ __0.1.2__
61
+ - added `html_proto` generator, designed for quick HTML prototypes
62
+
59
63
  __0.1.1__
60
64
  - updated `ruby_basic` generator so it creates a couple more folders
61
65
 
@@ -0,0 +1,31 @@
1
+ require_relative "./generator.rb"
2
+
3
+ class HtmlProto < Generator
4
+ def run
5
+ make_file("index.html") {
6
+ %Q|<!DOCTYPE html>
7
+ <html>
8
+ <head>
9
+ <title>JS Regex</title>
10
+ <link rel="stylesheet" href="css/style.css">
11
+ <script src="js/jquery.min.js"></script>
12
+ <script src="js/app.js"></script>
13
+ </head>
14
+ <body>
15
+ </body>
16
+ </html>|
17
+ }
18
+
19
+
20
+ make_dir("js")
21
+ make_dir("css")
22
+
23
+ make_file("js/app.js")
24
+ make_file("css/style.css")
25
+ end
26
+
27
+ def post_install
28
+ `cd #{@base}js && nodefetch jquery`
29
+ end
30
+
31
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: project_templater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
12
+ date: 2013-01-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A gem for creating file and folder structures.
15
15
  email: jack@jackfranklin.net
@@ -19,6 +19,7 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - lib/generators/generator.rb
22
+ - lib/generators/html_proto.rb
22
23
  - lib/generators/js_project.rb
23
24
  - lib/generators/ruby_project.rb
24
25
  - lib/generators/sinatra_basic.rb