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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7904998e13c1873d3703d59fe9878ad169b3419
4
- data.tar.gz: fd590ad18104fba154cc8f3ad512cd509c7235de
3
+ metadata.gz: 59d10950b9e1a40d94a68ec59235e2aea1a98c0f
4
+ data.tar.gz: 77eb4ad1b69de9d15a12959c784eb4ae5eca7a1d
5
5
  SHA512:
6
- metadata.gz: 8ec099202aec0d76ae81889e04a031590a4ea8a5b67aaf78624a4211881ae923075fb497fc1ca3947106d4feed75369564fbc870f1d6500e22341d4164b8f581
7
- data.tar.gz: fd5d18a9b1b8c7722bf9b95d5650370e61ece2e440bde4185dd54e3fa10754e93a5854d9c5bb2d6bdab2329404ac771a2989a0e6f91f3b1e5b1d11fa51328720
6
+ metadata.gz: 6eb62809e0fbaed51cb091901b099f426c566a41a4cb003a1db7478cf90d1a4164b73b1f3e1b19fe33efca1b0d6ef4153c5d373829a0f6e7d5e674c76af95ecf
7
+ data.tar.gz: 6f32b108ade8d831306072c760cffb8355da9024450d8ccd4bfb8152e79a52b47e37ba0ac3157061de300cd6d15c61640f637a4e6ad199756f1d8aceae1cb108
@@ -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.original_url rescue nil)
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.original_url+"-->\n"
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('UTF-8')
251
+ resp.body.force_encoding(@charset)
253
252
  else
254
253
  self.raise_error("Can't connect to server: "+host+path)
255
254
  end
@@ -1,3 +1,3 @@
1
1
  module Trustlink
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-03 00:00:00.000000000 Z
12
+ date: 2014-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails