obo_parser 0.3.2 → 0.3.3
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/VERSION +1 -1
- data/lib/tokens.rb +4 -2
- data/obo_parser.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
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.
|
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-
|
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
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-
|
18
|
+
date: 2011-04-07 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|