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 +4 -4
- data/.travis.yml +1 -0
- data/lib/gemirro/server.rb +11 -0
- data/lib/gemirro/version.rb +1 -1
- data/views/gem.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53a589bb6c9b40c33e0a84892f1234ac29325925
|
4
|
+
data.tar.gz: d5e693ae10f39df546d7775a3b75165f62f9717f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aba9f0f69f137771f76210819f3116da4911c8012b8f1415c21f9598a59b3586e122d00b5e7b5337bc35940a13055db0a5596c09170f7f7d71a226f15e4d391c
|
7
|
+
data.tar.gz: d3606123b938190a0dcdbd094ebb39c76f65921c20f522ea53db3409117b32698ba4225cd7f7d568736a6ca6638138715a0a8cfb3c01b2306480cbfd6e3653b0
|
data/.travis.yml
CHANGED
data/lib/gemirro/server.rb
CHANGED
@@ -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
|
data/lib/gemirro/version.rb
CHANGED
data/views/gem.erb
CHANGED