pollex 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *.gem
2
+ .yardoc
data/CHANGELOG ADDED
@@ -0,0 +1,8 @@
1
+ 3/5/2013 version 0.0.3
2
+ * Minor bug-fix, adding version and changelog
3
+
4
+ 3/5/2013 version 0.0.2
5
+ * Adding YARD documentation for all classes
6
+
7
+ 3/4/2013 version 0.0.1
8
+ * First release
data/lib/pollex.rb CHANGED
@@ -4,7 +4,15 @@ end
4
4
  require 'nokogiri'
5
5
  require 'lrucache'
6
6
 
7
- ['pollex_class', 'scraper', 'entry', 'language', 'reconstruction',
8
- 'semantic_field', 'source'].each do |file|
7
+ [
8
+ 'version',
9
+ 'pollex_class',
10
+ 'scraper',
11
+ 'entry',
12
+ 'language',
13
+ 'reconstruction',
14
+ 'semantic_field',
15
+ 'source'
16
+ ].each do |file|
9
17
  require File.dirname(__FILE__) + "/pollex/#{file}.rb"
10
18
  end
@@ -88,7 +88,6 @@ module Pollex
88
88
  # [:count, 'td[3]/text()']
89
89
  # ])
90
90
  def get_all(klass, path, attr_infos, table_num = 0)
91
- puts "Connecting to http://pollex.org.nz#{path} ..."
92
91
  page = open_with_cache(path)
93
92
 
94
93
  rows = page.css('table')[table_num].css('tr')
@@ -0,0 +1,3 @@
1
+ module Pollex
2
+ VERSION = '0.0.3'
3
+ end
data/pollex.gemspec CHANGED
@@ -1,9 +1,11 @@
1
+ require File.expand_path('../lib/pollex/version', __FILE__)
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = 'pollex'
3
- s.version = '0.0.2'
4
- s.date = '2013-03-04'
5
+ s.version = Pollex::VERSION
6
+
5
7
  s.summary = "Ruby wrapper for scraping pollex (the Polynesian Lexicon Project)"
6
- s.description = ""
8
+ s.description = s.summary
7
9
  s.authors = ["Alex Nisnevich"]
8
10
  s.email = 'alex.nisnevich@gmail.com'
9
11
  s.homepage = 'http://github.com/AlexNisnevich/pollex'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pollex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-04 00:00:00.000000000 Z
12
+ date: 2013-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -43,12 +43,14 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: ''
46
+ description: Ruby wrapper for scraping pollex (the Polynesian Lexicon Project)
47
47
  email: alex.nisnevich@gmail.com
48
48
  executables: []
49
49
  extensions: []
50
50
  extra_rdoc_files: []
51
51
  files:
52
+ - .gitignore
53
+ - CHANGELOG
52
54
  - lib/pollex.rb
53
55
  - lib/pollex/entry.rb
54
56
  - lib/pollex/language.rb
@@ -58,6 +60,7 @@ files:
58
60
  - lib/pollex/scraper.rb
59
61
  - lib/pollex/semantic_field.rb
60
62
  - lib/pollex/source.rb
63
+ - lib/pollex/version.rb
61
64
  - pollex.gemspec
62
65
  homepage: http://github.com/AlexNisnevich/pollex
63
66
  licenses: []