bel 1.0.1 → 1.1.0

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: 908e31594a6af1d90f0c9f73b8ef47c7593b2fbc
4
- data.tar.gz: ad65172e5a69d3274e965339260d1e0550307702
3
+ metadata.gz: 1aa98c9d68e2e12c4551346143a2e2701785a40c
4
+ data.tar.gz: 49e614d29258ec3f128c81ef6a45cd34076be45a
5
5
  SHA512:
6
- metadata.gz: 57467e0b474808bcb1f2b63a34b2bd48de86cffada5c077a71ba95a139c8dc22c355b7a094c2fc87fdbae8ce4903719e9ea6ce97ab8bb2d0b060c1ed8ed03448
7
- data.tar.gz: 9318c0ff4fcb9b499c400b7466d8a66e7518d77ca72a6f78228e86ab35d2ddf38656fe9fa42a6baebde3a5c3596dc27fb4afcfd1dddba9934299b99217b1aae4
6
+ metadata.gz: d20ba6c9ef4460e0a2ed7dd64b96961b9a1b37c8c7e3f36b8cbe62b3818c67a8226886ac307d7780cada9949216d9a54add114d7ec28ba69fd14d215cc27828c
7
+ data.tar.gz: 968d9fc15f9d3f072828daf805cc30811bf4fe23c874391ce794f48de855f82c8485ee0bf41b6b2368e5975b86115d382178ce668d3d1fdece3cd006c443e795
data/.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  'Nick Bargnesi',
19
19
  'William Hayes'
20
20
  ]
21
+ spec.date = %q{2017-01-13}
21
22
  spec.email = [
22
23
  'abargnesi@selventa.com',
23
24
  'ncatlett@selventa.com',
@@ -60,7 +61,7 @@ Gem::Specification.new do |spec|
60
61
  spec.extensions << 'ext/mri/extconf.rb'
61
62
  spec.required_ruby_version = '>= 2.0.0'
62
63
 
63
- spec.add_runtime_dependency 'bel_parser', '~> 1.0.0'
64
+ spec.add_runtime_dependency 'bel_parser', '~> 1.1.0'
64
65
  spec.add_runtime_dependency 'rdf', '~> 2.0.0'
65
66
  spec.add_runtime_dependency 'rdf-vocab', '~> 2.0.0'
66
67
  spec.add_runtime_dependency 'ffi', '1.9.8'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.1.0
@@ -8,6 +8,7 @@ module BEL::Translator::Plugins
8
8
  class JgfTranslator
9
9
 
10
10
  include ::BEL::Translator
11
+ include ::BEL::Namespace
11
12
 
12
13
  def read(data, options = {})
13
14
  default_resource_index = options.fetch(:default_resource_index) {
@@ -29,7 +30,7 @@ module BEL::Translator::Plugins
29
30
  }
30
31
 
31
32
  objects.each do |nanopub|
32
- unless nanopub.bel_statement.is_a?(::BEL::Nanopub::Statement)
33
+ unless nanopub.bel_statement.is_a?(BELParser::Expression::Model::Statement)
33
34
  nanopub.bel_statement = ::BEL::Nanopub::Nanopub.parse_statement(nanopub)
34
35
  end
35
36
 
@@ -87,7 +88,7 @@ module BEL::Translator::Plugins
87
88
  rel = 'association' unless rel
88
89
 
89
90
  bel_statement = ::BEL::Script.parse(
90
- "#{source_node} #{rel} #{target_node}\n").select { |obj| obj.is_a? ::BEL::Nanopub::Statement }.first
91
+ "#{source_node} #{rel} #{target_node}\n").select { |obj| obj.is_a? BELParser::Expression::Model::Statement }.first
91
92
  end
92
93
  }.compact
93
94
 
@@ -98,7 +99,7 @@ module BEL::Translator::Plugins
98
99
  ::BEL::Script.parse(
99
100
  "#{id_nodes[id]}\n"
100
101
  ).select { |obj|
101
- obj.is_a? ::BEL::Nanopub::Statement
102
+ obj.is_a? BELParser::Expression::Model::Statement
102
103
  }.first
