gemirro 0.15.0 → 0.16.0

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: 9f716a33048fb00a9dc0badbbeef4032ac994612
4
- data.tar.gz: 9ac8e472c3d86842d594808cec512f5017ee0a75
3
+ metadata.gz: 53a589bb6c9b40c33e0a84892f1234ac29325925
4
+ data.tar.gz: d5e693ae10f39df546d7775a3b75165f62f9717f
5
5
  SHA512:
6
- metadata.gz: e2098a84b24c3680f81e1094ad58d6590d353528c1a29a29a4f3b8754c0aaa8c8d9a325a01a14c5dd6ee4fb6641db3e5be6b3cc8f37757841512bb5c8aecd8a3
7
- data.tar.gz: 6fc381c4e269aca6648d2ba0199ef604c519ed0c852e127e9efe927ab9de16866e2fb0e1cd871298c3602ad4174bf0aba5eeae85121ddf475e222070df89a51f
6
+ metadata.gz: aba9f0f69f137771f76210819f3116da4911c8012b8f1415c21f9598a59b3586e122d00b5e7b5337bc35940a13055db0a5596c09170f7f7d71a226f15e4d391c
7
+ data.tar.gz: d3606123b938190a0dcdbd094ebb39c76f65921c20f522ea53db3409117b32698ba4225cd7f7d568736a6ca6638138715a0a8cfb3c01b2306480cbfd6e3653b0
data/.travis.yml CHANGED
@@ -4,4 +4,5 @@ rvm:
4
4
  - 2.3
5
5
  - 2.4
6
6
 
7
+ install: bundle install --jobs=3 --retry=3
7
8
  script: bundle exec rake
@@ -1,5 +1,6 @@
1
1
  require 'sinatra/base'
2
2
  require 'thin'
3
+ require 'uri'
3
4
 
4
5
  module Gemirro
5
6
  ##
@@ -271,6 +272,16 @@ module Gemirro
271
272
  def escape(string)
272
273
  Rack::Utils.escape_html(string)
273
274
  end
275
+
276
+ ##
277
+ # Homepage link
278
+ #
279
+ # @param [Gem] spec
280
+ # @return [String]
281
+ #
282
+ def homepage(spec)
283
+ URI.parse(URI.escape(spec.homepage))
284
+ end
274
285
  end
275
286
  end
276
287
  end
@@ -1,4 +1,4 @@
1
1
  # Gemirro Version
2
2
  module Gemirro
3
- VERSION = '0.15.0'.freeze
3
+ VERSION = '0.16.0'.freeze
4
4
  end
data/views/gem.erb CHANGED
@@ -31,7 +31,7 @@
31
31
  <ul class="list-group">
32
32
  <% spec.authors.each do |author| %>
33
33
  <li class="list-group-item">
34
- <a href="<%= escape(spec.homepage) %>"><%= escape(author) %></a>
34
+ <a href="<%= homepage(spec) %>"><%= escape(author) %></a>
35
35
  </li>
36
36
  <% end %>
37
37
  </ul>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemirro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Rambaud