fizx-ordered_json 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/extconf.rb +25 -0
  2. metadata +66 -0
data/ext/extconf.rb ADDED
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+ ENV["ARCHFLAGS"] = "-arch #{`uname -p` =~ /powerpc/ ? 'ppc' : 'i386'}"
3
+
4
+ require 'mkmf'
5
+
6
+ ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
7
+ LIBDIR = Config::CONFIG['libdir']
8
+ INCLUDEDIR = Config::CONFIG['includedir']
9
+
10
+ $CFLAGS << " -std=c99 #{ENV["CFLAGS"]}"
11
+ if Config::CONFIG['target_os'] == 'mingw32'
12
+ $CFLAGS << " -DXP_WIN -DXP_WIN32"
13
+ else
14
+ $CFLAGS << " -g -DXP_UNIX"
15
+ end
16
+
17
+ $CFLAGS << " -O3 -Wall -Wextra -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline"
18
+
19
+ myincl = %w[/usr/local/include /opt/local/include /usr/include]
20
+ mylib = %w[/usr/local/lib /opt/local/lib /usr/lib]
21
+
22
+ find_header('json/json.h', INCLUDEDIR, *myincl) or abort "need json/json.h"
23
+ find_library('json', 'json_object_new_string', LIBDIR, *mylib) or abort "need libjson"
24
+
25
+ create_makefile('ordered_json_c')
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fizx-ordered_json
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kyle Maxwell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-02-11 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: collections
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">"
21
+ - !ruby/object:Gem::Version
22
+ version: 0.0.0
23
+ version:
24
+ description:
25
+ email: kyle@kylemaxwell.com
26
+ executables: []
27
+
28
+ extensions:
29
+ - ext/extconf.rb
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - ./ext/extconf.rb
34
+ - ./ext/ordered_json_c.c
35
+ - ./lib/ordered_json.rb
36
+ - ./ordered_json.gemspec
37
+ - ./README
38
+ - ./test/ordered_json_test.rb
39
+ has_rdoc: true
40
+ homepage:
41
+ post_install_message:
42
+ rdoc_options: []
43
+
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ version:
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ version:
58
+ requirements: []
59
+
60
+ rubyforge_project:
61
+ rubygems_version: 1.2.0
62
+ signing_key:
63
+ specification_version: 2
64
+ summary: Ordered json hash conversion
65
+ test_files: []
66
+