103
104
  }
104
105
  )
metadata CHANGED
@@ -1,90 +1,90 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Bargnesi
8
8
  - Natalie Catlett
9
9
  - Nick Bargnesi
10
10
  - William Hayes
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-06-08 00:00:00.000000000 Z
14
+ date: 2017-01-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
+ name: bel_parser
17
18
  requirement: !ruby/object:Gem::Requirement
18
19
  requirements:
19
20
  - - "~>"
20
21
  - !ruby/object:Gem::Version
21
- version: 1.0.0
22
- name: bel_parser
23
- prerelease: false
22
+ version: 1.1.0
24
23
  type: :runtime
24
+ prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 1.0.0
29
+ version: 1.1.0
30
30
  - !ruby/object:Gem::Dependency
31
+ name: rdf
31
32
  requirement: !ruby/object:Gem::Requirement
32
33
  requirements:
33
34
  - - "~>"
34
35
  - !ruby/object:Gem::Version
35
36
  version: 2.0.0
36
- name: rdf
37
- prerelease: false
38
37
  type: :runtime
38
+ prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: 2.0.0
44
44
  - !ruby/object:Gem::Dependency
45
+ name: rdf-vocab
45
46
  requirement: !ruby/object:Gem::Requirement
46
47
  requirements:
47
48
  - - "~>"
48
49
  - !ruby/object:Gem::Version
49
50
  version: 2.0.0
50
- name: rdf-vocab
51
- prerelease: false
52
51
  type: :runtime
52
+ prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
57
  version: 2.0.0
58
58
  - !ruby/object:Gem::Dependency
59
+ name: ffi
59
60
  requirement: !ruby/object:Gem::Requirement
60
61
  requirements:
61
62
  - - '='
62
63
  - !ruby/object:Gem::Version
63
64
  version: 1.9.8
64
- name: ffi
65
- prerelease: false
66
65
  type: :runtime
66
+ prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - '='
70
70
  - !ruby/object:Gem::Version
71
71
  version: 1.9.8
72
- description: " The BEL gem allows the reading, writing, and processing of BEL (Biological\
73
- \ Expression Language) with a natural DSL. "
72
+ description: " The BEL gem allows the reading, writing, and processing of BEL (Biological
73
+ Expression Language) with a natural DSL. "
74
74
  email:
75
75
  - abargnesi@selventa.com
76
76
  - ncatlett@selventa.com
77
77
  - nbargnesi@selventa.com
78
78
  - whayes@selventa.com
79
79
  executables:
80
+ - bel_compare.rb
80
81
  - bel_summarize.rb
81
- - bel_upgrade.rb
82
- - bel_parse.rb
83
- - bel
84
82
  - bel2rdf.rb
85
- - bel_validate.rb
86
- - bel_compare.rb
83
+ - bel_parse.rb
87
84
  - bel_rdfschema.rb
85
+ - bel_upgrade.rb
86
+ - bel_validate.rb
87
+ - bel
88
88
  extensions:
89
89
  - ext/mri/extconf.rb
90
90
  extra_rdoc_files: []
@@ -249,7 +249,7 @@ homepage: https://github.com/OpenBEL/bel.rb
249
249
  licenses:
250
250
  - Apache-2.0
251
251
  metadata: {}
252
- post_install_message:
252
+ post_install_message:
253
253
  rdoc_options:
254
254
  - "--title"
255
255
  - BEL Ruby Documentation
@@ -285,9 +285,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubyforge_project:
289
- rubygems_version: 2.6.4
290
- signing_key:
288
+ rubyforge_project:
289
+ rubygems_version: 2.6.8
290
+ signing_key:
291
291
  specification_version: 4
292
292
  summary: Process BEL with ruby.
293
293
  test_files: []