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 +4 -4
- data/lib/fontina.rb +1 -1
- data/lib/fontina/fetchers/local_file_path.rb +1 -3
- data/lib/fontina/fetchers/local_file_uri.rb +1 -2
- data/lib/fontina/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a19a6147058c0dd0d2c6bf6622246b4ae2f87ced
|
4
|
+
data.tar.gz: 915047f7e5778c9f046a4f61d3e304de0f37ea49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b062574bc412d0b06023c58dcd61daa241d5d1fb8d61e4bae5b4d6e0f82b4211261474aad6069049abf3f2fa0fe0e2d8336acd93fdaa96765de186087d09b700
|
7
|
+
data.tar.gz: 97027d9c0a28d5a615a07b9f9bace2cbc433e06745ab2c7486bbadd7ef4930bbea87e05fc2b32a6bc4a64b9e8d0f1cf221e329c996ea298b66beaadc15618879
|
data/lib/fontina.rb
CHANGED
@@ -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[
|
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[
|
16
|
+
Result[IO.binread(path), File.basename(path)]
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
data/lib/fontina/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|