susana 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/bin/susana.rb +4 -0
  3. data/lib/susana.rb +39 -0
  4. metadata +61 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 94246e16bc4c9d2e668840163e97fb6738e82402
4
+ data.tar.gz: a0540e60b2eff455a6bd88346c614af0fa79a4cf
5
+ SHA512:
6
+ metadata.gz: 4229362929be5ff9f9bcf8d29a50fe8ca29ce2dbe44f2e8143df037a68443ba351f5dc2ec4cbe4aab4e150ca12c4b986224a441fbf37f09d8d983198239dfd3e
7
+ data.tar.gz: ee4087e3afde49f77b40aceac87ac949d96018cb4dda560f084658e507ebb2457a6f65a4d55222fb01a249bfbc52f176d195a030f4061ef7f9bf8b87faf45b0e
data/bin/susana.rb ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This executable just loads the gem lib
4
+ require 'susana'
data/lib/susana.rb ADDED
@@ -0,0 +1,39 @@
1
+ # Susana ruby web application framework
2
+ # @homepage: https://github.com/fugroup/susana
3
+ # @author: Vidar <vidar@fugroup.net>, Fugroup Ltd.
4
+ # @license: MIT, contributions are welcome.
5
+
6
+ # This script downloads and installs your new application
7
+
8
+ require 'securerandom'
9
+
10
+ puts "\n * S U S A N A *\n\n"
11
+
12
+ # Get app name
13
+ name = ARGV[0].strip rescue nil
14
+
15
+ # Exit if app name not provided
16
+ if !name or name == ''
17
+ puts "No app name provided. Usage: susana your_app_name\n\n"
18
+ exit
19
+ end
20
+
21
+ # Get working dir
22
+ dir = Dir.pwd
23
+
24
+ # Install new susana app
25
+ `git clone https://github.com/fugroup/susana #{name}`
26
+
27
+ # Change working dir
28
+ Dir.chdir(name)
29
+
30
+ # Create cookie secret
31
+ secret = SecureRandom::hex(26)
32
+
33
+ # Install secret
34
+ key = 'a8976c0df4fb8a28f8fe979270443d37f239cf8da8f1bf9734ba'
35
+ File.open('config.ru', 'w'){|f| f.write(File.read('config.ru').gsub(key, secret))}
36
+
37
+ puts "\nApp #{name} created, please review your settings in the config directory\n\n"
38
+ puts "To start the application, go to the #{name} directory and run 'puma'\n"
39
+ puts "Go to https://github.com/fugroup/susana for documentation\n\n"
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: susana
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Fugroup Limited
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-07-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: futest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Light weight and fast web application framework. Everything you need
28
+ to build apps and APIs.
29
+ email: vidar@fugroup.net
30
+ executables:
31
+ - susana.rb
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - bin/susana.rb
36
+ - lib/susana.rb
37
+ homepage: https://github.com/fugroup/susana
38
+ licenses:
39
+ - MIT
40
+ metadata: {}
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ requirements: []
56
+ rubyforge_project:
57
+ rubygems_version: 2.6.10
58
+ signing_key:
59
+ specification_version: 4
60
+ summary: Susana ruby web application framework
61
+ test_files: []