trustlink 0.0.2 → 0.0.3
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/trustlink.rb +4 -5
- data/lib/trustlink/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59d10950b9e1a40d94a68ec59235e2aea1a98c0f
|
|
4
|
+
data.tar.gz: 77eb4ad1b69de9d15a12959c784eb4ae5eca7a1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eb62809e0fbaed51cb091901b099f426c566a41a4cb003a1db7478cf90d1a4164b73b1f3e1b19fe33efca1b0d6ef4153c5d373829a0f6e7d5e674c76af95ecf
|
|
7
|
+
data.tar.gz: 6f32b108ade8d831306072c760cffb8355da9024450d8ccd4bfb8152e79a52b47e37ba0ac3157061de300cd6d15c61640f637a4e6ad199756f1d8aceae1cb108
|
data/lib/trustlink.rb
CHANGED
|
@@ -50,7 +50,7 @@ module Trustlink
|
|
|
50
50
|
|
|
51
51
|
@is_static = options[:is_static].present?
|
|
52
52
|
|
|
53
|
-
self.request_uri = options[:request_uri].present? ? options[:request_uri] : (self.request.
|
|
53
|
+
self.request_uri = options[:request_uri].present? ? options[:request_uri] : (self.request.path rescue nil)
|
|
54
54
|
self.request_uri = self.request_uri.gsub(/\?.*$/, '').gsub(/\/+/, '/') if @is_static && self.request_uri.present?
|
|
55
55
|
|
|
56
56
|
|
|
@@ -211,7 +211,7 @@ module Trustlink
|
|
|
211
211
|
|
|
212
212
|
result += self.error.to_s
|
|
213
213
|
|
|
214
|
-
result += '<!--REQUEST_URI='+self.request.
|
|
214
|
+
result += '<!--REQUEST_URI='+self.request.path+"-->\n"
|
|
215
215
|
result += "\n<!--\n"
|
|
216
216
|
result += 'L '+VERSION+"\n"
|
|
217
217
|
result += 'REMOTE_ADDR='+self.request.remote_addr+"\n"
|
|
@@ -238,8 +238,7 @@ module Trustlink
|
|
|
238
238
|
|
|
239
239
|
result = '<noindex>'+result+'</noindex>' if (@test && !self.isrobot)
|
|
240
240
|
|
|
241
|
-
result
|
|
242
|
-
|
|
241
|
+
result.force_encoding(@charset)
|
|
243
242
|
end
|
|
244
243
|
|
|
245
244
|
|
|
@@ -249,7 +248,7 @@ module Trustlink
|
|
|
249
248
|
http.get(path)
|
|
250
249
|
}
|
|
251
250
|
if resp.body
|
|
252
|
-
resp.body.force_encoding(
|
|
251
|
+
resp.body.force_encoding(@charset)
|
|
253
252
|
else
|
|
254
253
|
self.raise_error("Can't connect to server: "+host+path)
|
|
255
254
|
end
|
data/lib/trustlink/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trustlink
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trustlink
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-02-
|
|
12
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|