challah 0.7.1 → 0.8.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/challah.rb +5 -0
- data/lib/challah/plugins.rb +41 -0
- data/lib/challah/railtie.rb +14 -0
- data/lib/challah/user.rb +17 -0
- data/lib/challah/version.rb +1 -1
- data/test/plugins_test.rb +65 -0
- data/vendor/bundle/bin/convert_to_should_syntax +7 -3
- data/vendor/bundle/bin/erubis +7 -3
- data/vendor/bundle/bin/rackup +7 -3
- data/vendor/bundle/bin/rails +7 -3
- data/vendor/bundle/bin/rake +7 -3
- data/vendor/bundle/bin/rake2thor +7 -3
- data/vendor/bundle/bin/rdiscount +7 -3
- data/vendor/bundle/bin/rdoc +7 -3
- data/vendor/bundle/bin/ri +7 -3
- data/vendor/bundle/bin/thor +7 -3
- data/vendor/bundle/bin/tilt +7 -3
- data/vendor/bundle/bin/tt +7 -3
- data/vendor/bundle/bin/yard +7 -3
- data/vendor/bundle/bin/yardoc +7 -3
- data/vendor/bundle/bin/yri +7 -3
- data/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/Makefile +49 -23
- data/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/bcrypt_ext.bundle +0 -0
- data/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/bcrypt_ext.o +0 -0
- data/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/crypt.o +0 -0
- data/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/crypt_blowfish.o +0 -0
- data/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/crypt_gensalt.o +0 -0
- data/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/wrapper.o +0 -0
- data/vendor/bundle/gems/bcrypt-ruby-3.0.1/lib/bcrypt_ext.bundle +0 -0
- data/vendor/bundle/gems/json-1.7.4/ext/json/ext/generator/Makefile +49 -23
- data/vendor/bundle/gems/json-1.7.4/ext/json/ext/generator/generator.bundle +0 -0
- data/vendor/bundle/gems/json-1.7.4/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/gems/json-1.7.4/ext/json/ext/parser/Makefile +49 -23
- data/vendor/bundle/gems/json-1.7.4/ext/json/ext/parser/parser.bundle +0 -0
- data/vendor/bundle/gems/json-1.7.4/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/gems/json-1.7.4/lib/json/ext/generator.bundle +0 -0
- data/vendor/bundle/gems/json-1.7.4/lib/json/ext/parser.bundle +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/Csio.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/Makefile +49 -23
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/basename.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/css.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/docheader.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/dumptree.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/emmatch.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/generate.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/html5.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/markdown.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/mkdio.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/mkmf.log +5 -5
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/rdiscount.bundle +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/rdiscount.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/resource.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/tags.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/toc.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/ext/xml.o +0 -0
- data/vendor/bundle/gems/rdiscount-1.6.8/lib/rdiscount.bundle +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/Makefile +49 -23
- data/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/backup.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/database.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/exception.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/mkmf.log +91 -59
- data/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/sqlite3.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/sqlite3_native.bundle +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/statement.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.bundle +0 -0
- data/vendor/bundle/specifications/actionmailer-3.2.7.gemspec +1 -1
- data/vendor/bundle/specifications/actionpack-3.2.7.gemspec +1 -1
- data/vendor/bundle/specifications/activemodel-3.2.7.gemspec +1 -1
- data/vendor/bundle/specifications/activerecord-3.2.7.gemspec +1 -1
- data/vendor/bundle/specifications/activeresource-3.2.7.gemspec +1 -1
- data/vendor/bundle/specifications/activesupport-3.2.7.gemspec +1 -1
- data/vendor/bundle/specifications/arel-3.0.2.gemspec +1 -1
- data/vendor/bundle/specifications/bcrypt-ruby-3.0.1.gemspec +1 -1
- data/vendor/bundle/specifications/builder-3.0.0.gemspec +1 -1
- data/vendor/bundle/specifications/erubis-2.7.0.gemspec +1 -1
- data/vendor/bundle/specifications/factory_girl-3.6.1.gemspec +1 -1
- data/vendor/bundle/specifications/highline-1.6.13.gemspec +1 -1
- data/vendor/bundle/specifications/hike-1.2.1.gemspec +1 -1
- data/vendor/bundle/specifications/i18n-0.6.0.gemspec +1 -1
- data/vendor/bundle/specifications/journey-1.0.4.gemspec +1 -1
- data/vendor/bundle/specifications/json-1.7.4.gemspec +1 -1
- data/vendor/bundle/specifications/mail-2.4.4.gemspec +1 -1
- data/vendor/bundle/specifications/metaclass-0.0.1.gemspec +1 -1
- data/vendor/bundle/specifications/mime-types-1.19.gemspec +1 -1
- data/vendor/bundle/specifications/mocha-0.12.2.gemspec +1 -1
- data/vendor/bundle/specifications/multi_json-1.3.6.gemspec +1 -1
- data/vendor/bundle/specifications/polyglot-0.3.3.gemspec +1 -1
- data/vendor/bundle/specifications/rack-1.4.1.gemspec +1 -1
- data/vendor/bundle/specifications/rack-cache-1.2.gemspec +1 -1
- data/vendor/bundle/specifications/rack-ssl-1.3.2.gemspec +1 -1
- data/vendor/bundle/specifications/rack-test-0.6.1.gemspec +1 -1
- data/vendor/bundle/specifications/rails-3.2.7.gemspec +1 -1
- data/vendor/bundle/specifications/railties-3.2.7.gemspec +1 -1
- data/vendor/bundle/specifications/rake-0.9.2.2.gemspec +1 -1
- data/vendor/bundle/specifications/rdiscount-1.6.8.gemspec +1 -1
- data/vendor/bundle/specifications/rdoc-3.12.gemspec +1 -1
- data/vendor/bundle/specifications/shoulda-3.1.1.gemspec +1 -1
- data/vendor/bundle/specifications/shoulda-context-1.0.0.gemspec +1 -1
- data/vendor/bundle/specifications/shoulda-matchers-1.2.0.gemspec +1 -1
- data/vendor/bundle/specifications/simplecov-0.6.4.gemspec +1 -1
- data/vendor/bundle/specifications/simplecov-html-0.5.3.gemspec +1 -1
- data/vendor/bundle/specifications/sprockets-2.1.3.gemspec +1 -1
- data/vendor/bundle/specifications/sqlite3-1.3.6.gemspec +1 -1
- data/vendor/bundle/specifications/thor-0.15.4.gemspec +1 -1
- data/vendor/bundle/specifications/tilt-1.3.3.gemspec +1 -1
- data/vendor/bundle/specifications/treetop-1.4.10.gemspec +1 -1
- data/vendor/bundle/specifications/tzinfo-0.3.33.gemspec +1 -1
- data/vendor/bundle/specifications/yard-0.8.2.1.gemspec +1 -1
- metadata +7 -5
data/vendor/bundle/bin/yri
CHANGED
@@ -10,9 +10,13 @@ require 'rubygems'
|
|
10
10
|
|
11
11
|
version = ">= 0"
|
12
12
|
|
13
|
-
if ARGV.first
|
14
|
-
|
15
|
-
|
13
|
+
if ARGV.first
|
14
|
+
str = ARGV.first
|
15
|
+
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
|
16
|
+
if str =~ /\A_(.*)_\z/
|
17
|
+
version = $1
|
18
|
+
ARGV.shift
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
gem 'yard', version
|
@@ -1,14 +1,22 @@
|
|
1
1
|
|
2
2
|
SHELL = /bin/sh
|
3
3
|
|
4
|
+
# V=0 quiet, V=1 verbose. other values don't work.
|
5
|
+
V = 0
|
6
|
+
Q1 = $(V:1=)
|
7
|
+
Q = $(Q1:0=@)
|
8
|
+
n=$(NULLCMD)
|
9
|
+
ECHO1 = $(V:1=@$n)
|
10
|
+
ECHO = $(ECHO1:0=@echo)
|
11
|
+
|
4
12
|
#### Start of system configuration section. ####
|
5
13
|
|
6
14
|
srcdir = .
|
7
|
-
topdir = /Users/jdtornow/.rbenv/versions/1.9.
|
8
|
-
hdrdir = /Users/jdtornow/.rbenv/versions/1.9.
|
9
|
-
arch_hdrdir = /Users/jdtornow/.rbenv/versions/1.9.
|
15
|
+
topdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1
|
16
|
+
hdrdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1
|
17
|
+
arch_hdrdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1/$(arch)
|
10
18
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
11
|
-
prefix = $(DESTDIR)/Users/jdtornow/.rbenv/versions/1.9.
|
19
|
+
prefix = $(DESTDIR)/Users/jdtornow/.rbenv/versions/1.9.3-p125
|
12
20
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
13
21
|
exec_prefix = $(prefix)
|
14
22
|
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
@@ -43,11 +51,13 @@ sitearchdir = $(sitelibdir)/$(sitearch)
|
|
43
51
|
vendorlibdir = $(vendordir)/$(ruby_version)
|
44
52
|
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
45
53
|
|
46
|
-
|
54
|
+
NULLCMD = :
|
55
|
+
|
56
|
+
CC = cc
|
47
57
|
CXX = g++
|
48
58
|
LIBRUBY = $(LIBRUBY_A)
|
49
59
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
50
|
-
LIBRUBYARG_SHARED =
|
60
|
+
LIBRUBYARG_SHARED =
|
51
61
|
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
52
62
|
OUTFLAG = -o
|
53
63
|
COUTFLAG = -o
|
@@ -56,16 +66,16 @@ RUBY_EXTCONF_H =
|
|
56
66
|
cflags = $(optflags) $(debugflags) $(warnflags)
|
57
67
|
optflags = -O3
|
58
68
|
debugflags = -ggdb
|
59
|
-
warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -
|
60
|
-
CFLAGS = -fno-common $(cflags) -pipe
|
69
|
+
warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration
|
70
|
+
CFLAGS = -fno-common $(cflags) -pipe $(ARCH_FLAG)
|
61
71
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
62
72
|
DEFS =
|
63
|
-
CPPFLAGS = -I'/Users/jdtornow/.rbenv/versions/1.9.
|
73
|
+
CPPFLAGS = -I'/Users/jdtornow/.rbenv/versions/1.9.3-p125/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags)
|
64
74
|
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
65
|
-
ldflags = -L. -L'/Users/jdtornow/.rbenv/versions/1.9.
|
75
|
+
ldflags = -L. -L'/Users/jdtornow/.rbenv/versions/1.9.3-p125/lib' -L/usr/local/lib
|
66
76
|
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace
|
67
77
|
ARCH_FLAG =
|
68
|
-
DLDFLAGS = $(ldflags) $(dldflags)
|
78
|
+
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
69
79
|
LDSHARED = $(CC) -dynamic -bundle
|
70
80
|
LDSHAREDXX = $(CXX) -dynamic -bundle
|
71
81
|
AR = ar
|
@@ -74,14 +84,14 @@ EXEEXT =
|
|
74
84
|
RUBY_BASE_NAME = ruby
|
75
85
|
RUBY_INSTALL_NAME = ruby
|
76
86
|
RUBY_SO_NAME = ruby
|
77
|
-
arch = x86_64-
|
87
|
+
arch = x86_64-darwin12.1.0
|
78
88
|
sitearch = $(arch)
|
79
89
|
ruby_version = 1.9.1
|
80
|
-
ruby = /Users/jdtornow/.rbenv/versions/1.9.
|
90
|
+
ruby = /Users/jdtornow/.rbenv/versions/1.9.3-p125/bin/ruby
|
81
91
|
RUBY = $(ruby)
|
82
92
|
RM = rm -f
|
83
93
|
RM_RF = $(RUBY) -run -e rm -- -rf
|
84
|
-
RMDIRS =
|
94
|
+
RMDIRS = rmdir -p
|
85
95
|
MAKEDIRS = mkdir -p
|
86
96
|
INSTALL = /usr/bin/install -c
|
87
97
|
INSTALL_PROG = $(INSTALL) -m 0755
|
@@ -140,7 +150,7 @@ distclean-so::
|
|
140
150
|
distclean: clean distclean-so distclean-rb-default distclean-rb
|
141
151
|
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
142
152
|
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
143
|
-
@-$(RMDIRS) $(DISTCLEANDIRS)
|
153
|
+
@-$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
144
154
|
|
145
155
|
realclean: distclean
|
146
156
|
install: install-so install-rb
|
@@ -154,33 +164,49 @@ install-rb: pre-install-rb install-rb-default
|
|
154
164
|
install-rb-default: pre-install-rb-default
|
155
165
|
pre-install-rb: Makefile
|
156
166
|
pre-install-rb-default: Makefile
|
167
|
+
pre-install-rb-default:
|
168
|
+
$(ECHO) installing default bcrypt_ext libraries
|
157
169
|
$(RUBYARCHDIR):
|
158
|
-
$(MAKEDIRS) $@
|
170
|
+
$(Q) $(MAKEDIRS) $@
|
159
171
|
|
160
172
|
site-install: site-install-so site-install-rb
|
161
173
|
site-install-so: install-so
|
162
174
|
site-install-rb: install-rb
|
163
175
|
|
164
|
-
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
176
|
+
.SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
|
165
177
|
|
166
178
|
.cc.o:
|
167
|
-
$(
|
179
|
+
$(ECHO) compiling $(<)
|
180
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
181
|
+
|
182
|
+
.mm.o:
|
183
|
+
$(ECHO) compiling $(<)
|
184
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
168
185
|
|
169
186
|
.cxx.o:
|
170
|
-
$(
|
187
|
+
$(ECHO) compiling $(<)
|
188
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
171
189
|
|
172
190
|
.cpp.o:
|
173
|
-
$(
|
191
|
+
$(ECHO) compiling $(<)
|
192
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
174
193
|
|
175
194
|
.C.o:
|
176
|
-
$(
|
195
|
+
$(ECHO) compiling $(<)
|
196
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
177
197
|
|
178
198
|
.c.o:
|
179
|
-
$(
|
199
|
+
$(ECHO) compiling $(<)
|
200
|
+
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
201
|
+
|
202
|
+
.m.o:
|
203
|
+
$(ECHO) compiling $(<)
|
204
|
+
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
180
205
|
|
181
206
|
$(DLLIB): $(OBJS) Makefile
|
207
|
+
$(ECHO) linking shared-object $(DLLIB)
|
182
208
|
@-$(RM) $(@)
|
183
|
-
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
209
|
+
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
184
210
|
|
185
211
|
|
186
212
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,14 +1,22 @@
|
|
1
1
|
|
2
2
|
SHELL = /bin/sh
|
3
3
|
|
4
|
+
# V=0 quiet, V=1 verbose. other values don't work.
|
5
|
+
V = 0
|
6
|
+
Q1 = $(V:1=)
|
7
|
+
Q = $(Q1:0=@)
|
8
|
+
n=$(NULLCMD)
|
9
|
+
ECHO1 = $(V:1=@$n)
|
10
|
+
ECHO = $(ECHO1:0=@echo)
|
11
|
+
|
4
12
|
#### Start of system configuration section. ####
|
5
13
|
|
6
14
|
srcdir = .
|
7
|
-
topdir = /Users/jdtornow/.rbenv/versions/1.9.
|
8
|
-
hdrdir = /Users/jdtornow/.rbenv/versions/1.9.
|
9
|
-
arch_hdrdir = /Users/jdtornow/.rbenv/versions/1.9.
|
15
|
+
topdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1
|
16
|
+
hdrdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1
|
17
|
+
arch_hdrdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1/$(arch)
|
10
18
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
11
|
-
prefix = $(DESTDIR)/Users/jdtornow/.rbenv/versions/1.9.
|
19
|
+
prefix = $(DESTDIR)/Users/jdtornow/.rbenv/versions/1.9.3-p125
|
12
20
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
13
21
|
exec_prefix = $(prefix)
|
14
22
|
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
@@ -43,11 +51,13 @@ sitearchdir = $(sitelibdir)/$(sitearch)
|
|
43
51
|
vendorlibdir = $(vendordir)/$(ruby_version)
|
44
52
|
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
45
53
|
|
46
|
-
|
54
|
+
NULLCMD = :
|
55
|
+
|
56
|
+
CC = cc
|
47
57
|
CXX = g++
|
48
58
|
LIBRUBY = $(LIBRUBY_A)
|
49
59
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
50
|
-
LIBRUBYARG_SHARED =
|
60
|
+
LIBRUBYARG_SHARED =
|
51
61
|
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
52
62
|
OUTFLAG = -o
|
53
63
|
COUTFLAG = -o
|
@@ -56,16 +66,16 @@ RUBY_EXTCONF_H =
|
|
56
66
|
cflags = $(optflags) $(debugflags) $(warnflags)
|
57
67
|
optflags = -O3
|
58
68
|
debugflags = -ggdb
|
59
|
-
warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -
|
60
|
-
CFLAGS = -fno-common $(cflags) -pipe -O3
|
69
|
+
warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration
|
70
|
+
CFLAGS = -fno-common $(cflags) -pipe -O3 $(ARCH_FLAG)
|
61
71
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
62
72
|
DEFS =
|
63
|
-
CPPFLAGS = -DJSON_GENERATOR -I'/Users/jdtornow/.rbenv/versions/1.9.
|
73
|
+
CPPFLAGS = -DJSON_GENERATOR -I'/Users/jdtornow/.rbenv/versions/1.9.3-p125/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags)
|
64
74
|
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
65
|
-
ldflags = -L. -L'/Users/jdtornow/.rbenv/versions/1.9.
|
75
|
+
ldflags = -L. -L'/Users/jdtornow/.rbenv/versions/1.9.3-p125/lib' -L/usr/local/lib
|
66
76
|
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace
|
67
77
|
ARCH_FLAG =
|
68
|
-
DLDFLAGS = $(ldflags) $(dldflags)
|
78
|
+
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
69
79
|
LDSHARED = $(CC) -dynamic -bundle
|
70
80
|
LDSHAREDXX = $(CXX) -dynamic -bundle
|
71
81
|
AR = ar
|
@@ -74,14 +84,14 @@ EXEEXT =
|
|
74
84
|
RUBY_BASE_NAME = ruby
|
75
85
|
RUBY_INSTALL_NAME = ruby
|
76
86
|
RUBY_SO_NAME = ruby
|
77
|
-
arch = x86_64-
|
87
|
+
arch = x86_64-darwin12.1.0
|
78
88
|
sitearch = $(arch)
|
79
89
|
ruby_version = 1.9.1
|
80
|
-
ruby = /Users/jdtornow/.rbenv/versions/1.9.
|
90
|
+
ruby = /Users/jdtornow/.rbenv/versions/1.9.3-p125/bin/ruby
|
81
91
|
RUBY = $(ruby)
|
82
92
|
RM = rm -f
|
83
93
|
RM_RF = $(RUBY) -run -e rm -- -rf
|
84
|
-
RMDIRS =
|
94
|
+
RMDIRS = rmdir -p
|
85
95
|
MAKEDIRS = mkdir -p
|
86
96
|
INSTALL = /usr/bin/install -c
|
87
97
|
INSTALL_PROG = $(INSTALL) -m 0755
|
@@ -140,7 +150,7 @@ distclean-so::
|
|
140
150
|
distclean: clean distclean-so distclean-rb-default distclean-rb
|
141
151
|
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
142
152
|
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
143
|
-
@-$(RMDIRS) $(DISTCLEANDIRS)
|
153
|
+
@-$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
144
154
|
|
145
155
|
realclean: distclean
|
146
156
|
install: install-so install-rb
|
@@ -154,33 +164,49 @@ install-rb: pre-install-rb install-rb-default
|
|
154
164
|
install-rb-default: pre-install-rb-default
|
155
165
|
pre-install-rb: Makefile
|
156
166
|
pre-install-rb-default: Makefile
|
167
|
+
pre-install-rb-default:
|
168
|
+
$(ECHO) installing default generator libraries
|
157
169
|
$(RUBYARCHDIR):
|
158
|
-
$(MAKEDIRS) $@
|
170
|
+
$(Q) $(MAKEDIRS) $@
|
159
171
|
|
160
172
|
site-install: site-install-so site-install-rb
|
161
173
|
site-install-so: install-so
|
162
174
|
site-install-rb: install-rb
|
163
175
|
|
164
|
-
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
176
|
+
.SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
|
165
177
|
|
166
178
|
.cc.o:
|
167
|
-
$(
|
179
|
+
$(ECHO) compiling $(<)
|
180
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
181
|
+
|
182
|
+
.mm.o:
|
183
|
+
$(ECHO) compiling $(<)
|
184
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
168
185
|
|
169
186
|
.cxx.o:
|
170
|
-
$(
|
187
|
+
$(ECHO) compiling $(<)
|
188
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
171
189
|
|
172
190
|
.cpp.o:
|
173
|
-
$(
|
191
|
+
$(ECHO) compiling $(<)
|
192
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
174
193
|
|
175
194
|
.C.o:
|
176
|
-
$(
|
195
|
+
$(ECHO) compiling $(<)
|
196
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
177
197
|
|
178
198
|
.c.o:
|
179
|
-
$(
|
199
|
+
$(ECHO) compiling $(<)
|
200
|
+
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
201
|
+
|
202
|
+
.m.o:
|
203
|
+
$(ECHO) compiling $(<)
|
204
|
+
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
180
205
|
|
181
206
|
$(DLLIB): $(OBJS) Makefile
|
207
|
+
$(ECHO) linking shared-object json/ext/$(DLLIB)
|
182
208
|
@-$(RM) $(@)
|
183
|
-
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
209
|
+
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
184
210
|
|
185
211
|
|
186
212
|
|
Binary file
|
Binary file
|
@@ -1,14 +1,22 @@
|
|
1
1
|
|
2
2
|
SHELL = /bin/sh
|
3
3
|
|
4
|
+
# V=0 quiet, V=1 verbose. other values don't work.
|
5
|
+
V = 0
|
6
|
+
Q1 = $(V:1=)
|
7
|
+
Q = $(Q1:0=@)
|
8
|
+
n=$(NULLCMD)
|
9
|
+
ECHO1 = $(V:1=@$n)
|
10
|
+
ECHO = $(ECHO1:0=@echo)
|
11
|
+
|
4
12
|
#### Start of system configuration section. ####
|
5
13
|
|
6
14
|
srcdir = .
|
7
|
-
topdir = /Users/jdtornow/.rbenv/versions/1.9.
|
8
|
-
hdrdir = /Users/jdtornow/.rbenv/versions/1.9.
|
9
|
-
arch_hdrdir = /Users/jdtornow/.rbenv/versions/1.9.
|
15
|
+
topdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1
|
16
|
+
hdrdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1
|
17
|
+
arch_hdrdir = /Users/jdtornow/.rbenv/versions/1.9.3-p125/include/ruby-1.9.1/$(arch)
|
10
18
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
11
|
-
prefix = $(DESTDIR)/Users/jdtornow/.rbenv/versions/1.9.
|
19
|
+
prefix = $(DESTDIR)/Users/jdtornow/.rbenv/versions/1.9.3-p125
|
12
20
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
13
21
|
exec_prefix = $(prefix)
|
14
22
|
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
@@ -43,11 +51,13 @@ sitearchdir = $(sitelibdir)/$(sitearch)
|
|
43
51
|
vendorlibdir = $(vendordir)/$(ruby_version)
|
44
52
|
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
45
53
|
|
46
|
-
|
54
|
+
NULLCMD = :
|
55
|
+
|
56
|
+
CC = cc
|
47
57
|
CXX = g++
|
48
58
|
LIBRUBY = $(LIBRUBY_A)
|
49
59
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
50
|
-
LIBRUBYARG_SHARED =
|
60
|
+
LIBRUBYARG_SHARED =
|
51
61
|
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
52
62
|
OUTFLAG = -o
|
53
63
|
COUTFLAG = -o
|
@@ -56,16 +66,16 @@ RUBY_EXTCONF_H =
|
|
56
66
|
cflags = $(optflags) $(debugflags) $(warnflags)
|
57
67
|
optflags = -O3
|
58
68
|
debugflags = -ggdb
|
59
|
-
warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -
|
60
|
-
CFLAGS = -fno-common $(cflags) -pipe -O3
|
69
|
+
warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration
|
70
|
+
CFLAGS = -fno-common $(cflags) -pipe -O3 $(ARCH_FLAG)
|
61
71
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
62
72
|
DEFS =
|
63
|
-
CPPFLAGS = -I'/Users/jdtornow/.rbenv/versions/1.9.
|
73
|
+
CPPFLAGS = -I'/Users/jdtornow/.rbenv/versions/1.9.3-p125/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags)
|
64
74
|
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
65
|
-
ldflags = -L. -L'/Users/jdtornow/.rbenv/versions/1.9.
|
75
|
+
ldflags = -L. -L'/Users/jdtornow/.rbenv/versions/1.9.3-p125/lib' -L/usr/local/lib
|
66
76
|
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace
|
67
77
|
ARCH_FLAG =
|
68
|
-
DLDFLAGS = $(ldflags) $(dldflags)
|
78
|
+
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
69
79
|
LDSHARED = $(CC) -dynamic -bundle
|
70
80
|
LDSHAREDXX = $(CXX) -dynamic -bundle
|
71
81
|
AR = ar
|
@@ -74,14 +84,14 @@ EXEEXT =
|
|
74
84
|
RUBY_BASE_NAME = ruby
|
75
85
|
RUBY_INSTALL_NAME = ruby
|
76
86
|
RUBY_SO_NAME = ruby
|
77
|
-
arch = x86_64-
|
87
|
+
arch = x86_64-darwin12.1.0
|
78
88
|
sitearch = $(arch)
|
79
89
|
ruby_version = 1.9.1
|
80
|
-
ruby = /Users/jdtornow/.rbenv/versions/1.9.
|
90
|
+
ruby = /Users/jdtornow/.rbenv/versions/1.9.3-p125/bin/ruby
|
81
91
|
RUBY = $(ruby)
|
82
92
|
RM = rm -f
|
83
93
|
RM_RF = $(RUBY) -run -e rm -- -rf
|
84
|
-
RMDIRS =
|
94
|
+
RMDIRS = rmdir -p
|
85
95
|
MAKEDIRS = mkdir -p
|
86
96
|
INSTALL = /usr/bin/install -c
|
87
97
|
INSTALL_PROG = $(INSTALL) -m 0755
|
@@ -140,7 +150,7 @@ distclean-so::
|
|
140
150
|
distclean: clean distclean-so distclean-rb-default distclean-rb
|
141
151
|
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
142
152
|
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
143
|
-
@-$(RMDIRS) $(DISTCLEANDIRS)
|
153
|
+
@-$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
144
154
|
|
145
155
|
realclean: distclean
|
146
156
|
install: install-so install-rb
|
@@ -154,33 +164,49 @@ install-rb: pre-install-rb install-rb-default
|
|
154
164
|
install-rb-default: pre-install-rb-default
|
155
165
|
pre-install-rb: Makefile
|
156
166
|
pre-install-rb-default: Makefile
|
167
|
+
pre-install-rb-default:
|
168
|
+
$(ECHO) installing default parser libraries
|
157
169
|
$(RUBYARCHDIR):
|
158
|
-
$(MAKEDIRS) $@
|
170
|
+
$(Q) $(MAKEDIRS) $@
|
159
171
|
|
160
172
|
site-install: site-install-so site-install-rb
|
161
173
|
site-install-so: install-so
|
162
174
|
site-install-rb: install-rb
|
163
175
|
|
164
|
-
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
176
|
+
.SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
|
165
177
|
|
166
178
|
.cc.o:
|
167
|
-
$(
|
179
|
+
$(ECHO) compiling $(<)
|
180
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
181
|
+
|
182
|
+
.mm.o:
|
183
|
+
$(ECHO) compiling $(<)
|
184
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
168
185
|
|
169
186
|
.cxx.o:
|
170
|
-
$(
|
187
|
+
$(ECHO) compiling $(<)
|
188
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
171
189
|
|
172
190
|
.cpp.o:
|
173
|
-
$(
|
191
|
+
$(ECHO) compiling $(<)
|
192
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
174
193
|
|
175
194
|
.C.o:
|
176
|
-
$(
|
195
|
+
$(ECHO) compiling $(<)
|
196
|
+
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
177
197
|
|
178
198
|
.c.o:
|
179
|
-
$(
|
199
|
+
$(ECHO) compiling $(<)
|
200
|
+
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
201
|
+
|
202
|
+
.m.o:
|
203
|
+
$(ECHO) compiling $(<)
|
204
|
+
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
180
205
|
|
181
206
|
$(DLLIB): $(OBJS) Makefile
|
207
|
+
$(ECHO) linking shared-object json/ext/$(DLLIB)
|
182
208
|
@-$(RM) $(@)
|
183
|
-
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
209
|
+
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
184
210
|
|
185
211
|
|
186
212
|
|