netsoul 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/.versions.conf +1 -1
- data/lib/netsoul/message.rb +2 -2
- data/lib/netsoul/version.rb +1 -1
- data/netsoul.gemspec +2 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d998de620bc16ce5cdb4aab3dd7f1dbccfef804
|
4
|
+
data.tar.gz: d1b6b599d9edeb94d3fba87e07c781f2f0875ebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bde8bcde064079bfba6e4865d686261f25892fb06c82af8e90d964788aeea3d36ee4e2f051bcfbbbd65242b56790750a8e21386cce7422f49219e68d226bb653
|
7
|
+
data.tar.gz: c0a8e2aad2f0b904e3d17c69350e2e9504092cdc435b1c8f0064bde3db1f0ca9ff343a27f036e0514d7c0ad7b6cf1afafaee94e43f99454faa6d0a71bc24c58c
|
data/.travis.yml
CHANGED
data/.versions.conf
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
ruby=2.2.
|
1
|
+
ruby=2.2.4
|
2
2
|
ruby-gemset=netsoul
|
data/lib/netsoul/message.rb
CHANGED
@@ -6,7 +6,7 @@ module Netsoul
|
|
6
6
|
class Message
|
7
7
|
class << self
|
8
8
|
def _standard_auth_string(c)
|
9
|
-
str =
|
9
|
+
str = c.user_connection_info[:md5_hash]
|
10
10
|
str << "-#{c.user_connection_info[:client_ip]}"
|
11
11
|
str << "/#{c.user_connection_info[:client_port]}#{c.socks_password}"
|
12
12
|
Digest::MD5.hexdigest(str)
|
@@ -122,7 +122,7 @@ module Netsoul
|
|
122
122
|
class << self
|
123
123
|
def get(ip)
|
124
124
|
locations.each do |key, val|
|
125
|
-
return
|
125
|
+
return key.to_s if ip =~ /^#{val}/
|
126
126
|
end
|
127
127
|
'ext'.freeze
|
128
128
|
end
|
data/lib/netsoul/version.rb
CHANGED
data/netsoul.gemspec
CHANGED
@@ -16,11 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
18
|
# delete this section to allow pushing this gem to any host.
|
19
|
-
|
20
|
-
|
21
|
-
else
|
22
|
-
fail 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
23
|
-
end
|
19
|
+
fail 'RubyGems 2.0 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
24
21
|
|
25
22
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
23
|
spec.bindir = 'bin'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netsoul
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Kakesa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|