isbn 1.4.1 → 2.0.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.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  *.sw?
2
2
  .DS_Store
3
3
  coverage
4
- pkg/*
4
+ pkg/*
5
+ *.spec
data/README CHANGED
@@ -1,9 +1,32 @@
1
1
  isbn
2
2
  ====
3
3
 
4
- Libary of ISBN manipulation tools that has built up over time. Recently I added the ability to take an image of an ISBN and turn it into text, using LibJPEG and GOCR. You can find the src for this libraries in /src.
4
+ Version 2.0
5
+ This library provides methods to manipulate isbns. As of version 2.0 there has been a near complete rewrite of this library but this time there are tests. A few methods have been removed. Here is what remains:
6
+
7
+ * ISBN.ten will return a 10 digit isbn if you give it a 10 or 13 digit isbn
8
+ - it will raise a No10DigitISBNAvailable error if given an isbn starting with 979 because 979 isbns do NOT have a 10 digit counterpart.
9
+
10
+ * ISBN.thirteen will return a 13 digit isbn if you give it 10 or thirteen digit isbn
11
+
12
+ * ISBN.as_new will convert an isbn into the used book version for that isbn
13
+ - for isbns starting with 978 it returns an isbn starting with 290
14
+ - for isbns starting with 979 it returns an isbn starting with 291
15
+
16
+ * ISBN.as_used will convert an isbn into the new book version for that isbn
17
+ - for isbns starting with 290 it returns an isbn starting with 978
18
+ - for isbns starting with 291 it returns an isbn starting with 979
19
+
20
+ * ISBN.valid? will compare the check digit of the passed in isbn with that of one it computes
21
+
22
+ * ISBN.from_image accept a jpeg of an isbn and OCR it into an isbn.
23
+ - it uses the LibJPEG and GOCR libraries to accomplish. The src for both is available in /src.
24
+ - probably will not run on Windows. Give it a try and let me know.
25
+ - The OCR has been quite accurate in the situations where I have needed it.
26
+
27
+
5
28
 
6
29
  COPYRIGHT
7
30
  =========
8
31
 
9
- Copyright (c) 2008 Tim Kersey. See LICENSE for details.
32
+ Copyright (c) 2009 Tim Kersey.
data/Rakefile CHANGED
@@ -10,4 +10,11 @@ begin
10
10
  end
11
11
  rescue LoadError
12
12
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
13
+ end
14
+
15
+ require 'rake/testtask'
16
+ Rake::TestTask.new(:test) do |test|
17
+ test.libs << 'test'
18
+ test.pattern = FileList['test/**/*_test.rb', 'test/**/*_spec.rb']
19
+ test.verbose = true
13
20
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 2.0.0
data/lib/isbn.rb CHANGED
@@ -1,77 +1,62 @@
1
1
  module ISBN
2
2
  extend self
3
3
 
4
- def calculate(isbn)
5
- isbn = isbn.delete("-")
6
- isbn = isbn[0...-1] unless (isbn.size == 9 || isbn.size == 12)
7
- case isbn.size
8
- when 9
9
- weight = (2..10).to_a.reverse
10
- mod = 11
11
- check = 'X'
12
- when 12
13
- weight = [1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3]
14
- mod = 10
15
- check = '0'
16
- else
17
- raise InvalidISBNError
18
- end
19
- case check_digit = (mod - (isbn.chars.zip(weight).inject(0) {|s,i| s += i[0].to_i * i[1]} % mod))
20
- when 10 then isbn << check
21
- when 11 then isbn << '0'
22
- else isbn << check_digit.to_s
23
- end
24
- isbn
25
- end
26
-
27
- def from_13_to_10(isbn)
28
- isbn = isbn.delete("-")
29
- raise "NOT 13 Digit ISBN" if isbn.size != 13
30
- calculate(isbn[/\d{3}(\d{9})(?:\d|X)/i, 1])
31
- end
32
-
33
- def from_10_to_13(isbn, used=false)
4
+ def ten(isbn)
34
5
  isbn = isbn.delete("-")
35
- raise "NOT 10 Digit ISBN" if isbn.size != 10
36
- calculate("#{used ? '290' : '978'}#{isbn}")
6
+ raise No10DigitISBNAvailable if isbn =~ /^979/
7
+ isbn = isbn[/(?:978|290)*(.+)\w/,1] # remove 978, 979 or 290 and check digit
8
+ raise Invalid10DigitISBN unless isbn.size == 9 # after removals isbn should be 9 digits
9
+ case ck = (11 - (isbn.split(//).zip((2..10).to_a.reverse).inject(0) {|s,n| s += n[0].to_i * n[1]} % 11))
10
+ when 10 then isbn << "X"
11
+ when 11 then isbn << "0"
12
+ else isbn << ck.to_s
13
+ end
37
14
  end
38
15
 
39
- def between_new_and_used(isbn)
40
- case isbn[0..2]
41
- when '978' then calculate(isbn.sub(/^978/, "290"))
42
- when '290' then calculate(isbn.sub(/^290/, "978"))
16
+ def thirteen(isbn)
17
+ isbn = isbn.delete("-")
18
+ isbn = isbn.rjust(13,"978")[/(.+)\w/,1] # adjust to 13 digit isbn and remove check digit
19
+ raise Invalid13DigitISBN unless isbn.size == 12 # after adjustments isbn should be 12 digits
20
+ case ck = (10 - (isbn.split(//).zip([1,3]*6).inject(0) {|s,n| s += n[0].to_i * n[1]} % 10))
21
+ when 10 then isbn << "0"
22
+ else isbn << ck.to_s
43
23
  end
44
24
  end
45
-
46
- def thirteen(isbn)
25
+
26
+ def as_used(isbn)
47
27
  case isbn.size
48
- when 13 then isbn
49
- when 10 then from_10_to_13(isbn)
50
- else raise InvalidISBNError
28
+ when 13
29
+ case isbn
30
+ when /^978/ then thirteen("290#{isbn[3..-1]}")
31
+ when /^290/ then isbn
32
+ when /^979/ then thirteen("291#{isbn[3..-1]}")
33
+ when /^291/ then isbn
34
+ end
35
+ when 10 then thirteen("290#{isbn}")
36
+ else valid?(isbn)
51
37
  end
52
38
  end
53
39
 
54
- def ten(isbn)
40
+ def as_new(isbn)
55
41
  case isbn.size
56
- when 13 then from_13_to_10(isbn)
57
- when 10 then isbn
58
- else raise InvalidISBNError
42
+ when 13
43
+ case isbn
44
+ when /^978/ then isbn
45
+ when /^290/ then thirteen("978#{isbn[3..-1]}")
46
+ when /^979/ then isbn
47
+ when /^291/ then thirteen("979#{isbn[3..-1]}")
48
+ end
49
+ when 10 then ten(isbn)
50
+ else valid?(isbn)
59
51
  end
60
52
  end
61
53
 
62
54
  def valid?(isbn)
63
- begin
64
- isbn[-1,1] == calculate(isbn)[-1,1]
65
- rescue InvalidISBNError => isbn_error
66
- false
67
- end
68
- end
69
-
70
- def book?(isbn)
71
- begin
72
- true if (isbn =~ /^(978|290)/i && ten(isbn)) || ten(isbn)
73
- rescue InvalidISBNError => isbn_error
74
- false
55
+ isbn = isbn.delete("-")
56
+ case isbn.size
57
+ when 13 then isbn[-1] == thirteen(isbn)[-1]
58
+ when 10 then isbn[-1] == ten(isbn)[-1]
59
+ else raise InvalidISBNError
75
60
  end
76
61
  end
77
62
 
@@ -85,6 +70,8 @@ module ISBN
85
70
  isbn.strip.gsub(" ", "").gsub(/o/i, "0").gsub("_", "2").gsub(/2J$/, "45")
86
71
  end
87
72
 
88
- class InvalidISBNError < RuntimeError
89
- end
73
+ class InvalidISBNError < RuntimeError; end
74
+ class No10DigitISBNAvailable < RuntimeError; end
75
+ class Invalid10DigitISBN < RuntimeError; end
76
+ class Invalid13DigitISBN < RuntimeError; end
90
77
  end
data/test/isbn_spec.rb ADDED
@@ -0,0 +1,58 @@
1
+ require "minitest/spec"
2
+ require "lib/isbn"
3
+
4
+ MiniTest::Unit.autorun
5
+
6
+ describe ISBN do
7
+ ISBNS = [ ["0820472670","9780820472676"], ["0763740381","9780763740382"], ["0547168292","9780547168296"],
8
+ ["0415990793","9780415990790"], ["1596670274","9781596670273"], ["0618800565","9780618800568"],
9
+ ["0812971256","9780812971255"], ["0465032117","9780465032112"], ["0721606318","9780721606316"],
10
+ ["0887273939","9780887273933"], ["012781910X","9780127819105"], ["0736061819","9780736061810"],
11
+ ["0763748951","9780763748951"], ["0470196181","9780470196182"], ["0736064036","9780736064033"],
12
+ ["0743488040","9780743488044"], ["0470130733","9780470130735"], ["0816516502","9780816516506"],
13
+ ["074324382X","9780743243827"], ["0887401392","9780887401398"], ["0582404800","9780582404809"]]
14
+
15
+ it "should respond with a ten digit isbn" do
16
+ ISBNS.each do |isbn|
17
+ ISBN.ten(isbn[1]).must_equal isbn[0]
18
+ ISBN.ten(isbn[0]).must_equal isbn[0]
19
+ end
20
+ proc { ISBN.ten("9790879392788") }.must_raise ISBN::No10DigitISBNAvailable
21
+ proc { ISBN.ten("074324382") }.must_raise ISBN::Invalid10DigitISBN
22
+ end
23
+
24
+ it "should respond with a thirteen digit isbn" do
25
+ ISBNS.each do |isbn|
26
+ ISBN.thirteen(isbn[0]).must_equal isbn[1]
27
+ ISBN.thirteen(isbn[1]).must_equal isbn[1]
28
+ end
29
+ proc { ISBN.thirteen("97908793927888") }.must_raise ISBN::Invalid13DigitISBN
30
+ end
31
+
32
+ it "should convert a NEW isbn into USED" do
33
+ ISBN.as_used("9780820472676").must_equal "2900820472675"
34
+ ISBN.as_used("2900820472675").must_equal "2900820472675"
35
+ ISBN.as_used("9790879392788").must_equal "2910879392787"
36
+ ISBN.as_used("2910879392787").must_equal "2910879392787"
37
+ ISBN.as_used("0820472670").must_equal "2900820472675"
38
+ proc { ISBN.as_used("082047267") }.must_raise ISBN::InvalidISBNError
39
+ end
40
+
41
+ it "should convert a USED isbn into NEW" do
42
+ ISBN.as_new("2900820472675").must_equal "9780820472676"
43
+ ISBN.as_new("2910879392787").must_equal "9790879392788"
44
+ ISBN.as_new("9780820472676").must_equal "9780820472676"
45
+ ISBN.as_new("9790879392788").must_equal "9790879392788"
46
+ ISBN.as_new("0820472670").must_equal "0820472670"
47
+ proc { ISBN.as_new("082047267") }.must_raise ISBN::InvalidISBNError
48
+ end
49
+
50
+ it "should test the validity of an isbn" do
51
+ ISBN.valid?("9780763740382").must_equal true
52
+ ISBN.valid?("9790879392788").must_equal true
53
+ ISBN.valid?("2900820472675").must_equal true
54
+ ISBN.valid?("012781910X").must_equal true
55
+ ISBN.valid?("9887401392").must_equal false
56
+ proc { ISBN.valid?("082047267") }.must_raise ISBN::InvalidISBNError
57
+ end
58
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isbn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Kersey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-23 00:00:00 -04:00
12
+ date: 2009-10-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -26,7 +26,6 @@ files:
26
26
  - README
27
27
  - Rakefile
28
28
  - VERSION
29
- - isbn.gemspec
30
29
  - lib/isbn.rb
31
30
  - src/gocr-0.48/.cvsignore
32
31
  - src/gocr-0.48/AUTHORS
@@ -310,8 +309,7 @@ files:
310
309
  - src/jpeg-7/wrppm.c
311
310
  - src/jpeg-7/wrrle.c
312
311
  - src/jpeg-7/wrtarga.c
313
- - test/isbn_test.rb
314
- - test/test_helper.rb
312
+ - test/isbn_spec.rb
315
313
  has_rdoc: true
316
314
  homepage: http://github.com/entangledstate/isbn
317
315
  licenses: []
@@ -341,5 +339,4 @@ signing_key:
341
339
  specification_version: 3
342
340
  summary: a simple library of functions on ISBN's
343
341
  test_files:
344
- - test/isbn_test.rb
345
- - test/test_helper.rb
342
+ - test/isbn_spec.rb
data/isbn.gemspec DELETED
@@ -1,329 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{isbn}
8
- s.version = "1.4.1"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Tim Kersey"]
12
- s.date = %q{2009-08-18}
13
- s.description = %q{library to transform ISBN's from new to used, between 10 and 13, etc...}
14
- s.email = %q{entangledstate@gmail.com}
15
- s.extra_rdoc_files = [
16
- "README"
17
- ]
18
- s.files = [
19
- ".gitignore",
20
- "README",
21
- "Rakefile",
22
- "VERSION",
23
- "isbn.gemspec",
24
- "lib/isbn.rb",
25
- "src/gocr-0.48/.cvsignore",
26
- "src/gocr-0.48/AUTHORS",
27
- "src/gocr-0.48/BUGS",
28
- "src/gocr-0.48/CREDITS",
29
- "src/gocr-0.48/HISTORY",
30
- "src/gocr-0.48/INSTALL",
31
- "src/gocr-0.48/Makefile",
32
- "src/gocr-0.48/Makefile.in",
33
- "src/gocr-0.48/README",
34
- "src/gocr-0.48/READMEde.txt",
35
- "src/gocr-0.48/REMARK.txt",
36
- "src/gocr-0.48/REVIEW",
37
- "src/gocr-0.48/TODO",
38
- "src/gocr-0.48/bin/.cvsignore",
39
- "src/gocr-0.48/bin/create_db",
40
- "src/gocr-0.48/bin/gocr.tcl",
41
- "src/gocr-0.48/bin/gocr_chk.sh",
42
- "src/gocr-0.48/configure",
43
- "src/gocr-0.48/configure.in",
44
- "src/gocr-0.48/doc/.#Makefile.1.6",
45
- "src/gocr-0.48/doc/.cvsignore",
46
- "src/gocr-0.48/doc/Makefile",
47
- "src/gocr-0.48/doc/Makefile.in",
48
- "src/gocr-0.48/doc/example.dtd",
49
- "src/gocr-0.48/doc/example.xml",
50
- "src/gocr-0.48/doc/examples.txt",
51
- "src/gocr-0.48/doc/gocr.html",
52
- "src/gocr-0.48/doc/unicode.txt",
53
- "src/gocr-0.48/examples/.#Makefile.1.22",
54
- "src/gocr-0.48/examples/4x6.png",
55
- "src/gocr-0.48/examples/4x6.txt",
56
- "src/gocr-0.48/examples/5x7.png",
57
- "src/gocr-0.48/examples/5x7.png.txt",
58
- "src/gocr-0.48/examples/5x8.png",
59
- "src/gocr-0.48/examples/5x8.png.txt",
60
- "src/gocr-0.48/examples/Makefile",
61
- "src/gocr-0.48/examples/color.fig",
62
- "src/gocr-0.48/examples/ex.fig",
63
- "src/gocr-0.48/examples/font.tex",
64
- "src/gocr-0.48/examples/font1.tex",
65
- "src/gocr-0.48/examples/font2.fig",
66
- "src/gocr-0.48/examples/font_nw.tex",
67
- "src/gocr-0.48/examples/handwrt1.jpg",
68
- "src/gocr-0.48/examples/handwrt1.txt",
69
- "src/gocr-0.48/examples/inverse.fig",
70
- "src/gocr-0.48/examples/matrix.jpg",
71
- "src/gocr-0.48/examples/ocr-a-subset.png",
72
- "src/gocr-0.48/examples/ocr-a-subset.png.txt",
73
- "src/gocr-0.48/examples/ocr-a.png",
74
- "src/gocr-0.48/examples/ocr-a.txt",
75
- "src/gocr-0.48/examples/ocr-b.png",
76
- "src/gocr-0.48/examples/ocr-b.png.txt",
77
- "src/gocr-0.48/examples/polish.tex",
78
- "src/gocr-0.48/examples/rotate45.fig",
79
- "src/gocr-0.48/examples/score",
80
- "src/gocr-0.48/examples/text.tex",
81
- "src/gocr-0.48/gocr.spec",
82
- "src/gocr-0.48/gpl.html",
83
- "src/gocr-0.48/include/.cvsignore",
84
- "src/gocr-0.48/include/config.h",
85
- "src/gocr-0.48/include/config.h.in",
86
- "src/gocr-0.48/include/version.h",
87
- "src/gocr-0.48/install-sh",
88
- "src/gocr-0.48/make.bat",
89
- "src/gocr-0.48/man/.cvsignore",
90
- "src/gocr-0.48/man/Makefile",
91
- "src/gocr-0.48/man/Makefile.in",
92
- "src/gocr-0.48/man/man1/gocr.1",
93
- "src/gocr-0.48/src/.cvsignore",
94
- "src/gocr-0.48/src/Makefile",
95
- "src/gocr-0.48/src/Makefile.in",
96
- "src/gocr-0.48/src/amiga.h",
97
- "src/gocr-0.48/src/barcode.c",
98
- "src/gocr-0.48/src/barcode.c.orig",
99
- "src/gocr-0.48/src/barcode.h",
100
- "src/gocr-0.48/src/box.c",
101
- "src/gocr-0.48/src/database.c",
102
- "src/gocr-0.48/src/detect.c",
103
- "src/gocr-0.48/src/gocr.c",
104
- "src/gocr-0.48/src/gocr.h",
105
- "src/gocr-0.48/src/jconv.c",
106
- "src/gocr-0.48/src/job.c",
107
- "src/gocr-0.48/src/lines.c",
108
- "src/gocr-0.48/src/list.c",
109
- "src/gocr-0.48/src/list.h",
110
- "src/gocr-0.48/src/ocr0.c",
111
- "src/gocr-0.48/src/ocr0.h",
112
- "src/gocr-0.48/src/ocr0n.c",
113
- "src/gocr-0.48/src/ocr1.c",
114
- "src/gocr-0.48/src/ocr1.h",
115
- "src/gocr-0.48/src/otsu.c",
116
- "src/gocr-0.48/src/otsu.h",
117
- "src/gocr-0.48/src/output.c",
118
- "src/gocr-0.48/src/output.h",
119
- "src/gocr-0.48/src/pcx.c",
120
- "src/gocr-0.48/src/pcx.h",
121
- "src/gocr-0.48/src/pgm2asc.c",
122
- "src/gocr-0.48/src/pgm2asc.h",
123
- "src/gocr-0.48/src/pixel.c",
124
- "src/gocr-0.48/src/pnm.c",
125
- "src/gocr-0.48/src/pnm.h",
126
- "src/gocr-0.48/src/progress.c",
127
- "src/gocr-0.48/src/progress.h",
128
- "src/gocr-0.48/src/remove.c",
129
- "src/gocr-0.48/src/tga.c",
130
- "src/gocr-0.48/src/tga.h",
131
- "src/gocr-0.48/src/unicode.c",
132
- "src/gocr-0.48/src/unicode.h",
133
- "src/jpeg-7/Makefile.am",
134
- "src/jpeg-7/Makefile.in",
135
- "src/jpeg-7/README",
136
- "src/jpeg-7/aclocal.m4",
137
- "src/jpeg-7/ansi2knr.1",
138
- "src/jpeg-7/ansi2knr.c",
139
- "src/jpeg-7/cderror.h",
140
- "src/jpeg-7/cdjpeg.c",
141
- "src/jpeg-7/cdjpeg.h",
142
- "src/jpeg-7/change.log",
143
- "src/jpeg-7/cjpeg.1",
144
- "src/jpeg-7/cjpeg.c",
145
- "src/jpeg-7/ckconfig.c",
146
- "src/jpeg-7/coderules.txt",
147
- "src/jpeg-7/config.guess",
148
- "src/jpeg-7/config.sub",
149
- "src/jpeg-7/configure",
150
- "src/jpeg-7/configure.ac",
151
- "src/jpeg-7/depcomp",
152
- "src/jpeg-7/djpeg.1",
153
- "src/jpeg-7/djpeg.c",
154
- "src/jpeg-7/example.c",
155
- "src/jpeg-7/filelist.txt",
156
- "src/jpeg-7/install-sh",
157
- "src/jpeg-7/install.txt",
158
- "src/jpeg-7/jaricom.c",
159
- "src/jpeg-7/jcapimin.c",
160
- "src/jpeg-7/jcapistd.c",
161
- "src/jpeg-7/jcarith.c",
162
- "src/jpeg-7/jccoefct.c",
163
- "src/jpeg-7/jccolor.c",
164
- "src/jpeg-7/jcdctmgr.c",
165
- "src/jpeg-7/jchuff.c",
166
- "src/jpeg-7/jcinit.c",
167
- "src/jpeg-7/jcmainct.c",
168
- "src/jpeg-7/jcmarker.c",
169
- "src/jpeg-7/jcmaster.c",
170
- "src/jpeg-7/jcomapi.c",
171
- "src/jpeg-7/jconfig.bcc",
172
- "src/jpeg-7/jconfig.cfg",
173
- "src/jpeg-7/jconfig.dj",
174
- "src/jpeg-7/jconfig.mac",
175
- "src/jpeg-7/jconfig.manx",
176
- "src/jpeg-7/jconfig.mc6",
177
- "src/jpeg-7/jconfig.sas",
178
- "src/jpeg-7/jconfig.st",
179
- "src/jpeg-7/jconfig.txt",
180
- "src/jpeg-7/jconfig.vc",
181
- "src/jpeg-7/jconfig.vms",
182
- "src/jpeg-7/jconfig.wat",
183
- "src/jpeg-7/jcparam.c",
184
- "src/jpeg-7/jcprepct.c",
185
- "src/jpeg-7/jcsample.c",
186
- "src/jpeg-7/jctrans.c",
187
- "src/jpeg-7/jdapimin.c",
188
- "src/jpeg-7/jdapistd.c",
189
- "src/jpeg-7/jdarith.c",
190
- "src/jpeg-7/jdatadst.c",
191
- "src/jpeg-7/jdatasrc.c",
192
- "src/jpeg-7/jdcoefct.c",
193
- "src/jpeg-7/jdcolor.c",
194
- "src/jpeg-7/jdct.h",
195
- "src/jpeg-7/jddctmgr.c",
196
- "src/jpeg-7/jdhuff.c",
197
- "src/jpeg-7/jdinput.c",
198
- "src/jpeg-7/jdmainct.c",
199
- "src/jpeg-7/jdmarker.c",
200
- "src/jpeg-7/jdmaster.c",
201
- "src/jpeg-7/jdmerge.c",
202
- "src/jpeg-7/jdpostct.c",
203
- "src/jpeg-7/jdsample.c",
204
- "src/jpeg-7/jdtrans.c",
205
- "src/jpeg-7/jerror.c",
206
- "src/jpeg-7/jerror.h",
207
- "src/jpeg-7/jfdctflt.c",
208
- "src/jpeg-7/jfdctfst.c",
209
- "src/jpeg-7/jfdctint.c",
210
- "src/jpeg-7/jidctflt.c",
211
- "src/jpeg-7/jidctfst.c",
212
- "src/jpeg-7/jidctint.c",
213
- "src/jpeg-7/jinclude.h",
214
- "src/jpeg-7/jmemansi.c",
215
- "src/jpeg-7/jmemdos.c",
216
- "src/jpeg-7/jmemdosa.asm",
217
- "src/jpeg-7/jmemmac.c",
218
- "src/jpeg-7/jmemmgr.c",
219
- "src/jpeg-7/jmemname.c",
220
- "src/jpeg-7/jmemnobs.c",
221
- "src/jpeg-7/jmemsys.h",
222
- "src/jpeg-7/jmorecfg.h",
223
- "src/jpeg-7/jpegint.h",
224
- "src/jpeg-7/jpeglib.h",
225
- "src/jpeg-7/jpegtran.1",
226
- "src/jpeg-7/jpegtran.c",
227
- "src/jpeg-7/jquant1.c",
228
- "src/jpeg-7/jquant2.c",
229
- "src/jpeg-7/jutils.c",
230
- "src/jpeg-7/jversion.h",
231
- "src/jpeg-7/libjpeg.map",
232
- "src/jpeg-7/libjpeg.txt",
233
- "src/jpeg-7/ltmain.sh",
234
- "src/jpeg-7/makcjpeg.st",
235
- "src/jpeg-7/makdjpeg.st",
236
- "src/jpeg-7/makeadsw.vc6",
237
- "src/jpeg-7/makeasln.vc9",
238
- "src/jpeg-7/makecdep.vc6",
239
- "src/jpeg-7/makecdsp.vc6",
240
- "src/jpeg-7/makecmak.vc6",
241
- "src/jpeg-7/makecvcp.vc9",
242
- "src/jpeg-7/makeddep.vc6",
243
- "src/jpeg-7/makeddsp.vc6",
244
- "src/jpeg-7/makedmak.vc6",
245
- "src/jpeg-7/makedvcp.vc9",
246
- "src/jpeg-7/makefile.ansi",
247
- "src/jpeg-7/makefile.bcc",
248
- "src/jpeg-7/makefile.dj",
249
- "src/jpeg-7/makefile.manx",
250
- "src/jpeg-7/makefile.mc6",
251
- "src/jpeg-7/makefile.mms",
252
- "src/jpeg-7/makefile.sas",
253
- "src/jpeg-7/makefile.unix",
254
- "src/jpeg-7/makefile.vc",
255
- "src/jpeg-7/makefile.vms",
256
- "src/jpeg-7/makefile.wat",
257
- "src/jpeg-7/makejdep.vc6",
258
- "src/jpeg-7/makejdsp.vc6",
259
- "src/jpeg-7/makejdsw.vc6",
260
- "src/jpeg-7/makejmak.vc6",
261
- "src/jpeg-7/makejsln.vc9",
262
- "src/jpeg-7/makejvcp.vc9",
263
- "src/jpeg-7/makeproj.mac",
264
- "src/jpeg-7/makerdep.vc6",
265
- "src/jpeg-7/makerdsp.vc6",
266
- "src/jpeg-7/makermak.vc6",
267
- "src/jpeg-7/makervcp.vc9",
268
- "src/jpeg-7/maketdep.vc6",
269
- "src/jpeg-7/maketdsp.vc6",
270
- "src/jpeg-7/maketmak.vc6",
271
- "src/jpeg-7/maketvcp.vc9",
272
- "src/jpeg-7/makewdep.vc6",
273
- "src/jpeg-7/makewdsp.vc6",
274
- "src/jpeg-7/makewmak.vc6",
275
- "src/jpeg-7/makewvcp.vc9",
276
- "src/jpeg-7/makljpeg.st",
277
- "src/jpeg-7/maktjpeg.st",
278
- "src/jpeg-7/makvms.opt",
279
- "src/jpeg-7/missing",
280
- "src/jpeg-7/rdbmp.c",
281
- "src/jpeg-7/rdcolmap.c",
282
- "src/jpeg-7/rdgif.c",
283
- "src/jpeg-7/rdjpgcom.1",
284
- "src/jpeg-7/rdjpgcom.c",
285
- "src/jpeg-7/rdppm.c",
286
- "src/jpeg-7/rdrle.c",
287
- "src/jpeg-7/rdswitch.c",
288
- "src/jpeg-7/rdtarga.c",
289
- "src/jpeg-7/structure.txt",
290
- "src/jpeg-7/testimg.bmp",
291
- "src/jpeg-7/testimg.jpg",
292
- "src/jpeg-7/testimg.ppm",
293
- "src/jpeg-7/testimgp.jpg",
294
- "src/jpeg-7/testorig.jpg",
295
- "src/jpeg-7/testprog.jpg",
296
- "src/jpeg-7/transupp.c",
297
- "src/jpeg-7/transupp.h",
298
- "src/jpeg-7/usage.txt",
299
- "src/jpeg-7/wizard.txt",
300
- "src/jpeg-7/wrbmp.c",
301
- "src/jpeg-7/wrgif.c",
302
- "src/jpeg-7/wrjpgcom.1",
303
- "src/jpeg-7/wrjpgcom.c",
304
- "src/jpeg-7/wrppm.c",
305
- "src/jpeg-7/wrrle.c",
306
- "src/jpeg-7/wrtarga.c",
307
- "test/isbn_test.rb",
308
- "test/test_helper.rb"
309
- ]
310
- s.homepage = %q{http://github.com/entangledstate/isbn}
311
- s.rdoc_options = ["--charset=UTF-8"]
312
- s.require_paths = ["lib"]
313
- s.rubygems_version = %q{1.3.5}
314
- s.summary = %q{a simple library of functions on ISBN's}
315
- s.test_files = [
316
- "test/isbn_test.rb",
317
- "test/test_helper.rb"
318
- ]
319
-
320
- if s.respond_to? :specification_version then
321
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
322
- s.specification_version = 3
323
-
324
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
325
- else
326
- end
327
- else
328
- end
329
- end
data/test/isbn_test.rb DELETED
@@ -1,7 +0,0 @@
1
- require File.dirname(__FILE__) + '/test_helper'
2
-
3
- class IsbnTest < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,7 +0,0 @@
1
- require 'rubygems'
2
- require 'test/unit'
3
- require 'shoulda'
4
- require 'mocha'
5
-
6
- class Test::Unit::TestCase
7
- end