Permalink
Browse files

modified specs and rake task for 0.2.0 version

  • Loading branch information...
1 parent 685a7f6 commit 98cd7a0ec419ac288cf7ca1d6ac52f7d4053b5dc @lonelyelk committed Sep 8, 2008
Showing with 31 additions and 46 deletions.
  1. +6 −1 .manifest
  2. +3 −1 CHANGELOG.rdoc
  3. +1 −1 Rakefile
  4. +17 −17 ext/gphoto4ruby.c
  5. +0 −23 ext/gphoto4ruby.h
  6. +4 −3 gphoto4ruby.gemspec
View
@@ -6,5 +6,10 @@ docs/COPYING
docs/COPYING.LESSER
example.rb
ext/extconf.rb
+ext/gphoto2camera.c
+ext/gphoto2camera.h
+ext/gphoto2camera_event.c
+ext/gphoto2camera_event.h
+ext/gphoto2camera_utilities.c
+ext/gphoto2camera_utilities.h
ext/gphoto4ruby.c
-ext/gphoto4ruby.h
View
@@ -1,9 +1,11 @@
-== master
+== 0.2.0
* to_s and to_f are applied to config values for radio and range types
* delete :all
* TOGGLE (true false) and TEXT configuration type support along with
constants
+* allocation safe ports method
+* separated source in several files
== 0.1.6
View
@@ -7,7 +7,7 @@ desc "Generate RDoc documentation for gphoto4ruby gem."
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include("README.rdoc", "LICENSE", "CHANGELOG.rdoc").
include("docs/COPYING", "docs/COPYING.LESSER").
- include("ext/gphoto4ruby.c")
+ include("ext/gphoto2camera_event.c", "ext/gphoto2camera.c", "ext/gphoto4ruby.c")
rdoc.main = "README.rdoc"
rdoc.title = "GPhoto4Ruby documentation"
rdoc.rdoc_dir = "rdoc"
View
@@ -68,23 +68,23 @@ void Init_gphoto4ruby() {
rb_define_const(rb_cGPhoto2CameraEvent, "EVENT_TYPE_FOLDER_ADDED", EVENT_FOLDER_ADDED);
rb_define_alloc_func(rb_cGPhoto2Camera, camera_allocate);
- rb_define_module_function(rb_cGPhoto2Camera, "ports", camera_class_ports, 0);
- rb_define_method(rb_cGPhoto2Camera, "initialize", camera_initialize, -1);
- rb_define_method(rb_cGPhoto2Camera, "config", camera_get_config, 0);
- rb_define_method(rb_cGPhoto2Camera, "config_merge", camera_config_merge, 1);
- rb_define_method(rb_cGPhoto2Camera, "[]", camera_get_value, -1);
- rb_define_method(rb_cGPhoto2Camera, "[]=", camera_set_value, 2);
- rb_define_method(rb_cGPhoto2Camera, "capture", camera_capture, -1);
- rb_define_method(rb_cGPhoto2Camera, "save", camera_save, -1);
- rb_define_method(rb_cGPhoto2Camera, "delete", camera_delete, -1);
- rb_define_method(rb_cGPhoto2Camera, "folder", camera_folder, 0);
- rb_define_method(rb_cGPhoto2Camera, "subfolders", camera_subfolders, 0);
- rb_define_method(rb_cGPhoto2Camera, "files", camera_files, 0);
- rb_define_method(rb_cGPhoto2Camera, "folder_up", camera_folder_up, 0);
- rb_define_method(rb_cGPhoto2Camera, "folder_down", camera_folder_down, 1);
- rb_define_method(rb_cGPhoto2Camera, "wait", camera_wait, -1);
+ rb_define_module_function(rb_cGPhoto2Camera, "ports", camera_class_ports, 0); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "initialize", camera_initialize, -1); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "config", camera_get_config, 0); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "config_merge", camera_config_merge, 1); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "[]", camera_get_value, -1); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "[]=", camera_set_value, 2); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "capture", camera_capture, -1); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "save", camera_save, -1); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "delete", camera_delete, -1); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "folder", camera_folder, 0); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "subfolders", camera_subfolders, 0); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "files", camera_files, 0); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "folder_up", camera_folder_up, 0); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "folder_down", camera_folder_down, 1); /* in gphoto2camera.c */
+ rb_define_method(rb_cGPhoto2Camera, "wait", camera_wait, -1); /* in gphoto2camera.c */
- rb_define_method(rb_cGPhoto2CameraEvent, "type", camera_event_type, 0);
- rb_define_method(rb_cGPhoto2CameraEvent, "file", camera_event_file, 0);
+ rb_define_method(rb_cGPhoto2CameraEvent, "type", camera_event_type, 0); /* in gphoto2camera_event.c */
+ rb_define_method(rb_cGPhoto2CameraEvent, "file", camera_event_file, 0); /* in gphoto2camera_event.c */
}
View
@@ -1,23 +0,0 @@
-/**
- *
- * Copyright 2008 neq4 company <http://neq4.com>
- * Author: Sergey Kruk <sergey.kruk@gmail.com>
- *
- * This file is part of GPhoto4Ruby.
- *
- * GPhoto4Ruby is free software: you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation, either
- * version 3 of the License, or (at your option) any later version.
- *
- * GPhoto4Ruby is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GPhoto4Ruby. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-
View
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
s.name = "gphoto4ruby"
s.summary = "GPhoto4Ruby is Ruby wrapping around gphoto2 C library"
- s.version = "0.1.6"
- s.date = "2008-09-05"
+ s.version = "0.2.0"
+ s.date = "2008-09-08"
s.authors = ["heq4 company", "Sergey Kruk"]
s.email = "sergey.kruk@gmail.com"
s.homepage = "http://github.com/lonelyelk/gphoto4ruby"
@@ -14,9 +14,10 @@ Gem::Specification.new do |s|
s.rdoc_options << "--charset" << "UTF-8"
s.rdoc_options << "--webcvs" << "http://github.com/lonelyelk/gphoto4ruby/tree/master"
s.extra_rdoc_files = [ "ext/gphoto4ruby.c",
+ "ext/gphoto2camera.c", "ext/gphoto2camera_event.c",
"README.rdoc", "LICENSE", "CHANGELOG.rdoc",
"docs/COPYING", "docs/COPYING.LESSER"]
- s.files = %w(CHANGELOG.rdoc LICENSE README.rdoc Rakefile docs docs/COPYING docs/COPYING.LESSER example.rb ext ext/extconf.rb ext/gphoto4ruby.c ext/gphoto4ruby.h)
+ s.files = %w(CHANGELOG.rdoc LICENSE README.rdoc Rakefile docs docs/COPYING docs/COPYING.LESSER example.rb ext ext/extconf.rb ext/gphoto4ruby.c ext/gphoto2camera.c ext/gphoto2camera.h ext/gphoto2camera_event.c ext/gphoto2camera_event.h ext/gphoto2camera_utilities.c ext/gphoto2camera_utilities.h)
s.extensions = ["ext/extconf.rb"]
end

0 comments on commit 98cd7a0

Please sign in to comment.