ffi-gphoto2 0.7.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +19 -0
- data/CHANGELOG.md +16 -1
- data/README.md +2 -2
- data/ffi-gphoto2.gemspec +5 -5
- data/lib/ffi/gphoto2.rb +1 -1
- data/lib/gphoto2/version.rb +1 -1
- metadata +17 -18
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 68c6707f314dca47b5b4e353391e1554dd4b956fcda79238b1764dc418bc10f2
|
4
|
+
data.tar.gz: 9cc025cc080a9eaec85c03b4dad9a08cebf30460696b7808f2007fd262b9cf30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1336018f95112abcd40aa4b8237df0a4d91910f02680724030f2ffda1828f5fc10ca00cbbfb92add234b71b361269bb015720059dc454a07241a58a05496958
|
7
|
+
data.tar.gz: f999e9dabfcba5546722fe91d846e60551d5c6a9496ecf7ab4d8157ccdac202b4bc3c68875e41751a4d681e93469ed6cabd6d147c03be419b3c482309ae65069
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-20.04
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v2
|
10
|
+
- run: |
|
11
|
+
sudo apt-get update
|
12
|
+
sudo apt-get --yes install gcc make libgphoto2-6 libgphoto2-port12
|
13
|
+
sudo ln -s /usr/lib/x86_64-linux-gnu/libgphoto2.so{.6,}
|
14
|
+
sudo ln -s /usr/lib/x86_64-linux-gnu/libgphoto2_port.so{.12,}
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: "3.1.2"
|
18
|
+
- run: bundle install
|
19
|
+
- run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## 0.10.0 (2022-09-02)
|
4
|
+
|
5
|
+
* [CHANGE] Mark `gp_camera_wait_for_event` as a blocking call ([#19]).
|
6
|
+
|
7
|
+
[#19]: https://github.com/zaeleus/ffi-gphoto2/pull/19
|
8
|
+
|
9
|
+
## 0.9.0 (2021-04-17)
|
10
|
+
|
11
|
+
* [CHANGE] Update to ffi 1.15.0. This raises the minimum Ruby version to 2.3.0.
|
12
|
+
|
13
|
+
## 0.8.0 (2020-06-29)
|
14
|
+
|
15
|
+
* [FIX] Fix deprecation warning (`warning: rb_safe_level will be removed in
|
16
|
+
Ruby 3.0`) by updating to ffi 1.12.0.
|
17
|
+
* [CHANGE] Raise minimum Ruby version to 2.0.0, which comes from the dependency
|
18
|
+
on ffi 1.12.0 (specifically 1.11.1).
|
4
19
|
|
5
20
|
## 0.7.1 (2017-01-02)
|
6
21
|
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/ffi-gphoto2.svg)](https://badge.fury.io/rb/ffi-gphoto2)
|
5
|
-
[![Build Status](https://
|
5
|
+
[![Build Status](https://github.com/zaeleus/ffi-gphoto2/actions/workflows/ci.yml/badge.svg)](https://github.com/zaeleus/ffi-gphoto2/actions/workflows/ci.yml)
|
6
6
|
|
7
7
|
**ffi-gphoto2** provides an FFI for common functions in [libgphoto2][gphoto].
|
8
8
|
It also includes a facade to interact with the library in a more
|
@@ -12,7 +12,7 @@ idiomatic Ruby way.
|
|
12
12
|
|
13
13
|
### Prerequisites
|
14
14
|
|
15
|
-
* Ruby >=
|
15
|
+
* Ruby >= 2.3
|
16
16
|
* libgphoto2 >= 2.5.2
|
17
17
|
* libgphoto2_port >= 0.10.1
|
18
18
|
|
data/ffi-gphoto2.gemspec
CHANGED
@@ -21,12 +21,12 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.requirements << 'libgphoto2 >= 2.5.2'
|
23
23
|
spec.requirements << 'libgphoto2_port >= 0.10.1'
|
24
|
-
spec.required_ruby_version = '>=
|
24
|
+
spec.required_ruby_version = '>= 2.3'
|
25
25
|
|
26
|
-
spec.add_development_dependency 'bundler', '~>
|
27
|
-
spec.add_development_dependency 'rake', '~>
|
28
|
-
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.11.0'
|
29
29
|
spec.add_development_dependency 'yard', '~> 0.9.0'
|
30
30
|
|
31
|
-
spec.add_dependency 'ffi', '~> 1.
|
31
|
+
spec.add_dependency 'ffi', '~> 1.15.0'
|
32
32
|
end
|
data/lib/ffi/gphoto2.rb
CHANGED
@@ -57,7 +57,7 @@ module FFI
|
|
57
57
|
attach_function :gp_camera_capture, [Camera.by_ref, CameraCaptureType, CameraFilePath.by_ref, GPContext.by_ref], :int, blocking: true
|
58
58
|
attach_function :gp_camera_trigger_capture, [Camera.by_ref, GPContext.by_ref], :int, blocking: true
|
59
59
|
attach_function :gp_camera_capture_preview, [Camera.by_ref, CameraFile.by_ref, GPContext.by_ref], :int, blocking: true
|
60
|
-
attach_function :gp_camera_wait_for_event, [Camera.by_ref, :int, :pointer, :pointer, GPContext.by_ref], :int
|
60
|
+
attach_function :gp_camera_wait_for_event, [Camera.by_ref, :int, :pointer, :pointer, GPContext.by_ref], :int, blocking: true
|
61
61
|
attach_function :gp_camera_folder_list_files, [Camera.by_ref, :string, CameraList.by_ref, GPContext.by_ref], :int
|
62
62
|
attach_function :gp_camera_folder_list_folders, [Camera.by_ref, :string, CameraList.by_ref, GPContext.by_ref], :int
|
63
63
|
attach_function :gp_camera_file_get_info, [Camera.by_ref, :string, :string, CameraFileInfo.by_ref, GPContext.by_ref], :int
|
data/lib/gphoto2/version.rb
CHANGED
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.10.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: 2022-09-03 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: '
|
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: '
|
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.11.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.11.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,24 +72,24 @@ 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: []
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
+
- ".github/workflows/ci.yml"
|
90
91
|
- ".gitignore"
|
91
92
|
- ".rspec"
|
92
|
-
- ".travis.yml"
|
93
93
|
- CHANGELOG.md
|
94
94
|
- Gemfile
|
95
95
|
- LICENSE.txt
|
@@ -205,7 +205,7 @@ homepage: https://github.com/zaeleus/ffi-gphoto2
|
|
205
205
|
licenses:
|
206
206
|
- MIT
|
207
207
|
metadata: {}
|
208
|
-
post_install_message:
|
208
|
+
post_install_message:
|
209
209
|
rdoc_options: []
|
210
210
|
require_paths:
|
211
211
|
- lib
|
@@ -213,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
213
|
requirements:
|
214
214
|
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version: '
|
216
|
+
version: '2.3'
|
217
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - ">="
|
@@ -222,9 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
requirements:
|
223
223
|
- libgphoto2 >= 2.5.2
|
224
224
|
- libgphoto2_port >= 0.10.1
|
225
|
-
|
226
|
-
|
227
|
-
signing_key:
|
225
|
+
rubygems_version: 3.3.7
|
226
|
+
signing_key:
|
228
227
|
specification_version: 4
|
229
228
|
summary: A Ruby FFI for common functions in libgphoto2
|
230
229
|
test_files:
|
data/.travis.yml
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
sudo: required
|
2
|
-
dist: trusty
|
3
|
-
language: ruby
|
4
|
-
rvm:
|
5
|
-
- 2.3.1
|
6
|
-
before_install:
|
7
|
-
- gem install bundler -v 1.12.5
|
8
|
-
- sudo apt-get -qq update
|
9
|
-
- sudo apt-get install libgphoto2-6 libgphoto2-port10
|
10
|
-
- sudo ln -s /usr/lib/x86_64-linux-gnu/libgphoto2.so{.6,}
|
11
|
-
- sudo ln -s /usr/lib/x86_64-linux-gnu/libgphoto2_port.so{.10,}
|