pollex 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/lib/pollex/semantic_field.rb +1 -1
- data/lib/pollex/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -43,7 +43,7 @@ module Pollex
|
|
43
43
|
# @param id [Integer] ID of SemanticField to find
|
44
44
|
# @return [SemanticField]
|
45
45
|
def self.find(id)
|
46
|
-
self.all.select { |sf| sf.id == id }
|
46
|
+
self.all.select { |sf| sf.id == id }[0] rescue nil
|
47
47
|
end
|
48
48
|
|
49
49
|
# Looks up all SemanticFields matching a given name.
|
data/lib/pollex/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 1.8.
|
118
|
+
rubygems_version: 1.8.25
|
119
119
|
signing_key:
|
120
120
|
specification_version: 3
|
121
121
|
summary: Ruby wrapper for scraping pollex (the Polynesian Lexicon Project)
|