halation 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,33 @@
1
+ require 'mini_exiftool'
2
+
3
+ module Halation
4
+ # Image interface implementation for ExifTool.
5
+ # Available as apt package `libimage-exiftool-perl`.
6
+ # @see http://www.sno.phy.queensu.ca/~phil/exiftool/
7
+ class ExifToolImage
8
+
9
+ # @param file_path [String] Path to the image file.
10
+ def initialize(file_path)
11
+ @image = MiniExiftool.new(file_path, numerical: true)
12
+ end
13
+
14
+ # Read an Exif tag.
15
+ # @param tag [String, Symbol]
16
+ def [](tag)
17
+ @image[tag]
18
+ end
19
+
20
+ # Write an Exif tag.
21
+ # @param tag [String, Symbol]
22
+ # @param value [String]
23
+ def []=(tag, value)
24
+ @image[tag] = value
25
+ end
26
+
27
+ # Save the Exif data to the image file.
28
+ def save
29
+ @image.save
30
+ end
31
+
32
+ end
33
+ end
@@ -1,4 +1,4 @@
1
1
  module Halation
2
2
  # Current version of Halation.
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: halation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex McLain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-04 00:00:00.000000000 Z
11
+ date: 2016-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mini_exiftool
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.7'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.7.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.7'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.7.2
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: rake
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -120,6 +140,16 @@ files:
120
140
  - README.md
121
141
  - bin/halation
122
142
  - doc/Halation.html
143
+ - doc/Halation/AttrHelpers.html
144
+ - doc/Halation/Coerce.html
145
+ - doc/Halation/Config.html
146
+ - doc/Halation/Config/Camera.html
147
+ - doc/Halation/Config/Lens.html
148
+ - doc/Halation/Engine.html
149
+ - doc/Halation/ExifToolImage.html
150
+ - doc/Halation/Roll.html
151
+ - doc/Halation/Roll/Frame.html
152
+ - doc/Halation/Script.html
123
153
  - doc/_index.html
124
154
  - doc/class_list.html
125
155
  - doc/css/common.css
@@ -136,6 +166,15 @@ files:
136
166
  - doc/method_list.html
137
167
  - doc/top-level-namespace.html
138
168
  - lib/halation.rb
169
+ - lib/halation/coerce.rb
170
+ - lib/halation/config.rb
171
+ - lib/halation/config/camera.rb
172
+ - lib/halation/config/lens.rb
173
+ - lib/halation/engine.rb
174
+ - lib/halation/roll.rb
175
+ - lib/halation/roll/frame.rb
176
+ - lib/halation/script.rb
177
+ - lib/halation/tools/exif_tool/image.rb
139
178
  - lib/halation/version.rb
140
179
  homepage: https://github.com/amclain/halation
141
180
  licenses:
@@ -157,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
196
  version: '0'
158
197
  requirements: []
159
198
  rubyforge_project:
160
- rubygems_version: 2.6.2
199
+ rubygems_version: 2.6.4
161
200
  signing_key:
162
201
  specification_version: 4
163
202
  summary: Add Exif metadata to film photographs.