exif 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c6e39047ca990d8de0501f004d20125f203f3dc709b8c82e63c41af05689169
4
- data.tar.gz: 2f6328707424b868243624554e3909ac7957a1a1dd6fffdedef4dd98d3a20c77
3
+ metadata.gz: 99fc8c3352a6b7fb6ed711235a8e591ad67e886002e553cce0adf99985fc6cf3
4
+ data.tar.gz: '0815653149598f32ab68d4c06a7cf08038f83a47bbc2ce2190b3b726d128933c'
5
5
  SHA512:
6
- metadata.gz: 5f063d81c93f73a012450e09315aab85afe7c7ac2257d017fa91144f10fc7ea783e6bb3a74470f441b8a373841ac436e2a41ac7340c3bbc989f39f75b311cce0
7
- data.tar.gz: 9632cc061012ed9234ce2f1193d72b71119d40b8a970f8e63004f1f0976de751de4bbf2d68c3752f5ba04eef27322c1a3bbe4de9809b2e8a0befbfbfa9d8a537
6
+ metadata.gz: a0d12c8de1440301baa8f5e6d7c26f0a3b1b91565869ff58628f6552288d46fd264eae9ae73569c24c1fffd4f06c702b9ca031061bebf5d8cab34190ca841f11
7
+ data.tar.gz: 9919292d1b0c6e33a0ca5e883f715c6ff801a5c9ac3fd9e736893ab5d8ac7bbb2a58104952975a006789e714bd850f1226b208840660b44774b80f8d7f213e81
data/ext/exif/data.c CHANGED
@@ -181,7 +181,7 @@ static void exif_corrupt_log_func(ExifLog *log, ExifLogCode code,
181
181
  }
182
182
  }
183
183
 
184
- void init_data() {
184
+ void init_data(void) {
185
185
  int length;
186
186
 
187
187
  rb_cExifData = rb_define_class_under(rb_mExif, "Data", rb_cObject);
data/ext/exif/data.h CHANGED
@@ -1,3 +1,3 @@
1
1
  #pragma once
2
2
 
3
- void init_data();
3
+ void init_data(void);
@@ -447,6 +447,66 @@ const char *exif_entry_to_ivar(ExifEntry *ee) {
447
447
  case EXIF_TAG_GPS_DIFFERENTIAL:
448
448
  return "@gps_differential";
449
449
  break;
450
+ case EXIF_TAG_BODY_SERIAL_NUMBER:
451
+ return "@body_serial_number";
452
+ break;
453
+ case EXIF_TAG_CAMERA_OWNER_NAME:
454
+ return "@camera_owner_name";
455
+ break;
456
+ case EXIF_TAG_COMPOSITE_IMAGE:
457
+ return "@composite_image";
458
+ break;
459
+ case EXIF_TAG_GPS_H_POSITIONING_ERROR:
460
+ return "@gps_h_positioning_error";
461
+ break;
462
+ case EXIF_TAG_IMAGE_DEPTH:
463
+ return "@image_depth";
464
+ break;
465
+ case EXIF_TAG_ISO_SPEED:
466
+ return "@iso_speed";
467
+ break;
468
+ case EXIF_TAG_ISO_SPEEDLatitudeYYY:
469
+ return "@iso_speedlatitudeyyy";
470
+ break;
471
+ case EXIF_TAG_ISO_SPEEDLatitudeZZZ:
472
+ return "@iso_speedlatitudezzz";
473
+ break;
474
+ case EXIF_TAG_LENS_MAKE:
475
+ return "@lens_make";
476
+ break;
477
+ case EXIF_TAG_LENS_MODEL:
478
+ return "@lens_model";
479
+ break;
480
+ case EXIF_TAG_LENS_SERIAL_NUMBER:
481
+ return "@lens_serial_number";
482
+ break;
483
+ case EXIF_TAG_LENS_SPECIFICATION:
484
+ return "@lens_specification";
485
+ break;
486
+ case EXIF_TAG_OFFSET_TIME:
487
+ return "@offset_time";
488
+ break;
489
+ case EXIF_TAG_OFFSET_TIME_DIGITIZED:
490
+ return "@offset_time_digitized";
491
+ break;
492
+ case EXIF_TAG_OFFSET_TIME_ORIGINAL:
493
+ return "@offset_time_original";
494
+ break;
495
+ case EXIF_TAG_RECOMMENDED_EXPOSURE_INDEX:
496
+ return "@recommended_exposure_index";
497
+ break;
498
+ case EXIF_TAG_SENSITIVITY_TYPE:
499
+ return "@sensitivity_type";
500
+ break;
501
+ case EXIF_TAG_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE:
502
+ return "@source_exposure_times_of_composite_image";
503
+ break;
504
+ case EXIF_TAG_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE:
505
+ return "@source_image_number_of_composite_image";
506
+ break;
507
+ case EXIF_TAG_STANDARD_OUTPUT_SENSITIVITY:
508
+ return "@standard_output_sensitivity";
509
+ break;
450
510
  }
451
511
  return 0;
452
512
  }
data/ext/exif/extconf.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'mkmf'
4
4
  $CFLAGS << ' -std=c99 '
5
+ pkg_config('libexif')
5
6
  have_library('exif')
6
7
  have_header('libexif/exif-data.h')
7
8
  create_makefile('exif/exif')
data/lib/exif/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Exif
4
- VERSION = '2.2.1'
4
+ VERSION = '2.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exif
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jian Weihang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-16 00:00:00.000000000 Z
11
+ date: 2022-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.2.15
88
+ rubygems_version: 3.3.7
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Ruby EXIF reader written in C extension.