bel_parser 1.0.0.alpha.37 → 1.0.0.alpha.38

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: 55df8333bbd12398b1151e81ebc1a3a688d85018
4
- data.tar.gz: cff11bff145bb0bbc763164df9a3b776bc926110
3
+ metadata.gz: 001a0588edf10f348fc50d8cf29e3eb4ebf9f6fe
4
+ data.tar.gz: de07163e5d9f7d381e69565fb8e4d6ecca4fa5d5
5
5
  SHA512:
6
- metadata.gz: 3278fecf5673cb0c2ada17e2d78bce561dbbe27c635ce6739bebe07c824cb4d3aeaf3b6e25405eb5a839323d97b8b43403e58ae96187691c8a3749b2882e8a61
7
- data.tar.gz: cfe4a2287ff327df80b9edc79d44f7b9f076efdcfb3e97fb5b0975cdcb3b841ccf889c7ac543d6464f198243f7f1c937c665abb95b1e1d89942a8fc2dd3f2dff
6
+ metadata.gz: 7616c46a13abef2e8916ab54844ce79c523889c0ab2e38495318553da44aceba911e4e70e8ce203d2480b6078e5bca460a50bae395a0e851e5151bc4ac4cf736
7
+ data.tar.gz: fab28d5ee5438fb53c2c9e5a9a552cc7b973cdf7ca25ac14cd559c2aaa359b165f4ed49cf56be8b8ede83fef154db8bb24ee9cd99e866383987c8b1cef5a88b4
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-15}
14
+ spec.date = %q{2016-05-16}
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.37
1
+ 1.0.0.alpha.38
@@ -52,6 +52,16 @@ module BELParser
52
52
  value.to_s
53
53
  end
54
54
 
55
+ def to_h(hash = {})
56
+ hash.merge!({
57
+ 'short' => short,
58
+ 'long' => long,
59
+ 'return_type' => return_type.to_sym.to_s,
60
+ 'signatures' => signatures.map { |sig| sig.string_form },
61
+ 'description' => description
62
+ })
63
+ end
64
+
55
65
  private
56
66
 
57
67
  def _form_value(form = :short)
@@ -87,6 +87,14 @@ module BELParser
87
87
  value.to_s
88
88
  end
89
89
 
90
+ def to_h(hash = {})
91
+ hash.merge!({
92
+ 'short' => short,
93
+ 'long' => long,
94
+ 'description' => description
95
+ })
96
+ end
97
+
90
98
  private
91
99
 
92
100
  def _form_value(form = :short)
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.37
4
+ version: 1.0.0.alpha.38
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-15 00:00:00.000000000 Z
12
+ date: 2016-05-16 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
  - - "~>"
@@ -374,7 +374,7 @@ homepage: https://github.com/OpenBEL/bel_parser
374
374
  licenses:
375
375
  - Apache-2.0
376
376
  metadata: {}
377
- post_install_message:
377
+ post_install_message:
378
378
  rdoc_options: []
379
379
  require_paths:
380
380
  - lib
@@ -389,10 +389,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
389
389
  - !ruby/object:Gem::Version
390
390
  version: 1.3.1
391
391
  requirements: []
392
- rubyforge_project:
393
- rubygems_version: 2.5.1
394
- signing_key:
392
+ rubyforge_project:
393
+ rubygems_version: 2.6.4
394
+ signing_key:
395
395
  specification_version: 4
396
396
  summary: Parser for Biolgical Expression Language.
397
397
  test_files: []
398
- has_rdoc: