ffi-gphoto2 0.6.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -1
- data/CHANGELOG.md +30 -2
- data/README.md +3 -2
- data/ffi-gphoto2.gemspec +7 -6
- data/lib/ffi/gphoto2.rb +4 -3
- data/lib/ffi/gphoto2_port.rb +21 -1
- data/lib/ffi/gphoto2_port/gp_port.rb +17 -0
- data/lib/ffi/gphoto2_port/gp_port_serial_parity.rb +6 -0
- data/lib/ffi/gphoto2_port/gp_port_settings.rb +11 -0
- data/lib/ffi/gphoto2_port/gp_port_settings_serial.rb +12 -0
- data/lib/ffi/gphoto2_port/gp_port_settings_usb.rb +15 -0
- data/lib/ffi/gphoto2_port/gp_port_settings_usb_disk_direct.rb +8 -0
- data/lib/ffi/gphoto2_port/gp_port_settings_usb_scsi.rb +8 -0
- data/lib/gphoto2.rb +1 -2
- data/lib/gphoto2/camera.rb +1 -1
- data/lib/gphoto2/camera/configuration.rb +1 -1
- data/lib/gphoto2/camera_abilities_list.rb +1 -1
- data/lib/gphoto2/camera_file.rb +1 -1
- data/lib/gphoto2/camera_list.rb +1 -1
- data/lib/gphoto2/camera_widgets/camera_widget.rb +1 -1
- data/lib/gphoto2/port.rb +61 -0
- data/lib/gphoto2/port_info_list.rb +1 -1
- data/lib/gphoto2/version.rb +1 -1
- data/spec/gphoto2/port_spec.rb +22 -0
- metadata +30 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 702ccb603f9bf780f315079988a8425bd52aa0f2a6dddb2bfc5f56da30de0ec6
|
4
|
+
data.tar.gz: 4862a3b83e34ba8733ae1db7bb604301015081e86bcebaa61927362e26ee62b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4e885da24b7822d8e6898f7931ffcd038bda8285b9c669a0f1e48e8f5081d06b710827304593270dea08dd3f75cea7c3a14b2bc0f3ba56501a76d2e2c17eef4
|
7
|
+
data.tar.gz: e2dc98f0cbd3af44262b98850b009b9d2da0cd6ee098538a892739dd13f3e009422092f263d5037c4a90dada6b38ef4ac2845b2a560afc07bd7eef464b0a3b5c
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,36 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## Unreleased
|
4
4
|
|
5
|
-
## 0.
|
5
|
+
## 0.9.0 (2021-04-17)
|
6
|
+
|
7
|
+
* [CHANGE] Update to ffi 1.15.0. This raises the minimum Ruby version to 2.3.0.
|
8
|
+
|
9
|
+
## 0.8.0 (2020-06-29)
|
10
|
+
|
11
|
+
* [FIX] Fix deprecation warning (`warning: rb_safe_level will be removed in
|
12
|
+
Ruby 3.0`) by updating to ffi 1.12.0.
|
13
|
+
* [CHANGE] Raise minimum Ruby version to 2.0.0, which comes from the dependency
|
14
|
+
on ffi 1.12.0 (specifically 1.11.1).
|
15
|
+
|
16
|
+
## 0.7.1 (2017-01-02)
|
17
|
+
|
18
|
+
* [FIX] Load `ffi` before any usage of the bindings.
|
19
|
+
|
20
|
+
## 0.7.0 (2016-09-19)
|
21
|
+
|
22
|
+
* [CHANGE] Raise minimum `libgphoto2` version to 2.5.2. This version introduced
|
23
|
+
`gp_port_reset`.
|
24
|
+
* [ADD] Add `FFI::GPhoto2Port::GPPort` struct and related functions to do a
|
25
|
+
port reset.
|
26
|
+
|
27
|
+
## 0.6.1 (2016-08-21)
|
28
|
+
|
29
|
+
* [FIX] `ManagedStruct.release` actually calls `*_free` functions. Autorelease
|
30
|
+
invocations were silently failing with a `TypeError` because the functions
|
31
|
+
expected structs, not pointers.
|
32
|
+
|
33
|
+
## 0.6.0 (2016-07-11)
|
6
34
|
|
7
35
|
* [FIX] Use the correct default filename when a `CameraFile` is a preview.
|
8
36
|
* [ADD] Add `CameraFileInfo` and related operations. `CameraFile#info` only
|
data/README.md
CHANGED
data/ffi-gphoto2.gemspec
CHANGED
@@ -19,13 +19,14 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.requirements << 'libgphoto2 >= 2.5.
|
23
|
-
spec.
|
22
|
+
spec.requirements << 'libgphoto2 >= 2.5.2'
|
23
|
+
spec.requirements << 'libgphoto2_port >= 0.10.1'
|
24
|
+
spec.required_ruby_version = '>= 2.3'
|
24
25
|
|
25
|
-
spec.add_development_dependency 'bundler', '~>
|
26
|
-
spec.add_development_dependency 'rake'
|
27
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
26
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
27
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.10.0'
|
28
29
|
spec.add_development_dependency 'yard', '~> 0.9.0'
|
29
30
|
|
30
|
-
spec.add_dependency 'ffi', '~> 1.
|
31
|
+
spec.add_dependency 'ffi', '~> 1.15.0'
|
31
32
|
end
|
data/lib/ffi/gphoto2.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'ffi'
|
1
2
|
require 'ffi/gphoto2_port'
|
2
3
|
|
3
4
|
module FFI
|
@@ -38,7 +39,7 @@ module FFI
|
|
38
39
|
|
39
40
|
# gphoto2/gphoto2-abilities-list.h
|
40
41
|
attach_function :gp_abilities_list_new, [:pointer], :int
|
41
|
-
attach_function :gp_abilities_list_free, [
|
42
|
+
attach_function :gp_abilities_list_free, [:pointer], :int
|
42
43
|
attach_function :gp_abilities_list_load, [CameraAbilitiesList.by_ref, GPContext.by_ref], :int
|
43
44
|
attach_function :gp_abilities_list_detect, [CameraAbilitiesList.by_ref, GPhoto2Port::GPPortInfoList.by_ref, CameraList.by_ref, GPContext.by_ref], :int
|
44
45
|
attach_function :gp_abilities_list_lookup_model, [CameraAbilitiesList.by_ref, :string], :int
|
@@ -70,12 +71,12 @@ module FFI
|
|
70
71
|
|
71
72
|
# gphoto2/gphoto2-file.h
|
72
73
|
attach_function :gp_file_new, [:pointer], :int
|
73
|
-
attach_function :gp_file_free, [
|
74
|
+
attach_function :gp_file_free, [:pointer], :int
|
74
75
|
attach_function :gp_file_get_data_and_size, [CameraFile.by_ref, :pointer, :pointer], :int
|
75
76
|
|
76
77
|
# gphoto2/gphoto2-list.h
|
77
78
|
attach_function :gp_list_new, [:pointer], :int
|
78
|
-
attach_function :gp_list_free, [
|
79
|
+
attach_function :gp_list_free, [:pointer], :int
|
79
80
|
attach_function :gp_list_count, [CameraList.by_ref], :int
|
80
81
|
attach_function :gp_list_get_name, [CameraList.by_ref, :int, :pointer], :int
|
81
82
|
attach_function :gp_list_get_value, [CameraList.by_ref, :int, :pointer], :int
|
data/lib/ffi/gphoto2_port.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'ffi'
|
2
|
+
|
1
3
|
module FFI
|
2
4
|
module GPhoto2Port
|
3
5
|
extend FFI::Library
|
@@ -8,9 +10,16 @@ module FFI
|
|
8
10
|
require 'ffi/gphoto2_port/gp_port_result'
|
9
11
|
|
10
12
|
# enums
|
13
|
+
require 'ffi/gphoto2_port/gp_port_serial_parity'
|
11
14
|
require 'ffi/gphoto2_port/gp_port_type'
|
12
15
|
|
13
16
|
# structs
|
17
|
+
require 'ffi/gphoto2_port/gp_port_settings_serial'
|
18
|
+
require 'ffi/gphoto2_port/gp_port_settings_usb'
|
19
|
+
require 'ffi/gphoto2_port/gp_port_settings_usb_disk_direct'
|
20
|
+
require 'ffi/gphoto2_port/gp_port_settings_usb_scsi'
|
21
|
+
require 'ffi/gphoto2_port/gp_port_settings'
|
22
|
+
require 'ffi/gphoto2_port/gp_port'
|
14
23
|
require 'ffi/gphoto2_port/gp_port_info'
|
15
24
|
require 'ffi/gphoto2_port/gp_port_info_list'
|
16
25
|
|
@@ -20,12 +29,23 @@ module FFI
|
|
20
29
|
attach_function :gp_port_info_get_type, [GPPortInfo, :pointer], :int
|
21
30
|
|
22
31
|
attach_function :gp_port_info_list_new, [:pointer], :int
|
23
|
-
attach_function :gp_port_info_list_free, [
|
32
|
+
attach_function :gp_port_info_list_free, [:pointer], :int
|
24
33
|
attach_function :gp_port_info_list_load, [GPPortInfoList.by_ref], :int
|
25
34
|
attach_function :gp_port_info_list_lookup_path, [GPPortInfoList.by_ref, :string], :int
|
26
35
|
attach_function :gp_port_info_list_get_info, [GPPortInfoList.by_ref, :int, :pointer], :int
|
27
36
|
|
28
37
|
# libgphoto2_port/gphoto2/gphoto2-port-result.h
|
29
38
|
attach_function :gp_port_result_as_string, [:int], :string
|
39
|
+
|
40
|
+
# libgphoto2_port/gphoto2/gphoto2-port.h
|
41
|
+
attach_function :gp_port_new, [:pointer], :int
|
42
|
+
attach_function :gp_port_free, [:pointer], :int
|
43
|
+
|
44
|
+
attach_function :gp_port_set_info, [GPPort.by_ref, GPPortInfo], :int
|
45
|
+
|
46
|
+
attach_function :gp_port_open, [GPPort.by_ref], :int
|
47
|
+
attach_function :gp_port_close, [GPPort.by_ref], :int
|
48
|
+
|
49
|
+
attach_function :gp_port_reset, [GPPort.by_ref], :int
|
30
50
|
end
|
31
51
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module FFI
|
2
|
+
module GPhoto2Port
|
3
|
+
class GPPort < FFI::ManagedStruct
|
4
|
+
# libgphoto2_port/libgphoto2_port/gphoto2-port.h
|
5
|
+
layout :type, GPPortType,
|
6
|
+
:settings, GPPortSettings,
|
7
|
+
:settings_pending, GPPortSettings,
|
8
|
+
:timeout, :int,
|
9
|
+
:pl, :pointer, # GPPortPrivateLibrary *
|
10
|
+
:pc, :pointer # GPPortPrivateCore *
|
11
|
+
|
12
|
+
def self.release(ptr)
|
13
|
+
FFI::GPhoto2.gp_port_free(ptr)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module FFI
|
2
|
+
module GPhoto2Port
|
3
|
+
class GPPortSettings < FFI::Struct
|
4
|
+
# libgphoto2_port/libgphoto2_port/gphoto2-port.h
|
5
|
+
layout :serial, GPPortSettingsSerial,
|
6
|
+
:usb, GPPortSettingsUSB,
|
7
|
+
:usbdiskdirect, GPPortSettingsUsbDiskDirect,
|
8
|
+
:usbscsi, GPPortSettingsUsbScsi
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module FFI
|
2
|
+
module GPhoto2Port
|
3
|
+
class GPPortSettingsUSB < FFI::Struct
|
4
|
+
# libgphoto2_port/libgphoto2_port/gphoto2-port.h
|
5
|
+
layout :inep, :int,
|
6
|
+
:outep, :int,
|
7
|
+
:intep, :int,
|
8
|
+
:config, :int,
|
9
|
+
:interface, :int,
|
10
|
+
:altsetting, :int,
|
11
|
+
:maxpacketsize, :int,
|
12
|
+
:port, [:char, 64]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/gphoto2.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
require 'logger'
|
2
2
|
|
3
|
-
require 'ffi'
|
4
|
-
|
5
3
|
require 'ffi/gphoto2'
|
6
4
|
require 'ffi/gphoto2_port'
|
7
5
|
|
@@ -35,6 +33,7 @@ require 'gphoto2/camera_folder'
|
|
35
33
|
require 'gphoto2/camera_list'
|
36
34
|
require 'gphoto2/context'
|
37
35
|
require 'gphoto2/entry'
|
36
|
+
require 'gphoto2/port'
|
38
37
|
require 'gphoto2/port_info'
|
39
38
|
require 'gphoto2/port_info_list'
|
40
39
|
require 'gphoto2/port_result'
|
data/lib/gphoto2/camera.rb
CHANGED
@@ -138,7 +138,7 @@ module GPhoto2
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def get_config
|
141
|
-
widget_ptr = FFI::MemoryPointer.new(
|
141
|
+
widget_ptr = FFI::MemoryPointer.new(:pointer)
|
142
142
|
rc = gp_camera_get_config(ptr, widget_ptr, context.ptr)
|
143
143
|
GPhoto2.check!(rc)
|
144
144
|
widget = FFI::GPhoto2::CameraWidget.new(widget_ptr.read_pointer)
|
@@ -32,7 +32,7 @@ module GPhoto2
|
|
32
32
|
private
|
33
33
|
|
34
34
|
def new
|
35
|
-
ptr = FFI::MemoryPointer.new(
|
35
|
+
ptr = FFI::MemoryPointer.new(:pointer)
|
36
36
|
rc = gp_abilities_list_new(ptr)
|
37
37
|
GPhoto2.check!(rc)
|
38
38
|
@ptr = FFI::GPhoto2::CameraAbilitiesList.new(ptr.read_pointer)
|
data/lib/gphoto2/camera_file.rb
CHANGED
data/lib/gphoto2/camera_list.rb
CHANGED
@@ -127,7 +127,7 @@ module GPhoto2
|
|
127
127
|
end
|
128
128
|
|
129
129
|
def get_child(index)
|
130
|
-
widget_ptr = FFI::MemoryPointer.new(
|
130
|
+
widget_ptr = FFI::MemoryPointer.new(:pointer)
|
131
131
|
rc = gp_widget_get_child(ptr, index, widget_ptr)
|
132
132
|
GPhoto2.check!(rc)
|
133
133
|
widget = FFI::GPhoto2::CameraWidget.new(widget_ptr.read_pointer)
|
data/lib/gphoto2/port.rb
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
module GPhoto2
|
2
|
+
class Port
|
3
|
+
include FFI::GPhoto2Port
|
4
|
+
include GPhoto2::Struct
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@ptr = new
|
8
|
+
end
|
9
|
+
|
10
|
+
# @param [PortInfo] info
|
11
|
+
# @return [PortInfo]
|
12
|
+
def info=(info)
|
13
|
+
set_info(info)
|
14
|
+
info
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [void]
|
18
|
+
def open
|
19
|
+
_open
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [void]
|
23
|
+
def close
|
24
|
+
_close
|
25
|
+
end
|
26
|
+
|
27
|
+
# @return [void]
|
28
|
+
def reset
|
29
|
+
_reset
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def new
|
35
|
+
ptr = FFI::MemoryPointer.new(:pointer)
|
36
|
+
rc = gp_port_new(ptr)
|
37
|
+
GPhoto2.check!(rc)
|
38
|
+
FFI::GPhoto2Port::GPPort.new(ptr.read_pointer)
|
39
|
+
end
|
40
|
+
|
41
|
+
def _open
|
42
|
+
rc = gp_port_open(ptr)
|
43
|
+
GPhoto2.check!(rc)
|
44
|
+
end
|
45
|
+
|
46
|
+
def _close
|
47
|
+
rc = gp_port_close(ptr)
|
48
|
+
GPhoto2.check!(rc)
|
49
|
+
end
|
50
|
+
|
51
|
+
def _reset
|
52
|
+
rc = gp_port_reset(ptr)
|
53
|
+
GPhoto2.check!(rc)
|
54
|
+
end
|
55
|
+
|
56
|
+
def set_info(port_info)
|
57
|
+
rc = gp_port_set_info(ptr, port_info.ptr)
|
58
|
+
GPhoto2.check!(rc)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
data/lib/gphoto2/version.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module GPhoto2
|
4
|
+
describe Port do
|
5
|
+
before do
|
6
|
+
allow_any_instance_of(Port).to receive(:new)
|
7
|
+
end
|
8
|
+
|
9
|
+
describe '#info=' do
|
10
|
+
let(:port) { Port.new }
|
11
|
+
|
12
|
+
before do
|
13
|
+
allow(port).to receive(:set_info)
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'returns the input value' do
|
17
|
+
info = double(:port_info)
|
18
|
+
expect(port.info = info).to eq(info)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-gphoto2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Macias
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
47
|
+
version: 3.10.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
54
|
+
version: 3.10.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,15 +72,15 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
75
|
+
version: 1.15.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.
|
83
|
-
description:
|
82
|
+
version: 1.15.0
|
83
|
+
description:
|
84
84
|
email:
|
85
85
|
- zaeleus@gmail.com
|
86
86
|
executables: []
|
@@ -132,9 +132,16 @@ files:
|
|
132
132
|
- lib/ffi/gphoto2/gp_context.rb
|
133
133
|
- lib/ffi/gphoto2/gphoto_device_type.rb
|
134
134
|
- lib/ffi/gphoto2_port.rb
|
135
|
+
- lib/ffi/gphoto2_port/gp_port.rb
|
135
136
|
- lib/ffi/gphoto2_port/gp_port_info.rb
|
136
137
|
- lib/ffi/gphoto2_port/gp_port_info_list.rb
|
137
138
|
- lib/ffi/gphoto2_port/gp_port_result.rb
|
139
|
+
- lib/ffi/gphoto2_port/gp_port_serial_parity.rb
|
140
|
+
- lib/ffi/gphoto2_port/gp_port_settings.rb
|
141
|
+
- lib/ffi/gphoto2_port/gp_port_settings_serial.rb
|
142
|
+
- lib/ffi/gphoto2_port/gp_port_settings_usb.rb
|
143
|
+
- lib/ffi/gphoto2_port/gp_port_settings_usb_disk_direct.rb
|
144
|
+
- lib/ffi/gphoto2_port/gp_port_settings_usb_scsi.rb
|
138
145
|
- lib/ffi/gphoto2_port/gp_port_type.rb
|
139
146
|
- lib/gphoto2.rb
|
140
147
|
- lib/gphoto2/camera.rb
|
@@ -162,6 +169,7 @@ files:
|
|
162
169
|
- lib/gphoto2/camera_widgets/window_camera_widget.rb
|
163
170
|
- lib/gphoto2/context.rb
|
164
171
|
- lib/gphoto2/entry.rb
|
172
|
+
- lib/gphoto2/port.rb
|
165
173
|
- lib/gphoto2/port_info.rb
|
166
174
|
- lib/gphoto2/port_info_list.rb
|
167
175
|
- lib/gphoto2/port_result.rb
|
@@ -184,6 +192,7 @@ files:
|
|
184
192
|
- spec/gphoto2/entry_spec.rb
|
185
193
|
- spec/gphoto2/port_info_list_spec.rb
|
186
194
|
- spec/gphoto2/port_info_spec.rb
|
195
|
+
- spec/gphoto2/port_spec.rb
|
187
196
|
- spec/gphoto2_spec.rb
|
188
197
|
- spec/spec_helper.rb
|
189
198
|
- spec/support/shared_examples/camera/capture_examples.rb
|
@@ -196,7 +205,7 @@ homepage: https://github.com/zaeleus/ffi-gphoto2
|
|
196
205
|
licenses:
|
197
206
|
- MIT
|
198
207
|
metadata: {}
|
199
|
-
post_install_message:
|
208
|
+
post_install_message:
|
200
209
|
rdoc_options: []
|
201
210
|
require_paths:
|
202
211
|
- lib
|
@@ -204,17 +213,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
213
|
requirements:
|
205
214
|
- - ">="
|
206
215
|
- !ruby/object:Gem::Version
|
207
|
-
version: '
|
216
|
+
version: '2.3'
|
208
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
218
|
requirements:
|
210
219
|
- - ">="
|
211
220
|
- !ruby/object:Gem::Version
|
212
221
|
version: '0'
|
213
222
|
requirements:
|
214
|
-
- libgphoto2 >= 2.5.
|
215
|
-
|
216
|
-
rubygems_version: 2.
|
217
|
-
signing_key:
|
223
|
+
- libgphoto2 >= 2.5.2
|
224
|
+
- libgphoto2_port >= 0.10.1
|
225
|
+
rubygems_version: 3.2.15
|
226
|
+
signing_key:
|
218
227
|
specification_version: 4
|
219
228
|
summary: A Ruby FFI for common functions in libgphoto2
|
220
229
|
test_files:
|
@@ -235,6 +244,7 @@ test_files:
|
|
235
244
|
- spec/gphoto2/entry_spec.rb
|
236
245
|
- spec/gphoto2/port_info_list_spec.rb
|
237
246
|
- spec/gphoto2/port_info_spec.rb
|
247
|
+
- spec/gphoto2/port_spec.rb
|
238
248
|
- spec/gphoto2_spec.rb
|
239
249
|
- spec/spec_helper.rb
|
240
250
|
- spec/support/shared_examples/camera/capture_examples.rb
|
@@ -243,4 +253,3 @@ test_files:
|
|
243
253
|
- spec/support/shared_examples/camera/filesystem_examples.rb
|
244
254
|
- spec/support/shared_examples/camera_file_info_examples.rb
|
245
255
|
- spec/support/shared_examples/camera_widget_examples.rb
|
246
|
-
has_rdoc:
|