bel 0.3.0.beta2-x86-mingw32 → 0.3.0.beta3-x86-mingw32

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c870a2cbd58a566166673d8a6a2082c794af9526
4
+ data.tar.gz: 2e4a488fd7fb8a73de98ef3d36c99055ca46e805
5
+ SHA512:
6
+ metadata.gz: dd1030fff1a9d126b3d07ddae18b51057d70d15e0cb4b6027836388c5fc75468986746c5e3b7c5fb9b5f8d5425932a9cb47a5454fdcb1fc28ef1eb78390e77c6
7
+ data.tar.gz: 004650aa745e8cc22bdc79757c165e26ef2a02f6c628c2d99d949fcb85a2f0f73c5caf93ea0b9712456535a9cec8802e3106b0f5cc7b1d47e20f059ab165b949
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'bel'
3
- spec.version = '0.3.0.beta2'
3
+ spec.version = '0.3.0.beta3'
4
4
  spec.summary = '''
5
5
  Process BEL with ruby.
6
6
  '''.gsub(%r{^\s+}, ' ').gsub(%r{\n}, '')
@@ -48,9 +48,7 @@ Gem::Specification.new do |spec|
48
48
  spec.required_ruby_version = '>= 1.9.2'
49
49
 
50
50
  # runtime
51
- # ffi 1.9.6 is released for all platforms on rubygems.org
52
- # - before upgrading check each platform gem is present in the new version
53
- spec.add_dependency 'ffi', '1.9.6'
51
+ spec.add_dependency 'ffi', '1.9.8'
54
52
 
55
53
  # test rdf functionality
56
54
  spec.add_development_dependency 'uuid', '~> 2.3'
Binary file
Binary file
data/lib/bel.rb CHANGED
@@ -3,6 +3,7 @@ require_relative 'libbel'
3
3
  require_relative 'bel/completion'
4
4
  require_relative 'bel/language'
5
5
  require_relative 'bel/namespace'
6
+ require_relative 'bel/version'
6
7
  include BEL::Language
7
8
  include BEL::Namespace
8
9
 
@@ -0,0 +1,3 @@
1
+ module BEL
2
+ VERSION = '0.3.0.beta3'
3
+ end
@@ -6,6 +6,34 @@ module LibBEL
6
6
  defined?(RUBY_ENGINE) && ("rbx" == RUBY_ENGINE)
7
7
  end
8
8
 
9
+ # @api_private
10
+ # Determines the correct extension path for your ruby version
11
+ def extension_path(ruby_version = RUBY_VERSION)
12
+ version =
13
+ case ruby_version
14
+ when %r{1\.9}
15
+ '1.9'
16
+ when %r{2\.0}
17
+ '2.0'
18
+ when %r{2\.1}
19
+ '2.1'
20
+ when %r{2\.2}
21
+ '2.1' # 2.2 is compatible with 2.1, but cannot cross compile 2.2
22
+ else
23
+ fail RuntimeError.new("Do not support Ruby #{RUBY_VERSION}.")
24
+ end
25
+ extension_path = File.join(
26
+ File.expand_path(File.dirname(__FILE__)),
27
+ version
28
+ )
29
+ if !File.readable?(extension_path)
30
+ msg = "Extension path cannot be read: #{extension_path}"
31
+ fail IOError.new(msg)
32
+ end
33
+
34
+ extension_path
35
+ end
36
+
9
37
  # @api_private
10
38
  # Determine FFI constant for this ruby engine.
11
39
  def find_ffi
@@ -29,7 +57,7 @@ module LibBEL
29
57
  end
30
58
 
31
59
  # @api_private
32
- # Loads the libkyotocabinet shared library.
60
+ # Loads the libbel shared library.
33
61
  def load_libBEL
34
62
  ffi_module = find_ffi
35
63
  extend ffi_module::Library
@@ -38,17 +66,28 @@ module LibBEL
38
66
  # libbel.bundle: Mac OSX
39
67
  messages = []
40
68
  library_loaded = ['libbel.so', 'libbel.bundle'].map { |library_file|
41
- File.join(
42
- File.expand_path(File.dirname(__FILE__)),
43
- library_file
44
- )
45
- }.any? do |library_path|
69
+ [
70
+ library_file,
71
+ File.join(
72
+ File.expand_path(File.dirname(__FILE__)),
73
+ library_file
74
+ )
75
+ ]
76
+ }.any? do |library_file, library_path|
77
+ # Try loading top-level shared library.
46
78
  begin
47
79
  ffi_lib library_path
48
80
  true
49
- rescue LoadError => exception
50
- messages << exception.to_s
51
- false
81
+ rescue LoadError => exception1
82
+ # Try loading version-specific shared library.
83
+ begin
84
+ ffi_lib File.join(extension_path, library_file)
85
+ true
86
+ rescue LoadError => exception2
87
+ messages << exception1.to_s
88
+ messages << exception2.to_s
89
+ false
90
+ end
52
91
  end
53
92
  end
54
93
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.beta2
5
- prerelease: 6
4
+ version: 0.3.0.beta3
6
5
  platform: x86-mingw32
7
6
  authors:
8
7
  - Anthony Bargnesi
@@ -12,170 +11,150 @@ authors:
12
11
  autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2015-03-14 00:00:00.000000000 Z
14
+ date: 2015-03-16 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: ffi
19
18
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
19
  requirements:
22
20
  - - '='
23
21
  - !ruby/object:Gem::Version
24
- version: 1.9.6
22
+ version: 1.9.8
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
27
  - - '='
31
28
  - !ruby/object:Gem::Version
32
- version: 1.9.6
29
+ version: 1.9.8
33
30
  - !ruby/object:Gem::Dependency
34
31
  name: uuid
35
32
  requirement: !ruby/object:Gem::Requirement
36
- none: false
37
33
  requirements:
38
- - - ~>
34
+ - - "~>"
39
35
  - !ruby/object:Gem::Version
40
36
  version: '2.3'
41
37
  type: :development
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ~>
41
+ - - "~>"
47
42
  - !ruby/object:Gem::Version
48
43
  version: '2.3'
49
44
  - !ruby/object:Gem::Dependency
50
45
  name: addressable
51
46
  requirement: !ruby/object:Gem::Requirement
52
- none: false
53
47
  requirements:
54
- - - ~>
48
+ - - "~>"
55
49
  - !ruby/object:Gem::Version
56
50
  version: '2.3'
57
51
  type: :development
58
52
  prerelease: false
59
53
  version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
54
  requirements:
62
- - - ~>
55
+ - - "~>"
63
56
  - !ruby/object:Gem::Version
64
57
  version: '2.3'
65
58
  - !ruby/object:Gem::Dependency
66
59
  name: rdf
67
60
  requirement: !ruby/object:Gem::Requirement
68
- none: false
69
61
  requirements:
70
- - - ~>
62
+ - - "~>"
71
63
  - !ruby/object:Gem::Version
72
64
  version: '1.1'
73
65
  type: :development
74
66
  prerelease: false
75
67
  version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
68
  requirements:
78
- - - ~>
69
+ - - "~>"
79
70
  - !ruby/object:Gem::Version
80
71
  version: '1.1'
81
72
  - !ruby/object:Gem::Dependency
82
73
  name: bundler
83
74
  requirement: !ruby/object:Gem::Requirement
84
- none: false
85
75
  requirements:
86
- - - ~>
76
+ - - "~>"
87
77
  - !ruby/object:Gem::Version
88
78
  version: '1.7'
89
79
  type: :development
90
80
  prerelease: false
91
81
  version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
82
  requirements:
94
- - - ~>
83
+ - - "~>"
95
84
  - !ruby/object:Gem::Version
96
85
  version: '1.7'
97
86
  - !ruby/object:Gem::Dependency
98
87
  name: rake
99
88
  requirement: !ruby/object:Gem::Requirement
100
- none: false
101
89
  requirements:
102
- - - ~>
90
+ - - "~>"
103
91
  - !ruby/object:Gem::Version
104
92
  version: '10.4'
105
93
  type: :development
106
94
  prerelease: false
107
95
  version_requirements: !ruby/object:Gem::Requirement
108
- none: false
109
96
  requirements:
110
- - - ~>
97
+ - - "~>"
111
98
  - !ruby/object:Gem::Version
112
99
  version: '10.4'
113
100
  - !ruby/object:Gem::Dependency
114
101
  name: rake-compiler
115
102
  requirement: !ruby/object:Gem::Requirement
116
- none: false
117
103
  requirements:
118
- - - ~>
104
+ - - "~>"
119
105
  - !ruby/object:Gem::Version
120
106
  version: '0.9'
121
107
  type: :development
122
108
  prerelease: false
123
109
  version_requirements: !ruby/object:Gem::Requirement
124
- none: false
125
110
  requirements:
126
- - - ~>
111
+ - - "~>"
127
112
  - !ruby/object:Gem::Version
128
113
  version: '0.9'
129
114
  - !ruby/object:Gem::Dependency
130
115
  name: rspec
131
116
  requirement: !ruby/object:Gem::Requirement
132
- none: false
133
117
  requirements:
134
- - - ~>
118
+ - - "~>"
135
119
  - !ruby/object:Gem::Version
136
120
  version: '3.2'
137
121
  type: :development
138
122
  prerelease: false
139
123
  version_requirements: !ruby/object:Gem::Requirement
140
- none: false
141
124
  requirements:
142
- - - ~>
125
+ - - "~>"
143
126
  - !ruby/object:Gem::Version
144
127
  version: '3.2'
145
128
  - !ruby/object:Gem::Dependency
146
129
  name: yard
147
130
  requirement: !ruby/object:Gem::Requirement
148
- none: false
149
131
  requirements:
150
- - - ~>
132
+ - - "~>"
151
133
  - !ruby/object:Gem::Version
152
134
  version: '0.8'
153
135
  type: :development
154
136
  prerelease: false
155
137
  version_requirements: !ruby/object:Gem::Requirement
156
- none: false
157
138
  requirements:
158
- - - ~>
139
+ - - "~>"
159
140
  - !ruby/object:Gem::Version
160
141
  version: '0.8'
161
142
  - !ruby/object:Gem::Dependency
162
143
  name: rdoc
163
144
  requirement: !ruby/object:Gem::Requirement
164
- none: false
165
145
  requirements:
166
- - - ~>
146
+ - - "~>"
167
147
  - !ruby/object:Gem::Version
168
148
  version: '4.2'
169
149
  type: :development
170
150
  prerelease: false
171
151
  version_requirements: !ruby/object:Gem::Requirement
172
- none: false
173
152
  requirements:
174
- - - ~>
153
+ - - "~>"
175
154
  - !ruby/object:Gem::Version
176
155
  version: '4.2'
177
- description: ! ' The BEL gem allows the reading, writing, and processing of BEL (Biological
178
- Expression Language) with a natural DSL. '
156
+ description: " The BEL gem allows the reading, writing, and processing of BEL (Biological
157
+ Expression Language) with a natural DSL. "
179
158
  email:
180
159
  - abargnesi@selventa.com
181
160
  - ncatlett@selventa.com
@@ -192,55 +171,59 @@ executables:
192
171
  extensions: []
193
172
  extra_rdoc_files: []
194
173
  files:
195
- - lib/util.rb
196
- - lib/libbel.rb
197
- - lib/bel/quoting.rb
198
- - lib/bel/rdf.rb
199
- - lib/bel/completion.rb
200
- - lib/bel/completion_rule.rb
201
- - lib/bel/script.rb
202
- - lib/bel/language.rb
203
- - lib/bel/namespace.rb
204
- - lib/features.rb
205
- - lib/bel.rb
206
- - ext/mri/bel-token.c
207
- - ext/mri/bel-ast.c
208
- - ext/mri/bel-tokenize-term.c
209
- - ext/mri/libbel.c
210
- - ext/mri/bel-parser.c
211
- - ext/mri/bel-parse-statement.c
212
- - ext/mri/bel-parse-term.c
213
- - ext/mri/bel-node-stack.c
214
- - ext/mri/bel-token.h
215
- - ext/mri/bel-node-stack.h
216
- - ext/mri/bel-parser.h
217
- - ext/mri/bel-ast.h
218
- - ext/mri/libbel.def
219
- - bel.gemspec
220
- - LICENSE
221
174
  - INSTALL.md
222
175
  - INSTALL_RUBY.md
176
+ - LICENSE
223
177
  - README.md
224
- - bin/bel_summarize
225
- - bin/bel_rdfschema
226
- - bin/bel_upgrade_term
178
+ - bel.gemspec
227
179
  - bin/bel2rdf
228
- - bin/bel_parse
229
180
  - bin/bel_compare
181
+ - bin/bel_parse
182
+ - bin/bel_rdfschema
183
+ - bin/bel_summarize
230
184
  - bin/bel_upgrade
185
+ - bin/bel_upgrade_term
186
+ - ext/mri/bel-ast.c
187
+ - ext/mri/bel-ast.h
188
+ - ext/mri/bel-node-stack.c
189
+ - ext/mri/bel-node-stack.h
190
+ - ext/mri/bel-parse-statement.c
191
+ - ext/mri/bel-parse-term.c
192
+ - ext/mri/bel-parser.c
193
+ - ext/mri/bel-parser.h
194
+ - ext/mri/bel-token.c
195
+ - ext/mri/bel-token.h
196
+ - ext/mri/bel-tokenize-term.c
231
197
  - ext/mri/extconf.rb
232
- - lib/libbel.so
198
+ - ext/mri/libbel.c
199
+ - ext/mri/libbel.def
200
+ - lib/1.9/libbel.so
201
+ - lib/2.0/libbel.so
202
+ - lib/2.1/libbel.so
203
+ - lib/bel.rb
204
+ - lib/bel/completion.rb
205
+ - lib/bel/completion_rule.rb
206
+ - lib/bel/language.rb
207
+ - lib/bel/namespace.rb
208
+ - lib/bel/quoting.rb
209
+ - lib/bel/rdf.rb
210
+ - lib/bel/script.rb
211
+ - lib/bel/version.rb
212
+ - lib/features.rb
213
+ - lib/libbel.rb
214
+ - lib/util.rb
233
215
  homepage: https://github.com/OpenBEL/bel.rb
234
216
  licenses:
235
217
  - Apache-2.0
218
+ metadata: {}
236
219
  post_install_message:
237
220
  rdoc_options:
238
- - --title
221
+ - "--title"
239
222
  - BEL Ruby Documentation
240
- - --main
223
+ - "--main"
241
224
  - README.md
242
- - --line-numbers
243
- - --exclude
225
+ - "--line-numbers"
226
+ - "--exclude"
244
227
  - lib/bel/script.rb
245
228
  - README.md
246
229
  - INSTALL.md
@@ -249,21 +232,19 @@ rdoc_options:
249
232
  require_paths:
250
233
  - lib
251
234
  required_ruby_version: !ruby/object:Gem::Requirement
252
- none: false
253
235
  requirements:
254
- - - ! '>='
236
+ - - ">="
255
237
  - !ruby/object:Gem::Version
256
238
  version: 1.9.2
257
239
  required_rubygems_version: !ruby/object:Gem::Requirement
258
- none: false
259
240
  requirements:
260
- - - ! '>'
241
+ - - ">"
261
242
  - !ruby/object:Gem::Version
262
243
  version: 1.3.1
263
244
  requirements: []
264
245
  rubyforge_project:
265
- rubygems_version: 1.8.23.2
246
+ rubygems_version: 2.2.2
266
247
  signing_key:
267
- specification_version: 3
248
+ specification_version: 4
268
249
  summary: Process BEL with ruby.
269
250
  test_files: []