pollex 0.2.0 → 0.2.1

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/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 4/2/2013 version 0.2.1
2
+ * SemanticField.find returns a single SemanticField, not an array
3
+
1
4
  4/2/2013 version 0.2.0
2
5
  * SemanticField changes
3
6
  * code -> id
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module Pollex
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
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.0
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.23
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)