libis-format 0.9.7 → 0.9.8

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: 3e4d6973351359801e32b6e1d022626c249d68b3
4
- data.tar.gz: 7c7e42092327e6bab1ba5ed7e9c2bc05befd8dbf
3
+ metadata.gz: 6f061bcfa9946568c0ba8cc7ab0c47589f523460
4
+ data.tar.gz: fc9e80f68a939378d1bf0ced6aadd9576eab9377
5
5
  SHA512:
6
- metadata.gz: 1f4f36c8b51640b415d10a71e608e7cb630726a1ebed90593413bf85426417dea1cf8bed9a4a3198908622db4d1c3b87bf575640bd577a2b7c7245df68880876
7
- data.tar.gz: a544b38a4df727e4f1a45c20090a6279d6747985d89a5d6fd9eace071e738005b0b1fd5194e1cd26104de9d7413efd183417ef46fce867d37c6d1d9eadbc36bb
6
+ metadata.gz: 9c84b1396f6eac363fbe0f6b898d0f3a8e0328c91269e9ea5b6a3cf8ccd925b22df14b3851ec179cbde5656423ac39a3ddb330d29ba59849777d9af6fdfd000e
7
+ data.tar.gz: f55277827c3e668c8b761d7501e60a7c34903e644da92d608ab02693ba567d136054cfab7b6a43e7b3484cfea62f5af3e351a3f7298119f739ee29a4213137b8
data/data/types.yml CHANGED
@@ -170,7 +170,7 @@ TEXT:
170
170
 
171
171
  XML:
172
172
  NAME: Extensible Markup Language (XML)
173
- MIME: text/xml
173
+ MIME: text/xml application/xml
174
174
  PUID: fmt/101
175
175
  EXTENSIONS: xml
176
176
 
@@ -1,3 +1,5 @@
1
+ require 'singleton'
2
+
1
3
  require 'tempfile'
2
4
  require 'csv'
3
5
 
@@ -11,6 +13,7 @@ module Libis
11
13
  module Format
12
14
 
13
15
  class Droid
16
+ include Singleton
14
17
  include ::Libis::Tools::Logger
15
18
 
16
19
  def self.run(file)
@@ -1,5 +1,6 @@
1
1
  require 'csv'
2
2
 
3
+ require 'singleton'
3
4
  require 'libis/tools/extend/string'
4
5
  require 'libis/tools/logger'
5
6
  require 'libis/tools/command'
@@ -11,12 +12,13 @@ module Libis
11
12
  module Format
12
13
 
13
14
  class Fido
15
+ include Singleton
14
16
  include ::Libis::Tools::Logger
15
17
 
16
18
  BAD_MIMETYPES = [nil, '', 'None', 'application/octet-stream']
17
19
 
18
20
  def self.run(file, formats = nil)
19
- self.new.run file, formats
21
+ self.instance.run file, formats
20
22
  end
21
23
 
22
24
  def run(file, xtra_formats = nil)
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Format
3
- VERSION = '0.9.7'
3
+ VERSION = '0.9.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-23 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler