streamly_ffi 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
data/lib/streamly_ffi/version.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
require File.expand_path("../spec_helper", File.dirname(__FILE__))
|
2
|
+
|
3
|
+
describe StreamlyFFI::PersistentRequest do
|
4
|
+
context 'escape method' do
|
5
|
+
before(:all) do
|
6
|
+
@connection = StreamlyFFI.connect
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should escape properly' do
|
10
|
+
@connection.escape('+').should == '%2B'
|
11
|
+
@connection.escape('This is a test').should == 'This%20is%20a%20test'
|
12
|
+
@connection.escape('<>/\\').should == '%3C%3E%2F%5C'
|
13
|
+
@connection.escape('"').should == '%22'
|
14
|
+
@connection.escape(':').should == '%3A'
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should escape brackets' do
|
18
|
+
@connection.escape('{').should == '%7B'
|
19
|
+
@connection.escape('}').should == '%7D'
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'should escape exclamation marks!' do
|
23
|
+
@connection.escape('!').should == '%21'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 3
|
9
|
+
version: 0.2.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Brian Lopez
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- lib/streamly_ffi/version.rb
|
86
86
|
- spec/server.rb
|
87
87
|
- spec/spec_helper.rb
|
88
|
+
- spec/streamly_ffi/persistent_request_spec.rb
|
88
89
|
- spec/streamly_ffi/request_spec.rb
|
89
90
|
- streamly_ffi.gemspec
|
90
91
|
has_rdoc: true
|
@@ -122,4 +123,5 @@ summary: A streaming Curl/HTTP/REST client for Ruby, in cross-Ruby FFI.
|
|
122
123
|
test_files:
|
123
124
|
- spec/server.rb
|
124
125
|
- spec/spec_helper.rb
|
126
|
+
- spec/streamly_ffi/persistent_request_spec.rb
|
125
127
|
- spec/streamly_ffi/request_spec.rb
|