ssport 0.1.3 → 0.1.4
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 +4 -4
- data/lib/ssport/config.rb +2 -0
- data/lib/ssport/version.rb +1 -1
- data/lib/ssport.rb +7 -4
- data/ssport.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6fad07d9e2dc2b980f5008574b66f57357f125f67db7f6f5dc142e1bd657844
|
4
|
+
data.tar.gz: f3d5cf358b163894da46780db2e6075729992ac1ef6e8709500f42f2c7ae07d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b42516592383011cdbfa46321f8e2483a6a15bcdf1bb01b127615759884d04243e5e8f595b1414cf40866777ac42553d04dbbc0c0c978b7536adece13aa3048f
|
7
|
+
data.tar.gz: 0f7c95aff69729bd46d8b88a66d604ae0337efd6ec67c3dc97835027b9a634eda6eee4f7987c56e7f8cea20369f911d8d10cabf7cd31b1da68d76f94d1a72530
|
data/lib/ssport/config.rb
CHANGED
data/lib/ssport/version.rb
CHANGED
data/lib/ssport.rb
CHANGED
@@ -31,15 +31,15 @@ module Ssport
|
|
31
31
|
options[:port] = v
|
32
32
|
end
|
33
33
|
|
34
|
-
opts.on("-p", "--password password",
|
34
|
+
opts.on("-p", "--password password","shadowsocket password") do |v|
|
35
35
|
options[:password] = v
|
36
36
|
end
|
37
37
|
|
38
|
-
opts.on("-m", "--method method",
|
38
|
+
opts.on("-m", "--method method","shadowsocket encry method") do |v|
|
39
39
|
options[:method] = v
|
40
40
|
end
|
41
41
|
|
42
|
-
opts.on("-c", "--config filepath",
|
42
|
+
opts.on("-c", "--config filepath","shadowsocket config file path") do |v|
|
43
43
|
options[:config] = v
|
44
44
|
end
|
45
45
|
|
@@ -67,7 +67,10 @@ module Ssport
|
|
67
67
|
ssport -b #{options[:port]} -c #{options[:config]}
|
68
68
|
}
|
69
69
|
output = ssh.exec!(script)
|
70
|
-
|
70
|
+
p '----------------Remote---------------'
|
71
|
+
puts output.colorize(:red)
|
72
|
+
p '-------------------------------------'
|
73
|
+
|
71
74
|
end
|
72
75
|
|
73
76
|
end
|
data/ssport.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaich
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: net-ssh
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: commandline change shadowsocket config to avoid block.
|
70
84
|
email:
|
71
85
|
- chengkai1853@163.com
|