francis 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/francis.rb +5 -0
- metadata +3 -3
data/lib/francis.rb
CHANGED
@@ -44,6 +44,11 @@ class Francis
|
|
44
44
|
File.open("Gemfile","a") do |f|
|
45
45
|
f.write("source 'https://rubygems.org'\ngem 'sinatra'")
|
46
46
|
end
|
47
|
+
if options.include?("--proc")
|
48
|
+
File.open("Procfile","a") do |f|
|
49
|
+
f.write("web: bundle exec rackup config.ru -p $PORT")
|
50
|
+
end
|
51
|
+
end
|
47
52
|
File.open("app/app.rb","a") do |f|
|
48
53
|
f.write("get '/' do\n 'Hello world!'\nend")
|
49
54
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: francis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,9 +9,9 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: A
|
14
|
+
description: A command line tool for quickly setting up Sinatra apps
|
15
15
|
email: ian@iankent.me
|
16
16
|
executables:
|
17
17
|
- francis
|