genx4r-fotopedia 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +3 -0
  2. data/ext/genx4r/genx4r.c +16 -16
  3. data/genx4r.gemspec +2 -3
  4. metadata +8 -11
data/README CHANGED
@@ -29,3 +29,6 @@ that changes the unit tests should provide a useful introduction.
29
29
  Please direct any questions to the author,
30
30
 
31
31
  Garrett Rooney <rooneg@electricjellyfish.net>
32
+
33
+ Note that this version has been modified by the Fotonauts team to have a
34
+ gem version number.
@@ -190,7 +190,7 @@ writer_comment (VALUE self, VALUE arg)
190
190
 
191
191
  Data_Get_Struct (self, struct genxWriter_rec, w);
192
192
 
193
- GENX4R_ERR (genxComment (w, (constUtf8) RSTRING (arg)->ptr), w);
193
+ GENX4R_ERR (genxComment (w, (constUtf8) RSTRING_PTR (arg)), w);
194
194
 
195
195
  return Qnil;
196
196
  }
@@ -231,7 +231,7 @@ writer_attribute (int argc, VALUE *argv, VALUE self)
231
231
  if (xmlns)
232
232
  {
233
233
  Check_Type (xmlns, T_STRING);
234
- nslen = RSTRING (xmlns)->len;
234
+ nslen = RSTRING_LEN (xmlns);
235
235
  }
236
236
 
237
237
  if (name)
@@ -242,13 +242,13 @@ writer_attribute (int argc, VALUE *argv, VALUE self)
242
242
  Data_Get_Struct (self, struct genxWriter_rec, w);
243
243
 
244
244
  if (attr)
245
- GENX4R_ERR (genxAddAttribute (attr, (constUtf8) RSTRING (value)->ptr), w);
245
+ GENX4R_ERR (genxAddAttribute (attr, (constUtf8) RSTRING_PTR (value)), w);
246
246
  else
247
247
  GENX4R_ERR (genxAddAttributeLiteral
248
248
  (w,
249
- nslen ? (constUtf8) RSTRING (xmlns)->ptr : NULL,
250
- (constUtf8) RSTRING (name)->ptr,
251
- (constUtf8) RSTRING (value)->ptr), w);
249
+ nslen ? (constUtf8) RSTRING_PTR (xmlns) : NULL,
250
+ (constUtf8) RSTRING_PTR (name),
251
+ (constUtf8) RSTRING_PTR (value)), w);
252
252
 
253
253
  return Qnil;
254
254
  }
@@ -286,7 +286,7 @@ writer_begin_element (int argc, VALUE *argv, VALUE self)
286
286
  if (xmlns)
287
287
  {
288
288
  Check_Type (xmlns, T_STRING);
289
- nslen = RSTRING (xmlns)->len;
289
+ nslen = RSTRING_LEN (xmlns);
290
290
  }
291
291
 
292
292
  if (name)
@@ -299,8 +299,8 @@ writer_begin_element (int argc, VALUE *argv, VALUE self)
299
299
  else
300
300
  GENX4R_ERR (genxStartElementLiteral
301
301
  (w,
302
- nslen ? (constUtf8) RSTRING (xmlns)->ptr : NULL,
303
- (constUtf8) RSTRING (name)->ptr), w);
302
+ nslen ? (constUtf8) RSTRING_PTR (xmlns) : NULL,
303
+ (constUtf8) RSTRING_PTR (name)), w);
304
304
 
305
305
  return Qnil;
306
306
  }
@@ -345,8 +345,8 @@ writer_pi (VALUE self, VALUE target, VALUE text)
345
345
  Data_Get_Struct (self, struct genxWriter_rec, w);
346
346
 
347
347
  GENX4R_ERR (genxPI (w,
348
- (constUtf8) RSTRING (target)->ptr,
349
- (constUtf8) RSTRING (text)->ptr), w);
348
+ (constUtf8) RSTRING_PTR (target),
349
+ (constUtf8) RSTRING_PTR (text)), w);
350
350
 
351
351
  return Qnil;
352
352
  }
@@ -360,7 +360,7 @@ writer_text (VALUE self, VALUE text)
360
360
 
361
361
  Data_Get_Struct (self, struct genxWriter_rec, w);
362
362
 
363
- GENX4R_ERR (genxAddText (w, (constUtf8) RSTRING (text)->ptr), w);
363
+ GENX4R_ERR (genxAddText (w, (constUtf8) RSTRING_PTR (text)), w);
364
364
 
365
365
  return Qnil;
366
366
  }
@@ -414,8 +414,8 @@ writer_declare_namespace (int argc, VALUE *argv, VALUE self)
414
414
  Data_Get_Struct (self, struct genxWriter_rec, w);
415
415
 
416
416
  ns = genxDeclareNamespace (w,
417
- (constUtf8) RSTRING (uri)->ptr,
418
- prefix ? (constUtf8) RSTRING (prefix)->ptr : NULL,
417
+ (constUtf8) RSTRING_PTR (uri),
418
+ prefix ? (constUtf8) RSTRING_PTR (prefix) : NULL,
419
419
  &st);
420
420
 
421
421
  if (st)
@@ -456,7 +456,7 @@ writer_declare_element (int argc, VALUE *argv, VALUE self)
456
456
 
457
457
  Data_Get_Struct (self, struct genxWriter_rec, w);
458
458
 
459
- elem = genxDeclareElement (w, ns, RSTRING (name)->ptr, &st);
459
+ elem = genxDeclareElement (w, ns, RSTRING_PTR (name), &st);
460
460
  if (st)
461
461
  rb_raise (rb_cGenXException, "%s", genxGetErrorMessage (w, st));
462
462
 
@@ -495,7 +495,7 @@ writer_declare_attribute (int argc, VALUE *argv, VALUE self)
495
495
 
496
496
  Data_Get_Struct (self, struct genxWriter_rec, w);
497
497
 
498
- attr = genxDeclareAttribute (w, ns, RSTRING (name)->ptr, &st);
498
+ attr = genxDeclareAttribute (w, ns, RSTRING_PTR (name), &st);
499
499
  if (st)
500
500
  rb_raise (rb_cGenXException, "%s", genxGetErrorMessage (w, st));
501
501
 
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = 'genx4r-fotopedia'
5
- s.version = '0.6'
5
+ s.version = '0.7'
6
6
 
7
7
  s.summary = <<-EOF
8
8
  GenX4r is a Ruby wrapper around the GenX library, which allows you to
@@ -27,7 +27,6 @@ spec = Gem::Specification.new do |s|
27
27
  s.test_files = Dir.glob('test/*.rb')
28
28
 
29
29
  s.authors = ["Garrett Rooney", "Pierre Baillet"]
30
- s.email = "rooneg@electricjellyfish.net"
30
+ s.email = ["rooneg@electricjellyfish.net", "oct@fotonauts.net"]
31
31
  s.homepage = "http://genx4r.rubyforge.org"
32
- s.rubyforge_project = "genx4r"
33
32
  end
metadata CHANGED
@@ -1,12 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genx4r-fotopedia
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
- - 6
9
- version: "0.6"
7
+ - 7
8
+ version: "0.7"
10
9
  platform: ruby
11
10
  authors:
12
11
  - Garrett Rooney
@@ -15,12 +14,14 @@ autorequire: genx4r
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-07-20 00:00:00 +02:00
17
+ date: 2012-03-16 00:00:00 +01:00
19
18
  default_executable:
20
19
  dependencies: []
21
20
 
22
21
  description: " GenX4r is a Ruby wrapper around the GenX library, which allows you to\n programatically generate correct, cannonical XML output.\n"
23
- email: rooneg@electricjellyfish.net
22
+ email:
23
+ - rooneg@electricjellyfish.net
24
+ - oct@fotonauts.net
24
25
  executables: []
25
26
 
26
27
  extensions:
@@ -55,27 +56,23 @@ rdoc_options: []
55
56
  require_paths:
56
57
  - lib
57
58
  required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
59
  requirements:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- hash: 3
63
62
  segments:
64
63
  - 0
65
64
  version: "0"
66
65
  required_rubygems_version: !ruby/object:Gem::Requirement
67
- none: false
68
66
  requirements:
69
67
  - - ">="
70
68
  - !ruby/object:Gem::Version
71
- hash: 3
72
69
  segments:
73
70
  - 0
74
71
  version: "0"
75
72
  requirements: []
76
73
 
77
- rubyforge_project: genx4r
78
- rubygems_version: 1.3.7
74
+ rubyforge_project:
75
+ rubygems_version: 1.3.6
79
76
  signing_key:
80
77
  specification_version: 3
81
78
  summary: GenX4r is a Ruby wrapper around the GenX library, which allows you to programatically generate correct, cannonical XML output.