henkei 1.14.2 → 1.14.3

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: e761f2e45ae10632d62ec0852c8392f04ca07bfb
4
- data.tar.gz: 53b61bbc7101e3a64cc641d7f3c63372dd86cf04
3
+ metadata.gz: 7e982c720251c865584f5336e41f5693d7897655
4
+ data.tar.gz: a7dc85cebe95091daa572cfc1d27006c21b35512
5
5
  SHA512:
6
- metadata.gz: 7bd2cad3649411bacc1c4e998df75a41ea01975aa1a249848ecaa36e8def72b9c0f9cc33d2e30a40ad1db960bfadc3157b690ef95a0cf7347a4c8e52b23d9470
7
- data.tar.gz: f9bb8ea2a7f292935f63501a43dd90f39bda399f8e34dada7742ea200dc0d7f92efc1881cc9c3a3715502d3ed230e874cc7a73f5c944f9150550c6963e003c82
6
+ metadata.gz: c9ca2e89a63ac1790f3b9c5ab82c72e609566110313538851842ad58fcb1056fa08811e8dfc6e63d102e8702860fc22df4c6b6d4473b4b4d24029ef79f81badf
7
+ data.tar.gz: c4a1a3f2a8580480ae5911f4485e646e02355e51ab7e5adde1518d2f0c9bbd6c78cf7af5c744005c9d733a704e2ed925e0eaff621986fcc019de3cf9b766ce5a
@@ -4,6 +4,8 @@ rvm:
4
4
  - 2.0.0
5
5
  - 2.1.0
6
6
  - 2.2.5
7
+ - 2.3.0
8
+ - 2.4.0
7
9
 
8
10
  before_install:
9
11
  - gem update bundler
data/README.md CHANGED
@@ -33,6 +33,12 @@ metadata = Henkei.read :metadata, data
33
33
  mimetype = Henkei.read :mimetype, data
34
34
  ```
35
35
 
36
+ Henkei is backward compatible with Yomu
37
+
38
+ ```ruby
39
+ text = Yomu.read :text, data
40
+ ```
41
+
36
42
  ### Reading text from a given filename
37
43
 
38
44
  Create a new instance of Henkei and pass a filename.
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency 'mime-types', '~> 1.23'
22
- spec.add_runtime_dependency 'json', '~> 1.8'
21
+ spec.add_runtime_dependency 'mime-types', '>= 1.23'
22
+ spec.add_runtime_dependency 'json', '>= 1.8'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 1.3'
25
25
  spec.add_development_dependency 'rake'
@@ -3,6 +3,7 @@ require 'henkei/yomu'
3
3
 
4
4
  require 'net/http'
5
5
  require 'mime/types'
6
+ require 'time'
6
7
  require 'json'
7
8
 
8
9
  require 'socket'
@@ -1,3 +1,3 @@
1
1
  class Henkei
2
- VERSION = '1.14.2'
2
+ VERSION = '1.14.3'
3
3
  end
@@ -97,7 +97,7 @@ describe Henkei do
97
97
 
98
98
  describe '.creation_date' do
99
99
  let(:henkei) { Henkei.new 'spec/samples/sample.pages' }
100
- it 'should retur Time' do
100
+ it 'should return Time' do
101
101
  expect( henkei.creation_date ).to be_a Time
102
102
  end
103
103
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henkei
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.2
4
+ version: 1.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erol Fornoles
@@ -9,76 +9,76 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-18 00:00:00.000000000 Z
12
+ date: 2017-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mime-types
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.23'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.23'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: json
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1.8'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.8'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
48
  version: '1.3'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
55
  version: '1.3'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
74
+ - - ~>
75
75
  - !ruby/object:Gem::Version
76
76
  version: '3.5'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
81
+ - - ~>
82
82
  - !ruby/object:Gem::Version
83
83
  version: '3.5'
84
84
  description: Read text and metadata from files and documents (.doc, .docx, .pages,
@@ -90,9 +90,9 @@ executables: []
90
90
  extensions: []
91
91
  extra_rdoc_files: []
92
92
  files:
93
- - ".gitignore"
94
- - ".rspec"
95
- - ".travis.yml"
93
+ - .gitignore
94
+ - .rspec
95
+ - .travis.yml
96
96
  - Gemfile
97
97
  - LICENSE
98
98
  - NOTICE.txt
@@ -119,17 +119,17 @@ require_paths:
119
119
  - lib
120
120
  required_ruby_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - ">="
127
+ - - '>='
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.4.8
132
+ rubygems_version: 2.4.6
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Read text and metadata from files and documents (.doc, .docx, .pages, .odt,