iniquity 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/iniquity +18 -16
- data/bin/ipm +31 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a493adecc4701636f7a163c63719be8a6283768
|
4
|
+
data.tar.gz: 6ace7d0e5602ac99365240dcdf3723bf32c471b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5cec94e1228487d68569165ed8c348b8978d9bd4b5912d3c1d9c7e35c18517c91f12a1b346b1b4a03ec8b355b87b021b1e00d32beadedf1aba1b351d63f7fc9
|
7
|
+
data.tar.gz: 51499114cdf86d44abc844457c69f85dbd94ca2123377b0e9b1a5e32ddf9a81d4481381da4f2b21e98229ae350b8307eed68e693e57fdda2558890961146a28b
|
data/bin/iniquity
CHANGED
@@ -7,34 +7,23 @@ BEGIN {
|
|
7
7
|
end
|
8
8
|
}
|
9
9
|
|
10
|
-
|
11
|
-
ENV["INIQUITY_SYSTEM"] =
|
10
|
+
SYSTEM = ARGV[0] || ENV["INIQUITY_SYSTEM"]
|
11
|
+
ENV["INIQUITY_SYSTEM"] = SYSTEM
|
12
12
|
|
13
13
|
require "inifile"
|
14
14
|
require "thin"
|
15
15
|
require "socksify"
|
16
16
|
|
17
|
-
if File.exists?(HOME+ "/iniquity.ini")
|
18
|
-
CONFIG = IniFile.load(HOME+ "/iniquity.ini")
|
19
|
-
else
|
20
|
-
abort "An Iniquity system must have an iniquity.ini file."
|
21
|
-
end
|
22
|
-
|
23
|
-
if CONFIG["tor"]["enabled"] == "yes"
|
24
|
-
TCPSocket::socks_server = CONFIG["tor"]["address"]
|
25
|
-
TCPSocket::socks_port = CONFIG["tor"]["port"]
|
26
|
-
end
|
27
|
-
|
28
17
|
class Telnet < EM::Connection
|
29
18
|
|
30
19
|
def initialize
|
31
20
|
super
|
32
|
-
send_data "\nIniquity BBS 0.0.
|
21
|
+
send_data "\nIniquity BBS 0.0.5 - Telnet/UTF_8\n"
|
33
22
|
end
|
34
23
|
|
35
24
|
def post_init
|
36
25
|
|
37
|
-
puts "-- Someone connected to
|
26
|
+
puts "-- Someone connected to Iniquity..."
|
38
27
|
|
39
28
|
#IO.readlines("./modules/welcome.ans").each do |line|
|
40
29
|
# send_data line.force_encoding(Encoding::IBM437).encode(Encoding::UTF_8)
|
@@ -53,7 +42,7 @@ class Telnet < EM::Connection
|
|
53
42
|
end
|
54
43
|
|
55
44
|
def unbind
|
56
|
-
puts "-- Someone disconnected from
|
45
|
+
puts "-- Someone disconnected from Iniquity..."
|
57
46
|
end
|
58
47
|
end
|
59
48
|
|
@@ -81,6 +70,19 @@ class Rest < EM::Connection
|
|
81
70
|
end
|
82
71
|
end
|
83
72
|
|
73
|
+
### Iniquity
|
74
|
+
|
75
|
+
if File.exists?(SYSTEM+ "/iniquity.ini")
|
76
|
+
CONFIG = IniFile.load(SYSTEM+ "/iniquity.ini")
|
77
|
+
else
|
78
|
+
abort "An Iniquity system must have an iniquity.ini file."
|
79
|
+
end
|
80
|
+
|
81
|
+
if CONFIG["tor"]["enabled"] == "yes"
|
82
|
+
TCPSocket::socks_server = CONFIG["tor"]["address"]
|
83
|
+
TCPSocket::socks_port = CONFIG["tor"]["port"]
|
84
|
+
end
|
85
|
+
|
84
86
|
EM.run do
|
85
87
|
|
86
88
|
### Events
|
data/bin/ipm
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: UTF-8
|
3
|
+
|
4
|
+
BEGIN {
|
5
|
+
unless ARGV[0] || ENV["INIQUITY_SYSTEM"]
|
6
|
+
abort "Please set the INIQUITY_SYSTEM environment variable."
|
7
|
+
end
|
8
|
+
}
|
9
|
+
|
10
|
+
HOME = ARGV[0] || ENV["INIQUITY_SYSTEM"]
|
11
|
+
ENV["INIQUITY_SYSTEM"] = HOME
|
12
|
+
|
13
|
+
require "inifile"
|
14
|
+
require "socksify"
|
15
|
+
require "github_api"
|
16
|
+
require "json"
|
17
|
+
|
18
|
+
puts "\nipm - The Iniquity Package Manager.\n\n"
|
19
|
+
|
20
|
+
packages = Github.repos.list user: 'iniquitybbs'
|
21
|
+
|
22
|
+
iq = []
|
23
|
+
|
24
|
+
packages.each do |package|
|
25
|
+
if package.name.match(/^iq/)
|
26
|
+
iq.push(package.name)
|
27
|
+
puts package.name
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
puts "\n#{iq.length} total packages available.\n\n"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iniquity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Stephenson
|
@@ -14,10 +14,12 @@ description: A re-imagining of the iconic BBS software.
|
|
14
14
|
email: ispyhumanfly@gmail.com
|
15
15
|
executables:
|
16
16
|
- iniquity
|
17
|
+
- ipm
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
20
21
|
- bin/iniquity
|
22
|
+
- bin/ipm
|
21
23
|
homepage: https://iniquitybbs.github.io
|
22
24
|
licenses:
|
23
25
|
- MIT
|