simple_decorator 0.0.4 → 0.0.5

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: ff86e23ed54ae744344814f13c035c844d82b86d
4
- data.tar.gz: e86b10ed811cc937bdc2e918ea8cfefd9c8ea676
3
+ metadata.gz: d14cd635404f5b004e53735bb5c9073a9aaefed1
4
+ data.tar.gz: 4d98cd997fdb519a38b44460b671dd4f76e2f322
5
5
  SHA512:
6
- metadata.gz: 81822a7067732f52bc8566b3cb9a880ea0acec95609f9b3f6331311e2639928b2a613a6c3e585570dee894171d66a1a0b8c5601b6080b02a947cf170bc87d3be
7
- data.tar.gz: bc3d4a7a14e6f1dbc83624f415b7857d7533ef3462630a84731a942a18b667a0b91cf25ec7df856988eab9d9e0cc147d7da954d74f2821c9ae7cb97dd5865768
6
+ metadata.gz: 6fa0a0e7faaa7458bbdff68bd7296499c756fdd2e0a6a18edaf954bf68d74e44710efee20dbc0607f305996435b80c6e623c2d73c20785d017618f65bb500093
7
+ data.tar.gz: c044556b994fa7162ea0e12561fe0a2f3320c5924ed4c48494c23d2ab47f782cc4520763c56176e1fc3bda6e840628e956cc4495bd9b19e2f6b465e9038096d1
data/README.md CHANGED
@@ -58,4 +58,8 @@ The response will now have the layout of your decorator, but display dynamic con
58
58
  <h1>My apps dynamic response</h1>
59
59
  </div>
60
60
  </body>
61
- </html>
61
+ </html>
62
+
63
+ ## Code status
64
+
65
+ [![Code Climate](https://codeclimate.com/github/bring/kp-simple-decorator.png)](https://codeclimate.com/github/bring/kp-simple-decorator)
@@ -9,7 +9,8 @@ class Fetcher
9
9
  def fetch(url)
10
10
  uri = URI.parse(url)
11
11
  http = Net::HTTP.new(uri.host, uri.port, @opts[:proxy])
12
- http.request(Net::HTTP::Get.new(uri.request_uri)).body.encode('UTF-8', 'ISO-8859-15')
12
+
13
+ http.request(Net::HTTP::Get.new(uri.request_uri)).body.force_encoding('utf-8').encode('utf-8')
13
14
  end
14
15
 
15
16
 
@@ -4,7 +4,7 @@ module SimpleDecorator
4
4
  module Filter
5
5
  class Decorator < Rack::Plastic
6
6
  def change_html_string(html)
7
- return html unless request.env["simple_decorator.layout.url"] || request.env["eaccess_user_id"]
7
+ return html unless request.env["simple_decorator.layout.url"]
8
8
  return html if request.xhr?
9
9
 
10
10
  layout_url = request.env["simple_decorator.layout.url"]
@@ -1,3 +1,3 @@
1
1
  module SimpleDecorator
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eirik Lied
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-14 00:00:00.000000000 Z
11
+ date: 2014-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec