ficon 0.0.5 → 0.0.6

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: d372436b5875c04a175f7756bef99aa917c6faef
4
- data.tar.gz: 4a2909fa1f1eaf5cb3dd6e300381950c084704df
3
+ metadata.gz: d19c583939eb6e0c4394ae8bbc34a4abc934c66f
4
+ data.tar.gz: 31336a3ff07a98c954507ff08fd7e1f15f9060b5
5
5
  SHA512:
6
- metadata.gz: 5f451fb54ae264f32cb07d5d67fb9c4b4858b75a60347963cb9885c043dd330933e8fcb65aac058feb12de33f0851cbf5b8dbd64722cf25022a4dbfd42032aca
7
- data.tar.gz: 5c5cb399f0c832270690dc220c0d8a9c13c00c99dc3d095acdb7d907eb3fb77df67d787228bf8906f2fcfcd763e07c9944d42ee49b335c33c2faad6cba18d791
6
+ metadata.gz: 76753e3597385f4cb593db03fdb916ba2d481c2c5a4fbc7c4d509ce25c8e7aca5f2bf9f46850b5370bcb9f25b3ea9db86c077ed3d7245a60f16f2b06f93c6057
7
+ data.tar.gz: d8466e2b46a4c301b48db31eb1457749e5cb1e1992a3b48290cfc021d9fe9b62796b9b81d1fc3df4110e831ab1b200e0f8eac09b6accc3cbb5c1b22a64f3ef6f
data/README.md CHANGED
@@ -23,11 +23,11 @@ Or install it yourself as:
23
23
 
24
24
  Or form the shell:
25
25
 
26
- $ ficon https://facebook.com
27
- https://www.facebook.com/images/fb_icon_325x325.png
28
- https://fbstatic-a.akamaihd.net/rsrc.php/yV/r/hzMapiNYYpW.ico
29
- https://www.facebook.com/favicon.ico
30
-
26
+ $ ficon https://booko.info/9780748109999
27
+ Site icon: https://booko.info/favicon-196x196.png([196, 196])
28
+ Page icon: https://covers.booko.com.au/9780748109999.jpg([1488, 2338])
29
+ Page title: Prices for Consider Phlebas by Iain M. Banks
30
+ Page description: Prices (including delivery) for Consider Phlebas by Iain M. Banks range from $12.40 at Blackwell's up to $12.99.
31
31
 
32
32
  ## Contributing
33
33
 
data/lib/ficon/image.rb CHANGED
@@ -15,7 +15,7 @@ module Ficon
15
15
  end
16
16
 
17
17
  def to_s
18
- @url.to_s + "(#{@size})"
18
+ @url.to_s + " (#{@size})"
19
19
  end
20
20
  end
21
21
  end
data/lib/ficon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ficon
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/ficon.rb CHANGED
@@ -26,7 +26,7 @@ module Ficon
26
26
 
27
27
  if @data.nil?
28
28
  @data = open(@uri)
29
- cache.data = @data.read
29
+ cache.data = @data.read.force_encoding('UTF-8')
30
30
  cache.etag = @data.meta['etag'] if @data.respond_to?(:meta)
31
31
  cache.not_before = @data.meta['last-modified'] if @data.respond_to?(:meta)
32
32
  @data.rewind
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ficon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Milne