fjson 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES +3 -0
  2. data/GPL +3 -4
  3. data/Rakefile +3 -3
  4. data/rake_helper.rb +17 -1
  5. metadata +50 -58
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 2006-11-02 (0.0.6)
2
+ * Using mkmf because of issues with mkrf.
3
+
1
4
  2006-10-21 (0.0.5)
2
5
  * Works on OSX.
3
6
 
data/GPL CHANGED
@@ -327,11 +327,10 @@ You should also get your employer (if you work as a programmer) or your
327
327
  school, if any, to sign a "copyright disclaimer" for the program, if
328
328
  necessary. Here is a sample; alter the names:
329
329
 
330
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
330
+ Brian Takita, hereby disclaims all copyright interest in the program
331
+ `Fast JSON' (which makes passes at compilers) written by Brian Takita.
332
332
 
333
- <signature of Ty Coon>, 1 April 1989
334
- Ty Coon, President of Vice
333
+ Brian Takita, August 20, 2006
335
334
 
336
335
  This General Public License does not permit incorporating your program into
337
336
  proprietary programs. If your program is a subroutine library, you may
data/Rakefile CHANGED
@@ -47,7 +47,7 @@ fjson_extensions = [
47
47
  ]
48
48
 
49
49
  fjson_extensions.each do |ext|
50
- setup_extension ext
50
+ setup_mkmf_extension ext
51
51
  end
52
52
 
53
53
  task :install do
@@ -95,7 +95,7 @@ if win32?
95
95
  end
96
96
 
97
97
  PKG_NAME = "fjson"
98
- PKG_VERSION = "0.0.5"
98
+ PKG_VERSION = "0.0.6"
99
99
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
100
100
  PKG_FILES = FileList[
101
101
  '[A-Z]*',
@@ -132,7 +132,7 @@ spec = Gem::Specification.new do |s|
132
132
 
133
133
  s.extensions = ["Rakefile"]
134
134
 
135
- s.add_dependency "mkrf", ">=0.1.2"
135
+ #s.add_dependency "mkrf", ">=0.1.2"
136
136
 
137
137
  if win32?
138
138
 
data/rake_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- def setup_extension(extension_path, extension=nil)
1
+ def setup_mkrf_extension(extension_path, extension=nil)
2
2
  ext_dir = "ext/#{extension_path}"
3
3
  extension = File.basename(extension_path) if extension.nil?
4
4
  ext_so = "#{ext_dir}/#{extension}.#{Config::CONFIG['DLEXT']}"
@@ -13,6 +13,22 @@ def setup_extension(extension_path, extension=nil)
13
13
  create_so_file_tasks(ext_dir, ext_so)
14
14
  end
15
15
 
16
+ def setup_mkmf_extension(extension_path, extension=nil)
17
+ ext_dir = "ext/#{extension_path}"
18
+ extension = File.basename(extension_path) if extension.nil?
19
+ ext_so = "#{ext_dir}/#{extension}.#{Config::CONFIG['DLEXT']}"
20
+
21
+ desc "Builds the #{extension} extension"
22
+ task extension.to_sym => ["#{ext_dir}/Makefile", ext_so ]
23
+
24
+ file "#{ext_dir}/Makefile" => ["#{ext_dir}/extconf.mkmf.rb"] do
25
+ extconf "#{ext_dir}"
26
+ end
27
+
28
+ create_so_file_tasks(ext_dir, ext_so)
29
+ end
30
+
31
+
16
32
  def create_so_file_tasks(ext_dir, ext_so)
17
33
  ext_files = FileList[
18
34
  "#{ext_dir}/*.c",
metadata CHANGED
@@ -3,8 +3,8 @@ 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.5
7
- date: 2006-10-21 00:00:00 -07:00
6
+ version: 0.0.6
7
+ date: 2006-11-03 00:00:00 -08: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:
10
10
  - lib
@@ -29,95 +29,95 @@ post_install_message:
29
29
  authors:
30
30
  - Brian Takita
31
31
  files:
32
- - CHANGES
33
- - GPL
34
32
  - Rakefile
35
- - README
33
+ - GPL
34
+ - CHANGES
36
35
  - TODO
36
+ - README
37
37
  - hash_benchmark.rb
38
- - install.rb
39
38
  - rake_helper.rb
40
- - lib/fjson.rb
39
+ - install.rb
41
40
  - lib/parser.rb
42
- - lib/extensions/class.rb
41
+ - lib/fjson.rb
43
42
  - lib/extensions/kernel.rb
43
+ - lib/extensions/class.rb
44
44
  - lib/extensions/string.rb
45
45
  - lib/json/editor.rb
46
- - ext/extensions/array_ext/array_ext.h
47
46
  - ext/extensions/false_class_ext/false_class_ext.h
48
- - ext/extensions/float_ext/float_ext.h
49
47
  - ext/extensions/hash_ext/hash_ext.h
50
- - ext/extensions/integer_ext/integer_ext.h
51
- - ext/extensions/nil_class_ext/nil_class_ext.h
48
+ - ext/extensions/true_class_ext/true_class_ext.h
49
+ - ext/extensions/float_ext/float_ext.h
52
50
  - ext/extensions/object_ext/object_ext.h
53
51
  - ext/extensions/string_ext/string_ext.h
54
- - ext/extensions/true_class_ext/true_class_ext.h
55
- - ext/json_ext/json_ext.h
52
+ - ext/extensions/nil_class_ext/nil_class_ext.h
53
+ - ext/extensions/integer_ext/integer_ext.h
54
+ - ext/extensions/array_ext/array_ext.h
56
55
  - ext/state_ext/state_ext.h
57
- - ext/extensions/array_ext/array_ext.c
56
+ - ext/json_ext/json_ext.h
58
57
  - ext/extensions/false_class_ext/false_class_ext.c
59
- - ext/extensions/float_ext/float_ext.c
60
58
  - ext/extensions/hash_ext/hash_ext.c
61
- - ext/extensions/integer_ext/integer_ext.c
62
- - ext/extensions/nil_class_ext/nil_class_ext.c
59
+ - ext/extensions/true_class_ext/true_class_ext.c
60
+ - ext/extensions/float_ext/float_ext.c
63
61
  - ext/extensions/object_ext/object_ext.c
64
62
  - ext/extensions/string_ext/string_ext.c
65
- - ext/extensions/true_class_ext/true_class_ext.c
66
- - ext/json_ext/json_ext.c
63
+ - ext/extensions/nil_class_ext/nil_class_ext.c
64
+ - ext/extensions/integer_ext/integer_ext.c
65
+ - ext/extensions/array_ext/array_ext.c
67
66
  - ext/state_ext/state_ext.c
68
- - ext/extensions/array_ext/extconf.mkmf.rb
69
- - ext/extensions/array_ext/extconf.rb
67
+ - ext/json_ext/json_ext.c
70
68
  - ext/extensions/false_class_ext/extconf.mkmf.rb
71
69
  - ext/extensions/false_class_ext/extconf.rb
72
- - ext/extensions/float_ext/extconf.mkmf.rb
73
- - ext/extensions/float_ext/extconf.rb
74
70
  - ext/extensions/hash_ext/extconf.mkmf.rb
75
71
  - ext/extensions/hash_ext/extconf.rb
76
- - ext/extensions/integer_ext/extconf.mkmf.rb
77
- - ext/extensions/integer_ext/extconf.rb
78
- - ext/extensions/nil_class_ext/extconf.mkmf.rb
79
- - ext/extensions/nil_class_ext/extconf.rb
72
+ - ext/extensions/true_class_ext/extconf.mkmf.rb
73
+ - ext/extensions/true_class_ext/extconf.rb
74
+ - ext/extensions/float_ext/extconf.mkmf.rb
75
+ - ext/extensions/float_ext/extconf.rb
80
76
  - ext/extensions/object_ext/extconf.mkmf.rb
81
77
  - ext/extensions/object_ext/extconf.rb
82
78
  - ext/extensions/string_ext/extconf.mkmf.rb
83
79
  - ext/extensions/string_ext/extconf.rb
84
- - ext/extensions/true_class_ext/extconf.mkmf.rb
85
- - ext/extensions/true_class_ext/extconf.rb
86
- - ext/json_ext/extconf.mkmf.rb
87
- - ext/json_ext/extconf.rb
80
+ - ext/extensions/nil_class_ext/extconf.mkmf.rb
81
+ - ext/extensions/nil_class_ext/extconf.rb
82
+ - ext/extensions/integer_ext/extconf.mkmf.rb
83
+ - ext/extensions/integer_ext/extconf.rb
84
+ - ext/extensions/array_ext/extconf.mkmf.rb
85
+ - ext/extensions/array_ext/extconf.rb
88
86
  - ext/state_ext/extconf.mkmf.rb
89
87
  - ext/state_ext/extconf.rb
90
- - spec/array_spec.rb
91
- - spec/false_class_spec.rb
88
+ - ext/json_ext/extconf.mkmf.rb
89
+ - ext/json_ext/extconf.rb
90
+ - spec/true_class_spec.rb
92
91
  - spec/float_spec.rb
93
- - spec/hash_spec.rb
94
- - spec/integer_spec.rb
95
- - spec/nil_class_spec.rb
92
+ - spec/string_spec.rb
96
93
  - spec/object_spec.rb
94
+ - spec/nil_class_spec.rb
95
+ - spec/array_spec.rb
97
96
  - spec/spec_helper.rb
98
- - spec/spec_suite.rb
99
- - spec/state_spec.rb
100
- - spec/string_spec.rb
97
+ - spec/false_class_spec.rb
101
98
  - spec/string_when_not_supporting_unicode_and_kcode_is_not_utf8_json_spec.rb
99
+ - spec/state_spec.rb
100
+ - spec/hash_spec.rb
101
+ - spec/spec_suite.rb
102
+ - spec/integer_spec.rb
102
103
  - spec/string_when_supporting_unicode_and_kcode_is_not_utf8_json_spec.rb
103
104
  - spec/string_with_latin1_character_set_json_spec.rb
104
105
  - spec/string_with_utf8_values_when_supporting_unicode_json_spec.rb
105
- - spec/true_class_spec.rb
106
106
  test_files:
107
+ - spec/true_class_spec.rb
108
+ - spec/float_spec.rb
109
+ - spec/string_spec.rb
110
+ - spec/object_spec.rb
111
+ - spec/nil_class_spec.rb
107
112
  - spec/array_spec.rb
108
113
  - spec/false_class_spec.rb
109
- - spec/float_spec.rb
114
+ - spec/string_when_not_supporting_unicode_and_kcode_is_not_utf8_json_spec.rb
115
+ - spec/state_spec.rb
110
116
  - spec/hash_spec.rb
111
117
  - spec/integer_spec.rb
112
- - spec/nil_class_spec.rb
113
- - spec/object_spec.rb
114
- - spec/state_spec.rb
115
- - spec/string_spec.rb
116
- - spec/string_when_not_supporting_unicode_and_kcode_is_not_utf8_json_spec.rb
117
118
  - spec/string_when_supporting_unicode_and_kcode_is_not_utf8_json_spec.rb
118
119
  - spec/string_with_latin1_character_set_json_spec.rb
119
120
  - spec/string_with_utf8_values_when_supporting_unicode_json_spec.rb
120
- - spec/true_class_spec.rb
121
121
  rdoc_options: []
122
122
 
123
123
  extra_rdoc_files:
@@ -128,13 +128,5 @@ extensions:
128
128
  - Rakefile
129
129
  requirements: []
130
130
 
131
- dependencies:
132
- - !ruby/object:Gem::Dependency
133
- name: mkrf
134
- version_requirement:
135
- version_requirements: !ruby/object:Gem::Version::Requirement
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- version: 0.1.2
140
- version:
131
+ dependencies: []
132
+