kindle-drm 0.1.0 → 0.5.0

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.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/kindle-drm.gemspec +3 -4
  3. data/lib/kindle/drm.rb +1 -3
  4. metadata +9 -19
  5. data/.project +0 -17
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.5.0
data/kindle-drm.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kindle-drm}
8
- s.version = "0.1.0"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Preston Lee", "Igor Skochinsky"]
12
- s.date = %q{2010-02-20}
12
+ s.date = %q{2010-02-02}
13
13
  s.default_executable = %q{serial_to_pid.rb}
14
14
  s.description = %q{A Ruby library for performing DRM-related operations on .mobi files, know as DRM'd .azw files on the Amazon Kindle.}
15
15
  s.email = %q{conmotto@gmail.com}
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
21
21
  s.files = [
22
22
  ".document",
23
23
  ".gitignore",
24
- ".project",
25
24
  "LICENSE",
26
25
  "README.rdoc",
27
26
  "Rakefile",
@@ -36,7 +35,7 @@ Gem::Specification.new do |s|
36
35
  s.homepage = %q{http://github.com/preston/kindle-drm}
37
36
  s.rdoc_options = ["--charset=UTF-8"]
38
37
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.6}
38
+ s.rubygems_version = %q{1.3.5}
40
39
  s.summary = %q{Amazon Kindle .azw file manipulation library.}
41
40
  s.test_files = [
42
41
  "test/helper.rb",
data/lib/kindle/drm.rb CHANGED
@@ -35,9 +35,7 @@ module Kindle
35
35
  crc = crc32(s)
36
36
  arr1 = Array.new(l, 0)
37
37
  for i in 0..(s.length - 1) do
38
- code = s[i]
39
- code = code.ord if code.class == String # Fix for Ruby 1.9+
40
- arr1[i%l] ^= code
38
+ arr1[i%l] ^= s[i]
41
39
  end
42
40
 
43
41
  # Grab each CRC byte and OR with a portion of the
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindle-drm
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 0
9
- version: 0.1.0
4
+ version: 0.5.0
10
5
  platform: ruby
11
6
  authors:
12
7
  - Preston Lee
@@ -15,21 +10,19 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2010-02-20 00:00:00 -07:00
13
+ date: 2010-02-02 00:00:00 -07:00
19
14
  default_executable: serial_to_pid.rb
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
22
17
  name: thoughtbot-shoulda
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ type: :development
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
24
  version: "0"
31
- type: :development
32
- version_requirements: *id001
25
+ version:
33
26
  description: A Ruby library for performing DRM-related operations on .mobi files, know as DRM'd .azw files on the Amazon Kindle.
34
27
  email: conmotto@gmail.com
35
28
  executables:
@@ -42,7 +35,6 @@ extra_rdoc_files:
42
35
  files:
43
36
  - .document
44
37
  - .gitignore
45
- - .project
46
38
  - LICENSE
47
39
  - README.rdoc
48
40
  - Rakefile
@@ -66,20 +58,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
58
  requirements:
67
59
  - - ">="
68
60
  - !ruby/object:Gem::Version
69
- segments:
70
- - 0
71
61
  version: "0"
62
+ version:
72
63
  required_rubygems_version: !ruby/object:Gem::Requirement
73
64
  requirements:
74
65
  - - ">="
75
66
  - !ruby/object:Gem::Version
76
- segments:
77
- - 0
78
67
  version: "0"
68
+ version:
79
69
  requirements: []
80
70
 
81
71
  rubyforge_project:
82
- rubygems_version: 1.3.6
72
+ rubygems_version: 1.3.5
83
73
  signing_key:
84
74
  specification_version: 3
85
75
  summary: Amazon Kindle .azw file manipulation library.
data/.project DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>kindle-drm</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.rubypeople.rdt.core.rubybuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- </buildSpec>
14
- <natures>
15
- <nature>org.rubypeople.rdt.core.rubynature</nature>
16
- </natures>
17
- </projectDescription>