stasis_scaffolding 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,56 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- puts 'PIPO'
3
+ File.open('Gemfile', 'w') do |f|
4
+ f.write(<<-eos
5
+ source 'http://rubygems.org'
6
+
7
+ gem 'stasis'
8
+ gem 'haml'
9
+ gem 'sass'
10
+ gem 'foreman'
11
+ eos
12
+ )
13
+ end
14
+
15
+ File.open('controller.rb', 'w') do |f|
16
+ f.write(<<-eos
17
+ ignore /\.rvmrc/
18
+ ignore /\.gitignore/
19
+ ignore /Gemfile.*/
20
+ ignore /\.sass-cache/
21
+ ignore /Procfile/
22
+ eos
23
+ )
24
+ end
25
+
26
+ File.open('index.html.haml', 'w') do |f|
27
+ f.write(<<-eos
28
+ !!! 5
29
+ %html
30
+ %head
31
+ %link{href: 'styles/style.css', rel: 'stylesheet', type: 'text/css', media: 'screen'}
32
+
33
+ %body
34
+ %ul
35
+ %li First item
36
+ %li Second item
37
+ %li Third item
38
+ %li Fourth item
39
+ eos
40
+ )
41
+ end
42
+
43
+ require 'fileutils'
44
+ FileUtils.mkdir_p './styles'
45
+
46
+ File.open('styles/style.css.sass', 'w') do |f|
47
+ f.write(<<-eos
48
+ ul li
49
+ color: red
50
+ eos
51
+ )
52
+ end
53
+
54
+ File.open('Procfile', 'w') do |f|
55
+ f.write('web: stasis -d $PORT')
56
+ end
@@ -1,3 +1,3 @@
1
1
  module StasisScaffolding
2
- VERSION = '0.0.2'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stasis_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
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: 2013-01-27 00:00:00.000000000Z
12
+ date: 2013-01-28 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A scaffolding for Stasis web page
15
15
  email: