hpricot 0.8 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -247,7 +247,7 @@ rb_hpricot_token(hpricot_state *S, VALUE sym, VALUE tag, VALUE attr, char *raw,
247
247
 
248
248
  if (H_ELE_GET(S->focus, H_ELE_EC) == sym_CDATA &&
249
249
  (sym != sym_procins && sym != sym_comment && sym != sym_cdata && sym != sym_text) &&
250
- !(sym == sym_etag && INT2NUM(rb_str_hash(tag)) == H_ELE_GET(S->focus, H_ELE_HASH)))
250
+ !(sym == sym_etag && INT2FIX(rb_str_hash(tag)) == H_ELE_GET(S->focus, H_ELE_HASH)))
251
251
  {
252
252
  sym = sym_text;
253
253
  tag = rb_str_new(raw, rawlen);
@@ -265,7 +265,7 @@ rb_hpricot_token(hpricot_state *S, VALUE sym, VALUE tag, VALUE attr, char *raw,
265
265
  }
266
266
 
267
267
  if (sym == sym_emptytag || sym == sym_stag) {
268
- VALUE name = INT2NUM(rb_str_hash(tag));
268
+ VALUE name = INT2FIX(rb_str_hash(tag));
269
269
  H_ELE(cElem);
270
270
  H_ELE_SET(ele, H_ELE_HASH, name);
271
271
 
@@ -325,7 +325,7 @@ rb_hpricot_token(hpricot_state *S, VALUE sym, VALUE tag, VALUE attr, char *raw,
325
325
  //
326
326
  // (see also: the search above for fixups)
327
327
  //
328
- name = INT2NUM(rb_str_hash(tag));
328
+ name = INT2FIX(rb_str_hash(tag));
329
329
  while (e != S->doc)
330
330
  {
331
331
  if (H_ELE_GET(e, H_ELE_HASH) == name)
@@ -280,7 +280,7 @@ rb_hpricot_token(hpricot_state *S, VALUE sym, VALUE tag, VALUE attr, char *raw,
280
280
 
281
281
  if (H_ELE_GET(S->focus, H_ELE_EC) == sym_CDATA &&
282
282
  (sym != sym_procins && sym != sym_comment && sym != sym_cdata && sym != sym_text) &&
283
- !(sym == sym_etag && INT2NUM(rb_str_hash(tag)) == H_ELE_GET(S->focus, H_ELE_HASH)))
283
+ !(sym == sym_etag && INT2FIX(rb_str_hash(tag)) == H_ELE_GET(S->focus, H_ELE_HASH)))
284
284
  {
285
285
  sym = sym_text;
286
286
  tag = rb_str_new(raw, rawlen);
@@ -298,7 +298,7 @@ rb_hpricot_token(hpricot_state *S, VALUE sym, VALUE tag, VALUE attr, char *raw,
298
298
  }
299
299
 
300
300
  if (sym == sym_emptytag || sym == sym_stag) {
301
- VALUE name = INT2NUM(rb_str_hash(tag));
301
+ VALUE name = INT2FIX(rb_str_hash(tag));
302
302
  H_ELE(cElem);
303
303
  H_ELE_SET(ele, H_ELE_HASH, name);
304
304
 
@@ -358,7 +358,7 @@ rb_hpricot_token(hpricot_state *S, VALUE sym, VALUE tag, VALUE attr, char *raw,
358
358
  //
359
359
  // (see also: the search above for fixups)
360
360
  //
361
- name = INT2NUM(rb_str_hash(tag));
361
+ name = INT2FIX(rb_str_hash(tag));
362
362
  while (e != S->doc)
363
363
  {
364
364
  if (H_ELE_GET(e, H_ELE_HASH) == name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hpricot
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.8"
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - why the lucky stiff
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-01 00:00:00 -07:00
12
+ date: 2009-04-03 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15