tor 0.1.5 → 0.1.6

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +106 -0
  3. data/VERSION +1 -1
  4. metadata +14 -14
  5. data/README +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7be2c2b80fea90e1b3e9567624a442d4b3d1a92946f72d6b465280ad4b5d0ec8
4
- data.tar.gz: 96358536b8479ea4fba83fb236dabb6b743074c058a48a6fbfe435bf00ab5bbc
3
+ metadata.gz: d91b29f9cb778f329f314cd5d55d89cc3e9298b2280aafd8410aea3986027b1f
4
+ data.tar.gz: 39592d80c73a94492de09df55be82f2d57f520ad90777c464773f94dba3ce3f6
5
5
  SHA512:
6
- metadata.gz: b961dc19ac6f692cbade5226a895782c311cf6463fd228595ee4044085de9340f6948e852c981649c63abfd0abd01665d3fd7cabf2970815be6f87541b8158ee
7
- data.tar.gz: cbecd4beddfd8d543d79233ea2f116609204550f0366a091aacac9573eae593e08c2d5c663020b56713ea6fc46b6dbb2ca39aa6b4e0e1686bb30d6ae7c7b2a7c
6
+ metadata.gz: 5c89795376ffb4ef9d40c4f87f6e72807bfd0d49f141236f56787f1ee5350a6c0a45a295f2fe1da238ed266e70055103dc8dc61ecbdcda516860e246face9707
7
+ data.tar.gz: 6c67d0aafa88168e186fd03d62250ee7831beb04b272fa8794a730490f0df190160ef169af93bafa3817ea11c063bd216a7159f43c36da12d16435f8da80c07e
data/README.md ADDED
@@ -0,0 +1,106 @@
1
+ Tor.rb: Onion Routing for Ruby
2
+ ==============================
3
+
4
+ This is a Ruby library for interacting with the [Tor][] anonymity network.
5
+
6
+ * <http://github.com/bendiken/tor-ruby>
7
+
8
+ Features
9
+ --------
10
+
11
+ * Supports checking whether Tor is installed in the user's current `PATH`,
12
+ and if it is, returning the version number.
13
+ * Supports parsing Tor configuration files and looking up the values of
14
+ particular options.
15
+ * Supports querying and controlling a locally-running Tor process using the
16
+ [Tor Control Protocol (TC)][TC] over a socket connection.
17
+ * Supports querying the [Tor DNS Exit List (DNSEL)][TorDNSEL] to determine
18
+ whether a particular host is a Tor exit node or not.
19
+ * Compatible with Ruby 1.8.7+, Ruby 1.9.x, and JRuby 1.4/1.5.
20
+
21
+ Examples
22
+ --------
23
+
24
+ require 'rubygems'
25
+ require 'tor'
26
+
27
+ ### Checking whether Tor is installed and which version it is
28
+
29
+ Tor.available? #=> true
30
+ Tor.version #=> "0.2.1.25"
31
+
32
+ ### Parsing the Tor configuration file (1)
33
+
34
+ torrc = Tor::Config.load("/etc/tor/torrc")
35
+
36
+ ### Parsing the Tor configuration file (2)
37
+
38
+ Tor::Config.open("/etc/tor/torrc") do |torrc|
39
+ puts "Tor SOCKS port: #{torrc['SOCKSPort']}"
40
+ puts "Tor control port: #{torrc['ControlPort']}"
41
+ puts "Tor exit policy:"
42
+ torrc.each('ExitPolicy') do |key, value|
43
+ puts " #{value}"
44
+ end
45
+ end
46
+
47
+ ### Communicating with a running Tor process
48
+
49
+ Tor::Controller.connect(:port => 9051) do |tor|
50
+ puts "Tor version: #{tor.version}"
51
+ puts "Tor config file: #{tor.config_file}"
52
+ end
53
+
54
+ ### Checking whether a particular host is a Tor exit node
55
+
56
+ Tor::DNSEL.include?("185.220.101.21") #=> true
57
+ Tor::DNSEL.include?("1.2.3.4") #=> false
58
+
59
+ Documentation
60
+ -------------
61
+
62
+ * <http://cypherpunk.rubyforge.org/tor/>
63
+
64
+ Dependencies
65
+ ------------
66
+
67
+ * [Ruby](http://ruby-lang.org/) (>= 1.8.7) or (>= 1.8.1 with [Backports][])
68
+ * [Tor](https://www.torproject.org/download.html.en) (>= 0.2.1)
69
+
70
+ Installation
71
+ ------------
72
+
73
+ The recommended installation method is via [RubyGems](http://rubygems.org/).
74
+ To install the latest official release of Tor.rb, do:
75
+
76
+ % [sudo] gem install tor # Ruby 1.8.7+ or 1.9.x
77
+ % [sudo] gem install backports tor # Ruby 1.8.1+
78
+
79
+ Download
80
+ --------
81
+
82
+ To get a local working copy of the development repository, do:
83
+
84
+ % git clone git://github.com/bendiken/tor-ruby.git
85
+
86
+ Alternatively, you can download the latest development version as a tarball
87
+ as follows:
88
+
89
+ % wget http://github.com/bendiken/tor-ruby/tarball/master
90
+
91
+ Author
92
+ ------
93
+
94
+ * [Arto Bendiken](mailto:arto.bendiken@gmail.com) - <http://ar.to/>
95
+
96
+ License
97
+ -------
98
+
99
+ Tor.rb is free and unencumbered public domain software. For more
100
+ information, see <http://unlicense.org/> or the accompanying UNLICENSE file.
101
+
102
+ [Tor]: https://www.torproject.org/
103
+ [TorDNSEL]: https://www.torproject.org/tordnsel/
104
+ [TC]: http://gitweb.torproject.org/tor.git?a=blob_plain;hb=HEAD;f=doc/spec/control-spec.txt
105
+ [OR]: http://en.wikipedia.org/wiki/Onion_routing
106
+ [Backports]: http://rubygems.org/gems/backports
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arto Bendiken
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.6.0
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '0.6'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.6.0
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.6.0
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0.6'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.6.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ extra_rdoc_files: []
52
52
  files:
53
53
  - AUTHORS
54
54
  - CREDITS
55
- - README
55
+ - README.md
56
56
  - UNLICENSE
57
57
  - VERSION
58
58
  - lib/tor.rb
@@ -60,11 +60,11 @@ files:
60
60
  - lib/tor/control.rb
61
61
  - lib/tor/dnsel.rb
62
62
  - lib/tor/version.rb
63
- homepage: http://cypherpunk.rubyforge.org/tor/
63
+ homepage: https://rubygems.org/gems/tor/
64
64
  licenses:
65
65
  - Unlicense
66
66
  metadata: {}
67
- post_install_message:
67
+ post_install_message:
68
68
  rdoc_options: []
69
69
  require_paths:
70
70
  - lib
@@ -80,8 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements:
82
82
  - Tor (>= 0.2.1.25)
83
- rubygems_version: 3.0.3
84
- signing_key:
83
+ rubygems_version: 3.4.10
84
+ signing_key:
85
85
  specification_version: 4
86
86
  summary: Onion routing for Ruby.
87
87
  test_files: []
data/README DELETED
@@ -1 +0,0 @@
1
- ./README.md