ruby-exiv2 0.5 → 0.6

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/test/image.rb CHANGED
@@ -78,7 +78,16 @@ class ImageTest < Test::Unit::TestCase
78
78
  end
79
79
  end
80
80
 
81
+ # test for type errors when writing non-convertible values
82
+ def test_typerror
83
+ open_test_file "exiv2-fujifilm-finepix-s2pro.jpg" do |filename|
84
+ assert @img = Exiv2::Image.new(filename)
81
85
 
86
+ assert_raise(TypeError, "Setting of non-convertable values should raise an TypeError") do
87
+ @img.exif["Exif.Image.XResolution"] = "lala"
88
+ end
89
+ end
90
+ end
82
91
 
83
92
  def test_comment
84
93
  open_test_file "exiv2-fujifilm-finepix-s2pro.jpg" do |filename|
@@ -180,4 +189,4 @@ class ImageTest < Test::Unit::TestCase
180
189
  assert_equal "Seattle", @img.iptc["Iptc.Application2.City"]
181
190
  end
182
191
  end
183
- end
192
+ end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: ruby-exiv2
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.5"
7
- date: 2006-11-20 00:00:00 +03:00
6
+ version: "0.6"
7
+ date: 2007-01-06 00:00:00 +03:00
8
8
  summary: Exiv2 (exif image tags handling) library driver
9
9
  require_paths:
10
10
  - lib
@@ -25,26 +25,28 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  platform: ruby
26
26
  signing_key:
27
27
  cert_chain:
28
- post_install_message:
29
28
  authors:
30
29
  - Max Lapshin
31
30
  files:
31
+ - README
32
+ - Rakefile
33
+ - setup.rb
34
+ - init.rb
32
35
  - test/data
33
36
  - test/image.rb
34
37
  - test/data/exiv2-fujifilm-finepix-s2pro.jpg
35
38
  - test/data/gps-test.jpg
36
39
  - test/data/smiley1.jpg
37
- - lib/exif.cpp
38
- - lib/exiv2.cpp
39
- - lib/exiv2.hpp
40
- - lib/extconf.rb
41
- - lib/image.cpp
42
- - lib/iptc.cpp
43
- - lib/Makefile
44
- - lib/marshall.cpp
45
- - README
46
- test_files: []
47
-
40
+ - ext/exif.cpp
41
+ - ext/exiv2.cpp
42
+ - ext/image.cpp
43
+ - ext/iptc.cpp
44
+ - ext/marshall.cpp
45
+ - ext/extconf.rb
46
+ - ext/exiv2.hpp
47
+ - lib/exiv2.rb
48
+ test_files:
49
+ - test/image.rb
48
50
  rdoc_options:
49
51
  - --main=README
50
52
  - --line-numbers
@@ -56,16 +58,8 @@ extra_rdoc_files:
56
58
  executables: []
57
59
 
58
60
  extensions:
59
- - lib/extconf.rb
61
+ - ext/extconf.rb
60
62
  requirements: []
61
63
 
