gphoto4ruby 0.2.9 → 0.3.0
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.
- data/CHANGELOG.rdoc +4 -0
- data/ext/gphoto2camera.c +2 -0
- data/ext/gphoto2camera_utilities.c +1 -0
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
data/ext/gphoto2camera.c
CHANGED
@@ -463,6 +463,7 @@ VALUE camera_get_config(int argc, VALUE *argv, VALUE self) {
|
|
463
463
|
Data_Get_Struct(self, GPhoto2Camera, c);
|
464
464
|
|
465
465
|
if (strcmp(rb_id2name(rb_to_id(argv[0])), "no_cache") == 0) {
|
466
|
+
gp_widget_free(c->config);
|
466
467
|
gp_result_check(gp_camera_get_config(c->camera, &(c->config), c->context));
|
467
468
|
arr = rb_funcall(cfg, rb_intern("keys"), 0);
|
468
469
|
for (i = 0; i < RARRAY(arr)->len; i++) {
|
@@ -623,6 +624,7 @@ VALUE camera_get_value(int argc, VALUE *argv, VALUE self) {
|
|
623
624
|
Data_Get_Struct(self, GPhoto2Camera, c);
|
624
625
|
|
625
626
|
if (strcmp(rb_id2name(rb_to_id(dir)), "no_cache") == 0) {
|
627
|
+
gp_widget_free(c->config);
|
626
628
|
gp_result_check(gp_camera_get_config(c->camera, &(c->config), c->context));
|
627
629
|
}
|
628
630
|
|
@@ -170,6 +170,7 @@ void saveConfigs(VALUE self, GPhoto2Camera *c) {
|
|
170
170
|
CameraWidgetType widgettype;
|
171
171
|
|
172
172
|
gp_result_check(gp_camera_set_config(c->camera, c->config, c->context));
|
173
|
+
gp_widget_free(c->config);
|
173
174
|
gp_result_check(gp_camera_get_config(c->camera, &(c->config), c->context));
|
174
175
|
cfg_changed = rb_iv_get(self, "@configs_changed");
|
175
176
|
cfgs = rb_iv_get(self, "@configuration");
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gphoto4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- heq4 company
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2008-
|
13
|
+
date: 2008-11-04 00:00:00 +03:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements: []
|
75
75
|
|
76
76
|
rubyforge_project: gphoto4ruby
|
77
|
-
rubygems_version: 1.
|
77
|
+
rubygems_version: 1.3.0
|
78
78
|
signing_key:
|
79
79
|
specification_version: 2
|
80
80
|
summary: GPhoto4Ruby is Ruby wrapping around gphoto2 C library
|