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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df5f49b5d93542894a251ef2248ba334de6cde11
4
- data.tar.gz: 8a18fb5d6f52f2dbdbc530456bdff7f01847c88b
3
+ metadata.gz: 9d998de620bc16ce5cdb4aab3dd7f1dbccfef804
4
+ data.tar.gz: d1b6b599d9edeb94d3fba87e07c781f2f0875ebd
5
5
  SHA512:
6
- metadata.gz: 5d2f2520b964365da14ff85742fdc3e0eab0e2964c7c23081d0cc9636b7824e5437706c6179555aff9852badac7dc64c235d44e8303301afea340e3314e4c074
7
- data.tar.gz: f68d3a70e5153fd6eaeca3ce414c7ce0e60d6bfdbf8ebb6f6ea5519c4c04dcfe43f3dff25e075512fad05250d3b753c4e18a7f3bc0c8bcb8a10e34bd8e2926fb
6
+ metadata.gz: bde8bcde064079bfba6e4865d686261f25892fb06c82af8e90d964788aeea3d36ee4e2f051bcfbbbd65242b56790750a8e21386cce7422f49219e68d226bb653
7
+ data.tar.gz: c0a8e2aad2f0b904e3d17c69350e2e9504092cdc435b1c8f0064bde3db1f0ca9ff343a27f036e0514d7c0ad7b6cf1afafaee94e43f99454faa6d0a71bc24c58c
data/.travis.yml CHANGED
@@ -2,5 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
4
  - 2.1.6
5
- - 2.2.3
5
+ - 2.2.4
6
6
  script: bundle exec rspec spec
data/.versions.conf CHANGED
@@ -1,2 +1,2 @@
1
- ruby=2.2.3
1
+ ruby=2.2.4
2
2
  ruby-gemset=netsoul
@@ -6,7 +6,7 @@ module Netsoul
6
6
  class Message
7
7
  class << self
8
8
  def _standard_auth_string(c)
9
- str = "#{c.user_connection_info[:md5_hash]}"
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 "#{key}".freeze if ip.match(/^#{val}/)
125
+ return key.to_s if ip =~ /^#{val}/
126
126
  end
127
127
  'ext'.freeze
128
128
  end
@@ -1,3 +1,3 @@
1
1
  module Netsoul
2
- VERSION = '2.2.1'.freeze
2
+ VERSION = '2.3.0'.freeze
3
3
  end
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
- if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
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.2.1
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-16 00:00:00.000000000 Z
11
+ date: 2016-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler