iniquity 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/iniquity +49 -0
- metadata +49 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a6ba7d10334b77281f6d020883c2401abaf65be0
|
4
|
+
data.tar.gz: 6b9e36d6f6c61e8749b88f9a3ce7a16590d604cb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5a7bcc09c5019f3f9fda7c5f1db5ee2fd14b8cc0a38ece01a0792cf60c0290cab38cfd782b2080c5a1b7fc3c05462b4b236bcd53b8a13dd9d5855f9d20f9bbf9
|
7
|
+
data.tar.gz: 36d08255f6c3f3be869ee44be2e59209f7d8963eca1332ab6a112f0b35f1a2555a0085bfa163abbcca6b1556a60b5e3a57f60c6cbc4e2f6c1ac37ce61f08f218
|
data/bin/iniquity
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: UTF-8
|
3
|
+
|
4
|
+
BEGIN {
|
5
|
+
unless ARGV[0] || ENV["INIQUITY_HOME"]
|
6
|
+
abort "Please set the INIQUITY_HOME environment variable."
|
7
|
+
end
|
8
|
+
}
|
9
|
+
|
10
|
+
HOME = ARGV[0] || ENV["INIQUITY_HOME"] || "."
|
11
|
+
ENV["INIQUITY_HOME"] = HOME
|
12
|
+
|
13
|
+
require "iniquity"
|
14
|
+
require "inifile"
|
15
|
+
require "thin"
|
16
|
+
|
17
|
+
trap("INT") {exit}
|
18
|
+
|
19
|
+
EM.run do
|
20
|
+
|
21
|
+
### WFC Screen
|
22
|
+
|
23
|
+
EM.add_periodic_timer(15) do
|
24
|
+
puts "Iniquity: WFC Coming Soon!"
|
25
|
+
end
|
26
|
+
|
27
|
+
config = IniFile.load(HOME+ "/iniquity.ini")
|
28
|
+
|
29
|
+
config.each_section do |section|
|
30
|
+
|
31
|
+
if section == "terminal"
|
32
|
+
if config[section]["enabled"] == "yes"
|
33
|
+
EM.start_server "0.0.0.0", config[section]["port"], Terminal
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
if section == "web"
|
38
|
+
if config[section]["enabled"] == "yes"
|
39
|
+
EM.start_server "0.0.0.0", config[section]["port"], Web
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
if section == "api"
|
44
|
+
if config[section]["enabled"] == "yes"
|
45
|
+
EM.start_server "0.0.0.0", config[section]["port"], API
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
metadata
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: iniquity
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dan Stephenson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Iniquity is a bulletin board software package written in Ruby.
|
14
|
+
email: ispyhumanfly@gmail.com
|
15
|
+
executables:
|
16
|
+
- iniquity
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- bin/iniquity
|
21
|
+
homepage: https://iniquitybbs.github.io
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata:
|
25
|
+
issue_tracker: https://github.com/iniquitybbs/iniquity/issues
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- "./bin"
|
30
|
+
- "./lib"
|
31
|
+
- "./examples"
|
32
|
+
- "./docs"
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
requirements: []
|
44
|
+
rubyforge_project:
|
45
|
+
rubygems_version: 2.6.14
|
46
|
+
signing_key:
|
47
|
+
specification_version: 4
|
48
|
+
summary: A re-imagining of the iconic BBS software.
|
49
|
+
test_files: []
|