fontina 0.2.1 → 0.2.2

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: 78d852e755eee4d715499dc7b450a47ee1040124
4
- data.tar.gz: 11251d3b5bc25fcbed3e731a6b216e4dadb1c11e
3
+ metadata.gz: a19a6147058c0dd0d2c6bf6622246b4ae2f87ced
4
+ data.tar.gz: 915047f7e5778c9f046a4f61d3e304de0f37ea49
5
5
  SHA512:
6
- metadata.gz: 1875525fdf00931739049c11bb3b513b19bf4920204fc08bd66de17b573cdf49352ea644dcacb3edc577fe59233ce7f4d61b7b5475ab444145c13f6868ddc3ce
7
- data.tar.gz: 766dc4eee27123e001ae2e49d2fa8cb52bc280e4573476df228a9c4acac529026070d79edf037d28736939c8bc5af9b6dd0950987150501b02a59c454eba1141
6
+ metadata.gz: b062574bc412d0b06023c58dcd61daa241d5d1fb8d61e4bae5b4d6e0f82b4211261474aad6069049abf3f2fa0fe0e2d8336acd93fdaa96765de186087d09b700
7
+ data.tar.gz: 97027d9c0a28d5a615a07b9f9bace2cbc433e06745ab2c7486bbadd7ef4930bbea87e05fc2b32a6bc4a64b9e8d0f1cf221e329c996ea298b66beaadc15618879
data/lib/fontina.rb CHANGED
@@ -18,7 +18,7 @@ end
18
18
  format
19
19
  fetcher
20
20
  meta_package
21
- ].each { |file| require "fontina/#{file}" }
21
+ ].each { |file| require_relative "fontina/#{file}" }
22
22
 
23
23
  module Fontina
24
24
 
@@ -1,5 +1,3 @@
1
- require 'pathname'
2
-
3
1
  module Fontina
4
2
 
5
3
  class Fetchers::LocalFilePath
@@ -8,7 +6,7 @@ module Fontina
8
6
  def fetch(location)
9
7
  return super unless location.is_a? String
10
8
 
11
- Result[Pathname.new(location).binread, File.basename(location)]
9
+ Result[IO.binread(location), File.basename(location)]
12
10
  end
13
11
  end
14
12
 
@@ -1,5 +1,4 @@
1
1
  require 'uri'
2
- require 'pathname'
3
2
 
4
3
  module Fontina
5
4
 
@@ -14,7 +13,7 @@ module Fontina
14
13
 
15
14
  path = URI.decode location.path
16
15
 
17
- Result[Pathname.new(path).binread, File.basename(path)]
16
+ Result[IO.binread(path), File.basename(path)]
18
17
  end
19
18
  end
20
19
 
@@ -1,3 +1,3 @@
1
1
  module Fontina
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fontina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Petter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-17 00:00:00.000000000 Z
11
+ date: 2017-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata