geminabox 0.13.5 → 0.13.6

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: a35b4aaa6258bcb067202566061385e97e55b4b5
4
- data.tar.gz: 2494572b48805e55544228f1fea1f40ebf7cef9f
3
+ metadata.gz: 75f6bf85212a067d79f1ebe511fa533a396860f3
4
+ data.tar.gz: b17b5dfac1e8fc09aaba0b58677e30598bdedeee
5
5
  SHA512:
6
- metadata.gz: 51ba90076d989c8c561fb113e4b445d00903ffed572425c5943a16b5e179c86212674373a862fd3c92485956bc24fe40655396d1010d0d306e9bee8fa234f6bf
7
- data.tar.gz: c45f880d9a82c23aafffd70606623bef35820817024d355a06d88b0e55f3592de3f8f7d9eda3fd85d57c23660a95b904fe6f837a5b9767be8a099786cc8e6380
6
+ metadata.gz: 9dafba6a02dcd6d2d407d75d3255714e07d33f375cbf27b909fc68751e5081f79c6e20416fa227809f31bb5ea84d20d8af5b7b771a4146d791ade57fb530d57f
7
+ data.tar.gz: afebd82a0118a63ea2e2475b900c6a7566e15855765de07790e1577099eb515ce9f311cace8272a68880a767b8ab6f3d88014ceb3419d4d798d14bd15ba23015
@@ -297,6 +297,10 @@ HTML
297
297
  end
298
298
 
299
299
  helpers do
300
+ def h(text)
301
+ Rack::Utils.escape_html(text)
302
+ end
303
+
300
304
  def spec_for(gem_name, version, platform = default_platform)
301
305
  filename = [gem_name, version]
302
306
  filename.push(platform) if platform != default_platform
@@ -1,3 +1,3 @@
1
1
  module Geminabox
2
- VERSION = '0.13.5' unless defined? VERSION
2
+ VERSION = '0.13.6' unless defined? VERSION
3
3
  end
@@ -27,7 +27,7 @@
27
27
  <%= spec.description %>
28
28
  <br/>
29
29
  <span class="author">– <%= spec.authors.map do |author|
30
- "<a href='#{spec.homepage}'>#{author}</a>"
30
+ "<a href='#{h(spec.homepage)}'>#{author}</a>"
31
31
  end.join(', ') %></span>
32
32
  <% end %>
33
33
  </p>
@@ -46,7 +46,7 @@
46
46
  <%= spec.description %>
47
47
  <br/>
48
48
  <span class="author">– <%= spec.authors.map do |author|
49
- "<a href='#{spec.homepage}'>#{author}</a>"
49
+ "<a href='#{h(spec.homepage)}'>#{author}</a>"
50
50
  end.join(', ') %></span>
51
51
  <% end %>
52
52
  </p>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.5
4
+ version: 0.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lea
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-01-14 00:00:00.000000000 Z
14
+ date: 2017-09-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sinatra