shadowsocks_ruby 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 985b77d98ddedbace62ae1b742491ed21c12b70f
4
- data.tar.gz: 910e78c16a44f23a5cf085ef12e9b2f7316edf31
3
+ metadata.gz: 127f383fcb9b1c8ebb3147efeb46a85a106d91e3
4
+ data.tar.gz: ee48663ca80918a7fddf7577a2c54855fecd1c24
5
5
  SHA512:
6
- metadata.gz: b7199b0e371ab8f5c75e4f3b6a53dcf97c1f395ddc08b31f677bf0912ab3acdb740f04f8656a01803261759f24ec5344abab3bf346cbd2319a936803c242c15c
7
- data.tar.gz: b698d89d4d739a468c1663d160b1783f9b2964dc688960e69f73d43cf9238cf65b90e9fce12e511d1ff7b42cc51bbda42ba0de5e92efd34994a796b99f41fec0
6
+ metadata.gz: a6fa2cc3b0c1eb02a7185273b93093e1b4dc38fd69b1be91bcebc21de11c5c1e800017e4ecb0d2e40bf0defd7e13be6bda2bc3102e73d0f9e7c83ae4638a4753
7
+ data.tar.gz: b327c08e182c7bbf3942219225cdb8e6ed0a8dbc8e3f109cebc402d529b059f649854929b0686d1de447e07b92a300f52fc45f16f657009ada59dc2f92d79df7
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.travis.yml CHANGED
@@ -1,5 +1,13 @@
1
- sudo: false
1
+ sudo: required
2
+
2
3
  language: ruby
4
+
3
5
  rvm:
4
- - 2.3.0
5
- before_install: gem install bundler -v 1.13.6
6
+ - 2.4
7
+
8
+ services:
9
+ - docker
10
+
11
+ before_install:
12
+ - gem install bundler -v 1.13.6
13
+ - docker pull zhenkyle/docker-sslocal
data/Dockerfile ADDED
@@ -0,0 +1,6 @@
1
+ FROM ruby:2.4
2
+ MAINTAINER Zhen Kyle <https://github.com/zhenkyle>
3
+
4
+ RUN gem install shadowsocks_ruby
5
+
6
+ CMD ["ssserver-ruby", "-h"]
data/Gemfile CHANGED
@@ -6,5 +6,7 @@ git_source(:github) do |repo_name|
6
6
  end
7
7
 
8
8
  gem 'evented-spec', github: 'ruby-amqp/evented-spec'
9
+
10
+ gem 'coveralls', require: false
9
11
  # Specify your gem's dependencies in shadowsocks_ruby.gemspec
10
12
  gemspec
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Zhenkyle
3
+ Copyright (c) 2017 Zhenkyle
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # ShadowsocksRuby
2
2
 
3
- ShadowsocksRuby is a flexible platform for writing [shadowsocks](https://github.com/shadowsocks/shadowsocks) like tunnel proxy to help you bypass firewalls. With layered protocol strategy, TCP/UDP/(even TLS) connection object and powerful DSL backended by ruby, it make your life easy to develop new tunnel protocols.
3
+ [![Gem Version](https://badge.fury.io/rb/shadowsocks_ruby.svg)](http://badge.fury.io/rb/shadowsocks_ruby)
4
+ [![Build Status](https://travis-ci.org/zhenkyle/shadowsocks_ruby.svg?branch=master)](https://travis-ci.org/zhenkyle/shadowsocks_ruby)
5
+ [![Dependency Status](https://gemnasium.com/zhenkyle/shadowsocks_ruby.svg)](https://gemnasium.com/zhenkyle/shadowsocks_ruby)
6
+ [![Code Climate](https://codeclimate.com/github/zhenkyle/shadowsocks_ruby.svg)](https://codeclimate.com/github/zhenkyle/shadowsocks_ruby)
7
+ [![Coverage Status](https://coveralls.io/repos/zhenkyle/shadowsocks_ruby/badge.svg?branch=master)](https://coveralls.io/r/zhenkyle/shadowsocks_ruby?branch=master)
8
+ [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/zhenkyle/shadowsocks_ruby/blob/master/LICENSE.txt)
9
+ [![Join the chat at https://gitter.im/shadowsocks_ruby/Lobby](https://badges.gitter.im/shadowsocks_ruby/Lobby.svg)](https://gitter.im/shadowsocks_ruby/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
10
+
11
+ ShadowsocksRuby is a flexible platform for writing [shadowsocks](https://github.com/shadowsocks/shadowsocks) like tunnel proxy to help you bypass firewalls. With layered protocol strategy, TCP/UDP/(even TLS) connection object and powerful DSL backended by ruby, it make your life easy to develop new tunnel (layer 4) protocols.
4
12
 
5
13
  Main features include:
6
14
 
@@ -98,7 +106,7 @@ Common options:
98
106
  # Then on local machine
99
107
  sslocal-ruby -k secret -s 1.2.3.4
100
108
 
101
- #Then using `127.0.0.1:1080` as your local SOCKS5 server.
109
+ # Then using `127.0.0.1:1080` as your local SOCKS5 proxy.
102
110
 
103
111
 
104
112
  ## Development
@@ -117,8 +125,8 @@ module ShadowsocksRuby
117
125
 
118
126
  def tcp_receive_from_client_first_packet n
119
127
  data = async_recv(8)
120
- v, c, port, o1, o2, o3, o4, user = data.unpack("CCnC4a*")
121
- data << async_recv_until("\0")
128
+ v, c, port, o1, o2, o3, o4 = data.unpack("CCnC4")
129
+ user << async_recv_until("\0")
122
130
  if v != 4 or c != 1
123
131
  send_data "\0\x5b\0\0\0\0\0\0"
124
132
  raise PharseError, "SOCKS version or command not supported: #{v}, #{c}"
@@ -1,4 +1,4 @@
1
- require 'rbnacl'
1
+ require 'rbnacl/libsodium'
2
2
 
3
3
  module ShadowsocksRuby
4
4
  module Cipher
@@ -1,3 +1,3 @@
1
1
  module ShadowsocksRuby
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = "zhenkyle@gmail.com"
11
11
 
12
12
  spec.summary = %q{A flexible platform for writing tunnel proxy to help you bypass firewalls.}
13
- spec.description = %q{ShadowsocksRuby is a flexible platform for writing [shadowsocks](https://github.com/shadowsocks/shadowsocks) like tunnel proxy to help you bypass firewalls.}
13
+ spec.description = %q{ShadowsocksRuby is a flexible platform for writing SOCKS (layer 4) like tunnel proxy to help you bypass firewalls.}
14
14
  spec.homepage = "https://github.com/zhenkyle/shadowsocks_ruby"
15
15
  spec.license = "MIT"
16
16
 
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ["lib"]
33
33
 
34
34
  spec.add_development_dependency "bundler", "~> 1.13"
35
- spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rake", "~> 12.0"
36
36
  spec.add_development_dependency "rspec", "~> 3.0"
37
37
  spec.add_development_dependency "evented-spec", "~> 1.0.0.beta2"
38
38
  spec.add_development_dependency "em-http-request", "~> 1.1.5"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shadowsocks_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhenkyle
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '12.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '12.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -192,8 +192,8 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
- description: ShadowsocksRuby is a flexible platform for writing [shadowsocks](https://github.com/shadowsocks/shadowsocks)
196
- like tunnel proxy to help you bypass firewalls.
195
+ description: ShadowsocksRuby is a flexible platform for writing SOCKS (layer 4) like
196
+ tunnel proxy to help you bypass firewalls.
197
197
  email: zhenkyle@gmail.com
198
198
  executables:
199
199
  - sslocal-ruby
@@ -201,11 +201,13 @@ executables:
201
201
  extensions: []
202
202
  extra_rdoc_files: []
203
203
  files:
204
+ - ".coveralls.yml"
204
205
  - ".gitignore"
205
206
  - ".rspec"
206
207
  - ".travis.yml"
207
208
  - ".yardopts"
208
209
  - CODE_OF_CONDUCT.md
210
+ - Dockerfile
209
211
  - Gemfile
210
212
  - LICENSE.txt
211
213
  - README.md