mobi 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,14 @@
1
1
  = mobi
2
2
 
3
- Description goes here.
3
+ A Ruby Gem that reads MOBI metadata.
4
+
5
+ == Warning
6
+
7
+ This is still a work in progress. This gem is essentially made up of me playing around with the mobi file and extracting data.
8
+
9
+ The gem does NOT handle any errors in a mobi document, or some edge cases.
10
+
11
+ Tests will be added soon.
4
12
 
5
13
  == Contributing to mobi
6
14
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -16,10 +16,8 @@ module Mobi
16
16
  @data = StreamSlicer.new(stream)
17
17
  @exth_records = []
18
18
  return unless bookmobi?
19
- @mobi = mobi_stream
20
-
19
+ @mobi = mobi_stream
21
20
  @title = read_title
22
-
23
21
  @exth = exth_stream
24
22
 
25
23
  store_mobi_data
@@ -43,7 +41,6 @@ module Mobi
43
41
 
44
42
  def read_title
45
43
  offset, = @mobi[84, 4].unpack('N*')
46
- puts offset
47
44
  length, = @mobi[88, 4].unpack('N*')
48
45
  @mobi[offset.to_i, length.to_i]
49
46
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mobi}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jkongie"]
12
- s.date = %q{2011-04-09}
12
+ s.date = %q{2011-04-10}
13
13
  s.description = %q{Mobi is a Rubygem that allows you to easily read MOBI e-book format metadata }
14
14
  s.email = %q{jkongie@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mobi
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - jkongie
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-09 00:00:00 +10:00
13
+ date: 2011-04-10 00:00:00 +10:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
- hash: -4366855236519816057
97
+ hash: -244937170725559488
98
98
  segments:
99
99
  - 0
100
100
  version: "0"