iniquity 0.0.6 → 0.0.7

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 +5 -5
  2. data/bin/iniquity +22 -9
  3. data/bin/ipm +48 -10
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 515632244b0a4e02552f0727880ecfb07953fb06
4
- data.tar.gz: d7258c50be815631cc6b0614830e3000bbbead8b
2
+ SHA256:
3
+ metadata.gz: 4d446dce8267ce2708adbb824178d88bb0db0d6be8c5dc1756362aed54f88765
4
+ data.tar.gz: 8afbed424b7509a9a5d730c0a89c656c900b6e9560698ba5ab7c64497a4d8ee4
5
5
  SHA512:
6
- metadata.gz: 83e7a44d23db21e5b27b09940249f902eb0191623eff286cf18af9014aceebd4dcb49c6ccaca5265e7cf035cbd0949e2c53df93421c655949007b48b6f729c1d
7
- data.tar.gz: 11b135517eb933b5429457e06e75dad1cf5ee3a72d93c6431c74e54aa18c756f0ba84fa675ad1dfdcc14824976f70182abf4dfbfceabc9fd5eee5e7a1e4e6a16
6
+ metadata.gz: 608f32ceb7feb20f6302f235e6d69bef9715622c71e4fd23f6cc0c58dd3a46589af1876eb756732b129586877945dceaa96bc737d49e62574a258d22d77ee295
7
+ data.tar.gz: 23b37f5c76b3d375a2d743211af59065fbdda74270965b49d09f0608b3c088eddd4c5147aef3652620680ea6fa508c5c036215276bbdc0f3be68924b6dc40ec1
data/bin/iniquity CHANGED
@@ -1,13 +1,26 @@
1
1
  #!/usr/bin/env ruby
2
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
- SYSTEM = ARGV[0] || ENV["INIQUITY_SYSTEM"]
3
+ #(*
4
+ #-$a. ------------------ .a$ ---------------------------- %$!, ----------------%
5
+ # `$¸ .%$$^¸$$aa. .¸$` . .a$a$$. `¸$% $a$. .
6
+ #-.aaa$ $$$$'- $$$$$.- $aaa. -.a%$^"$$aa -- .$$$$$'- $$a. $aaa. `$,$ ----------%
7
+ #;$$$$',a$a$ d$%$$$$$,'$$$$;$$$$$ $$$$$., $$%$$" d$a$$ '$$$$; $$$ .a%$ $$a
8
+ #:$$$$;$$$$%; Z$$$$$$$$;$$$$:$$$$$. $$$$^$,;$$&$$ Z$$$$,;$$$$.a$$$a..$$$ $$$
9
+ #.$$$$ `$$$$. $$$%$$$' $$$$.`$$$$ $$%$$$$ `$$$$. $%$$$ $$$$""$$$" $$$$: a$$
10
+ # `$$$a.$$%$ $$$$$$';a$$$` `¸$$aa$$$$&$': `$$$$a. $$$$'a$$$`.$$'$ $$$$; $$$
11
+ #%-----.------ $$$$'--------------- $$%$$' -- `¸$$$$$%$¸' ---- $$¸$a. `"$&$$#$%$
12
+ #dz . .:'¸' . . $$$$' . . `¸$$$$y. `$$&
13
+ #%--------- a`-----------.--------- $$¸' -----.------------.---------------- $$$
14
+ # . !a . . . . .:' . . . .:.a$$$¸
15
+ #. . '$a, . a` . 'a . . s` . . .
16
+ # . ¸$Aa . !a a! . . .. %s .s
17
+ # . ¸¸' . . '$$Aa.aA$$' . . `!$%a.a%#$
18
+ #==============================================================================
19
+ # t h e i n i q u i t y b u l l e t i n b o a r d s y s t e m
20
+ #==============================================================================
21
+ #*)
22
+
23
+ SYSTEM = ENV["INIQUITY_SYSTEM"] || Dir.pwd
11
24
  ENV["INIQUITY_SYSTEM"] = SYSTEM
12
25
 
13
26
  require "inifile"
@@ -18,7 +31,7 @@ class Telnet < EM::Connection
18
31
 
19
32
  def initialize
20
33
  super
21
- send_data "\nIniquity BBS 0.0.5 - Telnet/UTF_8\n"
34
+ send_data "\nIniquity BBS 0.0.7 - Telnet/UTF_8\n"
22
35
  end
23
36
 
24
37
  def post_init
data/bin/ipm CHANGED
@@ -1,19 +1,32 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: UTF-8
3
+ #(*
4
+ #-$a. ------------------ .a$ ---------------------------- %$!, ----------------%
5
+ # `$¸ .%$$^¸$$aa. .¸$` . .a$a$$. `¸$% $a$. .
6
+ #-.aaa$ $$$$'- $$$$$.- $aaa. -.a%$^"$$aa -- .$$$$$'- $$a. $aaa. `$,$ ----------%
7
+ #;$$$$',a$a$ d$%$$$$$,'$$$$;$$$$$ $$$$$., $$%$$" d$a$$ '$$$$; $$$ .a%$ $$a
8
+ #:$$$$;$$$$%; Z$$$$$$$$;$$$$:$$$$$. $$$$^$,;$$&$$ Z$$$$,;$$$$.a$$$a..$$$ $$$
9
+ #.$$$$ `$$$$. $$$%$$$' $$$$.`$$$$ $$%$$$$ `$$$$. $%$$$ $$$$""$$$" $$$$: a$$
10
+ # `$$$a.$$%$ $$$$$$';a$$$` `¸$$aa$$$$&$': `$$$$a. $$$$'a$$$`.$$'$ $$$$; $$$
11
+ #%-----.------ $$$$'--------------- $$%$$' -- `¸$$$$$%$¸' ---- $$¸$a. `"$&$$#$%$
12
+ #dz . .:'¸' . . $$$$' . . `¸$$$$y. `$$&
13
+ #%--------- a`-----------.--------- $$¸' -----.------------.---------------- $$$
14
+ # . !a . . . . .:' . . . .:.a$$$¸
15
+ #. . '$a, . a` . 'a . . s` . . .
16
+ # . ¸$Aa . !a a! . . .. %s .s
17
+ # . ¸¸' . . '$$Aa.aA$$' . . `!$%a.a%#$
18
+ #==============================================================================
19
+ # t h e i n i q u i t y b u l l e t i n b o a r d s y s t e m
20
+ #==============================================================================
21
+ #*)
3
22
 
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"]
23
+ HOME = ENV["INIQUITY_SYSTEM"] || Dir.pwd
11
24
  ENV["INIQUITY_SYSTEM"] = HOME
12
25
 
13
26
  require "inifile"
14
- require "socksify"
15
27
  require "github_api"
16
- require "json"
28
+ require "zip"
29
+ require "highline"
17
30
 
18
31
  puts "\nipm - The Iniquity Package Manager.\n\n"
19
32
 
@@ -28,4 +41,29 @@ repositories.each do |repo|
28
41
  end
29
42
  end
30
43
 
31
- puts "\nTotal packages: #{packages.length}\n\n"
44
+ require 'net/http'
45
+ # Must be somedomain.net instead of somedomain.net/, otherwise, it will throw exception.
46
+ Net::HTTP.start("somedomain.net") do |http|
47
+ resp = http.get("/flv/sample/sample.flv")
48
+ open("sample.flv", "wb") do |file|
49
+ file.write(resp.body)
50
+ end
51
+ end
52
+ puts "Done."
53
+
54
+ Zip::File.open('foo.zip') do |zip_file|
55
+ # Handle entries one by one
56
+ zip_file.each do |entry|
57
+ # Extract to file/directory/symlink
58
+ puts "Extracting #{entry.name}"
59
+ entry.extract(dest_file)
60
+
61
+ # Read into memory
62
+ content = entry.get_input_stream.read
63
+ end
64
+
65
+ # Find specific entry
66
+ entry = zip_file.glob('*.csv').first
67
+ puts entry.get_input_stream.read
68
+ end
69
+ puts "\nTotal ipm packages: #{packages.length}\n\n"
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Stephenson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-01 00:00:00.000000000 Z
11
+ date: 2017-11-02 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
@@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
42
  version: '0'
43
43
  requirements: []
44
44
  rubyforge_project:
45
- rubygems_version: 2.6.14
45
+ rubygems_version: 2.7.0
46
46
  signing_key:
47
47
  specification_version: 4
48
48
  summary: Iniquity BBS