iniquity 0.0.17 → 0.0.18
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 +2 -2
- data/bin/{iqmod → iqpkg} +30 -30
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79ff0b59f66ac89ffb850cfc2e57a2cb298ba2f5d12b58acef6bebadb886e44a
|
4
|
+
data.tar.gz: b25498dd8168b4a151c5a603f31b8e7ef123d2d2a069dff1267793e1a7f30624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25e728e9830939029e55b3391c6d3e2d5a1071d330b46085ef41dd2261cdd17d32b68be7f5e7a8bc9343a0ac71e37f9400c1e30d848df6b664fe6f28dcb40ee5
|
7
|
+
data.tar.gz: d2118a1bd4b3e6b34f5d755f3d8fd2ca05d23367d704751d93f17ff9ee4f6605b9702b6ea65465fd1e270e8b7266bd82f04e754f73b30c9363d1a4c742187cd2
|
data/bin/iniquity
CHANGED
@@ -41,7 +41,7 @@ class Telnet < EM::Connection
|
|
41
41
|
# Save xterm icon and window title on stack.
|
42
42
|
# send_data "\x1b[22;0"
|
43
43
|
|
44
|
-
send_data "\n #{ANSI::Code.white}Iniquity BBS :: #{ANSI::Code.red }Build 0.0.
|
44
|
+
send_data "\n #{ANSI::Code.white}Iniquity BBS :: #{ANSI::Code.red }Build 0.0.18 - #{ANSI::Code.blue_on_white}Telnet Connection!\n"
|
45
45
|
|
46
46
|
artwork = File.join(File.dirname(File.expand_path(__FILE__)), "../artwork/we-iniq3.ans")
|
47
47
|
|
@@ -91,7 +91,7 @@ DB = SQLite3::Database.new "#{SYSTEM}/iniquity.db"
|
|
91
91
|
if ARGV[0] && ARGV[0] == "init"
|
92
92
|
new_system_file = File.new(SYSTEM + "/iniquity.ini", "w")
|
93
93
|
new_system_file.puts "[profile]\nname=NewBBS\n"
|
94
|
-
new_system_file.puts "\n[
|
94
|
+
new_system_file.puts "\n[iqpkg]\nsources=iniquitybbs\n"
|
95
95
|
new_system_file.puts "\n[telnet]\nenabled=yes\n"
|
96
96
|
new_system_file.puts "port=3023\n"
|
97
97
|
new_system_file.puts "\n[rest]\nenabled=yes\n"
|
data/bin/{iqmod → iqpkg}
RENAMED
@@ -38,25 +38,25 @@ IO.readlines(artwork).each do |line|
|
|
38
38
|
puts line.force_encoding(Encoding::IBM437).encode(Encoding::UTF_8)
|
39
39
|
end
|
40
40
|
|
41
|
-
puts "\
|
41
|
+
puts "\niqpkg - The Iniquity BBS Modules Utility.\n"
|
42
42
|
|
43
43
|
if File.exists?(SYSTEM + "/iniquity.ini")
|
44
44
|
CONFIG = IniFile.load(SYSTEM+ "/iniquity.ini")
|
45
45
|
else
|
46
|
-
abort "
|
46
|
+
abort "iqpkg - An Iniquity system must have an iniquity.ini file.\n\n"
|
47
47
|
end
|
48
48
|
|
49
49
|
# Find all available modules across all GitHub sources...
|
50
50
|
available_modules = []
|
51
51
|
|
52
|
-
if CONFIG["
|
53
|
-
CONFIG["
|
52
|
+
if CONFIG["iqpkg"]["sources"]
|
53
|
+
CONFIG["iqpkg"]["sources"].split(",").each do |source|
|
54
54
|
|
55
55
|
repositories = Github.repos.list user: "#{source}"
|
56
56
|
|
57
|
-
repositories.each do |
|
58
|
-
if
|
59
|
-
available_modules.push(
|
57
|
+
repositories.each do |iqpkg|
|
58
|
+
if iqpkg.name.match(/^iqpkg/)
|
59
|
+
available_modules.push(iqpkg)
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
@@ -65,9 +65,9 @@ end
|
|
65
65
|
installed_modules = []
|
66
66
|
|
67
67
|
Dir.chdir SYSTEM
|
68
|
-
Dir.glob('
|
69
|
-
if File.directory?
|
70
|
-
installed_modules.push
|
68
|
+
Dir.glob('iqpkg*').select { |iqpkg|
|
69
|
+
if File.directory? iqpkg
|
70
|
+
installed_modules.push iqpkg
|
71
71
|
end
|
72
72
|
}
|
73
73
|
|
@@ -78,30 +78,30 @@ if ARGV[0] && ARGV[0] == "install"
|
|
78
78
|
|
79
79
|
if ARGV[0]
|
80
80
|
ARGV.each do |install|
|
81
|
-
available_modules.each do |
|
81
|
+
available_modules.each do |iqpkg|
|
82
82
|
|
83
|
-
if install ==
|
84
|
-
next if Dir.exists? SYSTEM + "/#{
|
83
|
+
if install == iqpkg.name
|
84
|
+
next if Dir.exists? SYSTEM + "/#{iqpkg.name}"
|
85
85
|
|
86
86
|
# Need to wrap this sequence in a try/catch of some kind...
|
87
87
|
|
88
|
-
download = open("https://github.com/#{
|
89
|
-
IO.copy_stream(download, SYSTEM + "/#{
|
88
|
+
download = open("https://github.com/#{iqpkg.full_name}/archive/master.zip")
|
89
|
+
IO.copy_stream(download, SYSTEM + "/#{iqpkg.name}.zip")
|
90
90
|
|
91
|
-
Zip::File.open(SYSTEM + "/#{
|
91
|
+
Zip::File.open(SYSTEM + "/#{iqpkg.name}.zip") do |zip_file|
|
92
92
|
zip_file.each do |entry|
|
93
93
|
entry.extract(SYSTEM + "/#{entry.name}")
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
-
FileUtils.mv SYSTEM + "/#{
|
98
|
-
FileUtils.rm SYSTEM + "/#{
|
99
|
-
puts "
|
97
|
+
FileUtils.mv SYSTEM + "/#{iqpkg.name}-master", SYSTEM + "/#{iqpkg.name}"
|
98
|
+
FileUtils.rm SYSTEM + "/#{iqpkg.name}.zip"
|
99
|
+
puts "iqpkg - Installed #{iqpkg.name}.\n\n"
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
103
103
|
else
|
104
|
-
abort "
|
104
|
+
abort "iqpkg - You must specify an iqpkg package name to install.\n\n"
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
@@ -112,7 +112,7 @@ if ARGV[0] && ARGV[0] == "uninstall"
|
|
112
112
|
|
113
113
|
if ARGV[0]
|
114
114
|
ARGV.each do |uninstall|
|
115
|
-
abort "
|
115
|
+
abort "iqpkg - Sorry, uninstall doesn't work yet.\n\n"
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
@@ -124,7 +124,7 @@ if ARGV[0] && ARGV[0] == "search"
|
|
124
124
|
|
125
125
|
if ARGV[0]
|
126
126
|
ARGV.each do |search|
|
127
|
-
abort "
|
127
|
+
abort "iqpkg - Sorry, search doesn't work yet.\n\n"
|
128
128
|
end
|
129
129
|
end
|
130
130
|
end
|
@@ -133,21 +133,21 @@ end
|
|
133
133
|
unless ARGV[0]
|
134
134
|
|
135
135
|
if available_modules.length > 0
|
136
|
-
puts "
|
136
|
+
puts "iqpkg - Modules available for installation.\n\n"
|
137
137
|
|
138
|
-
available_modules.each do |
|
139
|
-
puts
|
140
|
-
puts
|
141
|
-
puts "https://github.com/#{
|
138
|
+
available_modules.each do |iqpkg|
|
139
|
+
puts iqpkg.name
|
140
|
+
puts iqpkg.description
|
141
|
+
puts "https://github.com/#{iqpkg.full_name}/archive/master.zip"
|
142
142
|
puts ""
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
146
|
if installed_modules.length > 0
|
147
|
-
puts "
|
147
|
+
puts "iqpkg - Modules currently installed.\n\n"
|
148
148
|
|
149
|
-
installed_modules.each do |
|
150
|
-
puts
|
149
|
+
installed_modules.each do |iqpkg|
|
150
|
+
puts iqpkg
|
151
151
|
end
|
152
152
|
end
|
153
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Stephenson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -224,7 +224,7 @@ description: A re-imagining of the iconic BBS software.
|
|
224
224
|
email: ispyhumanfly@gmail.com
|
225
225
|
executables:
|
226
226
|
- iniquity
|
227
|
-
-
|
227
|
+
- iqpkg
|
228
228
|
- iqterm
|
229
229
|
extensions: []
|
230
230
|
extra_rdoc_files: []
|
@@ -232,7 +232,7 @@ files:
|
|
232
232
|
- "./artwork/sm!iniq2.asc"
|
233
233
|
- "./artwork/we-iniq3.ans"
|
234
234
|
- bin/iniquity
|
235
|
-
- bin/
|
235
|
+
- bin/iqpkg
|
236
236
|
- bin/iqterm
|
237
237
|
homepage: http://iniquitybbs.org
|
238
238
|
licenses:
|
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
version: '0'
|
256
256
|
requirements: []
|
257
257
|
rubyforge_project:
|
258
|
-
rubygems_version: 2.7.
|
258
|
+
rubygems_version: 2.7.7
|
259
259
|
signing_key:
|
260
260
|
specification_version: 4
|
261
261
|
summary: Iniquity BBS
|