forward 1.1.2.pre → 1.1.4

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: d0339828a2c2e5c6ec51c1232659d4dd43c94ff1
4
- data.tar.gz: 1a427b52ce0c30efa861b5c41fdb9f22b50d8e21
3
+ metadata.gz: d7d179fd04456e306a54c635d267ddc2dacdf171
4
+ data.tar.gz: b4835ab1322a22642d45f852e1d3adafd02c1139
5
5
  SHA512:
6
- metadata.gz: aa87579bd9714da6f9e4c95f212be587c14d1a58c8ac7a5cdddbb3b158696bbc05c9c726c2e956f66ece3f3ab118dbe372d3fe85c45ba27a6807ebdbfa17a7f3
7
- data.tar.gz: 7f8fdb2d94ddee34bf8bb6ae7484bcf6f3022627a414e4ab9c7bbfa75aecc67353f9d52cc46dc9f80470b5533b85ea7f5e183f6e26f300916ba47684cd7d800b
6
+ metadata.gz: c9e3518b44256756208b53996026f3d0d0bb6ba7cf41397d886ba6740b3d01b0516aabac3df6a70c9fadbf9fb1ffdf43f05ce1ba6eb73e937affd2bbb734ef73
7
+ data.tar.gz: 8aa60643e32525f356f809c5106622f00df125786afd96311a843284a059e35da7d6e3e443f9776b666c3bcd62bc99a8a46e62f7d797b1c8f22522cd616e317c
data/forward.gemspec CHANGED
@@ -16,13 +16,13 @@ Gem::Specification.new do |gem|
16
16
  gem.version = Forward::VERSION
17
17
 
18
18
  gem.add_dependency 'slop', '~> 3.6'
19
- gem.add_dependency 'json_pure', '~> 1.8.2'
20
- gem.add_dependency 'highline', '~> 1.6'
19
+ gem.add_dependency 'json', '~> 1.8.3'
20
+ gem.add_dependency 'highline', '~> 1.7.8'
21
21
  gem.add_dependency 'eventmachine', '~> 1.0.7'
22
- gem.add_dependency 'thin', '~> 1.6.3'
23
- gem.add_dependency 'em-http-request', '~> 1.1.2'
24
- gem.add_dependency 'faye-websocket', '~> 0.9.2'
25
- gem.add_dependency 'clipboard', '~> 1.0'
22
+ gem.add_dependency 'thin', '~> 1.6.4'
23
+ gem.add_dependency 'em-http-request', '~> 1.1.3'
24
+ gem.add_dependency 'faye-websocket', '~> 0.10.2'
25
+ gem.add_dependency 'clipboard', '~> 1.0.6'
26
26
 
27
27
  gem.add_development_dependency 'rake', '~> 10.3'
28
28
  gem.add_development_dependency 'minitest', '~> 5.3'
data/lib/forward/cli.rb CHANGED
@@ -74,7 +74,7 @@ module Forward
74
74
  run { |opts, args| Command::Account.run(:list, opts, args) }
75
75
  end
76
76
  end
77
-
77
+
78
78
  rescue CLIError => e
79
79
  exit_with_error(e.message)
80
80
  end
@@ -131,11 +131,11 @@ module Forward
131
131
  end
132
132
  end
133
133
 
134
- def validate_auth
134
+ def validate_auth
135
135
  auth = @options[:auth]
136
-
136
+
137
137
  return if auth.nil?
138
-
138
+
139
139
  logger.debug "[CLI] validating auth: `#{auth}'"
140
140
  if auth =~ BASIC_AUTH_REGEX
141
141
  @options[:username], @options[:password] = @options[:auth].split(':')
@@ -148,11 +148,11 @@ module Forward
148
148
  # error message if it isn't.
149
149
  #
150
150
  # cname - cname String
151
- def validate_cname
151
+ def validate_cname
152
152
  cname = @options[:cname]
153
-
153
+
154
154
  return if cname.nil?
155
-
155
+
156
156
  logger.debug "[CLI] validating CNAME: `#{cname}'"
157
157
  unless cname =~ CNAME_REGEX
158
158
  raise CLIError, "`#{cname}' is an invalid domain format"
@@ -116,7 +116,7 @@ module Forward
116
116
  def unpack(bytes)
117
117
  bytes = bytes.pack('C*')
118
118
  message_size = bytes.unpack('v')[0]
119
- message = bytes.byteslice(2, message_size)
119
+ message = bytes.byteslice(2, message_size).force_encoding('utf-16le')
120
120
  binary_offset = 2 + message_size
121
121
 
122
122
  [JSON.parse(message, symbolize_names: true), bytes.byteslice(binary_offset..-1)]
@@ -1,3 +1,3 @@
1
1
  module Forward
2
- VERSION = '1.1.2.pre'
2
+ VERSION = '1.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forward
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2.pre
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Dunn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-14 00:00:00.000000000 Z
12
+ date: 2016-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slop
@@ -26,33 +26,33 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '3.6'
28
28
  - !ruby/object:Gem::Dependency
29
- name: json_pure
29
+ name: json
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.8.2
34
+ version: 1.8.3
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 1.8.2
41
+ version: 1.8.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: highline
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '1.6'
48
+ version: 1.7.8
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '1.6'
55
+ version: 1.7.8
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: eventmachine
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -73,56 +73,56 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 1.6.3
76
+ version: 1.6.4
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 1.6.3
83
+ version: 1.6.4
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: em-http-request
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: 1.1.2
90
+ version: 1.1.3
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: 1.1.2
97
+ version: 1.1.3
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: faye-websocket
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: 0.9.2
104
+ version: 0.10.2
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: 0.9.2
111
+ version: 0.10.2
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: clipboard
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: '1.0'
118
+ version: 1.0.6
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: '1.0'
125
+ version: 1.0.6
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rake
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -254,12 +254,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
254
  version: '0'
255
255
  required_rubygems_version: !ruby/object:Gem::Requirement
256
256
  requirements:
257
- - - ">"
257
+ - - ">="
258
258
  - !ruby/object:Gem::Version
259
- version: 1.3.1
259
+ version: '0'
260
260
  requirements: []
261
261
  rubyforge_project:
262
- rubygems_version: 2.4.6
262
+ rubygems_version: 2.5.1
263
263
  signing_key:
264
264
  specification_version: 4
265
265
  summary: Forward lets you get a link to localhost and share it with anyone over the