obo_parser 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/tokens.rb +4 -2
  3. data/obo_parser.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/lib/tokens.rb CHANGED
@@ -23,8 +23,6 @@ module OboParser::Tokens
23
23
  def initialize(str)
24
24
  str.strip!
25
25
  tag, value = str.split(':',2)
26
- @tag = tag.strip
27
-
28
26
  value.strip!
29
27
 
30
28
  # Handle comments
@@ -32,6 +30,7 @@ module OboParser::Tokens
32
30
  @comment = $1
33
31
  value.gsub!(@comment, '')
34
32
  @comment.gsub!(/\A!\s*/, '')
33
+ @comment.strip!
35
34
  end
36
35
 
37
36
  # Break out the xrefs, could be made made robust
@@ -56,6 +55,9 @@ module OboParser::Tokens
56
55
 
57
56
  @value = @value[1..-2].strip if @value[0..0] == "\"" # get rid of quote marks
58
57
  @value = @value[1..-2].strip if @value[0..0] == "'" # get rid of quote marks
58
+
59
+ @tag = tag.strip
60
+ @value.strip!
59
61
  end
60
62
  end
61
63
 
data/obo_parser.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{obo_parser}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mjy"]
12
- s.date = %q{2011-04-06}
12
+ s.date = %q{2011-04-07}
13
13
  s.description = %q{Provides all-in-one object containing the contents of an OBO formatted file. OBO version 1.2 is targeted, though this should work for 1.0. }
14
14
  s.email = %q{diapriid@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obo_parser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - mjy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-06 00:00:00 -04:00
18
+ date: 2011-04-07 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21