bel_parser 1.0.0.alpha.55 → 1.0.0.alpha.56

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 981319422806855aa5dac3236f61c90a6ebb3dae
4
- data.tar.gz: 359bae084495788f62f17cc46c6fb0072a1e4458
3
+ metadata.gz: 63f744f7f42ef9e4ca74e1b5603582bf856ac6b2
4
+ data.tar.gz: a0348eda0d0560bcd6162c0dfcd64cf3c3090c79
5
5
  SHA512:
6
- metadata.gz: 06b53305167223b4730976ba4a2222df20407d0a7e4d332acdb9838473ef5705a18f242c75c315d536ae0b602db7b5c3884a7c6481582532133d6c91c1ef85fb
7
- data.tar.gz: b7cc488e948bac38049f0f42807ba8ffb7b9a35f66139829720666625775de792aa9226c56a7505290eff1cb09af8005c0dde09c6d933ac2ebc94178ac397e3e
6
+ metadata.gz: 32a09cd1d7c5c4d780c1384ce7892a754fd430c58a571554cc4a2815b4200604d09ead6ba10f6edb9cac865242a5c48bb3f8ee1df04849d6da1fca038e1acb65
7
+ data.tar.gz: 7e93a4eea5d7780dc5f4afc96b1230fa962ddaac0a51f6f2452414fc44f32372c153612c6ad05fdac1ca06cabb8f5edc9e85c62e1f3b6adfa667c6536085665d
data/.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  'Anthony Bargnesi',
12
12
  'Nick Bargnesi',
13
13
  ]
14
- spec.date = %q{2016-05-31}
14
+ spec.date = %q{2016-06-01}
15
15
  spec.email = %q{abargnesi@selventa.com}
16
16
  spec.files = [
17
17
  Dir.glob('lib/**/*.{rb,rl}'),
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.alpha.55
1
+ 1.0.0.alpha.56
@@ -45,6 +45,28 @@ module BELParser
45
45
  !@url.nil?
46
46
  end
47
47
 
48
+ def type
49
+ case
50
+ when uri?
51
+ :uri
52
+ when url?
53
+ :url
54
+ else
55
+ nil
56
+ end
57
+ end
58
+
59
+ def domain
60
+ case
61
+ when uri?
62
+ @uri
63
+ when url?
64
+ @url
65
+ else
66
+ nil
67
+ end
68
+ end
69
+
48
70
  def include?(value)
49
71
  resolved_value =
50
72
  if uri? && @uri_reader
@@ -145,11 +145,19 @@ module BELParser
145
145
  end
146
146
 
147
147
  def self.open_datasets_file
148
- @dataset_file ||= ::DBM.open(_temporary_datasets_file)
148
+ if RUBY_ENGINE =~ /^jruby/i
149
+ @dataset_file ||= ::DBM.new
150
+ else
151
+ @dataset_file ||= ::DBM.open(_temporary_datasets_file)
152
+ end
149
153
  end
150
154
 
151
155
  def self.open_resource_file(url)
152
- @resource_files[url] ||= ::DBM.open(_temporary_resource_file(url))
156
+ if RUBY_ENGINE =~ /^jruby/i
157
+ @resource_files[url] ||= ::DBM.new
158
+ else
159
+ @resource_files[url] ||= ::DBM.open(_temporary_resource_file(url))
160
+ end
153
161
  end
154
162
 
155
163
  def self._temporary_datasets_file
metadata CHANGED
@@ -1,25 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bel_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.55
4
+ version: 1.0.0.alpha.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Bargnesi
8
8
  - Nick Bargnesi
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-31 00:00:00.000000000 Z
12
+ date: 2016-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: sparql-client
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
17
  - - "~>"
19
18
  - !ruby/object:Gem::Version
20
19
  version: 2.0.0
21
- type: :runtime
20
+ name: sparql-client
22
21
  prerelease: false
22
+ type: :runtime
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
@@ -381,7 +381,7 @@ homepage: https://github.com/OpenBEL/bel_parser
381
381
  licenses:
382
382
  - Apache-2.0
383
383
  metadata: {}
384
- post_install_message:
384
+ post_install_message:
385
385
  rdoc_options: []
386
386
  require_paths:
387
387
  - lib
@@ -396,10 +396,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
396
396
  - !ruby/object:Gem::Version
397
397
  version: 1.3.1
398
398
  requirements: []
399
- rubyforge_project:
400
- rubygems_version: 2.5.1
401
- signing_key:
399
+ rubyforge_project:
400
+ rubygems_version: 2.6.4
401
+ signing_key:
402
402
  specification_version: 4
403
403
  summary: Parser for Biolgical Expression Language.
404
404
  test_files: []
405
- has_rdoc: