inigorb 0.27.1 → 0.27.4

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
  SHA256:
3
- metadata.gz: 81ba6c48e0f8c6f9e555258f5af17241394896c9bb7c960834db26a6fbffcf6c
4
- data.tar.gz: 604e60580f1978c5fbf2a9dd3fc5da987d5106f17559ca838dc0041b060598c3
3
+ metadata.gz: 61225748fde7b180e704d9e45ee2f831eaad0374a2b2164e614f921a48aef653
4
+ data.tar.gz: 4d077ed1e60e36916bb104d6c7a0b3e7a6a5134ff39ac0ce52209cdefcd694bc
5
5
  SHA512:
6
- metadata.gz: 6dcd1920a565e0abdcc9f460eaca77835d6c19f87f3d9fb85a5d34485b0b98f4c99500c7788272826f5f28f51a1fbddb74c13e039022f6e6ce2d74fb90bc0be4
7
- data.tar.gz: 25c131203167a2d70eb51bfdf9c263317706395c8bb102e7baae88f4ecd5c9a45218a39a64b31daac444d719027b21a79473abcfac9d4e187942c0fbc629d60a
6
+ metadata.gz: ee3e3bd4854fb47afb922b985b6ec77638a14dd778618d503d74b846e24f63b6d5c7aeeda123e03ca5ed8148d42ed556d847f28a988da0d80fa80f46665acc38
7
+ data.tar.gz: e71610eb47bbc0416792de36948cf8a9e27b999f4d65695951a3c5f9ff7717f39c8c5646557f753b1ef375dde48f9f8f2ca42624c6fae381259c4f49b1ea6a9b
data/lib/ffimod.rb CHANGED
@@ -11,12 +11,13 @@ module Inigo
11
11
  end
12
12
 
13
13
  if system_name == 'linux'
14
- if machine == 'x86_64' && ['64bit', 'universal'].include?(RUBY_PLATFORM.match(/(\d+)/)[0])
15
- return 'amd64'
16
- elsif machine == 'aarch64'
14
+ if machine == 'aarch64'
17
15
  return 'arm64'
18
- elsif machine == 'x86_64' && RUBY_PLATFORM.match?(/(i\d86|x\d86)/)
19
- return '386'
16
+ # 32 bits systems bindings support is on the way
17
+ # elsif RUBY_PLATFORM.match?(/(i\d86|x\d86)/)
18
+ # return '386'
19
+ elsif machine == 'x86_64'
20
+ return 'amd64'
20
21
  elsif machine.start_with?('arm') # armv7l
21
22
  return 'arm'
22
23
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/inigorb.rb CHANGED
@@ -158,14 +158,14 @@ module Inigo
158
158
 
159
159
  config[:schema] = FFI::MemoryPointer.from_string(schema.to_s.encode('UTF-8')) if schema
160
160
 
161
- @@path = settings.fetch('INIGO_PATH', '/query')
161
+ @@path = settings.fetch('INIGO_PATH', '/graphql')
162
162
 
163
163
  # Create Inigo instance
164
164
  @@instance = Inigo.create(config.pointer.address)
165
165
 
166
166
  error = Inigo.check_lasterror
167
167
  if error.length != 0
168
- puts "INIGO: #{error.read_string}"
168
+ puts "INIGO: #{error}"
169
169
  end
170
170
 
171
171
  if @@instance == 0
@@ -201,4 +201,4 @@ module Inigo
201
201
  end
202
202
 
203
203
  end
204
- end
204
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inigorb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.1
4
+ version: 0.27.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inigo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2023-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt