minimal-http-ruby 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/minimal-http-init.rb +31 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6ad76ce1c928006b7809051a82ac5af630103e2
|
4
|
+
data.tar.gz: 673cfbbdd403bc840100a36174c755f35f2339cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87bfb7b69275bde6e33ad3fdee12e0799ee47a0f68f9a7542b726d7799ab66d3c9ffe3d161f8316e9f41278fc72dedfdfbb14feccea7f1ddf153eed856b515c2
|
7
|
+
data.tar.gz: 31a90eacb753a430e1780ad121999c20a1600b3e24b0030d2cb3a051fc0382f3f0bd4dae8cd6c0376c0a7cb86f5f2928b6da91b945536bf87e7a543b9573642a
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encode: UTF-8
|
3
|
+
|
4
|
+
require "fileutils"
|
5
|
+
|
6
|
+
|
7
|
+
puts "minimal-http-ruby Initializer"
|
8
|
+
if File.directory? "./http"
|
9
|
+
puts "Error: ./http Already Exists -- Cannot create!"
|
10
|
+
exit(-1)
|
11
|
+
end
|
12
|
+
Dir.mkdir "./http"
|
13
|
+
if File.directory? "./http"
|
14
|
+
Dir.mkdir "./http/coffee"
|
15
|
+
Dir.mkdir "./http/css"
|
16
|
+
Dir.mkdir "./http/haml"
|
17
|
+
Dir.mkdir "./http/json"
|
18
|
+
File.open("./http/haml/index.haml", 'w') do |file|
|
19
|
+
file.write <<END
|
20
|
+
!!!
|
21
|
+
%body
|
22
|
+
%h1 Congratulations!
|
23
|
+
%hr
|
24
|
+
You have installed minimal-http-ruby
|
25
|
+
%hr
|
26
|
+
Next, please edit file: #{Dir.pwd}/http/haml to get started!
|
27
|
+
|
28
|
+
END
|
29
|
+
end
|
30
|
+
puts "Created OK!"
|
31
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal-http-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Siitonen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|
@@ -53,10 +53,12 @@ dependencies:
|
|
53
53
|
description: 'Minimal Http Server Class with Ryby: Haml & Coffeescript & SSE & AJAX
|
54
54
|
-- well under 200 lines of code!'
|
55
55
|
email: jalopuuverstas@gmail.com
|
56
|
-
executables:
|
56
|
+
executables:
|
57
|
+
- minimal-http-init.rb
|
57
58
|
extensions: []
|
58
59
|
extra_rdoc_files: []
|
59
60
|
files:
|
61
|
+
- bin/minimal-http-init.rb
|
60
62
|
- examples/server.rb
|
61
63
|
- http/coffee/test.coffee
|
62
64
|
- http/css/test.css
|