philologic-client 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Philologic::Client History
2
2
 
3
+ == 2012-02-09 v0.0.11
4
+
5
+ * Added +Philologic::Link#text()+
6
+
3
7
  == 2012-01-18 v0.0.10
4
8
 
5
9
  * Added +Philologic::TableRow+
data/README.rdoc CHANGED
@@ -68,7 +68,6 @@ https://github.com/blairc/philologic-client/
68
68
 
69
69
  == To Do
70
70
 
71
- * Add collocation table searching
72
71
  * Add +children+ to Philologic::Document
73
72
  * Add +parent+ to Philologic::Document
74
73
  * Unify (as much as possible) Philologic::Document, Philologic::Link, Philologic::TableRow
@@ -5,6 +5,6 @@ module Philologic
5
5
  #
6
6
  # Philologic::Client version
7
7
  #
8
- VERSION = '0.0.10'
8
+ VERSION = '0.0.11'
9
9
  end
10
10
  end
@@ -76,7 +76,6 @@ require 'open-uri'
76
76
  #
77
77
  # == To Do
78
78
  #
79
- # * Add collocation table searching
80
79
  # * Add +children+ to Philologic::Document
81
80
  # * Add +parent+ to Philologic::Document
82
81
  # * Unify (as much as possible) Philologic::Document, Philologic::Link, Philologic::TableRow
@@ -200,7 +199,7 @@ module Philologic # :nodoc:
200
199
  # TODO Use +URI+
201
200
  raise('no endpoint specified') if @endpoint.nil?
202
201
  uri = "#{ @endpoint }#{ @endpoint.end_with?('/') ? '' : '/' }#{path}".gsub( %r{/+$}, '/' )
203
- _parse( Nokogiri::HTML( open(uri).read, nil, @encoding ) )
202
+ _parse( Nokogiri::XML( open(uri).read, nil, @encoding ) )
204
203
  end
205
204
 
206
205
  #
@@ -216,8 +215,8 @@ module Philologic # :nodoc:
216
215
  return children
217
216
  elsif !doc.css('div.philologic_concordance').first.nil?
218
217
  results = []
219
- doc.css('div.philologic_concordance').css('a.philologic_cite').each do |cite|
220
- results << Philologic::Link.new(self, cite) # TODO Why not a select?
218
+ doc.css('div.philologic_concordance').css('li.philologic_occurence').each do |occurence|
219
+ results << Philologic::Link.new(self, occurence) # TODO Why not a select?
221
220
  end
222
221
  return results
223
222
  elsif !doc.css('div.philologic_object').first.nil?
@@ -300,10 +299,20 @@ module Philologic # :nodoc:
300
299
  # +document+:: Nokogiri document
301
300
  #
302
301
  def initialize(client, document)
302
+ raise('nil client') if client.nil?
303
+ raise('nil document') if document.nil?
303
304
  @client = client
304
305
  @doc = document
305
- # TODO Prefer lazy initialization?
306
306
  @properties = {}
307
+
308
+ if !@doc.css('a.philologic_cite').first.nil?
309
+ @doc.css('a.philologic_cite').each do |a|
310
+ a.attributes.keys.each { |k| @properties[k] = a.attributes[k].value }
311
+ end
312
+ end
313
+ if @doc.respond_to?(:attributes)
314
+ @doc.attributes.keys.each { |k| @properties[k] = @doc.attributes[k].value }
315
+ end
307
316
  @doc.css('span.philologic_property').each do |span|
308
317
  @properties[ span.attributes['title'].value ] = span.children.text
309
318
  end
@@ -313,7 +322,7 @@ module Philologic # :nodoc:
313
322
  # Returns value of attribute +key+ or +nil+.
314
323
  #
315
324
  def [](key)
316
- @doc.attributes.key?(key) ? @doc.attributes[key].value : @properties[key]
325
+ @properties[key]
317
326
  end
318
327
 
319
328
  #
@@ -323,6 +332,13 @@ module Philologic # :nodoc:
323
332
  @client.document( self['href'] )
324
333
  end
325
334
 
335
+ #
336
+ # Returns Philologic::Link text.
337
+ #
338
+ def text
339
+ @doc.text.strip
340
+ end
341
+
326
342
  #
