susana 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/susana.rb +8 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 399ad4a4053c9c33553366d076d79a27a4f06785
|
4
|
+
data.tar.gz: c037d97307d9e01ddaae6933571d7bf5407bb522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eed0f3b57f496e2ed7886a45dce38b47aad7c2f61673f369aa12c4b940bb4cfe7f9ceda1e3c752e9cffc9b2d1872971e13f942ff8861b97c5f61ea6e355f84f
|
7
|
+
data.tar.gz: 78ea254926de06236181b1af219dc14bf4dc72ba1520ac544efed136718c5f5e4db8cdfbf4c5b4769c735f7b38bad43809fed80d72e5856e6d23869cc39b7bde
|
data/lib/susana.rb
CHANGED
@@ -25,20 +25,21 @@ end
|
|
25
25
|
FileUtils.cd(name)
|
26
26
|
|
27
27
|
# Cleanup
|
28
|
-
FileUtils.remove_dir(
|
29
|
-
FileUtils.remove_dir(
|
28
|
+
FileUtils.remove_dir('.git')
|
29
|
+
FileUtils.remove_dir('gem')
|
30
30
|
|
31
31
|
# Create cookie secret
|
32
|
-
secret = SecureRandom
|
32
|
+
secret = SecureRandom.hex(32)
|
33
33
|
|
34
34
|
# Install secret
|
35
|
-
key = '
|
36
|
-
file = File.read(
|
37
|
-
File.open(
|
35
|
+
key = '1eca29037f08b783cee7e77a958e01a4c7f2fa7dd9be61171709cf3e5f54ef65'
|
36
|
+
file = File.read('config.ru').gsub(key, secret)
|
37
|
+
File.open('config.ru', 'w'){|f| f.write(file)}
|
38
38
|
|
39
39
|
puts "\nApp #{name} created, please review your settings in the config directory\n\n"
|
40
40
|
puts "To start the application:\n\n"
|
41
41
|
puts "cd #{name}"
|
42
42
|
puts "bundle install"
|
43
|
-
puts "puma\n\n"
|
43
|
+
puts "bundle exec puma\n\n"
|
44
|
+
puts "Open http://localhost:9292 in your browser. Enjoy!\n\n"
|
44
45
|
puts "Go to https://github.com/fugroup/susana for documentation\n\n"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: susana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fugroup Limited
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: futest
|