62
- dependencies:
63
- - !ruby/object:Gem::Dependency
64
- name: activesupport
65
- version_requirement:
66
- version_requirements: !ruby/object:Gem::Version::Requirement
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: "1.0"
71
- version:
64
+ dependencies: []
65
+
data/lib/Makefile DELETED
@@ -1,146 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- #### Start of system configuration section. ####
5
-
6
- srcdir = .
7
- topdir = /opt/local/lib/ruby/1.8/i686-darwin8.8.3
8
- hdrdir = $(topdir)
9
- VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- prefix = $(DESTDIR)/opt/local
11
- exec_prefix = $(DESTDIR)/opt/local
12
- sitedir = $(prefix)/lib/ruby/site_ruby
13
- rubylibdir = $(libdir)/ruby/$(ruby_version)
14
- archdir = $(rubylibdir)/$(arch)
15
- sbindir = $(exec_prefix)/sbin
16
- vendordir = $(prefix)/lib/ruby/vendor_ruby
17
- datadir = $(prefix)/share
18
- includedir = $(prefix)/include
19
- infodir = $(prefix)/info
20
- sysconfdir = $(prefix)/etc
21
- mandir = $(DESTDIR)/opt/local/share/man
22
- libdir = $(DESTDIR)/opt/local/lib
23
- sharedstatedir = $(prefix)/com
24
- oldincludedir = $(DESTDIR)/usr/include
25
- sitearchdir = $(sitelibdir)/$(sitearch)
26
- vendorarchdir = $(vendorlibdir)/$(vendorarch)
27
- bindir = $(exec_prefix)/bin
28
- localstatedir = $(prefix)/var
29
- vendorlibdir = $(vendordir)/$(ruby_version)
30
- sitelibdir = $(sitedir)/$(ruby_version)
31
- libexecdir = $(exec_prefix)/libexec
32
-
33
- CC = g++ -c
34
- LIBRUBY = $(LIBRUBY_SO)
35
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
36
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
37
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
38
-
39
- RUBY_EXTCONF_H =
40
- CFLAGS = -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common
41
- INCFLAGS = -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.8.3 -I.
42
- CPPFLAGS = -DHAVE_EXIF_HPP -O -pipe -I/opt/local/include -Wall -I/usr/include/exiv2 -I/Users/max/Sites/exif/include/exiv2
43
- CXXFLAGS = $(CFLAGS)
44
- DLDFLAGS = -L/opt/local/lib -lstdc++ -L/Users/max/Sites/exif/lib
45
- LDSHARED = cc -dynamic -bundle -undefined suppress -flat_namespace
46
- AR = ar
47
- EXEEXT =
48
-
49
- RUBY_INSTALL_NAME = ruby
50
- RUBY_SO_NAME = ruby
51
- arch = i686-darwin8.8.3
52
- sitearch = i686-darwin8.8.3
53
- vendorarch = i686-darwin8.8.3
54
- ruby_version = 1.8
55
- ruby = /opt/local/bin/ruby
56
- RUBY = $(ruby)
57
- RM = rm -f
58
- MAKEDIRS = mkdir -p
59
- INSTALL = /usr/bin/install -c
60
- INSTALL_PROG = $(INSTALL) -m 0755
61
- INSTALL_DATA = $(INSTALL) -m 644
62
- COPY = cp
63
-
64
- #### End of system configuration section. ####
65
-
66
- preload =
67
-
68
- libpath = $(libdir)
69
- LIBPATH = -L"$(libdir)"
70
- DEFFILE =
71
-
72
- CLEANFILES =
73
- DISTCLEANFILES =
74
-
75
- extout =
76
- extout_prefix =
77
- target_prefix =
78
- LOCAL_LIBS =
79
- LIBS = $(LIBRUBYARG_SHARED) -lexiv2 -lpthread -ldl -lobjc
80
- SRCS = exif.cpp exiv2.cpp image.cpp
81
- OBJS = exif.o exiv2.o image.o
82
- TARGET = exiv2
83
- DLLIB = $(TARGET).bundle
84
- EXTSTATIC =
85
- STATIC_LIB =
86
-
87
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
88
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
89
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
90
-
91
- TARGET_SO = $(DLLIB)
92
- CLEANLIBS = $(TARGET).bundle $(TARGET).il? $(TARGET).tds $(TARGET).map
93
- CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
94
-
95
- all: $(DLLIB)
96
- static: $(STATIC_LIB)
97
-
98
- clean:
99
- @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
100
-
101
- distclean: clean
102
- @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
103
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
104
-
105
- realclean: distclean
106
- install: install-so install-rb
107
-
108
- install-so: $(RUBYARCHDIR)
109
- install-so: $(RUBYARCHDIR)/$(DLLIB)
110
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
111
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
112
- install-rb: pre-install-rb install-rb-default
113
- install-rb-default: pre-install-rb-default
114
- pre-install-rb: Makefile
115
- pre-install-rb-default: Makefile
116
- $(RUBYARCHDIR):
117
- $(MAKEDIRS) $@
118
-
119
- site-install: site-install-so site-install-rb
120
- site-install-so: install-so
121
- site-install-rb: install-rb
122
-
123
- .SUFFIXES: .c .m .cc .cxx .cpp .C .o
124
-
125
- .cc.o:
126
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
127
-
128
- .cxx.o:
129
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
130
-
131
- .cpp.o:
132
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
133
-
134
- .C.o:
135
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
136
-
137
- .c.o:
138
- $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
139
-
140
- $(DLLIB): $(OBJS)
141
- @-$(RM) $@
142
- $(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $@ $(OBJS) $(LOCAL_LIBS) $(LIBS)
143
-
144
-
145
-
146
- $(OBJS): ruby.h defines.h