327
343
  # Return String representation of object.
328
344
  #
@@ -7,6 +7,7 @@ require 'philologic-client'
7
7
  require 'test/unit'
8
8
  require 'mocha'
9
9
 
10
+
10
11
  class TestPhilologicClient < Test::Unit::TestCase
11
12
 
12
13
  def setup
@@ -95,7 +96,8 @@ class TestPhilologicClient < Test::Unit::TestCase
95
96
 
96
97
  def test_get_children
97
98
  Philologic::Client.new do |client|
98
- children = client.send(:_parse, Nokogiri::HTML( open(@root_file) ) )
99
+ h = Nokogiri::HTML( open(@root_file) )
100
+ children = client.send( :_parse, Nokogiri::HTML( open(@root_file) ) )
99
101
  client.stubs(:_get).with('/').returns(children)
100
102
  assert_equal children, client.children
101
103
  end
@@ -124,21 +126,21 @@ class TestPhilologicClient < Test::Unit::TestCase
124
126
  assert_not_nil child['author']
125
127
  assert_not_nil child['filename']
126
128
  assert_not_nil child['title']
127
- assert_raise(NoMethodError) { child.text }
129
+ assert_not_nil child.text
128
130
  end
129
131
 
130
132
  assert_equal './1/0/0/0/0/0/0', children.first['href']
131
133
  assert_equal 'Conon, de Béthune, ca. 1160-1219 or 20.', children.first['author']
132
134
  assert_equal 'Les Chansons', children.first['title']
133
135
  assert_equal 'TLF.0.tei', children.first['filename']
134
- assert_raise(NoMethodError) { children.first.text }
136
+ assert_match /^Conon, de Béthune, ca. 1160-1219 or 20./, children.first.text
135
137
  assert_equal './1/0/0/0/0/0/0 | Les Chansons | Conon, de Béthune, ca. 1160-1219 or 20.', children.first.to_s
136
138
 
137
- assert_equal './1845/0/0/0/0/0/0', children.last['href']
138
- assert_equal 'Sartre J.-P.', children.last['author']
139
- assert_equal 'Les Mots', children.last['title']
140
- assert_equal 'TLF.1879.tei', children.last['filename']
141
- assert_raise(NoMethodError) { children.last.text }
139
+ assert_equal './1845/0/0/0/0/0/0', children.last['href']
140
+ assert_equal 'Sartre J.-P.', children.last['author']
141
+ assert_equal 'Les Mots', children.last['title']
142
+ assert_equal 'TLF.1879.tei', children.last['filename']
143
+ assert_equal "Sartre J.-P., Les Mots: TLF.1879.tei", children.last.text
142
144
  assert_equal './1845/0/0/0/0/0/0 | Les Mots | Sartre J.-P.', children.last.to_s
143
145
 
144
146
  end
@@ -230,29 +232,28 @@ class TestPhilologicClient < Test::Unit::TestCase
230
232
  assert_kind_of Array, results
231
233
  assert_equal 50, results.size
232
234
  results.each do |result|
233
- assert_kind_of Philologic::Link, result
234
- assert_equal 'philologic_cite', result['class']
235
- assert_not_nil result['href']
236
- assert_nil result['some random attribute']
237
- assert_not_nil result['author']
238
- assert_nil result['filename']
239
- assert_not_nil result['title']
240
- assert_raise(NoMethodError) { result.text }
241
- end
235
+ assert_kind_of Philologic::Link, result
236
+ assert_equal 'philologic_occurence', result['class']
237
+ assert_not_nil result['href']
238
+ assert_nil result['some random attribute']
239
+ assert_not_nil result['author']
240
+ assert_nil result['filename']
241
+ assert_not_nil result['title']
242
+ assert_not_nil result.text
243
+ end
242
244
 
243
- assert_equal './54/1/0/0', results.first['href']
244
- assert_equal 'Peiresc N. de', results.first['author']
245
- assert_equal 'Lettres T. 6 1602-1637', results.first['title']
246
- assert_nil results.first['filename']
247
- assert_raise(NoMethodError) { results.first.text }
248
- assert_equal './54/1/0/0 | Lettres T. 6 1602-1637 | Peiresc N. de', results.first.to_s
245
+ assert_equal './54/1/0/0', results.first['href']
246
+ assert_equal 'Peiresc N. de', results.first['author']
247
+ assert_equal 'Lettres T. 6 1602-1637', results.first['title']
248
+ assert_match /^Peiresc N. de, Lettre/, results.first.text
249
+ assert_equal './54/1/0/0 | Lettres T. 6 1602-1637 | Peiresc N. de', results.first.to_s
249
250
 
250
- assert_equal './1792/11/0/0', results.last['href']
251
- assert_equal 'Gide A.', results.last['author']
252
- assert_equal 'Journal 1939-1949', results.last['title']
253
- assert_nil results.last['filename']
254
- assert_raise(NoMethodError) { results.last.text }
255
- assert_equal './1792/11/0/0 | Journal 1939-1949 | Gide A.', results.last.to_s
251
+ assert_equal './1792/11/0/0', results.last['href']
252
+ assert_equal 'Gide A.', results.last['author']
253
+ assert_equal 'Journal 1939-1949', results.last['title']
254
+ assert_nil results.last['filename']
255
+ assert_match /^Gide A., Journal 193/, results.last.text
256
+ assert_equal './1792/11/0/0 | Journal 1939-1949 | Gide A.', results.last.to_s
256
257
 
257
258
  end
258
259
  end
@@ -268,29 +269,29 @@ class TestPhilologicClient < Test::Unit::TestCase
268
269
  assert_kind_of Array, results
269
270
  assert_equal 50, results.size
270
271
  results.each do |result|
271
- assert_kind_of Philologic::Link, result
272
- assert_equal 'philologic_cite', result['class']
273
- assert_not_nil result['href']
274
- assert_nil result['some random attribute']
275
- assert_not_nil result['author']
276
- assert_nil result['filename']
277
- assert_not_nil result['title']
278
- assert_raise(NoMethodError) { result.text }
272
+ assert_kind_of Philologic::Link, result
273
+ assert_equal 'philologic_occurence', result['class']
274
+ assert_not_nil result['href']
275
+ assert_nil result['some random attribute']
276
+ assert_not_nil result['author']
277
+ assert_nil result['filename']
278
+ assert_not_nil result['title']
279
+ assert_not_nil result.text
279
280
  end
280
281
 
281
- assert_equal './54/1/0/0', results.first['href']
282
- assert_equal 'Peiresc N. de', results.first['author']
283
- assert_equal 'Lettres T. 6 1602-1637', results.first['title']
284
- assert_nil results.first['filename']
285
- assert_raise(NoMethodError) { results.first.text }
286
- assert_equal './54/1/0/0 | Lettres T. 6 1602-1637 | Peiresc N. de', results.first.to_s
282
+ assert_equal './54/1/0/0', results.first['href']
283
+ assert_equal 'Peiresc N. de', results.first['author']
284
+ assert_equal 'Lettres T. 6 1602-1637', results.first['title']
285
+ assert_nil results.first['filename']
286
+ assert_match /^Peiresc N. de/, results.first.text
287
+ assert_equal './54/1/0/0 | Lettres T. 6 1602-1637 | Peiresc N. de', results.first.to_s
287
288
 
288
- assert_equal './1792/11/0/0', results.last['href']
289
- assert_equal 'Gide A.', results.last['author']
290
- assert_equal 'Journal 1939-1949', results.last['title']
291
- assert_nil results.last['filename']
292
- assert_raise(NoMethodError) { results.last.text }
293
- assert_equal './1792/11/0/0 | Journal 1939-1949 | Gide A.', results.last.to_s
289
+ assert_equal './1792/11/0/0', results.last['href']
290
+ assert_equal 'Gide A.', results.last['author']
291
+ assert_equal 'Journal 1939-1949', results.last['title']
292
+ assert_nil results.last['filename']
293
+ assert_match /^Gide A., Journal /, results.last.text
294
+ assert_equal './1792/11/0/0 | Journal 1939-1949 | Gide A.', results.last.to_s
294
295
 
295
296
  end
296
297
  end
@@ -397,29 +398,29 @@ class TestPhilologicClient < Test::Unit::TestCase
397
398
  assert_equal 48, links.size
398
399
 
399
400
  links.each do |link|
400
- assert_kind_of Philologic::Link, link
401
- assert_equal 'philologic_cite', link['class']
402
- assert_not_nil link['href']
403
- assert_nil link['some random attribute']
404
- assert_not_nil link['author']
405
- assert_nil link['filename']
406
- assert_not_nil link['title']
407
- assert_raise(NoMethodError) { link.text }
401
+ assert_kind_of Philologic::Link, link
402
+ assert_equal 'philologic_occurence', link['class']
403
+ assert_not_nil link['href']
404
+ assert_nil link['some random attribute']
405
+ assert_not_nil link['author']
406
+ assert_nil link['filename']
407
+ assert_not_nil link['title']
408
+ assert_not_nil link.text
408
409
  end
409
410
 
410
- assert_equal './1839/3/0/0', links.first['href']
411
- assert_equal 'Beauvoir S. de', links.first['author']
412
- assert_equal 'Memoires Jeune Fille Rangee', links.first['title']
413
- assert_nil links.first['filename']
414
- assert_raise(NoMethodError) { links.first.text }
415
- assert_equal './1839/3/0/0 | Memoires Jeune Fille Rangee | Beauvoir S. de', links.first.to_s
411
+ assert_equal './1839/3/0/0', links.first['href']
412
+ assert_equal 'Beauvoir S. de', links.first['author']
413
+ assert_equal 'Memoires Jeune Fille Rangee', links.first['title']
414
+ assert_nil links.first['filename']
415
+ assert_match /^Beauvoir S. de/, links.first.text
416
+ assert_equal './1839/3/0/0 | Memoires Jeune Fille Rangee | Beauvoir S. de', links.first.to_s
416
417
 
417
- assert_equal './1839/4/0/0', links.last['href']
418
- assert_equal 'Beauvoir S. de', links.last['author']
419
- assert_equal 'Memoires Jeune Fille Rangee', links.last['title']
420
- assert_nil links.last['filename']
421
- assert_raise(NoMethodError) { links.last.text }
422
- assert_equal './1839/4/0/0 | Memoires Jeune Fille Rangee | Beauvoir S. de', links.last.to_s
418
+ assert_equal './1839/4/0/0', links.last['href']
419
+ assert_equal 'Beauvoir S. de', links.last['author']
420
+ assert_equal 'Memoires Jeune Fille Rangee', links.last['title']
421
+ assert_nil links.last['filename']
422
+ assert_match /^Beauvoir S. de,/, links.last.text
423
+ assert_equal './1839/4/0/0 | Memoires Jeune Fille Rangee | Beauvoir S. de', links.last.to_s
423
424
 
424
425
  end
425
426
  end
@@ -526,29 +527,29 @@ class TestPhilologicClient < Test::Unit::TestCase
526
527
  assert_equal 48, links.size
527
528
 
528
529
  links.each do |link|
529
- assert_kind_of Philologic::Link, link
530
- assert_equal 'philologic_cite', link['class']
531
- assert_not_nil link['href']
532
- assert_nil link['some random attribute']
533
- assert_not_nil link['author']
534
- assert_nil link['filename']
535
- assert_not_nil link['title']
536
- assert_raise(NoMethodError) { link.text }
530
+ assert_kind_of Philologic::Link, link
531
+ assert_equal 'philologic_occurence', link['class']
532
+ assert_not_nil link['href']
533
+ assert_nil link['some random attribute']
534
+ assert_not_nil link['author']
535
+ assert_nil link['filename']
536
+ assert_not_nil link['title']
537
+ assert_not_nil link.text
537
538
  end
538
539
 
539
- assert_equal './1839/3/0/0', links.first['href']
540
- assert_equal 'Beauvoir S. de', links.first['author']
541
- assert_equal 'Memoires Jeune Fille Rangee', links.first['title']
542
- assert_nil links.first['filename']
543
- assert_raise(NoMethodError) { links.first.text }
544
- assert_equal './1839/3/0/0 | Memoires Jeune Fille Rangee | Beauvoir S. de', links.first.to_s
545
-
546
- assert_equal './1839/4/0/0', links.last['href']
547
- assert_equal 'Beauvoir S. de', links.last['author']
548
- assert_equal 'Memoires Jeune Fille Rangee', links.last['title']
549
- assert_nil links.last['filename']
550
- assert_raise(NoMethodError) { links.last.text }
551
- assert_equal './1839/4/0/0 | Memoires Jeune Fille Rangee | Beauvoir S. de', links.last.to_s
540
+ assert_equal './1839/3/0/0', links.first['href']
541
+ assert_equal 'Beauvoir S. de', links.first['author']
542
+ assert_equal 'Memoires Jeune Fille Rangee', links.first['title']
543
+ assert_nil links.first['filename']
544
+ assert_match /^Beauvoir S. de/, links.first.text
545
+ assert_equal './1839/3/0/0 | Memoires Jeune Fille Rangee | Beauvoir S. de', links.first.to_s
546
+
547
+ assert_equal './1839/4/0/0', links.last['href']
548
+ assert_equal 'Beauvoir S. de', links.last['author']
549
+ assert_equal 'Memoires Jeune Fille Rangee', links.last['title']
550
+ assert_nil links.last['filename']
551
+ assert_match /^Beauvoir S. de/, links.last.text
552
+ assert_equal './1839/4/0/0 | Memoires Jeune Fille Rangee | Beauvoir S. de', links.last.to_s
552
553
 
553
554
  end
554
555
  end
@@ -0,0 +1,101 @@
1
+ # encoding: utf-8
2
+
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+
6
+ require 'philologic-client'
7
+ require 'test/unit'
8
+
9
+
10
+ class TestPhilologicLink < Test::Unit::TestCase
11
+
12
+ def setup
13
+ @endpoint = File.expand_path( File.join( File.dirname(__FILE__), 'data' ) )
14
+ @client = Philologic::Client.new(@endpoint)
15
+ @doc = Nokogiri::HTML("")
16
+ end
17
+
18
+
19
+ def test_initialization_with_nil_client
20
+ assert_raise(RuntimeError, 'nil client') { Philologic::Link.new( nil, @doc ) }
21
+ end
22
+
23
+ def test_initialization_with_nil_document
24
+ assert_raise(RuntimeError, 'nil document') { Philologic::Link.new( @client, nil ) }
25
+ end
26
+
27
+ def test_philologic_cite
28
+ html = <<EOHTML;
29
+ <a class='philologic_cite' href='./1/0/0/0/0/0/0'>
30
+ <span class='philologic_property' title='author'>Conon, de Béthune, ca. 1160-1219 or 20.</span>,
31
+ <span class='philologic_property' title='title'>Les Chansons</span>:
32
+ <span class='philologic_property' title='filename'>TLF.0.tei</span>
33
+ </a>
34
+ EOHTML
35
+ link = Philologic::Link.new( @client, Nokogiri::XML(html).css('a.philologic_cite').first )
36
+
37
+ assert_kind_of Philologic::Link, link
38
+
39
+ assert_not_nil link['class']
40
+ assert_equal 'philologic_cite', link['class']
41
+
42
+ assert_not_nil link['href']
43
+ assert_equal './1/0/0/0/0/0/0', link['href']
44
+
45
+ assert_not_nil link['author']
46
+ assert_equal 'Conon, de Béthune, ca. 1160-1219 or 20.', link['author']
47
+
48
+ assert_not_nil link['title']
49
+ assert_equal 'Les Chansons', link['title']
50
+
51
+ assert_not_nil link['filename']
52
+ assert_equal 'TLF.0.tei', link['filename']
53
+
54
+ assert_nil link['some random attribute']
55
+
56
+ assert_equal "Conon, de Béthune, ca. 1160-1219 or 20.,\n Les Chansons:\n TLF.0.tei", link.text
57
+
58
+ assert_equal './1/0/0/0/0/0/0 | Les Chansons | Conon, de Béthune, ca. 1160-1219 or 20.', link.to_s
59
+ end
60
+
61
+ def test_philologic_occurence
62
+ html = <<EOHTML;
63
+ <li class='philologic_occurence'>
64
+ <a class='philologic_cite' href='./54/1/0/0'>
65
+ <span class='philologic_property' title='author'>Peiresc N. de</span>,
66
+ <span class='philologic_property' title='title'>Lettres T. 6 1602-1637</span>
67
+ <span class='philologic_property' title='date'>(1625)</span>
68
+ </a>
69
+ ...re pas l'adresse directement à nous ny à voz lettres ny au pacquet, mais à Monsieur
70
+ <span class="hilite">Sartre</span>
71
+ respondent de Monsr Segnier qui nous les rendra gentilment. Car je...
72
+ </li>
73
+ EOHTML
74
+ link = Philologic::Link.new( @client, Nokogiri::XML(html).css('li.philologic_occurence').first )
75
+
76
+ assert_kind_of Philologic::Link, link
77
+
78
+ assert_not_nil link['class']
79
+ assert_equal 'philologic_occurence', link['class']
80
+
81
+ assert_not_nil link['href']
82
+ assert_equal './54/1/0/0', link['href']
83
+
84
+ assert_not_nil link['author']
85
+ assert_equal 'Peiresc N. de', link['author']
86
+
87
+ assert_not_nil link['title']
88
+ assert_equal 'Lettres T. 6 1602-1637', link['title']
89
+
90
+ assert_nil link['filename']
91
+
92
+ assert_nil link['some random attribute']
93
+
94
+ assert_match /^Peiresc N. de,/, link.text
95
+ assert_match /ntilment. Car je\.\.\.$/, link.text
96
+
97
+ assert_equal './54/1/0/0 | Lettres T. 6 1602-1637 | Peiresc N. de', link.to_s
98
+ end
99
+
100
+ end
101
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: philologic-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-18 00:00:00.000000000Z
12
+ date: 2012-02-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70093876599220 !ruby/object:Gem::Requirement
16
+ requirement: &70128325064720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70093876599220
24
+ version_requirements: *70128325064720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &70093876864820 !ruby/object:Gem::Requirement
27
+ requirement: &70128325064280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70093876864820
35
+ version_requirements: *70128325064280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mocha
38
- requirement: &70093879163480 !ruby/object:Gem::Requirement
38
+ requirement: &70128325063780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70093879163480
46
+ version_requirements: *70128325063780
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc-readme
49
- requirement: &70093879782440 !ruby/object:Gem::Requirement
49
+ requirement: &70128325052240 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.1.2
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70093879782440
57
+ version_requirements: *70128325052240
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &70093879916440 !ruby/object:Gem::Requirement
60
+ requirement: &70128325051400 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70093879916440
68
+ version_requirements: *70128325051400
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
- requirement: &70093880007360 !ruby/object:Gem::Requirement
71
+ requirement: &70128325050940 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70093880007360
79
+ version_requirements: *70128325050940
80
80
  description: Ruby client for interacting with the Philologic API.
81
81
  email:
82
82
  - blair.christensen@gmail.com
@@ -101,6 +101,7 @@ files:
101
101
  - test/data/query_sartre.html
102
102
  - test/data/root_file.html
103
103
  - test/test_philologic_client.rb
104
+ - test/test_philologic_link.rb
104
105
  homepage: https://github.com/blairc/philologic-client/
105
106
  licenses: []
106
107
  post_install_message:
@@ -115,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
116
  version: '0'
116
117
  segments:
117
118
  - 0
118
- hash: -1051070454611838584
119
+ hash: -3858874117340008545
119
120
  required_rubygems_version: !ruby/object:Gem::Requirement
120
121
  none: false
121
122
  requirements:
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  version: '0'
125
126
  segments:
126
127
  - 0
127
- hash: -1051070454611838584
128
+ hash: -3858874117340008545
128
129
  requirements: []
129
130
  rubyforge_project: philologic-client
130
131
  rubygems_version: 1.8.7
@@ -140,3 +141,4 @@ test_files:
140
141
  - test/data/query_sartre.html
141
142
  - test/data/root_file.html
142
143
  - test/test_philologic_client.rb
144
+ - test/test_philologic_link.rb