fjson 0.0.3 → 0.0.4

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.
Files changed (4) hide show
  1. data/CHANGES +3 -0
  2. data/Rakefile +1 -1
  3. data/ext/json_ext/json_ext.c +3 -3
  4. metadata +1 -1
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 2006-10-17 (0.0.4)
2
+ * Fixed compiler warnings.
3
+
1
4
  2006-10-17 (0.0.3)
2
5
  * Enabled UTF8 support.
3
6
 
data/Rakefile CHANGED
@@ -78,7 +78,7 @@ def extension_directory_path(relative_extension_path)
78
78
  end
79
79
 
80
80
  PKG_NAME = "fjson"
81
- PKG_VERSION = "0.0.3"
81
+ PKG_VERSION = "0.0.4"
82
82
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
83
83
  PKG_FILES = FileList[
84
84
  '[A-Z]*',
@@ -111,7 +111,7 @@ static long _convert_utf8_char(input, i, result, supports_utf8)
111
111
  if (i < 0 || RSTRING(input)->len <= i) {
112
112
  return Qnil;
113
113
  }
114
- char c_current = (RSTRING(input)->ptr[i] & 0xff);
114
+ int c_current = (RSTRING(input)->ptr[i] & 0xff);
115
115
 
116
116
  if(c_current == 0x08) {
117
117
  rb_str_cat2(result, "\\b");
@@ -134,8 +134,8 @@ static long _convert_utf8_char(input, i, result, supports_utf8)
134
134
  else if(c_current == '\\') {
135
135
  rb_str_cat2(result, "\\\\");
136
136
  }
137
- else if(c_current == '\/') {
138
- rb_str_cat2(result, "\\\/");
137
+ else if(c_current == '/') {
138
+ rb_str_cat2(result, "\\/");
139
139
  }
140
140
  else if(0x00 <= c_current && c_current <= 0x1f) {
141
141
  VALUE format_string = rb_str_new2("\\u%04x");
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: fjson
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.3
6
+ version: 0.0.4
7
7
  date: 2006-10-17 00:00:00 -07:00
8
8
  summary: This library is for parsing JSON strings and unparsing ruby data structures. This library is a fork of Florian Frank's JSON library with key parts implemented in C for performance improvements.
9
9
  require_paths: