gphoto4ruby 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/VERSION +1 -1
- data/ext/gphoto2camera.c +5 -3
- metadata +26 -40
data/CHANGELOG.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.4
|
data/ext/gphoto2camera.c
CHANGED
@@ -165,10 +165,8 @@ VALUE camera_allocate(VALUE klass) {
|
|
165
165
|
c->lastName[0] = '\0';
|
166
166
|
c->context = gp_context_new();
|
167
167
|
c->disposed = 0;
|
168
|
+
c->config = 0;
|
168
169
|
gp_result_check(gp_camera_new(&(c->camera)));
|
169
|
-
gp_result_check(gp_camera_get_config(c->camera, &(c->config), c->context));
|
170
|
-
gp_result_check(gp_camera_ref(c->camera));
|
171
|
-
gp_result_check(gp_camera_get_abilities (c->camera, &((*c).abilities)));
|
172
170
|
return Data_Wrap_Struct(klass, camera_mark, camera_free, c);
|
173
171
|
}
|
174
172
|
|
@@ -212,6 +210,10 @@ VALUE camera_initialize(int argc, VALUE *argv, VALUE self) {
|
|
212
210
|
rb_raise(rb_eArgError, "Wrong number of arguments (%d for 0 or 1)", argc);
|
213
211
|
return Qnil;
|
214
212
|
}
|
213
|
+
|
214
|
+
gp_result_check(gp_camera_get_config(c->camera, &(c->config), c->context));
|
215
|
+
gp_result_check(gp_camera_ref(c->camera));
|
216
|
+
gp_result_check(gp_camera_get_abilities (c->camera, &((*c).abilities)));
|
215
217
|
|
216
218
|
cfgs = rb_hash_new();
|
217
219
|
populateWithConfigs(c->config, cfgs);
|
metadata
CHANGED
@@ -1,31 +1,24 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gphoto4ruby
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 4
|
8
|
-
- 3
|
9
|
-
version: 0.4.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.4
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- neq4 company
|
13
9
|
- Sergey Kruk
|
14
10
|
autorequire:
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2010-05-14 00:00:00 +04:00
|
19
|
-
default_executable:
|
13
|
+
date: 2013-02-11 00:00:00.000000000Z
|
20
14
|
dependencies: []
|
21
|
-
|
22
|
-
|
15
|
+
description: GPhoto4Ruby is used to control PPTP cameras (the ones that can be controlled
|
16
|
+
with gphoto2) using power of ruby.
|
23
17
|
email: sergey.kruk@gmail.com
|
24
18
|
executables: []
|
25
|
-
|
26
|
-
extensions:
|
19
|
+
extensions:
|
27
20
|
- ext/extconf.rb
|
28
|
-
extra_rdoc_files:
|
21
|
+
extra_rdoc_files:
|
29
22
|
- CHANGELOG.rdoc
|
30
23
|
- LICENSE
|
31
24
|
- README.rdoc
|
@@ -34,7 +27,7 @@ extra_rdoc_files:
|
|
34
27
|
- ext/gphoto2camera.c
|
35
28
|
- ext/gphoto2camera_event.c
|
36
29
|
- ext/gphoto4ruby.c
|
37
|
-
files:
|
30
|
+
files:
|
38
31
|
- CHANGELOG.rdoc
|
39
32
|
- LICENSE
|
40
33
|
- README.rdoc
|
@@ -51,41 +44,34 @@ files:
|
|
51
44
|
- ext/gphoto2camera_utilities.c
|
52
45
|
- ext/gphoto2camera_utilities.h
|
53
46
|
- ext/gphoto4ruby.c
|
54
|
-
has_rdoc: true
|
55
47
|
homepage: http://github.com/lonelyelk/gphoto4ruby
|
56
48
|
licenses: []
|
57
|
-
|
58
49
|
post_install_message:
|
59
|
-
rdoc_options:
|
50
|
+
rdoc_options:
|
60
51
|
- --main
|
61
52
|
- README.rdoc
|
62
53
|
- --charset
|
63
54
|
- UTF-8
|
64
55
|
- --webcvs
|
65
56
|
- http://github.com/lonelyelk/gphoto4ruby/tree/master
|
66
|
-
|
67
|
-
require_paths:
|
57
|
+
require_paths:
|
68
58
|
- lib
|
69
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
requirements:
|
78
|
-
- -
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
|
81
|
-
- 0
|
82
|
-
version: "0"
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
83
71
|
requirements: []
|
84
|
-
|
85
72
|
rubyforge_project: gphoto4ruby
|
86
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.8.17
|
87
74
|
signing_key:
|
88
75
|
specification_version: 3
|
89
76
|
summary: GPhoto4Ruby is Ruby wrapping around gphoto2 C library
|
90
77
|
test_files: []
|
91
|
-
|