iniquity 0.0.12 → 0.0.13

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/iniquity +6 -20
  3. data/bin/ipm +6 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df94a9089f172006d8b454019f1dfe497d76fcc54dfe893275d74b518211fff1
4
- data.tar.gz: 6214255b92cfeca5029c212e1461f4a8b434b0959686f3df04b796393af903c6
3
+ metadata.gz: 4e4fdfa66b58c50e70a6815cfbd040bad3e474bc14bcaf2fa2f79a29917c7937
4
+ data.tar.gz: 75db176181f55e69ffc33d8a876c0b2de9f8603f402ed12fdc58acea80cc75b7
5
5
  SHA512:
6
- metadata.gz: ff712174a5b9c8234ba3cdf7510c0d34af7c7d93adbd042e4812fd1d5d557065257dfbeea8fbc33546e4f97a1971ace35db885414f10b7ee26a1abc13b718b47
7
- data.tar.gz: 3a8eec572f098ac5b408830dbab3813a248ff5a003e7d0b8e4e2c6b8a273f3aeae62b94d69addad624db855f378513e3a49085a86b0cb518a1f4d8a3ee687504
6
+ metadata.gz: dda1ee7406757c6dcb01ff50d7417b6ddd146846242fce85b07a902db8a54c2ea7e5857db7145d17ffb223b875a2d236b89e2c0d8ea00322d65d2110374878f1
7
+ data.tar.gz: c0de14c8505587d8c9f66d0bdfe6ce1d1c078e0ae5f03513c55e3c0e45ead387c811810ee06e671027fcae85edb7589514cfe42e9d86f1449213a099566c7176
data/bin/iniquity CHANGED
@@ -32,7 +32,7 @@ class Telnet < EM::Connection
32
32
 
33
33
  def initialize
34
34
  super
35
- send_data "\nIniquity BBS 0.0.12 - Telnet/UTF_8\n"
35
+ send_data "\nIniquity BBS 0.0.13 - Telnet/UTF_8\n"
36
36
  end
37
37
 
38
38
  def post_init
@@ -60,18 +60,6 @@ class Telnet < EM::Connection
60
60
  end
61
61
  end
62
62
 
63
- class Http < EM::Connection
64
- def initialize
65
- super
66
- end
67
- def post_init
68
- end
69
- def receive_data
70
- end
71
- def unbind
72
- end
73
- end
74
-
75
63
  class Rest < EM::Connection
76
64
  def initialize
77
65
  super
@@ -84,7 +72,7 @@ class Rest < EM::Connection
84
72
  end
85
73
  end
86
74
 
87
- ### Iniquity BBS
75
+ ### Iniquity Bulletin Board System
88
76
 
89
77
  puts "\niniquity - The Iniquity Bulletin Board System.\n\n"
90
78
 
@@ -93,6 +81,10 @@ if ARGV[0] && ARGV[0] == "init"
93
81
  new_system_file = File.new(SYSTEM + "/iniquity.ini", "w")
94
82
  new_system_file.puts "[profile]\nname=NewBBS\n"
95
83
  new_system_file.puts "\n[ipm]\nsources=iniquitybbs\n"
84
+ new_system_file.puts "\n[telnet]\nenabled=yes\n"
85
+ new_system_file.puts "\nport=3023\n"
86
+ new_system_file.puts "\n[rest]\nenabled=yes\n"
87
+ new_system_file.puts "\nport=3080\n"
96
88
  new_system_file.close
97
89
  abort "iniquity - Initialized directory as a new Iniquity BBS.\n\n"
98
90
  end
@@ -126,12 +118,6 @@ EM.run do
126
118
  end
127
119
  end
128
120
 
129
- if section == "http"
130
- if CONFIG[section]["enabled"] == "yes"
131
- EM.start_server "0.0.0.0", CONFIG[section]["port"], Http
132
- end
133
- end
134
-
135
121
  if section == "rest"
136
122
  if CONFIG[section]["enabled"] == "yes"
137
123
  EM.start_server "0.0.0.0", CONFIG[section]["port"], Rest
data/bin/ipm CHANGED
@@ -30,6 +30,8 @@ require "highline"
30
30
  require "open-uri"
31
31
  require "zip"
32
32
 
33
+ ### Iniquity Package Manager
34
+
33
35
  puts "\nipm - The Iniquity Package Manager.\n\n"
34
36
 
35
37
  # If "init" passed.
@@ -37,6 +39,10 @@ if ARGV[0] && ARGV[0] == "init"
37
39
  new_system_file = File.new(SYSTEM + "/iniquity.ini", "w")
38
40
  new_system_file.puts "[profile]\nname=NewBBS\n"
39
41
  new_system_file.puts "\n[ipm]\nsources=iniquitybbs\n"
42
+ new_system_file.puts "\n[telnet]\nenabled=yes\n"
43
+ new_system_file.puts "\nport=3023\n"
44
+ new_system_file.puts "\n[rest]\nenabled=yes\n"
45
+ new_system_file.puts "\nport=3080\n"
40
46
  new_system_file.close
41
47
  abort "ipm - Initialized directory as a new Iniquity BBS.\n\n"
42
48
  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.12
4
+ version: 0.0.13
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-02-12 00:00:00.000000000 Z
11
+ date: 2018-02-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A re-imagining of the iconic BBS software.
14
14
  email: ispyhumanfly@gmail.com