fizx-ordered_json 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/extconf.rb +13 -1
- metadata +2 -3
data/ext/extconf.rb
CHANGED
@@ -6,7 +6,6 @@ require 'mkmf'
|
|
6
6
|
json = File.dirname(__FILE__) + "/json-c-0.8"
|
7
7
|
system "cd #{json} && ./configure && make"
|
8
8
|
|
9
|
-
ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
10
9
|
LIBDIR = Config::CONFIG['libdir']
|
11
10
|
INCLUDEDIR = Config::CONFIG['includedir']
|
12
11
|
|
@@ -17,6 +16,19 @@ else
|
|
17
16
|
$CFLAGS << " -g -DXP_UNIX"
|
18
17
|
end
|
19
18
|
|
19
|
+
unless find_header("json-c-0.8/json.h", File.dirname(__FILE__))
|
20
|
+
abort "wtf json"
|
21
|
+
end
|
22
|
+
|
23
|
+
unless find_header("json-c-0.8/printbuf.h", File.dirname(__FILE__))
|
24
|
+
abort "wtf printbuf"
|
25
|
+
end
|
26
|
+
|
27
|
+
|
28
|
+
unless find_library('json', 'json_tokener_parse', File.dirname(__FILE__) + "/json-c-0.8")
|
29
|
+
abort "wtf libjson"
|
30
|
+
end
|
31
|
+
|
20
32
|
$CFLAGS << " -O3 -Wall -Wextra -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline"
|
21
33
|
|
22
34
|
create_makefile('ordered_json_c')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fizx-ordered_json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Maxwell
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-07 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -72,7 +72,6 @@ files:
|
|
72
72
|
- ./ext/json-c-0.8/test1.c
|
73
73
|
- ./ext/json-c-0.8/test2.c
|
74
74
|
- ./ext/json-c-0.8/test3.c
|
75
|
-
- ./ext/mkmf.log
|
76
75
|
- ./ext/ordered_json_c.c
|
77
76
|
- ./lib/ordered_json.rb
|
78
77
|
- ./ordered_json.gemspec
|