File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ VALUE rb_geoip_country_look_up(VALUE self, VALUE addr) {
236
236
rb_hash_sset (hash , "country_code" , rb_str_new2 (GeoIP_country_code [country_id ]));
237
237
rb_hash_sset (hash , "country_code3" , rb_str_new2 (GeoIP_country_code3 [country_id ]));
238
238
rb_hash_sset (hash , "country_name" , rb_str_new2 (GeoIP_country_name [country_id ]));
239
+ rb_hash_sset (hash , "continent" , rb_str_new2 (GeoIP_country_continent [country_id ]));
239
240
240
241
return hash ;
241
242
}
@@ -270,6 +271,7 @@ VALUE rb_geoip_country_v6_look_up(VALUE self, VALUE addr) {
270
271
rb_hash_sset (hash , "country_code" , rb_str_new2 (GeoIP_country_code [country_id ]));
271
272
rb_hash_sset (hash , "country_code3" , rb_str_new2 (GeoIP_country_code3 [country_id ]));
272
273
rb_hash_sset (hash , "country_name" , rb_str_new2 (GeoIP_country_name [country_id ]));
274
+ rb_hash_sset (hash , "continent" , rb_str_new2 (GeoIP_country_continent [country_id ]));
273
275
274
276
return hash ;
275
277
}
You can’t perform that action at this time.
0 commit comments