mini_exiftool 1.3.0 → 1.3.1

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 CHANGED
@@ -1,3 +1,8 @@
1
+ v1.3.1
2
+ - Remove TestEscapeFilename test and releating test photo
3
+ because the latter produces errors on windows systems.
4
+ - Version check in prerelease task.
5
+
1
6
  v1.3.0
2
7
  - MiniExiftool is now ready for Ruby 1.9
3
8
  All tests in the test suite pass. :)
data/Manifest CHANGED
@@ -12,14 +12,12 @@ lib/mini_exiftool.rb
12
12
  setup.rb
13
13
  test/data/Canon.jpg
14
14
  test/data/INFORMATION
15
- test/data/test 36"Bench.jpg
16
15
  test/data/test.jpg
17
16
  test/data/test_special_dates.jpg
18
17
  test/helpers_for_test.rb
19
18
  test/test_class_methods.rb
20
19
  test/test_composite.rb
21
20
  test/test_dumping.rb
22
- test/test_escape_filename.rb
23
21
  test/test_read.rb
24
22
  test/test_read_numerical.rb
25
23
  test/test_save.rb
data/Rakefile CHANGED
@@ -14,4 +14,12 @@ Echoe.new('mini_exiftool') do |p|
14
14
  | http://www.sno.phy.queensu.ca/~phil/exiftool/install.html |
15
15
  +-----------------------------------------------------------------------+
16
16
  }
17
+ p.changelog = 'Changelog'
18
+ task :prerelease do
19
+ require "#{File.dirname(__FILE__)}/lib/mini_exiftool"
20
+ unless p.version == MiniExiftool::VERSION
21
+ $stderr.puts "Version conflict: Release version is #{p.version} but MiniExiftool::VERSION is #{MiniExiftool::VERSION}."
22
+ exit(1)
23
+ end
24
+ end
17
25
  end
@@ -32,7 +32,7 @@ class MiniExiftool
32
32
  attr_reader :filename
33
33
  attr_accessor :numerical, :composite, :convert_encoding, :errors, :timestamps
34
34
 
35
- VERSION = '1.3.0'
35
+ VERSION = '1.3.1'
36
36
 
37
37
  # +opts+ support at the moment
38
38
  # * <code>:numerical</code> for numerical values, default is +false+
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mini_exiftool}
5
- s.version = "1.3.0"
5
+ s.version = "1.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Jan Friedrich"]
9
- s.date = %q{2011-04-07}
8
+ s.authors = [%q{Jan Friedrich}]
9
+ s.date = %q{2011-07-29}
10
10
  s.description = %q{This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).}
11
11
  s.email = %q{janfri26@gmail.com}
12
- s.extra_rdoc_files = ["README", "Tutorial", "lib/mini_exiftool.rb"]
13
- s.files = ["COPYING", "Changelog", "Manifest", "README", "Rakefile", "TODO", "Tutorial", "examples/external_photo.rb", "examples/print_portraits.rb", "examples/shift_time.rb", "lib/mini_exiftool.rb", "setup.rb", "test/data/Canon.jpg", "test/data/INFORMATION", "test/data/test 36\"Bench.jpg", "test/data/test.jpg", "test/data/test_special_dates.jpg", "test/helpers_for_test.rb", "test/test_class_methods.rb", "test/test_composite.rb", "test/test_dumping.rb", "test/test_escape_filename.rb", "test/test_read.rb", "test/test_read_numerical.rb", "test/test_save.rb", "test/test_special.rb", "test/test_special_dates.rb", "test/test_write.rb", "mini_exiftool.gemspec"]
12
+ s.extra_rdoc_files = [%q{README}, %q{Tutorial}, %q{lib/mini_exiftool.rb}]
13
+ s.files = [%q{COPYING}, %q{Changelog}, %q{Manifest}, %q{README}, %q{Rakefile}, %q{TODO}, %q{Tutorial}, %q{examples/external_photo.rb}, %q{examples/print_portraits.rb}, %q{examples/shift_time.rb}, %q{lib/mini_exiftool.rb}, %q{setup.rb}, %q{test/data/Canon.jpg}, %q{test/data/INFORMATION}, %q{test/data/test.jpg}, %q{test/data/test_special_dates.jpg}, %q{test/helpers_for_test.rb}, %q{test/test_class_methods.rb}, %q{test/test_composite.rb}, %q{test/test_dumping.rb}, %q{test/test_read.rb}, %q{test/test_read_numerical.rb}, %q{test/test_save.rb}, %q{test/test_special.rb}, %q{test/test_special_dates.rb}, %q{test/test_write.rb}, %q{mini_exiftool.gemspec}]
14
14
  s.homepage = %q{http://gitorious.org/mini_exiftool}
15
15
  s.post_install_message = %q{
16
16
  +-----------------------------------------------------------------------+
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
19
19
  | http://www.sno.phy.queensu.ca/~phil/exiftool/install.html |
20
20
  +-----------------------------------------------------------------------+
21
21
  }
22
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Mini_exiftool", "--main", "README"]
23
- s.require_paths = ["lib"]
22
+ s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Mini_exiftool}, %q{--main}, %q{README}]
23
+ s.require_paths = [%q{lib}]
24
24
  s.rubyforge_project = %q{mini_exiftool}
25
- s.rubygems_version = %q{1.5.0}
25
+ s.rubygems_version = %q{1.8.5}
26
26
  s.summary = %q{This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).}
27
- s.test_files = ["test/helpers_for_test.rb", "test/test_class_methods.rb", "test/test_composite.rb", "test/test_dumping.rb", "test/test_escape_filename.rb", "test/test_read.rb", "test/test_read_numerical.rb", "test/test_save.rb", "test/test_special.rb", "test/test_special_dates.rb", "test/test_write.rb"]
27
+ s.test_files = [%q{test/helpers_for_test.rb}, %q{test/test_class_methods.rb}, %q{test/test_composite.rb}, %q{test/test_dumping.rb}, %q{test/test_read.rb}, %q{test/test_read_numerical.rb}, %q{test/test_save.rb}, %q{test/test_special.rb}, %q{test/test_special_dates.rb}, %q{test/test_write.rb}]
28
28
 
29
29
  if s.respond_to? :specification_version then
30
30
  s.specification_version = 3
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mini_exiftool
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.0
5
+ version: 1.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jan Friedrich
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-07 00:00:00 +02:00
14
- default_executable:
13
+ date: 2011-07-29 00:00:00 Z
15
14
  dependencies: []
16
15
 
17
16
  description: This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
@@ -39,14 +38,12 @@ files:
39
38
  - setup.rb
40
39
  - test/data/Canon.jpg
41
40
  - test/data/INFORMATION
42
- - test/data/test 36"Bench.jpg
43
41
  - test/data/test.jpg
44
42
  - test/data/test_special_dates.jpg
45
43
  - test/helpers_for_test.rb
46
44
  - test/test_class_methods.rb
47
45
  - test/test_composite.rb
48
46
  - test/test_dumping.rb
49
- - test/test_escape_filename.rb
50
47
  - test/test_read.rb
51
48
  - test/test_read_numerical.rb
52
49
  - test/test_save.rb
@@ -54,7 +51,6 @@ files:
54
51
  - test/test_special_dates.rb
55
52
  - test/test_write.rb
56
53
  - mini_exiftool.gemspec
57
- has_rdoc: true
58
54
  homepage: http://gitorious.org/mini_exiftool
59
55
  licenses: []
60
56
 
@@ -88,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
84
  requirements: []
89
85
 
90
86
  rubyforge_project: mini_exiftool
91
- rubygems_version: 1.5.0
87
+ rubygems_version: 1.8.5
92
88
  signing_key:
93
89
  specification_version: 3
94
90
  summary: This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).
@@ -97,7 +93,6 @@ test_files:
97
93
  - test/test_class_methods.rb
98
94
  - test/test_composite.rb
99
95
  - test/test_dumping.rb
100
- - test/test_escape_filename.rb
101
96
  - test/test_read.rb
102
97
  - test/test_read_numerical.rb
103
98
  - test/test_save.rb
Binary file
@@ -1,25 +0,0 @@
1
- require 'helpers_for_test'
2
-
3
- class TestEscapeFilename < TestCase
4
-
5
- def setup
6
- @temp_file = Tempfile.new('test')
7
- @temp_file.close
8
- @temp_filename = @temp_file.path
9
- @org_filename = File.dirname(__FILE__) + '/data/test 36"Bench.jpg'
10
- FileUtils.cp(@org_filename, @temp_filename)
11
- @mini_exiftool = MiniExiftool.new @temp_filename
12
- end
13
-
14
- def test_access
15
- assert_equal '36" Bench', @mini_exiftool['description']
16
- end
17
-
18
- def test_save
19
- desc = 'another bench'
20
- @mini_exiftool.description = desc
21
- assert @mini_exiftool.save
22
- assert_equal desc, @mini_exiftool.description
23
- end
24
-
25
- end